/* ============================================================
   Quentia Technologies — premium AI-company theme
   Light editorial base (eternal) + dark cinematic bands
   (scale / openai / vercel / linear / cursor / anthropic)
   ============================================================ */

:root {
  --bg:         #f6f5f2;
  --surface:    #ffffff;
  --ink:        #0c0e12;
  --ink-soft:   #4a4f57;
  --line:       rgba(12, 14, 18, 0.10);
  --line-soft:  rgba(12, 14, 18, 0.06);

  --dark:       #07090e;
  --dark-2:     #0d1018;
  --on-dark:    #f3f4f6;
  --on-dark-mute:#9aa3b2;
  --line-dark:  rgba(255, 255, 255, 0.12);

  --accent:     #16b8a6;   /* teal */
  --accent-ink: #0c8576;
  --accent-2:   #5b8cff;   /* secondary used only in gradients/aurora */
  --glow:       rgba(22, 184, 166, 0.45);

  --container:  1240px;
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);

  /* Fluid spacing system (mobile → ultrawide) */
  --gutter:        clamp(20px, 4vw, 48px);
  --space-section: clamp(80px, 9vw, 150px);
  --space-sm:      clamp(56px, 6vw, 100px);
  --gap-lg:        clamp(32px, 5vw, 64px);
}

/* Scale the whole UI up on very large displays so sections never feel empty */
@media (min-width: 1800px) { :root { --container: 1360px; } }
@media (min-width: 2400px) { :root { --container: 1480px; } html { font-size: 18px; } }
@media (min-width: 3200px) { :root { --container: 1640px; } html { font-size: 20px; } }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ---- Custom scrollbar (cross-browser) ---- */
/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) rgba(12, 14, 18, 0.06);
}
/* WebKit / Chromium / Edge / Safari */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent-ink));
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
::-webkit-scrollbar-corner { background: transparent; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.accent { color: var(--accent); }

/* ---- Global noise overlay ---- */
.noise {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Mouse-follow spotlight ---- */
.cursor-glow {
  position: fixed; top: 0; left: 0; z-index: 50;
  width: 480px; height: 480px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(22,184,166,.30), transparent 65%);
  filter: blur(36px); opacity: 0; pointer-events: none;
  mix-blend-mode: screen;          /* glows over dark bands, invisible over light */
  transition: opacity .4s var(--ease);
  will-change: transform;
}

/* ============ NAV ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s var(--ease), border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(246, 245, 242, 0.78);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.18rem; letter-spacing: -0.03em; }
.brand__mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: var(--ink); color: #fff; font-weight: 800; font-size: 1rem;
}
.nav__links { display: flex; align-items: center; gap: 36px; font-size: 0.94rem; font-weight: 500; color: var(--ink-soft); }
.nav__links a { transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  padding: 10px 20px; background: var(--ink); color: #fff !important;
  border-radius: 999px; font-weight: 600; transition: opacity .2s, transform .2s;
}
.nav__cta:hover { opacity: .88; transform: translateY(-1px); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }

/* Light nav over the dark hero (until scrolled) */
.nav:not(.scrolled) .brand { color: #fff; }
.nav:not(.scrolled) .brand__mark { background: #fff; color: var(--ink); }
.nav:not(.scrolled) .nav__links a { color: rgba(255, 255, 255, 0.78); }
.nav:not(.scrolled) .nav__links a:hover { color: #fff; }
.nav:not(.scrolled) .nav__cta { background: rgba(255, 255, 255, 0.12); border: 1px solid var(--line-dark); }
.nav:not(.scrolled) .nav__cta:hover { background: rgba(255, 255, 255, 0.2); }
.nav:not(.scrolled) .nav__toggle span { background: #fff; }
/* Open mobile menu panel is light — force dark text inside it */
.nav__links.open a { color: var(--ink-soft); }
.nav__links.open a:hover { color: var(--ink); }
.nav__links.open .nav__cta { background: var(--ink); color: #fff; border: none; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 28px; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  transition: transform .2s var(--ease), opacity .2s, background .2s, box-shadow .3s;
  position: relative; z-index: 2;
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 12px 30px -12px var(--glow); }
.btn--primary:hover { transform: translateY(-2px); background: var(--accent-ink); box-shadow: 0 18px 40px -14px var(--glow); }
.btn--text { color: var(--ink); padding: 15px 6px; }
.btn--text span { transition: transform .2s var(--ease); }
.btn--text:hover span { transform: translateX(4px); }
.btn--light { background: #fff; color: var(--dark); }
.btn--light:hover { transform: translateY(-2px); opacity: .92; }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 0 80px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% -10%, #0a0d14 0%, #07090e 55%, #05070b 100%);
  color: var(--on-dark);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
}
.hero__aurora {
  position: absolute; z-index: 0; top: -25%; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 800px;
  background:
    radial-gradient(closest-side, rgba(22,184,166,.30), transparent 70%),
    radial-gradient(closest-side, rgba(91,140,255,.22), transparent 70%);
  background-position: 30% 40%, 70% 60%; background-repeat: no-repeat;
  background-size: 60% 60%, 55% 55%;
  filter: blur(40px); opacity: .8;
  animation: aurora 18s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: translateX(-50%) rotate(0deg) scale(1); }
  100% { transform: translateX(-50%) rotate(8deg) scale(1.12); }
}
.hero__beam {
  position: absolute; z-index: 0; top: -10%; left: 50%; width: 2px; height: 120%;
  transform: translateX(-50%) rotate(18deg);
  background: linear-gradient(to bottom, transparent, rgba(22,184,166,.65), transparent);
  filter: blur(2px); animation: beam 7s ease-in-out infinite;
}
@keyframes beam { 0%,100% { opacity:.15; } 50% { opacity:.7; } }

.hero__inner { position: relative; z-index: 3; text-align: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border: 1px solid var(--line-dark);
  background: rgba(255,255,255,.04); backdrop-filter: blur(8px);
  border-radius: 999px; font-size: 0.82rem; font-weight: 500; color: var(--on-dark-mute);
  margin-bottom: 30px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(22,184,166,.18); }
.hero__title {
  font-weight: 800; font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1.02;
  letter-spacing: -0.04em; max-width: 18ch; margin: 0 auto 30px;
  background: linear-gradient(180deg, #fff 40%, #b9c2d0); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__title .char { display: inline-block; will-change: transform, opacity; -webkit-text-fill-color: #fff; }
/* keep each word intact so wrapping never splits mid-word */
.hero__title .word { display: inline-block; white-space: nowrap; }
.hero__sub { max-width: 58ch; margin: 0 auto 38px; font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: var(--on-dark-mute); }
.hero__actions { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.hero__actions .btn--text { color: #fff; }

/* Floating cards */
.float-cards { position: absolute; inset: 0; z-index: 2; pointer-events: none; will-change: transform; }
.fcard {
  position: absolute; display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 18px; border-radius: 14px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line-dark);
  backdrop-filter: blur(12px); color: #eef1f6; font-weight: 600; font-size: .92rem;
  box-shadow: 0 20px 50px -24px rgba(0,0,0,.7); white-space: nowrap;
  will-change: transform;
}
.fcard__icon { font-size: 1.05rem; }
.fcard--1 { top: 24%;  left: 10%;  animation: floaty 7s ease-in-out infinite; }
.fcard--2 { top: 34%;  right: 11%; animation: floaty 8s ease-in-out infinite .6s; }
.fcard--3 { bottom: 26%; left: 15%; animation: floaty 9s ease-in-out infinite 1.1s; }
.fcard--4 { bottom: 22%; right: 12%; animation: floaty 7.5s ease-in-out infinite .3s; }
@keyframes floaty { 0%,100% { transform: translateY(-8px); } 50% { transform: translateY(8px); } }

.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-mute);
}
.hero__scroll-line { width: 1px; height: 42px; background: linear-gradient(to bottom, var(--accent), transparent); animation: scrolldrop 2s ease-in-out infinite; transform-origin: top; }
@keyframes scrolldrop { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (max-width: 720px) { .float-cards { display: none; } }

/* ============ SECTIONS ============ */
.section { padding: var(--space-section) 0; position: relative; z-index: 2; }
.section__head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 60px); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.eyebrow--light { color: #5be3d4; }
.section__title { font-weight: 800; font-size: clamp(1.9rem, 4.2vw, 3.2rem); line-height: 1.06; letter-spacing: -0.035em; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-lg); align-items: start; }
.split__left { position: sticky; top: 120px; }
.prose { display: grid; gap: 24px; }
.prose p { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--ink-soft); }

/* ============ DARK BANDS ============ */
.section--dark { background: var(--dark); color: var(--on-dark); position: relative; overflow: hidden; }
.section--dark__glow {
  position: absolute; top: -25%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px; pointer-events: none;
  background: radial-gradient(circle, var(--glow), transparent 62%); filter: blur(40px); opacity: .7;
}

/* ============ MISSION FLOW ============ */
.mission { padding: var(--space-sm) 0; min-height: 100svh; display: flex; align-items: center; }
.mission__inner { position: relative; z-index: 2; width: 100%; display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--gap-lg); align-items: center; }
.mission__statement { font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.9rem); line-height: 1; letter-spacing: -0.04em; margin: 6px 0 22px; }
.mission__context { max-width: 52ch; font-size: clamp(1rem, 1.5vw, 1.18rem); color: var(--on-dark-mute); }

.flow { --node-h: 78px; position: relative; max-width: 320px; margin: 0 auto; width: 100%; padding-left: 4px; }
.flow__node {
  position: relative; display: flex; align-items: center; gap: 20px; height: var(--node-h);
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.flow__node.is-on { opacity: 1; transform: none; }
/* dot + ring, vertically centred in the row */
.flow__bullet { position: relative; width: 18px; height: 18px; flex: none; }
.flow__dot { position: absolute; inset: 0; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(22,184,166,.16); z-index: 2; }
.flow__ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); z-index: 2; }
.flow__node.is-on .flow__ring { animation: ringpulse 2.2s ease-out infinite; }
@keyframes ringpulse { 0% { transform: scale(1); opacity: .85; } 100% { transform: scale(3.2); opacity: 0; } }
/* connector to the next node — draws from this dot's centre to the next dot's centre */
.flow__node:not(:last-child) .flow__bullet::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 2px; height: var(--node-h);
  transform: translateX(-50%) scaleY(0); transform-origin: top;
  background: linear-gradient(to bottom, var(--accent), rgba(22,184,166,.35));
  transition: transform .6s var(--ease) .15s; z-index: 1;
}
.flow__node.is-on .flow__bullet::after { transform: translateX(-50%) scaleY(1); }
.flow__label {
  font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; color: #fff;
  padding: 9px 18px; border-radius: 11px; background: rgba(255,255,255,.05);
  border: 1px solid var(--line-dark); backdrop-filter: blur(8px); white-space: nowrap;
}

/* ============ PRODUCT SHOWCASE ============ */
#products { padding-bottom: 48px; }
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; align-items: center; }
.card__top { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.card__tag { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); padding: 6px 13px; border-radius: 999px; background: rgba(22,184,166,.12); }
.card__tag--muted { display: inline-block; color: var(--ink-soft); background: var(--line-soft); margin-bottom: 24px; }
.card__status { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 500; color: var(--ink-soft); }
.showcase__title { font-weight: 800; font-size: clamp(2.2rem, 4vw, 3rem); letter-spacing: -0.03em; margin-bottom: 8px; }
.showcase__lead { font-weight: 600; color: var(--ink); margin-bottom: 18px; font-size: 1.1rem; }
.showcase__body { color: var(--ink-soft); margin-bottom: 22px; }
.showcase__tagline { font-weight: 700; letter-spacing: -0.01em; margin-bottom: 30px; }
.showcase__btn { margin-top: 4px; }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 34px; }
.metric { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.metric__num { display: block; font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.03em; color: var(--ink); }
.metric__label { display: block; font-size: .82rem; color: var(--ink-soft); margin-top: 4px; }

/* Dashboard mockup */
.dashboard { position: relative; padding: 22px; }
.dashboard__glow { position: absolute; inset: 8% 12%; background: radial-gradient(circle, var(--glow), transparent 70%); filter: blur(50px); opacity: .5; z-index: 0; }
.dash-card {
  position: relative; z-index: 1; background: var(--surface);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 70px -40px rgba(12,14,18,.4);
}
/* Dashboard cards stream in, one after another, when scrolled into view */
.dash-card { opacity: 0; transform: translateY(26px) scale(.97); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.dashboard.in .dash-card { opacity: 1; transform: none; }
.dashboard.in .dash-card--chart { transition-delay: .14s; }
.dashboard.in .dash-card--mini  { transition-delay: .28s; }

.dash-card--chat { padding: 16px; }
.dash-card__bar { display: flex; align-items: center; gap: 7px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); margin-bottom: 14px; }
.dot--red { background: #ff5f57; box-shadow: none; } .dot--amber { background: #febc2e; box-shadow: none; } .dot--green { background: #28c840; box-shadow: none; }
.dash-card__title { margin-left: 6px; font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.chat { display: flex; flex-direction: column; gap: 10px; min-height: 230px; justify-content: flex-end; }
.bubble {
  max-width: 84%; padding: 11px 14px; border-radius: 14px; font-size: .9rem; line-height: 1.45;
}
/* Blinking caret while the AI bubble types its answer */
.bubble--ai.is-typing .bubble__text::after {
  content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 1px;
  vertical-align: -2px; background: var(--accent); animation: caret .7s steps(1) infinite;
}
@keyframes caret { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
.bubble b { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; opacity: .6; margin-bottom: 3px; }
.bubble--in { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 5px; }
.bubble--ai { align-self: flex-start; background: rgba(22,184,166,.12); color: var(--ink); border-bottom-left-radius: 5px; }
.bubble--typing { align-self: flex-start; display: inline-flex; gap: 5px; background: rgba(22,184,166,.12); border-bottom-left-radius: 5px; }
.bubble--typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: typing 1.2s infinite; }
.bubble--typing span:nth-child(2) { animation-delay: .2s; } .bubble--typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%,60%,100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }

.dash-card--chart { padding: 18px; margin-top: 16px; }
.dash-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.pill { font-size: .72rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.pill--up { color: var(--accent-ink); background: rgba(22,184,166,.12); }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 110px; }
.bar { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.bar i { display: block; width: 100%; height: 0; border-radius: 6px 6px 3px 3px; background: linear-gradient(to top, var(--accent), #6fe3d4); transition: height 1s var(--ease); }
.bar.is-on i { height: var(--h); }
.dash-card__foot { display: flex; justify-content: space-between; font-size: .72rem; color: var(--ink-soft); margin-top: 10px; }
.dash-card--mini {
  position: absolute; z-index: 2; right: -6px; bottom: 70px; padding: 16px 20px; text-align: center;
  box-shadow: 0 24px 50px -26px rgba(12,14,18,.5);
}
.mini__num { display: block; font-weight: 800; font-size: 1.7rem; letter-spacing: -0.03em; color: var(--accent-ink); }
.mini__label { font-size: .74rem; color: var(--ink-soft); }

/* Placeholder card */
.card { padding: 40px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.card--soon { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; border-style: dashed; background: transparent; }
.card--soon:hover { transform: translateY(-4px); border-color: rgba(12,14,18,.2); }
.card__title { font-weight: 800; font-size: 1.7rem; letter-spacing: -0.03em; margin-bottom: 10px; }
.card__body { color: var(--ink-soft); margin-bottom: 18px; max-width: 60ch; }
.card__link { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--accent-ink); }
.card__link--muted { color: var(--ink-soft); }

/* ============ HOW WE BUILD (horizontal) ============ */
.build { background: var(--bg); }
.build__pin { height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.build__head { max-width: var(--container); margin: 0 auto clamp(32px, 4vw, 48px); padding: 0 var(--gutter); width: 100%; }
.build__track { display: flex; gap: clamp(20px, 2vw, 32px); padding: 0 var(--gutter); width: max-content; will-change: transform; }
.step {
  width: clamp(300px, 30vw, 420px); flex: none; padding: clamp(28px, 3vw, 44px); border-radius: 24px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: 0 30px 60px -44px rgba(12,14,18,.4);
  display: flex; flex-direction: column; min-height: clamp(280px, 34vh, 340px);
  transition: box-shadow .4s var(--ease), border-color .3s var(--ease), transform .4s var(--ease);
}
.step__num { font-weight: 800; font-size: clamp(2.4rem, 3vw, 3rem); letter-spacing: -0.04em; color: var(--accent); line-height: 1; }
.step h3 { font-weight: 800; font-size: clamp(1.4rem, 2vw, 1.6rem); letter-spacing: -0.02em; margin: 24px 0 14px; }
.step p { color: var(--ink-soft); font-size: 1.02rem; margin-top: auto; }
.step:nth-child(odd) { background: linear-gradient(180deg, #fff, #f4f6f6); }
/* the card currently centred in the viewport lifts subtly to draw focus */
.step.is-active { border-color: rgba(22,184,166,.4); box-shadow: 0 40px 80px -40px rgba(22,184,166,.35); }

/* progress indicator under the heading */
.build__progress { margin-top: clamp(24px, 3vw, 36px); height: 3px; width: min(360px, 70%); border-radius: 999px; background: var(--line); overflow: hidden; }
.build__progress-bar { display: block; height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .15s linear; }

/* ============ WHY ============ */
.grid-why { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2vw, 28px); }
/* gentle cascade as the grid scrolls into view (replaces the perpetual float) */
.grid-why .why:nth-child(2) { transition-delay: .08s; }
.grid-why .why:nth-child(3) { transition-delay: .16s; }
.grid-why .why:nth-child(4) { transition-delay: .24s; }
.why {
  padding: clamp(28px, 3vw, 44px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 26px 55px -40px rgba(12,14,18,.38);
  transition: box-shadow .35s var(--ease), border-color .25s var(--ease), transform .35s var(--ease);
  will-change: transform;
}
.why:hover {
  border-color: rgba(22,184,166,.45);
  box-shadow: 0 40px 80px -36px rgba(22,184,166,.4);
  transform: translateY(-6px);
}
.why__num { font-size: .86rem; font-weight: 700; color: var(--accent); letter-spacing: .06em; }
.why h3 { font-weight: 700; font-size: 1.4rem; letter-spacing: -0.02em; margin: 16px 0 12px; }
.why p { color: var(--ink-soft); font-size: 1rem; }

/* ============================================================
   FOUNDER VISION — premium on-enter quote reveal (no scroll-jacking)
   ============================================================ */
.vision {
  position: relative;
  background: var(--dark);
  color: var(--on-dark);
}
.vision__pin {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  overflow: hidden;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(110px, 16vh, 180px) 24px;
  isolation: isolate;
}

/* ---- background layers ---- */
.vision__net {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
  opacity: .5; transition: opacity .6s var(--ease);
}
.vision__aurora {
  position: absolute; z-index: 0; top: 48%; left: 50%;
  width: 1200px; height: 900px; transform: translate(-50%, -50%);
  background:
    radial-gradient(closest-side, rgba(22,184,166,.22), transparent 70%),
    radial-gradient(closest-side, rgba(91,140,255,.16), transparent 70%);
  background-position: 32% 42%, 68% 58%; background-repeat: no-repeat;
  background-size: 55% 55%, 50% 50%;
  filter: blur(48px); opacity: .65; pointer-events: none;
  animation: visionAurora 22s ease-in-out infinite alternate;
}
@keyframes visionAurora {
  0%   { transform: translate(-50%,-50%) rotate(0deg)  scale(1); }
  100% { transform: translate(-50%,-50%) rotate(10deg) scale(1.16); }
}
.vision__spot {
  position: absolute; z-index: 0; top: 44%; left: 50%;
  width: 760px; height: 760px; border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  background: radial-gradient(circle, rgba(22,184,166,.20), transparent 60%);
  filter: blur(38px); opacity: .55; pointer-events: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.vision__noise {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- giant drifting background words ---- */
.vision__bgwords { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.vbg {
  position: absolute; white-space: nowrap; text-transform: uppercase;
  font-weight: 900; letter-spacing: -0.05em; line-height: .8;
  font-size: clamp(15rem, 22vw, 25rem);
  color: #fff; opacity: .03; will-change: transform;
}
.vbg--1 { top: 4%;  left: -12%; animation: vdriftA 46s linear infinite; }
.vbg--2 { top: 58%; left: -22%; animation: vdriftB 60s linear infinite; }
.vbg--3 { top: 26%; left:  16%; animation: vdriftA 74s linear infinite reverse; }
.vbg--4 { top: 74%; left:   6%; animation: vdriftB 52s linear infinite reverse; }
@keyframes vdriftA { from { transform: translateX(-7%); } to { transform: translateX(7%); } }
@keyframes vdriftB { from { transform: translateX(9%);  } to { transform: translateX(-9%); } }

/* ---- floating particles ---- */
.vision__particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.vparticle {
  position: absolute; border-radius: 50%;
  background: rgba(22,184,166,.75); box-shadow: 0 0 10px rgba(22,184,166,.8);
  opacity: 0; will-change: transform, opacity;
  animation: vfloat linear infinite;
}
@keyframes vfloat {
  0%   { transform: translateY(30px) scale(.6); opacity: 0; }
  12%  { opacity: .65; }
  88%  { opacity: .55; }
  100% { transform: translateY(-130px) scale(1); opacity: 0; }
}

/* ---- foreground ---- */
.vision__eyebrow {
  position: relative; z-index: 3; margin-bottom: clamp(28px, 5vh, 54px);
  font-size: .8rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: #5be3d4;
  /* enter reveal */
  opacity: 0; transform: translateY(14px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.vision__stage {
  position: relative; z-index: 3;
  width: 100%; max-width: 1100px;
  display: flex; align-items: center; justify-content: center;
}

/* the founder quote — laid out statically, words reveal on enter */
.vision__quote {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: .14em .34em;
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.12;
  font-size: clamp(2.1rem, 6vw, 5rem);
  max-width: 18ch; margin: 0 auto;
}
.vqw {
  display: inline-block;
  background: linear-gradient(180deg, #ffffff 40%, #c2cad6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  /* resting hidden state — premium fade-up with a soft blur */
  opacity: 0; transform: translateY(28px); filter: blur(8px);
  will-change: transform, opacity, filter;
  transition:
    opacity .7s cubic-bezier(.22,.61,.36,1),
    transform .7s cubic-bezier(.22,.61,.36,1),
    filter .7s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--vqw-delay, 0ms);
}
.vqw--accent {
  background: linear-gradient(120deg, #16b8a6, #7fe9dc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* blinking caret that trails the quote, fades in once the words land */
.vqw__caret {
  display: inline-block; width: .055em; height: 1em; margin-left: .04em;
  align-self: center; border-radius: 2px;
  background: linear-gradient(180deg, #16b8a6, #7fe9dc);
  box-shadow: 0 0 14px rgba(22,184,166,.7);
  opacity: 0; transform: scaleY(.7);
  transition: opacity .5s var(--ease) var(--vqw-caret-delay, 1.2s),
              transform .5s var(--ease) var(--vqw-caret-delay, 1.2s);
}

/* revealed state */
.vision--in .vision__eyebrow { opacity: 1; transform: none; }
.vision--in .vqw { opacity: 1; transform: none; filter: none; }
.vision--in .vqw__caret { opacity: .9; transform: none; animation: vCaretBlink 1.05s steps(1) infinite; }
.vision--in .vqw__caret { animation-delay: calc(var(--vqw-caret-delay, 1.2s) + .5s); }
@keyframes vCaretBlink { 0%,55% { opacity: .9; } 56%,100% { opacity: 0; } }

.vision__attr {
  position: relative; z-index: 3; margin-top: clamp(28px, 5vh, 44px);
  color: var(--on-dark-mute); font-size: 1.05rem; letter-spacing: .01em;
  opacity: 0; transform: translateY(16px);
  transition: opacity .8s var(--ease) var(--vqw-attr-delay, 1.1s),
              transform .8s var(--ease) var(--vqw-attr-delay, 1.1s);
}
.vision--in .vision__attr { opacity: 1; transform: none; }

/* floating glass stat cards */
.vision__stats {
  position: relative; z-index: 3; margin-top: 38px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px;
  max-width: 940px;
}
.vstat {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 18px 26px; min-width: 148px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 24px 50px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.06);
  /* enter reveal (transform handled by inner; cards float once shown) */
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: transform, opacity;
}
.vision--in .vstat { opacity: 1; transform: none; animation: vstatFloat 6s ease-in-out infinite; }
/* staggered entrance + drift so the cards never move in lockstep */
.vision--in .vstat:nth-child(1) { transition-delay: 1.3s; animation-delay: 0s;   }
.vision--in .vstat:nth-child(2) { transition-delay: 1.42s; animation-delay: .9s;  }
.vision--in .vstat:nth-child(3) { transition-delay: 1.54s; animation-delay: 1.7s; }
.vision--in .vstat:nth-child(4) { transition-delay: 1.66s; animation-delay: 1.2s; }
@keyframes vstatFloat { 0%,100% { transform: translateY(-5px); } 50% { transform: translateY(5px); } }
.vstat__num {
  font-weight: 800; font-size: 1.55rem; letter-spacing: -0.02em;
  background: linear-gradient(120deg, #fff, #7fe9dc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.vstat__label { font-size: .8rem; color: var(--on-dark-mute); }

/* when the quote reveals, the scene gently lights up and holds */
.vision--in .vision__spot   { opacity: 1; transform: translate(-50%,-50%) scale(1.22); }
.vision--in .vision__aurora { opacity: .9; }
.vision--in .vision__net    { opacity: .85; }

/* tablet / phone tuning */
@media (max-width: 760px) {
  .vision__quote { font-size: clamp(1.8rem, 8.5vw, 3rem); }
  .vbg { font-size: clamp(9rem, 40vw, 15rem); }
  .vstat { min-width: 0; flex: 1 1 40%; padding: 14px 16px; }
  .vision__stats { gap: 12px; }
}

/* ============ ABOUT ============ */
.section--about { text-align: center; }
.about { max-width: 860px; margin: 0 auto; }
.about__text { font-size: clamp(1.15rem, 2.2vw, 1.5rem); color: var(--ink-soft); margin: 8px auto 28px; max-width: 60ch; }
.about__punch { font-weight: 800; font-size: clamp(1.7rem, 4.4vw, 3rem); letter-spacing: -0.03em; line-height: 1.1; }

/* ============ CONTACT ============ */
.section--contact { padding: 140px 0; text-align: center; }
.contact { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.contact__title { font-weight: 800; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 22px; }
.contact__text { color: var(--on-dark-mute); font-size: 1.12rem; max-width: 54ch; margin: 0 auto 38px; }

/* ============ FOOTER ============ */
.footer { padding: 64px 0 36px; background: var(--bg); border-top: 1px solid var(--line); position: relative; z-index: 2; }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand strong { display: block; font-size: 1rem; font-weight: 700; }
.footer__brand span { font-size: .9rem; color: var(--ink-soft); }
.footer__links { display: flex; flex-direction: column; gap: 8px; }
.footer__label { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.footer__links a { font-size: .96rem; font-weight: 500; transition: color .2s; }
.footer__links a:hover { color: var(--accent-ink); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; font-size: .88rem; color: var(--ink-soft); }
.footer__bottom a:hover { color: var(--ink); }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split__left { position: static; }
  .mission__inner { grid-template-columns: 1fr; gap: 56px; }
  .showcase { grid-template-columns: 1fr; gap: 40px; }
  .dashboard { max-width: 460px; margin: 0 auto; width: 100%; }
}
@media (max-width: 760px) {
  /* Build: no pin/horizontal-jack on touch — swipeable scroll-snap rail instead */
  .build__pin { height: auto; padding: var(--space-sm) 0; }
  .build__track {
    width: auto; transform: none !important;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    padding-bottom: 8px;
  }
  .build__track::-webkit-scrollbar { display: none; }
  .step { width: 82vw; max-width: 360px; scroll-snap-align: center; }
  .build__progress { width: 100%; }

  .mission, .section--contact { padding: var(--space-sm) 0; }
  .grid-why { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .dash-card--mini { position: static; margin-top: 16px; display: inline-block; }

  .nav__links {
    position: fixed; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(246,245,242,0.98); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line); padding: 8px 22px 22px;
    transform: translateY(-160%); transition: transform .35s var(--ease);
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
  .nav__cta { text-align: center; margin-top: 14px; border-radius: 12px; }
  .nav__toggle { display: flex; }
  .nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---- small phones (320–480px): prevent cramped cards & overflow ---- */
@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .hero__actions .btn--text { padding: 12px 6px; }
  .metrics { grid-template-columns: 1fr 1fr; gap: 12px; }
  .metric { padding: 14px; }
  .showcase__btn { width: 100%; justify-content: center; }
  .card { padding: 28px; }
  .step { width: 86vw; padding: 26px; }
  .vstat { flex: 1 1 100%; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .build__pin { height: auto; padding: 84px 0; }
  .build__track { flex-wrap: wrap; width: auto; }
  /* Vision: show the finished frame instantly, no fade/blur/caret */
  .vision__eyebrow { opacity: 1; transform: none; }
  .vqw { opacity: 1; transform: none; filter: none; }
  .vqw__caret { display: none; }
  .vision__attr, .vstat { opacity: 1; transform: none; }
  .vstat { animation: none; }
  .vbg, .vparticle { animation: none; }
  .flow__node { opacity: 1; transform: none; }
  .flow__node .flow__bullet::after { transform: translateX(-50%) scaleY(1); }
  .dash-card { opacity: 1; transform: none; }
  .why { animation: none !important; transform: none !important; }
  .bubble__text::after { display: none !important; }
  .bar i { height: var(--h); }
  html { scroll-behavior: auto; }
}
