/* ============================================================
   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;
  min-width: 320px;
}
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; }
/* Alternate section backgrounds for clear visual rhythm */
.section:nth-of-type(odd) { background: var(--bg); }
.section:nth-of-type(even) { background: var(--surface); }
.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: 100px; }
.prose { display: grid; gap: 24px; }
.prose p { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); line-height: 1.75; }

/* ============ 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: var(--space-section); }
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; 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 40px; background: var(--bg); border-top: 1px solid var(--line); position: relative; z-index: 2; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; 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 { display: block; font-size: .9rem; color: var(--ink-soft); margin-top: 2px; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.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: 500px; margin: 0 auto; width: 100%; overflow: visible; }
  /* Mini card overflows at tablet — keep it in-flow */
  .dash-card--mini {
    position: static;
    margin-top: 16px;
    display: inline-block;
    width: auto;
  }
}
@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__title { font-size: clamp(1.9rem, 8vw, 2.8rem); }
  .hero__sub { font-size: 1rem; }
  .hero__badge { font-size: .76rem; }
  .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; }
  .showcase__title { font-size: 2rem; }
  .card { padding: 28px; }
  .step { width: 86vw; padding: 26px; }
  .vstat { flex: 1 1 100%; }
  .footer__inner { flex-direction: column; gap: 24px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .chat { min-height: 180px; }
}

/* ============ 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; }
}

/* ============================================================
   BRAND LOGO (SVG image replacing text "Q" mark)
   ============================================================ */
.brand__logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
/* On dark hero nav: make logo white (matches premium brand approach) */
.nav:not(.scrolled) .brand__logo { filter: brightness(0) invert(1); }
/* Mobile open menu: nav stays unscrolled but panel is light — logo stays white, looks fine */

/* ============================================================
   FOOTER — multi-column enhanced layout
   ============================================================ */
.footer__cols {
  display: flex;
  gap: clamp(32px, 5vw, 72px);
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 140px;
}
.footer__col .footer__label { margin-bottom: 4px; }
.footer__col a {
  font-size: .91rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .2s;
}
.footer__col a:hover { color: var(--accent-ink); }

/* ============================================================
   LEGAL PAGES — shared styles
   ============================================================ */

/* --- Dark page header banner --- */
.legal-hero {
  position: relative;
  background: radial-gradient(120% 90% at 50% -10%, #0a0d14 0%, #07090e 55%, #05070b 100%);
  color: var(--on-dark);
  padding: 148px 0 72px;
  overflow: hidden;
}
.legal-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%);
}
.legal-hero__glow {
  position: absolute; z-index: 0; top: -20%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(closest-side, rgba(22,184,166,.16), transparent 70%);
  filter: blur(50px); pointer-events: none;
}
.legal-hero__inner { position: relative; z-index: 2; }
.legal-hero__back {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--on-dark-mute); font-size: .85rem; font-weight: 500;
  margin-bottom: 28px; transition: color .2s;
}
.legal-hero__back:hover { color: #fff; }
.legal-hero__title {
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: -0.04em; line-height: 1.05;
  background: linear-gradient(180deg, #fff 40%, #b9c2d0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 14px;
}
.legal-hero__meta { color: var(--on-dark-mute); font-size: .88rem; }

/* --- Content wrapper (overridden by lp-* below for compact pages) --- */
.legal-content {
  padding: clamp(36px, 4vw, 60px) 0 clamp(56px, 7vw, 100px);
  background: var(--bg);
}
.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

/* Sticky TOC sidebar */
.legal-toc { position: sticky; top: 94px; }
.legal-toc__title {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px;
}
.legal-toc a {
  display: block; font-size: .87rem; font-weight: 500; color: var(--ink-soft);
  padding: 7px 0 7px 14px; border-left: 2px solid var(--line);
  line-height: 1.3; transition: color .2s, border-color .2s;
}
.legal-toc a:hover { color: var(--accent-ink); border-left-color: rgba(22,184,166,.5); }
.legal-toc a.active { color: var(--accent-ink); border-left-color: var(--accent); font-weight: 600; }

/* Main prose */
.legal-body { min-width: 0; }
.legal-section { margin-bottom: clamp(36px, 5vw, 56px); padding-top: 8px; scroll-margin-top: 100px; }
.legal-section h2 {
  font-weight: 700; font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  letter-spacing: -0.02em; color: var(--ink);
  margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.legal-section h3 { font-weight: 700; font-size: 1.04rem; color: var(--ink); margin: 22px 0 9px; }
.legal-section p, .legal-section li {
  color: var(--ink-soft); font-size: clamp(.95rem, 1.3vw, 1.04rem);
  line-height: 1.78; margin-bottom: 12px;
}
.legal-section ul, .legal-section ol {
  padding-left: 1.4em; display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px;
}
.legal-section ul li::marker { color: var(--accent); }
.legal-section a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.legal-section a:hover { color: var(--accent); }

/* Highlighted intro box */
.legal-intro {
  padding: 22px 26px; margin-bottom: 32px;
  background: rgba(22,184,166,.06); border: 1px solid rgba(22,184,166,.2);
  border-radius: 14px;
}
.legal-intro p { margin-bottom: 0 !important; font-size: 1rem !important; }

/* Contact callout inside legal */
.legal-contact-box {
  margin-top: 32px; padding: 28px 32px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; display: flex; flex-direction: column; gap: 6px;
}
.legal-contact-box strong { font-weight: 700; font-size: 1.05rem; }
.legal-contact-box a { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.legal-contact-box a:hover { color: var(--accent); }

/* ============================================================
   LEGAL PAGE — compact one-page layout with animations
   ============================================================ */

/* Tighter hero */
.legal-hero { padding: 118px 0 44px; }
.legal-hero__sub {
  font-size: clamp(.88rem, 1.3vw, .97rem); color: var(--on-dark-mute);
  max-width: 54ch; line-height: 1.6; margin: 8px 0 12px;
}
.legal-hero__meta a { color: rgba(255,255,255,.45); text-decoration: none; transition: color .2s; }
.legal-hero__meta a:hover { color: var(--accent); }

/* Tighter content wrapper */
.legal-content { padding: 28px 0 52px; background: var(--bg); }

/* 2×2 card grid */
.lp-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px; margin-bottom: 12px;
  max-width: 900px; margin-left: auto; margin-right: auto;
}

/* Card base */
.lp-card {
  position: relative; overflow: hidden;
  padding: 22px 24px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04), 0 0 0 0 rgba(22,184,166,0);
  transition:
    border-color .28s var(--ease),
    box-shadow .28s var(--ease),
    transform .28s var(--ease);
  animation: lp-card-in .52s var(--ease) both;
}
.lp-card:hover {
  border-color: rgba(22,184,166,.42);
  box-shadow: 0 12px 36px -12px rgba(22,184,166,.24), 0 2px 10px rgba(0,0,0,.05);
  transform: translateY(-5px);
}

/* Shimmer sweep on hover */
.lp-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(22,184,166,.08) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform .55s var(--ease);
  pointer-events: none; z-index: 0;
}
.lp-card:hover::before { transform: translateX(100%); }
.lp-card > * { position: relative; z-index: 1; }

/* Staggered entrance */
.lp-grid .lp-card:nth-child(1) { animation-delay: .10s; }
.lp-grid .lp-card:nth-child(2) { animation-delay: .20s; }
.lp-grid .lp-card:nth-child(3) { animation-delay: .30s; }
.lp-grid .lp-card:nth-child(4) { animation-delay: .40s; }

@keyframes lp-card-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* Card header row */
.lp-card__top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 11px;
}
.lp-card__icon {
  font-size: 1.2rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(22,184,166,.08);
  filter: grayscale(1);
  transition: filter 0.25s ease;
}
.lp-card:hover .lp-card__icon {
  filter: grayscale(0);
}
.lp-card__num {
  font-size: .67rem; font-weight: 800; letter-spacing: .12em;
  color: var(--accent); background: rgba(22,184,166,.1);
  padding: 3px 9px; border-radius: 999px; font-variant-numeric: tabular-nums;
}

/* Card content */
.lp-card__title {
  font-weight: 700; font-size: .96rem; letter-spacing: -.01em;
  color: var(--ink); margin-bottom: 9px; line-height: 1.3;
}
.lp-list {
  padding-left: 1.1em; margin: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.lp-list li {
  color: var(--ink-soft); font-size: .84rem; line-height: 1.6;
}
.lp-list li::marker { color: var(--accent); }
.lp-card p {
  color: var(--ink-soft); font-size: .84rem; line-height: 1.65; margin: 0;
}
.lp-card a { color: var(--accent-ink); text-underline-offset: 2px; }
.lp-card strong { color: var(--ink); font-weight: 600; }

/* Bottom dark CTA strip */
.lp-cta {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  padding: 14px 20px; border-radius: 12px;
  background: var(--dark); color: var(--on-dark);
  animation: lp-card-in .52s var(--ease) .5s both;
}
.lp-cta__left { display: flex; align-items: center; gap: 14px; }
.lp-cta__left strong { font-size: .85rem; font-weight: 600; }
.lp-cta__left a { color: var(--accent); font-weight: 600; font-size: .85rem; text-decoration: none; transition: color .2s; }
.lp-cta__left a:hover { color: #fff; }
.lp-cta > span { color: var(--on-dark-mute); font-size: .78rem; }

/* Security: disclosure row (dark + border + CTA button) */
.lp-disclosure {
  max-width: 900px; margin: 12px auto 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 18px;
  padding: 22px 26px; border-radius: 14px;
  background: var(--dark); border: 1px solid rgba(22,184,166,.22);
  animation: lp-card-in .52s var(--ease) .5s both;
}
.lp-disclosure__text h3 { font-weight: 700; font-size: .97rem; color: #fff; margin-bottom: 5px; }
.lp-disclosure__text p { color: var(--on-dark-mute); font-size: .83rem; line-height: 1.6; margin: 0; max-width: 52ch; }

@media (max-width: 640px) {
  .lp-grid { grid-template-columns: 1fr; }
  .lp-cta { flex-direction: column; align-items: flex-start; }
  .lp-disclosure { flex-direction: column; align-items: flex-start; }
  .legal-hero { padding: 108px 0 36px; }
}

/* ============================================================
   SECURITY PAGE
   ============================================================ */
.security-section {
  padding: var(--space-section) 0;
  position: relative; z-index: 2;
}
.security-section:nth-child(odd) { background: var(--surface); }
.security-section:nth-child(even) { background: var(--bg); }
.security-section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.security-section-head h2 {
  font-weight: 800; font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  letter-spacing: -0.03em; margin-top: 8px;
}
.security-section-head p {
  font-size: clamp(1rem, 1.5vw, 1.18rem); color: var(--ink-soft);
  line-height: 1.72; max-width: 62ch; margin-top: 16px;
}

/* Feature card grid */
.security-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.security-card {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 20px 50px -30px rgba(12,14,18,.25);
  transition: border-color .25s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.security-card:hover {
  border-color: rgba(22,184,166,.35);
  box-shadow: 0 30px 60px -30px rgba(22,184,166,.28);
  transform: translateY(-4px);
}
.security-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(22,184,166,.1); font-size: 1.35rem; margin-bottom: 18px;
}
.security-card h3 {
  font-weight: 700; font-size: 1.06rem; letter-spacing: -0.01em;
  color: var(--ink); margin-bottom: 10px;
}
.security-card p { color: var(--ink-soft); font-size: .95rem; line-height: 1.68; }

/* Responsible Disclosure dark band */
.security-disclosure {
  position: relative; overflow: hidden;
  margin: 0; padding: var(--space-section) 0;
  background: var(--dark); color: var(--on-dark);
}
.security-disclosure__glow {
  position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 700px; height: 600px;
  background: radial-gradient(circle, var(--glow), transparent 62%);
  filter: blur(50px); opacity: .55; pointer-events: none;
}
.security-disclosure__inner {
  position: relative; z-index: 2;
  max-width: 640px;
}
.security-disclosure__inner h2 {
  font-weight: 800; font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.035em; color: #fff; margin-bottom: 18px; margin-top: 8px;
}
.security-disclosure__inner p {
  color: var(--on-dark-mute); font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.72; margin-bottom: 32px;
}

/* Security intro section (full-width lead) */
.security-lead {
  font-size: clamp(1.08rem, 1.8vw, 1.3rem);
  color: var(--ink-soft); line-height: 1.75;
  max-width: 66ch; margin-top: 16px;
}

/* ============================================================
   LEGAL + SECURITY RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { display: none; }
  .security-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .legal-hero { padding: 120px 0 56px; }
  .legal-hero__title { font-size: 2rem; }
  .footer__cols { flex-direction: column; gap: 24px; }
  .footer__col { min-width: 0; }
  .security-card { padding: 22px; }
  .legal-contact-box { padding: 22px; }
}
