/* ============================================================
   DreamScale — AI automation studio
   Dark · warm near-black · red accent · node-graph motif
   ============================================================ */

:root {
  /* color */
  --bg:        #0B0809;
  --bg-2:      #100B0D;
  --surface:   #16101300;          /* card base alpha handled below */
  --card:      #18121400;
  --line:      rgba(255, 255, 255, 0.08);
  --line-2:    rgba(255, 255, 255, 0.14);

  --red:       #FF2E3B;
  --red-bright:#FF6A5C;
  --crimson:   #8E0E1A;
  --red-soft:  rgba(255, 46, 59, 0.14);

  --text:      #F6F2F1;
  --dim:       #A39B9E;
  --faint:     #6E676A;

  /* type */
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body:    'Manrope', system-ui, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;

  /* layout */
  --maxw: 1180px;
  --pad:  clamp(20px, 5vw, 56px);
  --r:    18px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--red); color: #fff; }

/* ---------- atmosphere ---------- */
.atmosphere {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% -5%, rgba(255, 46, 59, 0.16), transparent 70%),
    radial-gradient(45% 40% at 0% 30%, rgba(142, 14, 26, 0.12), transparent 70%);
}
.atmosphere::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.035; mix-blend-mode: overlay;
}

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

main, .nav, .footer { position: relative; z-index: 1; }

.section { padding-block: clamp(80px, 11vw, 150px); position: relative; }

.section__head { max-width: 720px; margin-bottom: clamp(48px, 6vw, 80px); }

/* ---------- shared type bits ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--dim);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 22px;
}
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px var(--red-soft), 0 0 14px var(--red);
}

.section__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.section__sub {
  margin-top: 22px;
  color: var(--dim);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  max-width: 620px;
}

.grad {
  background: linear-gradient(100deg, var(--red-bright), var(--red) 45%, var(--crimson));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.strike-red { color: var(--text); position: relative; white-space: nowrap; }
.strike-red::after {
  content: ""; position: absolute; left: -2%; right: -2%; top: 56%; height: 4px;
  background: var(--red); border-radius: 3px;
  transform: scaleX(0); transform-origin: left;
  box-shadow: 0 0 16px var(--red);
}
.in-view .strike-red::after,
.strike-red.lit::after { animation: strike 0.7s var(--ease) 0.3s forwards; }
@keyframes strike { to { transform: scaleX(1); } }

/* ---------- buttons ---------- */
.btn {
  --bx: 50%; --by: 50%;
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--body); font-weight: 600; font-size: 0.95rem;
  letter-spacing: -0.01em;
  padding: 13px 22px; border-radius: 999px;
  position: relative; isolation: isolate;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
  will-change: transform;
}
.btn--lg { padding: 16px 28px; font-size: 1rem; }

.btn--primary {
  background: linear-gradient(180deg, var(--red-bright), var(--red));
  color: #fff;
  box-shadow: 0 8px 30px -8px rgba(255, 46, 59, 0.6), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn--primary::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: radial-gradient(120px circle at var(--bx) var(--by), rgba(255,255,255,0.4), transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(255, 46, 59, 0.75), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn--primary:hover::before { opacity: 1; }
.btn--primary svg { transition: transform 0.3s var(--ease); }
.btn--primary:hover svg { transform: translateX(4px); }

.btn--ghost {
  border: 1px solid var(--line-2);
  color: var(--text);
  background: rgba(255,255,255,0.02);
}
.btn--ghost:hover { border-color: var(--red); color: var(--red-bright); transform: translateY(-2px); }

.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--red-bright); outline-offset: 3px;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 8, 9, 0.72);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 28px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 600; font-size: 1.18rem; letter-spacing: -0.02em; }
.brand__mark { display: grid; place-items: center; }
.bm-node { fill: var(--red); }
.bm-wire { stroke: var(--text); stroke-width: 1.6; opacity: 0.55; }
.brand:hover .bm-node { fill: var(--red-bright); }

.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a {
  font-size: 0.92rem; color: var(--dim); font-weight: 500;
  position: relative; transition: color 0.25s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--red); transition: width 0.3s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

.nav__cta { padding: 10px 18px; font-size: 0.9rem; }

.nav__toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav__toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav.open .nav__toggle span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav.open .nav__toggle span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: 132px; padding-bottom: 70px; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.9; }

.hero__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__copy { max-width: 620px; }

.hero__title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  line-height: 1.0; letter-spacing: -0.035em;
  margin-top: 4px;
}
.hero__lede { margin-top: 26px; color: var(--dim); font-size: clamp(1.05rem, 1.8vw, 1.22rem); max-width: 540px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero__stats { display: flex; gap: clamp(24px, 4vw, 48px); margin-top: 52px; flex-wrap: wrap; }
.stat { position: relative; }
.stat__num { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 3vw, 2.5rem); letter-spacing: -0.03em; color: var(--text); line-height: 1; }
.stat__label { font-size: 0.82rem; color: var(--faint); margin-top: 8px; line-height: 1.4; font-weight: 500; }

/* hero workflow demo (signature) */
.hero__demo { position: relative; justify-self: center; width: 100%; max-width: 420px; }
.hero__demo-glow {
  position: absolute; inset: 8% 12%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,46,59,0.4), transparent 65%);
  filter: blur(48px);
}

.card-glow { position: relative; }
.card-glow::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, rgba(255,46,59,0.5), rgba(255,255,255,0.06) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

.workflow {
  position: relative;
  background: linear-gradient(180deg, rgba(28,20,23,0.92), rgba(16,11,13,0.92));
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  height: 400px;
}
.workflow__head { display: flex; align-items: center; gap: 9px; padding: 4px 6px 16px; border-bottom: 1px solid var(--line); }
.workflow__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); box-shadow: 16px 0 0 var(--faint), 32px 0 0 var(--faint); margin-right: 30px; }
.workflow__title { font-family: var(--mono); font-size: 0.74rem; color: var(--dim); }
.workflow__live { margin-left: auto; font-family: var(--mono); font-size: 0.66rem; color: var(--red-bright); display: inline-flex; align-items: center; gap: 6px; letter-spacing: 0.05em; }
.workflow__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

.workflow__wires { position: absolute; inset: 54px 0 0; width: 100%; height: calc(100% - 54px); z-index: 0; overflow: visible; }
.wire { stroke: var(--line-2); stroke-width: 2; fill: none; }
.pulse { fill: var(--red); filter: drop-shadow(0 0 6px var(--red)); }
.pulse--b { fill: var(--red-bright); }

.node {
  position: absolute; left: var(--x); top: calc(54px + var(--y));
  transform: translateX(-50%); width: 168px; z-index: 2;
  background: linear-gradient(180deg, rgba(40,29,33,0.96), rgba(24,17,20,0.96));
  border: 1px solid var(--line-2); border-radius: 13px;
  padding: 11px 13px;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,0.7);
}
.node--mini { width: 132px; }
.node__tag { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.16em; color: var(--faint); display: block; }
.node__tag--ai { color: var(--red-bright); }
.node__label { display: block; font-weight: 600; font-size: 0.86rem; margin-top: 3px; letter-spacing: -0.01em; }
.node--mini .node__label { font-size: 0.78rem; }
.node__app { display: inline-block; margin-top: 7px; font-size: 0.66rem; color: var(--dim); font-family: var(--mono); padding: 2px 7px; border-radius: 5px; background: rgba(255,255,255,0.05); }
.node--agent { border-color: rgba(255,46,59,0.5); box-shadow: 0 12px 36px -10px rgba(255,46,59,0.4); }

.scroll-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 2; }
.scroll-hint span { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.3em; color: var(--faint); }
.scroll-hint__line { width: 1px; height: 34px; background: linear-gradient(var(--red), transparent); position: relative; overflow: hidden; }
.scroll-hint__line::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--red-bright); animation: scrolldot 1.8s ease-in-out infinite; }
@keyframes scrolldot { to { top: 110%; } }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-wrap { position: relative; padding-block: 30px; border-block: 1px solid var(--line); overflow: hidden; background: rgba(255,255,255,0.012); }
.marquee-label { text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: 0.28em; color: var(--faint); margin-bottom: 22px; }
.marquee { display: flex; width: max-content; }
.marquee__track { display: flex; align-items: center; gap: clamp(40px, 6vw, 80px); padding-right: clamp(40px, 6vw, 80px); animation: scroll-x 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scroll-x { to { transform: translateX(-50%); } }
.logo {
  font-family: var(--display); font-weight: 600; font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  color: var(--faint); letter-spacing: -0.02em; white-space: nowrap;
  transition: color 0.3s, opacity 0.3s; opacity: 0.7;
}
.logo:hover { color: var(--text); opacity: 1; }
.marquee__fade { position: absolute; top: 0; bottom: 0; width: 14%; z-index: 2; pointer-events: none; }
.marquee__fade--l { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee__fade--r { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }

/* ============================================================
   PROBLEM
   ============================================================ */
.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pain {
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 24px; transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s;
}
.pain:hover { transform: translateY(-5px); border-color: var(--line-2); background: linear-gradient(180deg, rgba(255,46,59,0.07), rgba(255,255,255,0.012)); }
.pain__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; color: var(--red-bright); background: var(--red-soft); border: 1px solid rgba(255,46,59,0.25); margin-bottom: 18px; }
.pain h3 { font-family: var(--display); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.02em; margin-bottom: 9px; }
.pain p { font-size: 0.92rem; color: var(--dim); line-height: 1.55; }

.cost-bar {
  margin-top: 28px; display: flex; align-items: center; gap: clamp(20px, 4vw, 44px);
  flex-wrap: wrap;
  background: linear-gradient(110deg, rgba(255,46,59,0.1), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,46,59,0.22); border-radius: var(--r);
  padding: 30px clamp(24px, 4vw, 44px);
}
.cost-bar__metric { display: flex; flex-direction: column; }
.cost-bar__num { font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; color: var(--red-bright); letter-spacing: -0.03em; }
.cost-bar__cap { font-size: 0.85rem; color: var(--dim); margin-top: 8px; max-width: 240px; }
.cost-bar__divider { width: 1px; align-self: stretch; background: var(--line-2); }
.cost-bar__line { font-family: var(--display); font-size: clamp(1.15rem, 2.4vw, 1.7rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; }
.cost-bar__line strong { color: var(--red-bright); font-weight: 600; }

/* ============================================================
   HOW IT WORKS — pipeline
   ============================================================ */
.pipeline { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.step { position: relative; padding: 0 22px; }
.step:not(:last-child)::before {
  content: ""; position: absolute; top: 26px; left: calc(50% + 26px); right: calc(-50% + 26px); height: 2px;
  background: var(--line-2);
}
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 26px; left: calc(50% + 26px); right: calc(-50% + 26px); height: 2px;
  background: linear-gradient(90deg, var(--red), var(--red-bright));
  transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease);
}
.pipeline.lit .step:not(:last-child)::after { transform: scaleX(1); }
.pipeline.lit .step:nth-child(2)::after { transition-delay: 0.25s; }
.pipeline.lit .step:nth-child(3)::after { transition-delay: 0.5s; }

.step__no {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  font-family: var(--mono); font-weight: 600; font-size: 1rem;
  background: var(--bg-2); border: 2px solid var(--line-2); color: var(--dim);
  position: relative; z-index: 2; margin-bottom: 24px;
  transition: border-color 0.4s, color 0.4s, box-shadow 0.4s, background 0.4s;
}
.pipeline.lit .step__no { border-color: var(--red); color: var(--text); background: var(--bg); box-shadow: 0 0 0 5px var(--red-soft), 0 0 22px rgba(255,46,59,0.45); }
.pipeline.lit .step:nth-child(2) .step__no { transition-delay: 0.2s; }
.pipeline.lit .step:nth-child(3) .step__no { transition-delay: 0.4s; }
.pipeline.lit .step:nth-child(4) .step__no { transition-delay: 0.6s; }

.step__body h3 { font-family: var(--display); font-weight: 600; font-size: 1.28rem; letter-spacing: -0.02em; margin-bottom: 10px; }
.step__body p { font-size: 0.94rem; color: var(--dim); line-height: 1.55; margin-bottom: 14px; }
.step__tag { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.05em; color: var(--red-bright); padding: 5px 10px; border-radius: 7px; background: var(--red-soft); border: 1px solid rgba(255,46,59,0.22); }

/* ============================================================
   FEATURES
   ============================================================ */
.feature-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.feature {
  --mx: 50%; --my: 50%;
  grid-column: span 2;
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px 28px; position: relative; overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.feature::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255,46,59,0.14), transparent 60%);
  pointer-events: none;
}
.feature:hover { transform: translateY(-5px); border-color: var(--line-2); }
.feature:hover::after { opacity: 1; }
.feature--wide { grid-column: span 3; }
.feature--accent { grid-column: span 3; background: linear-gradient(150deg, rgba(255,46,59,0.12), rgba(255,255,255,0.012)); border-color: rgba(255,46,59,0.25); }

.feature__kicker { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.18em; color: var(--red-bright); }
.feature h3 { font-family: var(--display); font-weight: 600; font-size: 1.32rem; letter-spacing: -0.02em; margin: 14px 0 10px; }
.feature p { font-size: 0.95rem; color: var(--dim); line-height: 1.58; position: relative; }
.feature__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; position: relative; }
.feature__chips span { font-family: var(--mono); font-size: 0.72rem; color: var(--text); padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.03); }

/* ============================================================
   SOCIAL PROOF
   ============================================================ */
.proof-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-bottom: 36px;
}
.pm { text-align: center; padding: 36px 20px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(255,255,255,0.018); }
.pm__num { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 5.5vw, 3.6rem); letter-spacing: -0.03em; line-height: 1; color: var(--text); }
.pm__cap { display: block; margin-top: 12px; color: var(--dim); font-size: 0.9rem; max-width: 220px; margin-inline: auto; }

.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote { background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.012)); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 28px; display: flex; flex-direction: column; }
.quote blockquote { font-family: var(--display); font-weight: 500; font-size: 1.08rem; line-height: 1.45; letter-spacing: -0.02em; color: var(--text); }
.quote figcaption { display: flex; align-items: center; gap: 13px; margin-top: 24px; }
.quote__avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 0.8rem; font-weight: 600; color: #fff; background: linear-gradient(150deg, var(--red), var(--crimson)); flex-shrink: 0; }
.quote figcaption strong { display: block; font-size: 0.92rem; font-weight: 600; }
.quote figcaption em { display: block; font-style: normal; font-size: 0.82rem; color: var(--faint); margin-top: 2px; }

/* ============================================================
   FOUNDER STORY
   ============================================================ */
.story__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 84px); align-items: center; }
.story__visual { position: relative; }
.story__portrait {
  aspect-ratio: 1; border-radius: 24px; position: relative; overflow: hidden;
  background:
    radial-gradient(120% 120% at 30% 0%, rgba(255,46,59,0.35), transparent 55%),
    linear-gradient(160deg, #241619, #100b0d);
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
}
.story__monogram { font-family: var(--display); font-weight: 700; font-size: clamp(4rem, 11vw, 7rem); letter-spacing: -0.04em; color: rgba(255,255,255,0.9); }
.story__signal {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1.4px);
  background-size: 22px 22px; mix-blend-mode: overlay; opacity: 0.6;
}
.story__badge {
  position: absolute; bottom: -18px; right: -10px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 14px;
  padding: 14px 18px; box-shadow: 0 20px 40px -16px rgba(0,0,0,0.7);
}
.story__badge-num { font-family: var(--display); font-weight: 700; font-size: 1.4rem; color: var(--red-bright); display: block; }
.story__badge-cap { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; color: var(--dim); }

.story__prose { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.story__prose p { color: var(--dim); font-size: 1.05rem; line-height: 1.65; }
.story__prose strong { color: var(--text); font-weight: 600; }
.story__sign { margin-top: 26px; }
.story__sign-name { font-family: var(--display); font-style: italic; font-size: 1.1rem; color: var(--text); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { padding-block: clamp(20px, 4vw, 40px) clamp(80px, 11vw, 130px); }
.cta-band__inner {
  position: relative; overflow: hidden; text-align: center;
  border-radius: 28px; padding: clamp(48px, 7vw, 84px) var(--pad);
  background: linear-gradient(160deg, rgba(40,18,22,0.9), rgba(16,11,13,0.92));
  border: 1px solid rgba(255,46,59,0.25);
}
.cta-band__glow { position: absolute; top: -40%; left: 50%; transform: translateX(-50%); width: 70%; height: 120%; background: radial-gradient(circle, rgba(255,46,59,0.3), transparent 60%); filter: blur(40px); pointer-events: none; }
.cta-band__title { font-family: var(--display); font-weight: 600; font-size: clamp(1.9rem, 4.5vw, 3.1rem); letter-spacing: -0.03em; line-height: 1.05; position: relative; }
.cta-band__sub { color: var(--dim); max-width: 540px; margin: 18px auto 0; font-size: 1.05rem; position: relative; }
.cta-band__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; position: relative; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding-top: 56px; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; }
.footer__brand { max-width: 340px; }
.footer__brand .brand { margin-bottom: 14px; }
.footer__brand p { color: var(--faint); font-size: 0.92rem; line-height: 1.55; }
.footer__nav { display: grid; grid-template-columns: repeat(2, auto); gap: 12px 40px; align-content: start; }
.footer__nav a { color: var(--dim); font-size: 0.92rem; transition: color 0.25s; }
.footer__nav a:hover { color: var(--red-bright); }
.footer__base { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-block: 22px 30px; }
.footer__base span { font-family: var(--mono); font-size: 0.74rem; color: var(--faint); letter-spacing: 0.02em; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__demo { grid-row: 1; max-width: 380px; margin-bottom: 8px; }
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .pipeline { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .step:not(:last-child)::before, .step:not(:last-child)::after { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature--wide, .feature--accent { grid-column: span 1; }
  .story__grid { grid-template-columns: 1fr; }
  .story__visual { max-width: 360px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; margin-left: auto; }
  .nav.open .nav__links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(11,8,9,0.96); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line); padding: 8px var(--pad) 18px;
  }
  .nav.open .nav__links a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav.open .nav__links a::after { display: none; }

  .hero { padding-top: 110px; }
  .proof-metrics, .testimonials { grid-template-columns: 1fr; }
  .pm { padding: 28px; }
  .cost-bar__divider { display: none; }
  .workflow { height: 360px; }
  /* keep the flow clean & contained on narrow cards */
  .node--mini, .wire--branch, .pulse--b { display: none; }
  .node--action:not(.node--mini) { width: 180px; }
}

@media (max-width: 480px) {
  .pain-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 22px; }
  .footer__inner { flex-direction: column; gap: 28px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  .pulse { display: none; }
}
