/* ============================================
   Torch Web Design — styles (dark theme)
   Palette: deep navy backgrounds, blue accents
   ============================================ */

:root {
  --blue-400: #60A5FA;
  --blue-500: #3B82F6;
  --blue-600: #2563EB;
  --blue-700: #1D4ED8;
  --blue-800: #1E40AF;
  --blue-tint: rgba(59, 130, 246, 0.14);
  --navy-900: #0F1F3D;
  --bg:       #0B1220;
  --bg-alt:   #0E1729;
  --card:     #121D33;
  --line:     #223050;
  --ink:      #E9EEF7;
  --slate:    #A9B6CC;
  --slate-light: #7C8AA5;
  --radius:   14px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35), 0 12px 32px rgba(0, 0, 0, 0.35);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  color-scheme: dark;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }

img, svg { display: block; }
a { color: inherit; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--blue-600);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--blue-400);
  outline-offset: 3px;
}

/* ---------- 404 ---------- */
.not-found-inner {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 4rem) 0;
}
.not-found-code {
  font-size: clamp(4.5rem, 13vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(120deg, #F2F6FE 30%, var(--blue-400) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.6rem;
}
.not-found .lede { margin-inline: auto; }
.not-found .hero-actions { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover {
  background: var(--blue-500);
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.5), 0 0 40px rgba(59, 130, 246, 0.35);
}

.btn-ghost {
  color: var(--blue-400);
  border: 1.5px solid var(--line);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--blue-500); }

.btn-light {
  background: #fff;
  color: var(--blue-800);
  box-shadow: var(--shadow-sm);
}

.text-link {
  color: var(--blue-400);
  font-weight: 600;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand-mark svg {
  filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.55))
          drop-shadow(0 0 14px rgba(37, 99, 235, 0.35));
}
.brand-name { font-weight: 700; font-size: 1.08rem; letter-spacing: -0.01em; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.site-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--slate);
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a.active { color: var(--blue-400); font-weight: 600; }
.site-nav .btn-nav { color: #fff; padding: 0.6rem 1.2rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 85% 10%, var(--blue-tint) 0%, transparent 60%),
    linear-gradient(180deg, #0D1526 0%, var(--bg) 100%);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem);
}

/* slow-breathing ambient glow */
.hero::before {
  content: "";
  position: absolute;
  top: -25%;
  right: -12%;
  width: 60vw;
  height: 60vw;
  max-width: 820px;
  max-height: 820px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.20) 0%, transparent 65%);
  animation: aura 9s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes aura {
  from { transform: scale(1) translate(0, 0); opacity: 0.65; }
  to   { transform: scale(1.25) translate(-6%, 8%); opacity: 1; }
}

.hero-inner { position: relative; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin-bottom: 0.9rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--slate);
  margin-top: 1.2rem;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  margin-top: 2.2rem;
  list-style: none;
  font-size: 0.92rem;
  color: var(--slate);
  font-weight: 500;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.hero-points li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-500);
  flex-shrink: 0;
}

/* ---------- Browser mock ---------- */
.browser-mock {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.65rem 0.9rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.browser-bar .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #2E3D5E;
}
.browser-url {
  margin-left: 0.6rem;
  font-size: 0.72rem;
  color: var(--slate-light);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.15rem 0.7rem;
}

.browser-body { padding: 1.2rem 1.4rem 1.5rem; }

.mock-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}
.mock-logo { width: 54px; height: 12px; border-radius: 4px; background: var(--blue-600); }
.mock-link { width: 34px; height: 8px; border-radius: 4px; background: #2A3A5C; }
.mock-link:nth-of-type(2) { margin-left: auto; }
.mock-btn { width: 56px; height: 18px; border-radius: 9px; background: var(--blue-600); }

.mock-hero { display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 1.4rem; }
.mock-h1 { width: 75%; height: 16px; border-radius: 5px; background: #DDE6F5; opacity: 0.9; }
.mock-h1.short { width: 45%; }
.mock-p { width: 60%; height: 9px; border-radius: 4px; background: #2A3A5C; }
.mock-cta { width: 90px; height: 24px; border-radius: 12px; background: var(--blue-600); margin-top: 0.4rem; }

.mock-cards { display: flex; gap: 0.8rem; }
.mock-card {
  flex: 1;
  height: 58px;
  border-radius: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}

/* ---------- Sub-page hero ---------- */
.page-hero {
  background:
    radial-gradient(60% 80% at 85% 10%, var(--blue-tint) 0%, transparent 60%),
    linear-gradient(180deg, #0D1526 0%, var(--bg) 100%);
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(1.2rem, 3vw, 2rem);
}
.page-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  max-width: 46rem;
}
.page-hero .lede { max-width: 40rem; }

/* ---------- Statement ---------- */
.statement-section {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  background: radial-gradient(45% 90% at 50% 50%, rgba(59, 130, 246, 0.10) 0%, transparent 70%);
}

.statement {
  border: 0;
  text-align: center;
}
.statement p {
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  max-width: 52rem;
  margin-inline: auto;
  background: linear-gradient(120deg, #F2F6FE 30%, var(--blue-400) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Steps ---------- */
.steps-grid { grid-template-columns: repeat(3, 1fr); }

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue-400);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2.2rem, 5vw, 3.5rem);
}
.section-sub {
  color: var(--slate);
  margin-top: 0.9rem;
  font-size: 1.05rem;
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.4rem; }
.services-grid { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #2C3D63;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-tint);
  color: var(--blue-400);
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
}

.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--slate); font-size: 0.95rem; }

/* ---------- Testimonials ---------- */
.testimonials-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.quote-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.quote-mark {
  font-size: 3rem;
  line-height: 1;
  font-weight: 800;
  color: var(--blue-400);
  margin-bottom: 0.4rem;
}

.quote-card blockquote p {
  color: var(--slate);
  font-size: 0.98rem;
  max-width: 60rem;
}

.quote-card figcaption {
  margin-top: auto;
  padding-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.quote-name { font-weight: 700; color: var(--ink); }

.quote-org {
  font-size: 0.88rem;
  color: var(--blue-400);
  text-decoration: none;
}
a.quote-org:hover { text-decoration: underline; }

/* ---------- Management panel ---------- */
.grid + .manage-panel { margin-top: 2.5rem; }
.manage-panel + .capability { margin-top: 2.5rem; }

.manage-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-sm);
}

.manage-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.manage-head p {
  color: var(--slate);
  margin-top: 0.7rem;
  max-width: 44rem;
}

.manage-list {
  list-style: none;
  margin: 1.7rem 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2.5rem;
}
.manage-list li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--slate);
  font-size: 0.97rem;
}
.manage-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue-400);
  font-weight: 800;
}
.manage-list strong { color: var(--ink); }

.manage-note {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.97rem;
}

/* ---------- FAQ ---------- */
.faq-section { padding-top: 0; }

.faq { max-width: 46rem; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 0.8rem;
}
.faq-item summary {
  cursor: pointer;
  padding: 1.1rem 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--blue-400);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p {
  padding: 0 1.3rem 1.2rem;
  color: var(--slate);
  font-size: 0.95rem;
}

/* ---------- CTA banner ---------- */
.grid + .capability { margin-top: 2.5rem; }

.capability {
  text-align: center;
  background: linear-gradient(135deg, #16233F 0%, #1B2C52 100%);
  border: 1px solid #2B3C63;
  border-radius: var(--radius);
  color: #fff;
  padding: clamp(2.2rem, 5vw, 3.5rem) clamp(1.4rem, 4vw, 3rem);
  box-shadow: 0 0 60px rgba(37, 99, 235, 0.14);
}
.capability h3 { font-size: 1.5rem; margin-bottom: 0.8rem; }
.capability p {
  color: #C4D0E6;
  max-width: 44rem;
  margin: 0 auto 1.8rem;
}

/* ---------- About ---------- */
.about-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.avatar {
  width: clamp(150px, 18vw, 210px);
  height: clamp(150px, 18vw, 210px);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-800));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-md);
}

.about-copy h2 { margin-bottom: 1.1rem; }
.about-copy p { color: var(--slate); margin-bottom: 1rem; max-width: 38rem; }

.principles {
  list-style: none;
  margin: 1.4rem 0 1.6rem;
  display: grid;
  gap: 0.7rem;
  max-width: 38rem;
}
.principles li {
  color: var(--slate);
  font-size: 0.97rem;
  padding-left: 1.4rem;
  position: relative;
}
.principles li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-500);
}
.principles strong { color: var(--ink); }

.about-cta { margin-top: 0.8rem; }

/* ---------- Contact ---------- */
.section-contact { padding-bottom: clamp(4rem, 9vw, 7rem); }

.contact-card {
  text-align: center;
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-800) 60%, var(--navy-900) 130%);
  border-radius: 20px;
  color: #fff;
  padding: clamp(2.8rem, 6vw, 4.5rem) clamp(1.4rem, 5vw, 4rem);
  box-shadow: var(--shadow-md), 0 0 90px rgba(37, 99, 235, 0.28);
}

.contact-sub {
  color: #D7E3FE;
  max-width: 36rem;
  margin: 1rem auto 2rem;
  font-size: 1.08rem;
}

.contact-actions { display: flex; justify-content: center; }

.contact-note {
  margin-top: 1.4rem;
  font-size: 0.88rem;
  color: #A9C1F5;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.2rem 0;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.footer-nav { display: flex; gap: 1.4rem; }
.footer-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--slate);
}
.footer-nav a:hover { color: var(--ink); }

.footer-copy { font-size: 0.85rem; color: var(--slate-light); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero::before { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 540px; }

  .about-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .avatar { margin-inline: auto; }
  .about-copy p { margin-inline: auto; }
  .principles { margin-inline: auto; text-align: left; }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
    padding: 0.6rem 1.5rem 1.2rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 0.8rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }
  .site-nav .btn-nav {
    margin-top: 1rem;
    text-align: center;
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .manage-list { grid-template-columns: 1fr; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
