/* ============================================================
   Nuvelo Labs — sleek premium redesign
   Type: Space Grotesk (display) + Manrope (body)
   Warm amber accent, restrained palette, tasteful motion
   ============================================================ */

:root {
  --bg:        #faf8f4;   /* warm near-white */
  --bg-card:   #f3efe7;   /* warm card panel */
  --bg-elev:   #ffffff;
  --ink:       #181513;   /* warm near-black */
  --ink-soft:  #4f463f;
  --ink-mute:  #8a7f74;
  --line:      rgba(24,21,19,0.10);
  --line-2:    rgba(24,21,19,0.06);

  --accent:        oklch(0.70 0.165 56);   /* warm amber-orange */
  --accent-deep:   oklch(0.62 0.165 52);
  --accent-soft:   oklch(0.70 0.165 56 / 0.12);
  --accent-glow:   oklch(0.70 0.165 56 / 0.30);

  --dark:      #15120e;   /* warm near-black section */
  --dark-card: #211c16;
  --dark-line: rgba(255,255,255,0.10);
  --dark-ink:  #f2ede4;
  --dark-mute: #a89c8c;

  --maxw: 1180px;
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
  overflow-x: hidden;
}

::selection { background: var(--accent-glow); color: var(--ink); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--accent);
  display: inline-block;
}
.eyebrow.center::before { display: none; }

.accent { color: var(--accent); }
.italic-mark { font-style: italic; font-family: var(--font-display); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  padding: 14px 24px; border-radius: 100px; border: 1px solid transparent;
  cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.btn-primary {
  background: var(--ink); color: var(--bg);
  box-shadow: 0 1px 2px rgba(0,0,0,.18);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(24,21,19,.55); }

.btn-accent {
  background: var(--accent); color: #1a0f04;
  box-shadow: 0 6px 22px -8px var(--accent-glow);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px var(--accent-glow); }

.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn-lg { padding: 17px 30px; font-size: 16px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s var(--ease), border-color .4s, padding .4s var(--ease), backdrop-filter .4s;
  padding: 22px 0;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(250,248,244,0.78);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; position: relative;
  background: var(--ink); display: grid; place-items: center; flex-shrink: 0;
}
.brand-mark span {
  width: 12px; height: 12px; border-radius: 3px;
  background: var(--accent); transform: rotate(45deg);
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a.lnk { font-size: 15px; font-weight: 600; color: var(--ink-soft); transition: color .2s; position: relative; }
.nav-links a.lnk::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 1.5px; width: 0; background: var(--accent); transition: width .3s var(--ease);
}
.nav-links a.lnk:hover { color: var(--ink); }
.nav-links a.lnk:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }

/* Theme toggle */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--line); background: var(--bg-elev); color: var(--ink-soft);
  display: grid; place-items: center; cursor: pointer;
  transition: transform .35s var(--ease), border-color .25s, color .25s, background .25s;
}
.theme-toggle:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px) rotate(-8deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .ic-sun { display: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.theme-toggle .ic-moon { display: block; fill: currentColor; stroke: none; }
:root[data-theme="dark"] .theme-toggle .ic-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ic-moon { display: none; }
@media (max-width: 860px) { .nav-links .lnk { display: none; } }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 168px 0 96px; overflow: hidden; }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 78%);
}
.hero-glow {
  position: absolute; z-index: 0; pointer-events: none;
  width: 620px; height: 620px; right: -120px; top: -80px;
  background: radial-gradient(circle, var(--accent-glow), transparent 62%);
  filter: blur(28px); opacity: .55;
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 7px 7px 14px; border-radius: 100px;
  background: var(--bg-elev); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero-badge .pin { font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 3px 9px; border-radius: 100px; background: var(--ink); color: var(--bg); }

.hero h1 {
  font-size: clamp(44px, 6.4vw, 82px); line-height: 0.98; margin: 26px 0 0;
  letter-spacing: -0.035em; font-weight: 600;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero p.sub {
  font-size: clamp(17px, 1.7vw, 21px); color: var(--ink-soft); max-width: 30em; margin: 26px 0 0; line-height: 1.5;
}
.hero-actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-marquee {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 40px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-mute);
}
.hero-marquee span { display: inline-flex; align-items: center; gap: 9px; }
.hero-marquee span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* hero visual — animated AI layer node graph */
.hero-visual { position: relative; aspect-ratio: 1 / 1; }
.node-stage {
  position: absolute; inset: 0; border-radius: 26px;
  background: linear-gradient(160deg, var(--dark), #1c1812);
  border: 1px solid var(--dark-line);
  box-shadow: 0 40px 80px -40px rgba(24,21,19,.6), inset 0 1px 0 rgba(255,255,255,.05);
  overflow: hidden;
}
.node-stage .stage-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 45%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000, transparent 75%);
}
.node-stage .stage-label {
  position: absolute; left: 22px; top: 20px; z-index: 5;
  font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--dark-mute);
}
.node-stage .stage-tag {
  position: absolute; right: 20px; top: 18px; z-index: 5;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; color: var(--dark-mute);
}
.node-stage .stage-tag .live { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.18); animation: pulse 2s infinite; }

.core {
  position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; transform: translate(-50%,-50%);
  border-radius: 22px; z-index: 4;
  background: linear-gradient(150deg, var(--accent), var(--accent-deep));
  display: grid; place-items: center; color: #1a0f04;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 14px 40px -8px var(--accent-glow);
  animation: corefloat 5s ease-in-out infinite;
}
.core .core-mark { width: 26px; height: 26px; border-radius: 7px; background: rgba(26,15,4,.9); transform: rotate(45deg); }
.core .core-ring {
  position: absolute; inset: -16px; border-radius: 30px; border: 1px solid var(--accent-glow);
  animation: ringpulse 3s ease-out infinite;
}
.core-label {
  position: absolute; left: 50%; top: calc(50% + 66px); transform: translateX(-50%);
  font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--dark-ink); z-index: 4; white-space: nowrap;
}

.node {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 9px;
  padding: 9px 13px 9px 11px; border-radius: 12px;
  background: var(--dark-card); border: 1px solid var(--dark-line);
  color: var(--dark-ink); font-size: 12.5px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 10px 26px -14px rgba(0,0,0,.7);
  animation: nodefloat 6s ease-in-out infinite;
}
.node .ni { width: 20px; height: 20px; border-radius: 6px; background: var(--accent-soft); display: grid; place-items: center; font-size: 12px; }
.node.n1 { left: 4%;  top: 16%; animation-delay: 0s; }
.node.n2 { right: 3%; top: 30%; animation-delay: .8s; }
.node.n3 { left: 2%;  bottom: 22%; animation-delay: 1.6s; }
.node.n4 { right: 5%; bottom: 15%; animation-delay: 2.4s; }
.node.n5 { left: 2%;  top: 48%; animation-delay: 1.2s; }
.node.n6 { right: 4%; top: 50%; animation-delay: 2s; }

.wire { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.wire path { stroke: url(#wireGrad); stroke-width: 1.4; fill: none; opacity: .55; }
.wire .pulse-dot { fill: var(--accent); }

@keyframes corefloat { 0%,100% { transform: translate(-50%,-52%); } 50% { transform: translate(-50%,-48%); } }
@keyframes nodefloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes ringpulse { 0% { transform: scale(.9); opacity: .7; } 100% { transform: scale(1.25); opacity: 0; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 440px; margin: 0 auto; width: 100%; }
  .hero { padding-top: 138px; }
}

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
section { position: relative; }
.section { padding: 110px 0; }
.section-head { max-width: 640px; margin-bottom: 58px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4vw, 50px); margin-top: 16px; letter-spacing: -0.03em; }
.section-head p.lede { font-size: 18.5px; color: var(--ink-soft); margin-top: 18px; line-height: 1.55; }

/* ============================================================
   PROBLEM
   ============================================================ */
.problem { background: var(--bg); }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pcard {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 28px; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
  position: relative; overflow: hidden;
}
.pcard::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--accent); transition: width .4s var(--ease);
}
.pcard:hover { transform: translateY(-5px); box-shadow: 0 22px 50px -28px rgba(24,21,19,.4); border-color: var(--line); }
.pcard:hover::after { width: 100%; }
.pcard .picon { width: 46px; height: 46px; border-radius: 12px; background: var(--bg-card); display: grid; place-items: center; font-size: 22px; margin-bottom: 18px; }
.pcard h4 { font-size: 18px; margin-bottom: 9px; letter-spacing: -0.01em; }
.pcard p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }

@media (max-width: 940px) { .cards-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 540px) { .cards-4 { grid-template-columns: 1fr; } }

/* ============================================================
   SERVICES (dark)
   ============================================================ */
.services { background: var(--dark); color: var(--dark-ink); }
.services .eyebrow { color: var(--dark-mute); }
.services .section-head h2 { color: var(--dark-ink); }
.services .section-head p.lede { color: var(--dark-mute); }
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.scard {
  background: var(--dark-card); border: 1px solid var(--dark-line); border-radius: var(--radius);
  padding: 32px 30px; position: relative; overflow: hidden;
  transition: transform .4s var(--ease), border-color .3s, background .3s;
}
.scard:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.2); }
.scard .num { position: absolute; right: 26px; top: 26px; font-family: var(--font-display); font-size: 14px; color: var(--dark-mute); font-weight: 600; }
.scard .sicon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; margin-bottom: 22px;
  background: linear-gradient(150deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); border: 1px solid var(--dark-line);
}
.node .ni, .pcard .picon, .scard .sicon { color: var(--accent); }
.node .ni svg { width: 13px; height: 13px; display: block; }
.pcard .picon svg { width: 24px; height: 24px; display: block; }
.scard .sicon svg { width: 26px; height: 26px; display: block; }
.scard h3 { font-size: 22px; color: var(--dark-ink); margin-bottom: 11px; }
.scard p { font-size: 15px; color: var(--dark-mute); line-height: 1.6; }
.scard .pill {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  font-size: 13px; font-weight: 700; color: var(--accent);
  padding: 7px 14px; border-radius: 100px; background: var(--accent-soft); border: 1px solid var(--accent-glow);
}
@media (max-width: 760px) { .svc-grid { grid-template-columns: 1fr; } }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; position: relative; }
.step {
  border-top: 1px solid var(--line); padding-top: 26px; position: relative;
}
.step .snum {
  font-family: var(--font-display); font-size: 15px; font-weight: 700; color: #1a0f04;
  width: 38px; height: 38px; border-radius: 50%; background: var(--accent); display: grid; place-items: center;
  margin-bottom: 22px; box-shadow: 0 6px 18px -6px var(--accent-glow);
}
.step::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width .6s var(--ease);
}
.step.reveal-in::before { width: 64px; }
.step h3 { font-size: 21px; margin-bottom: 11px; }
.step p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; }
.step .meta { margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--ink-mute); letter-spacing: .02em; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 16px; } }

/* ============================================================
   PRICING
   ============================================================ */
.pricing { background: var(--bg-card); }
.onetime {
  display: grid; grid-template-columns: 1.2fr auto; gap: 30px; align-items: center;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 36px; margin-bottom: 26px;
}
.onetime h3 { font-size: 24px; margin-bottom: 8px; }
.onetime p { font-size: 15px; color: var(--ink-soft); max-width: 52ch; }
.onetime .ot-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.onetime .ot-price { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.onetime .ot-price small { font-size: 14px; color: var(--ink-mute); font-weight: 600; font-family: var(--font-body); }

.tiers { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.tier {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column; position: relative;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.tier:hover { transform: translateY(-6px); box-shadow: 0 28px 60px -32px rgba(24,21,19,.45); }
.tier.featured {
  background: var(--dark); color: var(--dark-ink); border-color: var(--dark);
  box-shadow: 0 30px 70px -30px rgba(24,21,19,.5);
}
.tier.featured .tier-name, .tier.featured .tier-price { color: var(--dark-ink); }
.tier.featured .tier-desc { color: var(--dark-mute); }
.tier.featured ul li { color: var(--dark-ink); }
.tier.featured ul li::before { background: var(--accent-soft); color: var(--accent); }
.tier-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #1a0f04; font-size: 12px; font-weight: 800; letter-spacing: .04em;
  padding: 6px 16px; border-radius: 100px; white-space: nowrap;
  box-shadow: 0 8px 20px -6px var(--accent-glow);
}
.tier-name { font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.tier-desc { font-size: 14px; color: var(--ink-soft); margin-top: 10px; min-height: 40px; }
.tier-price { font-family: var(--font-display); font-size: 38px; font-weight: 600; letter-spacing: -0.02em; margin: 20px 0 4px; }
.tier-price small { font-size: 15px; color: var(--ink-mute); font-weight: 600; font-family: var(--font-body); }
.tier ul { list-style: none; margin: 22px 0 26px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.tier ul li { font-size: 14.5px; color: var(--ink-soft); display: flex; gap: 11px; align-items: flex-start; line-height: 1.45; }
.tier ul li::before {
  content: "✓"; flex-shrink: 0; width: 19px; height: 19px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-deep); font-size: 11px; font-weight: 800;
  display: grid; place-items: center; margin-top: 2px;
}
.tier .btn { width: 100%; justify-content: center; }
.pricing-note { text-align: center; margin-top: 30px; font-size: 14px; color: var(--ink-mute); }
@media (max-width: 860px) {
  .tiers { grid-template-columns: 1fr; }
  .onetime { grid-template-columns: 1fr; text-align: left; }
  .onetime .ot-right { align-items: flex-start; text-align: left; }
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats { background: var(--dark); color: var(--dark-ink); padding: 64px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.stat { text-align: center; }
.stat .big { font-family: var(--font-display); font-size: clamp(38px,5vw,58px); font-weight: 600; letter-spacing: -0.03em; color: var(--dark-ink); }
.stat .big .accent { color: var(--accent); }
.stat .lbl { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dark-mute); margin-top: 6px; }
@media (max-width: 620px) { .stats-grid { grid-template-columns: repeat(2,1fr); gap: 36px 20px; } }

/* ============================================================
   ABOUT
   ============================================================ */
.about-wrap { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 60px; align-items: start; }
.about-head { position: sticky; top: 120px; }
.about-head h2 { font-size: clamp(32px, 4vw, 50px); margin-top: 16px; letter-spacing: -0.03em; }
.about-body { max-width: 60ch; }
.about-body p { font-size: 18px; color: var(--ink-soft); line-height: 1.7; margin-bottom: 20px; }
.about-body p:first-child { font-size: 21px; color: var(--ink); line-height: 1.55; letter-spacing: -0.01em; }
.about-body p strong { color: var(--ink); font-weight: 700; }
.about-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.about-tags .tag {
  font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
  padding: 7px 14px; border-radius: 100px; background: var(--bg-card); border: 1px solid var(--line);
  transition: color .2s, background .2s, border-color .2s;
}
.about-tags .tag:hover { border-color: var(--accent); color: var(--ink); background: var(--accent-soft); }
@media (max-width: 820px) { .about-wrap { grid-template-columns: 1fr; gap: 28px; } .about-head { position: static; } }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--bg-card); }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 4px; font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em;
}
.faq-q .ic {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; transition: transform .4s var(--ease), background .3s, border-color .3s; position: relative;
}
.faq-q .ic::before, .faq-q .ic::after { content: ""; position: absolute; background: var(--ink); border-radius: 2px; transition: opacity .3s, background .3s; }
.faq-q .ic::before { width: 12px; height: 1.8px; }
.faq-q .ic::after  { width: 1.8px; height: 12px; }
.faq-item.open .faq-q .ic { background: var(--accent); border-color: var(--accent); transform: rotate(90deg); }
.faq-item.open .faq-q .ic::before, .faq-item.open .faq-q .ic::after { background: #1a0f04; }
.faq-item.open .faq-q .ic::after { opacity: 0; }
.faq-a { overflow: hidden; height: 0; transition: height .4s var(--ease); }
.faq-a-inner { padding: 0 4px 26px; font-size: 16px; color: var(--ink-soft); line-height: 1.65; max-width: 64ch; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final { background: var(--dark); color: var(--dark-ink); overflow: hidden; position: relative; }
.final .final-glow {
  position: absolute; width: 700px; height: 700px; left: 50%; top: 50%; transform: translate(-50%,-50%);
  background: radial-gradient(circle, var(--accent-glow), transparent 60%); filter: blur(40px); opacity: .4; pointer-events: none;
}
.final-inner { position: relative; z-index: 2; text-align: center; max-width: 760px; margin: 0 auto; padding: 118px 0; }
.final h2 { font-size: clamp(34px, 5vw, 58px); color: var(--dark-ink); letter-spacing: -0.03em; line-height: 1.04; }
.final p { font-size: 19px; color: var(--dark-mute); margin: 22px auto 0; max-width: 50ch; }
.final .hero-actions { justify-content: center; }
.final-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 34px; font-size: 13.5px; font-weight: 600; color: var(--dark-mute); }
.final-trust span { display: inline-flex; align-items: center; gap: 8px; }
.final-trust span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg); padding: 56px 0 38px; border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer .brand { font-size: 20px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h5 { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; font-size: 14.5px; color: var(--ink-soft); margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--accent-deep); }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-mute); }

/* ============================================================
   CHAT WIDGET
   ============================================================ */
.chat-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  display: flex; align-items: center; gap: 11px; padding: 13px 20px 13px 14px;
  background: var(--ink); color: var(--bg); border: none; border-radius: 100px; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 14.5px;
  box-shadow: 0 14px 36px -10px rgba(24,21,19,.5); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.chat-fab:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -10px rgba(24,21,19,.6); }
.chat-fab .cf-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 12px; color: #1a0f04; }
.chat-fab .cf-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.2); }
@media (max-width: 560px) { .chat-fab span.cf-text { display: none; } .chat-fab { padding: 14px; } }
.chat-fab.is-hidden { opacity: 0; pointer-events: none; transform: translateY(8px) scale(.92); }

/* Chat panel */
.chat-panel {
  position: fixed; right: 24px; bottom: 24px; z-index: 96;
  width: 384px; max-width: calc(100vw - 32px);
  height: 560px; max-height: calc(100vh - 48px);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 36px 90px -28px rgba(24,21,19,.45), 0 6px 16px rgba(0,0,0,.06);
  transform: translateY(22px) scale(.97); transform-origin: bottom right;
  opacity: 0; pointer-events: none;
  transition: transform .42s var(--ease), opacity .35s var(--ease);
}
.chat-panel.open { transform: none; opacity: 1; pointer-events: auto; }

.chat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; background: var(--ink); color: var(--bg);
}
.chat-head-id { display: flex; align-items: center; gap: 11px; }
.chat-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent); color: #1a0f04; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
}
.chat-head-meta { display: flex; flex-direction: column; line-height: 1.2; }
.chat-head-meta strong { font-family: var(--font-display); font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em; }
.chat-status { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: rgba(255,255,255,.62); margin-top: 3px; }
.chat-status .cf-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.2); }
.chat-close {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; cursor: pointer;
  border: none; background: rgba(255,255,255,.12); color: var(--bg); font-size: 12px;
  display: grid; place-items: center; transition: background .2s;
}
.chat-close:hover { background: rgba(255,255,255,.24); }

.chat-body { flex: 1; overflow-y: auto; padding: 20px 18px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); }
.chat-msg { display: flex; }
.chat-msg.bot { justify-content: flex-start; }
.chat-msg.user { justify-content: flex-end; }
.chat-msg .bubble { max-width: 82%; padding: 11px 15px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; }
.chat-msg.bot .bubble { background: var(--bg-card); color: var(--ink); border-bottom-left-radius: 5px; }
.chat-msg.user .bubble { background: var(--accent); color: #1a0f04; border-bottom-right-radius: 5px; font-weight: 500; }
.chat-msg .bubble a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.chat-msg.bot .bubble a { color: var(--accent-deep); }

.chat-typing .bubble { display: inline-flex; gap: 4px; align-items: center; }
.chat-typing .bubble span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-mute); animation: typedot 1.2s infinite ease-in-out; }
.chat-typing .bubble span:nth-child(2) { animation-delay: .15s; }
.chat-typing .bubble span:nth-child(3) { animation-delay: .3s; }
@keyframes typedot { 0%,60%,100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.chat-quick { display: flex; flex-wrap: wrap; gap: 7px; padding: 11px 16px; border-top: 1px solid var(--line); background: var(--bg-elev); }
.chat-chip {
  font-family: var(--font-body); font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 100px; padding: 7px 13px; cursor: pointer;
  transition: border-color .2s, color .2s, transform .2s;
}
.chat-chip:hover { border-color: var(--accent); color: var(--accent-deep); transform: translateY(-1px); }

.chat-input { display: flex; align-items: center; gap: 9px; padding: 13px 16px; border-top: 1px solid var(--line); background: var(--bg-elev); }
.chat-input input {
  flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--bg); border-radius: 100px;
  padding: 11px 16px; font-family: var(--font-body); font-size: 14.5px; color: var(--ink); outline: none;
  transition: border-color .2s;
}
.chat-input input:focus { border-color: var(--accent); }
.chat-input input::placeholder { color: var(--ink-mute); }
.chat-send {
  font-family: var(--font-body); font-weight: 700; font-size: 14px; flex-shrink: 0;
  background: var(--accent); color: #1a0f04; border: none; border-radius: 100px; padding: 11px 18px; cursor: pointer;
  box-shadow: 0 6px 18px -8px var(--accent-glow); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.chat-send:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -10px var(--accent-glow); }

/* Dark mode: keep the header a dark panel rather than inverting to light */
:root[data-theme="dark"] .chat-head { background: var(--dark-card); color: var(--dark-ink); }
:root[data-theme="dark"] .chat-close { color: var(--dark-ink); }

@media (max-width: 560px) {
  .chat-panel { right: 8px; left: 8px; width: auto; bottom: 8px; height: calc(100dvh - 80px); }
}

/* ============================================================
   REVEAL MOTION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.reveal-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .core, .node, .core-ring, .stage-tag .live { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   DARK MODE — warm palette reversed, amber accent kept
   ============================================================ */
:root[data-theme="dark"] {
  --bg:        #131009;
  --bg-card:   #1c1812;
  --bg-elev:   #1c1812;
  --ink:       #f4eee3;
  --ink-soft:  #bcb1a1;
  --ink-mute:  #8c8170;
  --line:      rgba(255,255,255,0.11);
  --line-2:    rgba(255,255,255,0.05);

  /* "dark band" sections become raised lighter panels so rhythm survives */
  --dark:      #221c14;
  --dark-card: #2b2419;
  --dark-line: rgba(255,255,255,0.12);
  --dark-ink:  #f4eee3;
  --dark-mute: #9d9281;
}

/* keep the featured tier distinct on a dark page */
:root[data-theme="dark"] .tier.featured {
  border-color: var(--accent-glow);
  box-shadow: 0 0 0 1px var(--accent-glow), 0 30px 70px -30px rgba(0,0,0,.6);
}
/* hero engine panel: nudge contrast in dark mode */
:root[data-theme="dark"] .node-stage {
  background: linear-gradient(160deg, #251f16, #1a160f);
}
/* chat fab reads better as an accent pill on dark */
:root[data-theme="dark"] .chat-fab { background: var(--accent); color: #1a0f04; }
:root[data-theme="dark"] .chat-fab .cf-avatar { background: #1a0f04; color: var(--accent); }

/* scrolled header: dark frosted panel in dark mode (was cream) */
:root[data-theme="dark"] .nav.scrolled { background: rgba(19,16,9,0.82); }

/* Smooth crossfade when flipping themes */
body, .nav, .hero-badge, .pcard, .scard, .tier, .onetime, .step,
.about-tags .tag, .faq-q, .faq-q .ic, .btn, .theme-toggle, .chat-fab,
.services, .stats, .final, .footer, .pricing, .faq {
  transition: background-color .5s var(--ease), color .45s var(--ease),
              border-color .45s var(--ease), box-shadow .45s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  body, .nav, .pcard, .scard, .tier { transition: none; }
}

/* ============================================================
   MOBILE HARDENING (phones)
   ============================================================ */
@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 38px; }

  /* Nav — keep brand, toggle and CTA on one tidy row */
  .nav { padding: 16px 0; }
  .nav.scrolled { padding: 11px 0; }
  .brand { font-size: 17px; }
  .nav .btn-accent { padding: 11px 15px; font-size: 13.5px; }
  .theme-toggle { width: 36px; height: 36px; }

  /* Hero */
  .hero { padding: 116px 0 60px; }
  .hero h1 { font-size: clamp(40px, 12.5vw, 60px); }
  .hero p.sub { font-size: 17px; }
  .hero-badge { flex-wrap: wrap; row-gap: 6px; }
  .hero-actions { gap: 10px; margin-top: 30px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }

  /* Engine visual — shrink nodes so labels never clip on a narrow stage */
  .node { font-size: 11px; padding: 7px 10px 7px 8px; gap: 7px; }
  .node .ni { width: 17px; height: 17px; font-size: 10px; }
  .core { width: 70px; height: 70px; }
  .core .core-mark { width: 19px; height: 19px; }
  .core-label { top: calc(50% + 50px); font-size: 11px; }
  .node-stage .stage-label, .node-stage .stage-tag { font-size: 10px; }

  /* Cards / pricing */
  .onetime { padding: 26px 22px; }
  .onetime .ot-price { font-size: 26px; }
  .tier { padding: 28px 22px; }
  .pcard { padding: 22px 20px 24px; }

  /* Steps / about / final spacing */
  .final-inner { padding: 80px 0; }
  .about-body p:first-child { font-size: 19px; }

  /* FAQ question text a touch smaller */
  .faq-q { font-size: 17px; padding: 22px 2px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 38px; }
  .node { font-size: 10.5px; }
}

/* ============================================================
   FREE DEMO SECTION
   ============================================================ */
.demo-card {
  max-width: 720px; margin: 0;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  box-shadow: 0 20px 50px -30px rgba(0,0,0,.25);
}
.demo-row { display: flex; gap: 12px; margin-bottom: 12px; }
.demo-row:last-of-type { margin-bottom: 0; }
.demo-field {
  flex: 1; min-width: 0;
  padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font: inherit; font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.demo-field::placeholder { color: var(--ink-mute); }
.demo-field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
#demoGo { flex-shrink: 0; white-space: nowrap; }
.demo-note { text-align: center; margin-top: 14px; font-size: 13px; color: var(--ink-mute); letter-spacing: .02em; }
@media (max-width: 600px) {
  .demo-row { flex-direction: column; }
  #demoGo { width: 100%; justify-content: center; }
}

/* free-demo confirmation state */
.demo-done { text-align: center; padding: 8px 4px; }
.demo-done h3 { font-size: 22px; margin-bottom: 8px; color: var(--ink); }
.demo-done p { color: var(--ink-soft); font-size: 15px; line-height: 1.55; }

/* ============================================================
   MISSED-LEADS CALCULATOR
   ============================================================ */
.calc-card {
  max-width: 760px; margin: 0 auto;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 24px 60px -34px rgba(0,0,0,.3);
}
.calc-inputs { padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.calc-field { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.calc-field.calc-full { grid-column: 1 / -1; }
.calc-field strong { color: var(--accent); }
.calc-input {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--ink-mute); background: var(--bg); color: var(--ink);
  font: inherit; font-size: 15px; font-weight: 500;
  transition: border-color .2s, box-shadow .2s;
}
.calc-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.calc-inwrap { position: relative; display: flex; align-items: center; }
.calc-pre { position: absolute; left: 14px; color: var(--ink-soft); font-weight: 700; pointer-events: none; }
.calc-input.has-pre { padding-left: 28px; }
.calc-slider { width: 100%; accent-color: var(--accent); height: 6px; cursor: pointer; margin-top: 4px; }
.calc-result { padding: 26px 28px; background: var(--ink); color: var(--bg); }
.calc-result-lbl { font-size: 12px; letter-spacing: .09em; text-transform: uppercase; opacity: .65; }
.calc-big { font-family: var(--font-display); font-size: 48px; font-weight: 700; line-height: 1.05; color: var(--accent); letter-spacing: -0.02em; margin: 4px 0 2px; }
.calc-per { font-size: 18px; opacity: .8; color: var(--bg); margin-left: 5px; font-weight: 600; }
.calc-sub { font-size: 14px; opacity: .85; }
.calc-recover { font-size: 14px; opacity: .92; margin-top: 12px; line-height: 1.55; max-width: 56ch; }
.calc-recover strong { color: var(--accent); }
.calc-result .btn { margin-top: 16px; }
html { visibility: visible !important; }
.ot-hosting { font-size: 13px; color: var(--ink-soft); margin-top: 4px; margin-bottom: 14px; }
.tier ul li.addon { color: var(--accent); font-size: 13px; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; font-style: italic; }
:root[data-theme="dark"] .calc-result { background: #e6ddcb; }
@media (max-width: 560px) { .calc-inputs { grid-template-columns: 1fr; } }
