/* ═══════════════════════════════════════════════════════
   LANA.AI — SCI-FI SHOWCASE v2
   One mind. Many agents. Everything disassembles & reassembles.
   ═══════════════════════════════════════════════════════ */

:root {
  --bg: #06060d;
  --bg2: #0b0b16;
  --violet: #8b5cf6;
  --violet-lt: #a78bfa;
  --violet-pale: #c4b5fd;
  --pink: #ec4899;
  --pink-lt: #f9a8d4;
  --white: #ffffff;
  --grotesk: 'Space Grotesk', system-ui, sans-serif;
  --inter: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--inter);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 80% 60% at 15% 0%, rgba(139,92,246,.09), transparent 60%),
    radial-gradient(ellipse 70% 60% at 100% 100%, rgba(236,72,153,.07), transparent 60%);
}

@media (pointer: fine) {
  body { cursor: none; }
  body a, body summary, body [data-hover] { cursor: none; }
}

h1,h2,h3,h4 { font-family: var(--grotesk); letter-spacing: -0.02em; }

::selection { background: rgba(236,72,153,.35); }

/* ── particle universe ────────────────────── */
#universe {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}

/* content sits above the universe */
main, .nav, .footer { position: relative; z-index: 2; }

/* ── overlays ─────────────────────────────── */
.noise {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .04 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scanlines {
  position: fixed; inset: 0; z-index: 91; pointer-events: none;
  background: repeating-linear-gradient(to bottom,
    rgba(255,255,255,.016) 0px, rgba(255,255,255,.016) 1px,
    transparent 1px, transparent 3px);
}

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--violet), var(--pink));
  z-index: 200; box-shadow: 0 0 12px rgba(236,72,153,.8);
}

/* ── custom cursor ────────────────────────── */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 300;
  border-radius: 50%; transform: translate(-50%,-50%);
  display: none;
}
@media (pointer: fine) {
  .cursor-dot, .cursor-ring { display: block; }
}
.cursor-dot {
  width: 6px; height: 6px; background: var(--pink);
  box-shadow: 0 0 10px rgba(236,72,153,.9);
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1.5px solid rgba(139,92,246,.6);
  transition: width .25s ease, height .25s ease, border-color .25s ease, background .25s ease;
}
.cursor-ring.hot {
  width: 56px; height: 56px;
  border-color: rgba(236,72,153,.9);
  background: rgba(236,72,153,.08);
}

/* ── preloader ────────────────────────────── */
.preloader {
  position: fixed; inset: 0; z-index: 500;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s ease, visibility .6s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-inner { width: min(480px, 86vw); }
.boot-logo {
  font-family: var(--grotesk); font-weight: 700; font-size: 2rem;
  margin-bottom: 1.6rem; letter-spacing: .04em;
}
.boot-logo span { color: var(--pink); }
.boot-lines {
  font-family: var(--mono); font-size: .72rem; line-height: 1.9;
  color: rgba(255,255,255,.5); min-height: 10.5em; white-space: pre-wrap;
}
.boot-lines .ok { color: #4ade80; }
.boot-lines .accent { color: var(--pink-lt); }
.boot-bar {
  margin-top: 1.4rem; height: 3px; border-radius: 99px;
  background: rgba(255,255,255,.08); overflow: hidden;
}
.boot-bar-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--violet), var(--pink));
  box-shadow: 0 0 14px rgba(236,72,153,.7);
  transition: width .18s ease;
}
.boot-skip {
  margin-top: 1.1rem; font-family: var(--mono); font-size: .6rem;
  letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.22);
}

/* ── nav ──────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  transition: background .35s ease, border-color .35s ease, padding .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6,6,13,.72);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom-color: rgba(255,255,255,.06);
  padding-top: .8rem; padding-bottom: .8rem;
}
.nav-logo {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--grotesk); font-weight: 700; font-size: 1.15rem;
  color: #fff; text-decoration: none; letter-spacing: .04em;
}
.nav-logo .dot { color: var(--pink); }
.nav-orb {
  width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--pink-lt), var(--pink));
  box-shadow: 0 0 12px rgba(236,72,153,.9);
  animation: orb-breathe 2.6s ease-in-out infinite;
}
@keyframes orb-breathe {
  0%,100% { box-shadow: 0 0 8px rgba(236,72,153,.6); }
  50% { box-shadow: 0 0 18px rgba(236,72,153,1); }
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  color: rgba(255,255,255,.5); text-decoration: none;
  font-family: var(--mono); font-size: .68rem;
  letter-spacing: .16em; text-transform: uppercase;
  transition: color .2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -5px;
  width: 0%; height: 1px; background: linear-gradient(90deg, var(--violet), var(--pink));
  transition: width .28s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  font-family: var(--grotesk); font-weight: 600; font-size: .82rem;
  color: #fff; text-decoration: none;
  padding: .55rem 1.3rem; border-radius: 10px;
  background: linear-gradient(120deg, var(--violet), var(--pink));
  box-shadow: 0 0 20px rgba(139,92,246,.35);
  transition: box-shadow .25s ease, transform .25s ease;
}
.nav-cta:hover { box-shadow: 0 0 34px rgba(236,72,153,.6); }
@media (max-width: 820px) { .nav-links { display: none; } }

/* ── hero ─────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding: 7rem clamp(1.2rem, 4vw, 3rem) 4rem;
}
.hero-aurora {
  position: absolute; inset: -20%; pointer-events: none; filter: blur(90px); opacity: .5;
  background:
    radial-gradient(ellipse 30% 40% at 25% 30%, rgba(139,92,246,.30), transparent 70%),
    radial-gradient(ellipse 26% 36% at 75% 65%, rgba(236,72,153,.22), transparent 70%);
  animation: aurora-drift 14s ease-in-out infinite alternate;
}
@keyframes aurora-drift {
  from { transform: translate3d(-2%, -1%, 0) rotate(-2deg); }
  to   { transform: translate3d(2%, 2%, 0) rotate(2deg); }
}

/* HUD brackets around the particle-photo zone (full-bleed) */
.subject-frame {
  position: absolute; z-index: 2; pointer-events: none;
  left: 3%; right: 3%; top: 11%; height: 78%;
  display: block;
}
.subject-frame::before, .subject-frame::after {
  content: ''; position: absolute; width: 34px; height: 34px; opacity: .8;
}
.subject-frame::before {
  top: 0; left: 0;
  border-top: 2px solid rgba(236,72,153,.8); border-left: 2px solid rgba(236,72,153,.8);
}
.subject-frame::after {
  bottom: 0; right: 0;
  border-bottom: 2px solid rgba(139,92,246,.8); border-right: 2px solid rgba(139,92,246,.8);
}
.sf-tag {
  position: absolute; top: -1.6rem; left: 0;
  font-family: var(--mono); font-size: .58rem; letter-spacing: .3em;
  color: rgba(249,168,212,.75);
}
.sf-tag.bottom {
  top: auto; bottom: -1.7rem; left: auto; right: 0;
  color: rgba(255,255,255,.28);
  animation: tag-flicker 4s steps(2) infinite;
}
@keyframes tag-flicker {
  0%,92%,100% { opacity: 1; }
  94%,98% { opacity: .3; }
}
@media (max-width: 960px) { .subject-frame { display: none; } }

.hero-grid {
  position: relative; z-index: 2;
  max-width: 1180px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.05fr .95fr;
  align-items: center; gap: 3rem;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 42svh; }           /* particle photo forms above the copy */
  .hero-space { display: none; }
}

.hud-chip {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .18em;
  color: var(--pink-lt);
  border: 1px solid rgba(236,72,153,.3);
  background: rgba(6,6,13,.55);
  padding: .42rem 1rem; border-radius: 8px;
  box-shadow: 0 0 18px rgba(236,72,153,.12), inset 0 0 12px rgba(236,72,153,.05);
  margin-bottom: 1.8rem;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 10px rgba(74,222,128,.9);
  animation: pulse 1.6s ease-in-out infinite;
}
.pulse-dot.small { width: 5px; height: 5px; }
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.8); }
}

.hero-title {
  font-size: clamp(2.3rem, 5.6vw, 4.6rem);
  font-weight: 700; line-height: 1.04; margin-bottom: 1.6rem;
  text-shadow: 0 4px 30px rgba(6,6,13,.9);
}
.decode-line { display: block; white-space: nowrap; }
.decode-line.grad {
  background: linear-gradient(115deg, #c4b5fd 8%, #f9a8d4 28%, #ec4899 48%, #a78bfa 68%, #c4b5fd 92%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: gradient-flow 6s ease-in-out infinite;
  filter: drop-shadow(0 0 26px rgba(236,72,153,.35));
}
@keyframes gradient-flow {
  0%,100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero-sub {
  color: rgba(255,255,255,.6); max-width: 32rem;
  font-size: 1.02rem; line-height: 1.75; margin-bottom: 2.2rem;
  text-shadow: 0 2px 18px rgba(6,6,13,.95);
}
.hero-sub strong { color: #fff; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero-ctas.center { justify-content: center; }

.btn-primary {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--grotesk); font-weight: 600; font-size: .92rem;
  color: #fff; text-decoration: none;
  padding: .95rem 1.7rem; border-radius: 12px;
  background: linear-gradient(120deg, var(--violet), var(--pink));
  box-shadow: 0 0 26px rgba(139,92,246,.4), inset 0 0 0 1px rgba(255,255,255,.15);
  position: relative; overflow: hidden;
  transition: box-shadow .3s ease;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .6s ease;
}
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 0 44px rgba(236,72,153,.65), inset 0 0 0 1px rgba(255,255,255,.25); }
.btn-primary.big { padding: 1.15rem 2.2rem; font-size: 1rem; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .1em;
  color: rgba(255,255,255,.72); text-decoration: none;
  padding: .95rem 1.6rem; border-radius: 12px;
  border: 1px solid rgba(236,72,153,.3);
  background: rgba(6,6,13,.45);
  transition: border-color .25s, color .25s, background .25s, box-shadow .25s;
}
.btn-ghost:hover {
  border-color: rgba(236,72,153,.7); color: #fff;
  background: rgba(236,72,153,.06);
  box-shadow: 0 0 22px rgba(236,72,153,.2);
}

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2.4rem;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .18em;
  color: rgba(255,255,255,.35);
  text-shadow: 0 2px 12px rgba(6,6,13,1);
}

.scroll-cue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  width: 26px; height: 44px; border-radius: 99px;
  border: 1.5px solid rgba(255,255,255,.25);
  display: flex; justify-content: center; padding-top: 8px;
  z-index: 3;
}
.scroll-cue span {
  width: 3px; height: 8px; border-radius: 99px;
  background: var(--pink);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ── ticker ───────────────────────────────── */
.ticker {
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(6,6,13,.65);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  overflow: hidden; padding: .9rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  position: relative; z-index: 2;
}
.ticker-track {
  display: flex; width: max-content;
  animation: ticker-scroll 32s linear infinite;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .26em;
  color: rgba(255,255,255,.4); white-space: nowrap;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }

/* ── sections ─────────────────────────────── */
.section { padding: clamp(5rem, 10vw, 8rem) clamp(1.2rem, 4vw, 3rem); position: relative; }
.container { max-width: 1180px; margin: 0 auto; }
.container.narrow { max-width: 780px; }
.section-head { text-align: center; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.section-label {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .3rem .95rem; border-radius: 7px;
  border: 1px solid rgba(236,72,153,.3);
  background: rgba(6,6,13,.6);
  color: var(--pink-lt);
  font-family: var(--mono); font-size: .64rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  box-shadow: 0 0 18px rgba(236,72,153,.12);
  margin-bottom: 1.4rem;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.section-label::before { content: '//'; color: rgba(236,72,153,.7); font-weight: 700; }
.section-title {
  font-size: clamp(1.9rem, 4.4vw, 3.1rem); font-weight: 700; line-height: 1.12;
  text-shadow: 0 4px 26px rgba(6,6,13,.95);
}
.grad-text {
  background: linear-gradient(115deg, #c4b5fd, #f9a8d4 40%, #ec4899 65%, #a78bfa);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-flow 6s ease-in-out infinite;
}
.section-sub {
  color: rgba(255,255,255,.5); max-width: 36rem; margin: 1.2rem auto 0;
  line-height: 1.7; font-size: .98rem;
  text-shadow: 0 2px 14px rgba(6,6,13,.95);
}

/* ── reveal on scroll ─────────────────────── */
.reveal {
  opacity: 0; transform: translateY(34px);
  transition: opacity .8s cubic-bezier(.2,.65,.3,1), transform .8s cubic-bezier(.2,.65,.3,1);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* glitch-in: titles slice & snap into place when revealed */
.glitch-in.in {
  animation: glitch-snap .55s steps(5) both;
  animation-delay: var(--d, 0s);
}
@keyframes glitch-snap {
  0%   { clip-path: inset(40% 0 40% 0); transform: translate(-8px, 4px) skewX(6deg); }
  20%  { clip-path: inset(10% 0 60% 0); transform: translate(6px, -3px) skewX(-4deg); }
  40%  { clip-path: inset(55% 0 8% 0);  transform: translate(-4px, 2px) skewX(2deg); }
  60%  { clip-path: inset(20% 0 45% 0); transform: translate(3px, -2px); }
  80%  { clip-path: inset(0 0 0 0);     transform: translate(-1px, 1px); }
  100% { clip-path: inset(0 0 0 0);     transform: none; }
}

/* ── mesh section ─────────────────────────── */
.mesh-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center;
}
@media (max-width: 960px) { .mesh-grid { grid-template-columns: 1fr; } }

.mesh-viz { position: relative; }
.mesh-svg { width: 100%; height: auto; overflow: visible; }

.mesh-links path {
  stroke: rgba(139,92,246,.35); stroke-width: 1;
  stroke-dasharray: 5 7;
  animation: dash-flow 1.6s linear infinite;
  fill: none;
}
@keyframes dash-flow { to { stroke-dashoffset: -24; } }

.mesh-packets circle {
  fill: var(--pink-lt);
  filter: drop-shadow(0 0 5px rgba(236,72,153,.95));
}

.mesh-node circle {
  fill: rgba(255,255,255,.03);
  stroke: rgba(255,255,255,.18); stroke-width: 1;
}
.mesh-node text {
  fill: #fff; text-anchor: middle;
  font-family: var(--grotesk); font-weight: 700; font-size: 13px;
  letter-spacing: .06em;
}
.mesh-node text.sub {
  fill: rgba(255,255,255,.35);
  font-family: var(--mono); font-weight: 400; font-size: 7.5px;
  letter-spacing: .22em;
}

.mesh-prime text {
  fill: #fff; text-anchor: middle;
  font-family: var(--grotesk); font-weight: 700; font-size: 17px;
  letter-spacing: .1em;
}
.mesh-prime text.sub {
  fill: rgba(255,255,255,.75);
  font-family: var(--mono); font-weight: 500; font-size: 8px;
  letter-spacing: .34em;
}
.prime-core {
  filter: drop-shadow(0 0 22px rgba(236,72,153,.7));
  animation: prime-breathe 3.2s ease-in-out infinite;
}
.prime-ring {
  fill: none; stroke: rgba(249,168,212,.5); stroke-width: 1;
  stroke-dasharray: 4 6;
  animation: spin-svg 14s linear infinite;
  transform-origin: 0 0;
}
.prime-halo {
  fill: rgba(236,72,153,.05);
  stroke: rgba(236,72,153,.18); stroke-width: 1;
  animation: prime-breathe 3.2s ease-in-out infinite;
}
@keyframes prime-breathe {
  0%,100% { opacity: .85; }
  50% { opacity: 1; }
}
@keyframes spin-svg { to { transform: rotate(360deg); } }

.protocol { display: grid; gap: 1rem; }
.proto-step {
  display: flex; gap: 1.2rem; align-items: flex-start;
  background: rgba(6,6,13,.62);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; padding: 1.35rem 1.5rem;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.proto-step:hover {
  border-color: rgba(236,72,153,.4);
  box-shadow: 0 0 28px rgba(236,72,153,.12);
  transform: translateX(6px);
}
.proto-num {
  font-family: var(--mono); font-weight: 700; font-size: 1.5rem;
  color: transparent;
  -webkit-text-stroke: 1px rgba(236,72,153,.8);
  line-height: 1.2; flex-shrink: 0;
}
.proto-step h3 { font-size: 1rem; margin-bottom: .4rem; }
.proto-step p { color: rgba(255,255,255,.5); font-size: .85rem; line-height: 1.6; }

/* ── capability cards ─────────────────────── */
.cap-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
}
.cap-grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .cap-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 960px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cap-grid, .cap-grid.four { grid-template-columns: 1fr; } }

.cap-card {
  position: relative;
  background: rgba(6,6,13,.62);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; padding: 1.9rem 1.6rem 1.5rem;
  transform-style: preserve-3d; will-change: transform;
  transition: border-color .3s ease, box-shadow .3s ease;
  overflow: hidden;
}
.cap-card::before,
.cap-card::after {
  content: ''; position: absolute; width: 12px; height: 12px;
  opacity: .5; transition: opacity .3s; pointer-events: none;
}
.cap-card::before { top: 9px; left: 9px; border-top: 1.5px solid rgba(236,72,153,.7); border-left: 1.5px solid rgba(236,72,153,.7); }
.cap-card::after { bottom: 9px; right: 9px; border-bottom: 1.5px solid rgba(139,92,246,.7); border-right: 1.5px solid rgba(139,92,246,.7); }
.cap-card:hover { border-color: rgba(236,72,153,.35); box-shadow: 0 0 34px rgba(236,72,153,.14); }
.cap-card:hover::before, .cap-card:hover::after { opacity: 1; }

.cap-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.25rem; color: var(--pink-lt);
  background: linear-gradient(135deg, rgba(139,92,246,.18), rgba(236,72,153,.14));
  border: 1px solid rgba(236,72,153,.25);
  box-shadow: 0 0 18px rgba(236,72,153,.15), inset 0 0 12px rgba(139,92,246,.12);
  margin-bottom: 1.1rem;
  transform: translateZ(30px);
}
.cap-card h3 { font-size: 1.02rem; margin-bottom: .55rem; transform: translateZ(24px); }
.cap-card p {
  color: rgba(255,255,255,.5); font-size: .84rem; line-height: 1.62;
  transform: translateZ(16px);
}
.cap-tag {
  margin-top: 1.2rem; font-family: var(--mono); font-size: .56rem;
  letter-spacing: .24em; color: rgba(236,72,153,.55);
}

/* ── demo/teach shared grid ───────────────── */
.demo-section, .teach-section { position: relative; }
.demo-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.demo-grid.flip > .demo-copy { order: 2; }
.demo-grid.flip > .phone-wrap { order: 1; }
@media (max-width: 960px) {
  .demo-grid { grid-template-columns: 1fr; }
  .demo-grid.flip > .demo-copy { order: 1; }
  .demo-grid.flip > .phone-wrap { order: 2; }
}
.demo-copy .section-title, .demo-copy .section-label { text-align: left; }
.demo-copy .section-sub { margin-left: 0; }
.demo-points { list-style: none; margin-top: 2rem; display: grid; gap: .8rem; }
.demo-points li {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .08em;
  color: rgba(255,255,255,.55);
  padding-left: 1.4rem; position: relative;
  text-shadow: 0 2px 10px rgba(6,6,13,1);
}
.demo-points li::before {
  content: '▸'; position: absolute; left: 0; color: var(--pink);
}
.demo-points b { color: #fff; }

/* ── terminal (teach her) ─────────────────── */
.terminal-wrap { position: relative; }
.terminal-glow {
  position: absolute; inset: 8% 6%; z-index: 0;
  background: radial-gradient(circle, rgba(139,92,246,.26), rgba(236,72,153,.16) 55%, transparent 75%);
  filter: blur(60px);
}
.terminal {
  position: relative; z-index: 1;
  border-radius: 18px;
  background: rgba(8,8,16,.92);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 60px rgba(139,92,246,.12);
  overflow: hidden;
  transform-style: preserve-3d; will-change: transform;
}
.terminal-bar {
  display: flex; align-items: center; gap: .45rem;
  padding: .85rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.02);
}
.terminal-bar i {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.terminal-bar i:nth-child(1) { background: rgba(236,72,153,.6); }
.terminal-bar i:nth-child(2) { background: rgba(251,191,36,.5); }
.terminal-bar i:nth-child(3) { background: rgba(74,222,128,.5); }
.terminal-bar span {
  margin-left: auto;
  font-family: var(--mono); font-size: .56rem; letter-spacing: .26em;
  color: rgba(255,255,255,.35);
}
.terminal-body {
  padding: 1.4rem 1.3rem 1.6rem;
  font-family: var(--mono); font-size: .78rem; line-height: 2.05;
  min-height: 340px;
  white-space: pre-wrap; word-break: break-word;
}
.terminal-body .t-you { color: rgba(255,255,255,.85); }
.terminal-body .t-you::before { content: 'YOU  ▸ '; color: var(--violet-lt); font-weight: 700; }
.terminal-body .t-lana { color: var(--pink-lt); }
.terminal-body .t-lana::before { content: 'LANA ▸ '; color: var(--pink); font-weight: 700; }
.terminal-body .t-sys { color: rgba(74,222,128,.75); font-size: .68rem; }
.terminal-body .t-caret {
  display: inline-block; width: 8px; height: 15px;
  background: var(--pink); vertical-align: -2px;
  animation: caret-blink .9s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

/* ── phone (front desk demo) ──────────────── */
.phone-wrap { position: relative; display: flex; justify-content: center; }
.phone-glow {
  position: absolute; inset: 10% 20%; z-index: 0;
  background: radial-gradient(circle, rgba(236,72,153,.28), rgba(139,92,246,.18) 55%, transparent 75%);
  filter: blur(60px);
}
.phone {
  position: relative; z-index: 1;
  width: min(340px, 88vw); height: 620px;
  border-radius: 38px;
  background: linear-gradient(160deg, #10101e, #0a0a14);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow:
    0 0 0 6px rgba(255,255,255,.03),
    0 30px 80px rgba(0,0,0,.6),
    0 0 60px rgba(139,92,246,.15);
  display: flex; flex-direction: column;
  overflow: hidden;
  transform-style: preserve-3d; will-change: transform;
}
.phone-notch {
  width: 110px; height: 22px; border-radius: 0 0 14px 14px;
  background: #000; margin: 0 auto; flex-shrink: 0;
}
.phone-head {
  display: flex; align-items: center; gap: .8rem;
  padding: .9rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,.06);
}
.phone-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--grotesk); font-weight: 700;
  background: linear-gradient(135deg, var(--violet), var(--pink));
  box-shadow: 0 0 14px rgba(236,72,153,.5);
}
.phone-name { font-size: .82rem; font-weight: 600; font-family: var(--grotesk); }
.phone-status {
  display: flex; align-items: center; gap: .4rem;
  font-family: var(--mono); font-size: .58rem; color: #4ade80; letter-spacing: .1em;
  margin-top: 2px;
}
.phone-body {
  flex: 1; padding: 1.1rem; overflow: hidden;
  display: flex; flex-direction: column; gap: .55rem; justify-content: flex-end;
}
.msg {
  max-width: 82%; padding: .6rem .85rem; border-radius: 14px;
  font-size: .8rem; line-height: 1.5;
  opacity: 0; transform: translateY(12px) scale(.96);
  animation: msg-in .45s cubic-bezier(.2,.9,.3,1.2) forwards;
}
@keyframes msg-in { to { opacity: 1; transform: none; } }
.msg.client {
  align-self: flex-start;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.07);
  border-bottom-left-radius: 4px;
}
.msg.lana {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(139,92,246,.85), rgba(236,72,153,.85));
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 18px rgba(236,72,153,.25);
}
.msg.typing {
  display: flex; gap: 4px; align-items: center; padding: .75rem .9rem;
}
.msg.typing i {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.8);
  animation: typing-bounce 1.1s ease-in-out infinite;
}
.msg.typing i:nth-child(2) { animation-delay: .15s; }
.msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing-bounce {
  0%,60%,100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-5px); opacity: 1; }
}
.msg-time {
  font-family: var(--mono); font-size: .52rem; letter-spacing: .12em;
  color: rgba(255,255,255,.25); text-align: center; margin: .3rem 0;
  opacity: 0; animation: msg-in .4s ease forwards;
}
.phone-foot {
  display: flex; gap: .7rem; align-items: center;
  padding: .8rem 1rem 1.1rem; border-top: 1px solid rgba(255,255,255,.06);
}
.phone-input {
  flex: 1; padding: .6rem 1rem; border-radius: 99px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.07);
  font-size: .78rem; color: rgba(255,255,255,.3);
}
.phone-send {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-size: .8rem;
  background: linear-gradient(135deg, var(--violet), var(--pink));
}

/* ── stats ────────────────────────────────── */
.stats-band {
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(6,6,13,.66);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 3.4rem clamp(1.2rem, 4vw, 3rem);
  position: relative; z-index: 2;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center;
}
@media (max-width: 720px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-num {
  font-family: var(--grotesk); font-weight: 700;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  background: linear-gradient(115deg, #fff, var(--violet-pale) 60%, var(--pink-lt));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(139,92,246,.35));
}
.stat-label {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .24em;
  text-transform: uppercase; color: rgba(255,255,255,.35); margin-top: .5rem;
}

/* ── contact ──────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem;
  max-width: 760px; margin: 0 auto;
}
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: .4rem;
  background: rgba(6,6,13,.68);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px; padding: 2.1rem 2rem 1.8rem;
  text-decoration: none; color: #fff;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transform-style: preserve-3d; will-change: transform;
  transition: border-color .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.contact-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.05) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .7s ease;
}
.contact-card:hover::after { transform: translateX(120%); }
.contact-card:hover {
  border-color: rgba(236,72,153,.45);
  box-shadow: 0 0 40px rgba(236,72,153,.16);
}
.contact-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; color: var(--pink-lt);
  background: linear-gradient(135deg, rgba(139,92,246,.2), rgba(236,72,153,.16));
  border: 1px solid rgba(236,72,153,.3);
  box-shadow: 0 0 20px rgba(236,72,153,.18);
  margin-bottom: .9rem;
}
.contact-card h3 { font-size: 1.15rem; }
.contact-card p { color: rgba(255,255,255,.55); font-size: .9rem; }
.contact-cue {
  margin-top: 1.2rem;
  font-family: var(--mono); font-size: .6rem; letter-spacing: .24em;
  color: rgba(236,72,153,.7);
}

/* ── faq ──────────────────────────────────── */
.faq-list { display: grid; gap: .8rem; }
.faq-item {
  background: rgba(6,6,13,.66);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; overflow: hidden;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .3s;
}
.faq-item[open] { border-color: rgba(236,72,153,.35); }
.faq-item summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 1.15rem 1.4rem;
  font-family: var(--grotesk); font-weight: 600; font-size: .95rem;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-x {
  font-family: var(--mono); color: var(--pink);
  transition: transform .3s ease; font-size: 1.1rem;
}
.faq-item[open] .faq-x { transform: rotate(45deg); }
.faq-item p {
  padding: 0 1.4rem 1.3rem;
  color: rgba(255,255,255,.5); font-size: .87rem; line-height: 1.7;
}

/* ── finale ───────────────────────────────── */
.finale {
  position: relative; overflow: hidden; text-align: center;
  min-height: 96svh;
  /* top padding clears the landing zone of the LANA AI wordmark */
  padding: 44svh clamp(1.2rem, 4vw, 3rem) 8rem;
}
.grid-floor {
  position: absolute; left: -20%; right: -20%; bottom: -8%; height: 62%;
  background-image:
    linear-gradient(rgba(236,72,153,.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,.35) 1px, transparent 1px);
  background-size: 44px 44px;
  transform: perspective(420px) rotateX(68deg);
  transform-origin: center bottom;
  animation: grid-pan 5s linear infinite;
  mask-image: linear-gradient(to top, #000 5%, transparent 80%);
  -webkit-mask-image: linear-gradient(to top, #000 5%, transparent 80%);
}
@keyframes grid-pan { to { background-position: 0 44px, 44px 0; } }
.finale-inner { position: relative; z-index: 2; }
.finale-title {
  font-size: clamp(2.2rem, 5.6vw, 4.2rem); font-weight: 700; line-height: 1.08;
  text-shadow: 0 0 8px rgba(236,72,153,.4), 0 0 40px rgba(139,92,246,.35);
}
.finale .hero-ctas { margin-top: 2.6rem; }

/* ── footer ───────────────────────────────── */
.footer {
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(6,6,13,.8);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 3.5rem clamp(1.2rem, 4vw, 3rem) 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem;
  margin-bottom: 2.6rem;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-note {
  color: rgba(255,255,255,.4); font-size: .84rem; line-height: 1.7; margin-top: .9rem;
}
.footer-links { display: grid; gap: .7rem; align-content: start; }
.footer-links a {
  color: rgba(255,255,255,.45); text-decoration: none; font-size: .84rem;
  transition: color .2s; width: fit-content;
}
.footer-links a:hover { color: #fff; }
.footer-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem;
  border-top: 1px solid rgba(255,255,255,.06); padding-top: 1.6rem;
  font-family: var(--mono); font-size: .6rem; letter-spacing: .18em;
  color: rgba(255,255,255,.25);
}
.footer-sys b { color: #4ade80; }
.footer-copy { display: flex; flex-direction: column; gap: .3rem; }
.footer-credit { color: rgba(255,255,255,.18); }


/* ── nav: Command Deck (business login) ───── */
.nav-actions { display: flex; align-items: center; gap: .8rem; }
.nav-deck {
  display: inline-flex; align-items: center; gap: .55rem;
  background: rgba(6,6,13,.5);
  border: 1px solid rgba(139,92,246,.4);
  border-radius: 10px;
  padding: .45rem 1rem;
  color: var(--violet-pale);
  font-family: var(--mono); font-size: .62rem; font-weight: 600;
  letter-spacing: .16em;
  transition: border-color .25s, color .25s, box-shadow .25s, background .25s;
}
.nav-deck:hover {
  border-color: rgba(167,139,250,.85); color: #fff;
  background: rgba(139,92,246,.1);
  box-shadow: 0 0 22px rgba(139,92,246,.3);
}
.deck-label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.deck-label em {
  font-style: normal; font-size: .5rem; letter-spacing: .1em;
  color: rgba(255,255,255,.35); text-transform: none;
}
@media (max-width: 560px) { .deck-label em { display: none; } .nav-deck { padding: .45rem .7rem; } }

/* ── Command Deck modal ───────────────────── */
.deck-modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; }
.deck-modal[hidden] { display: none; }
.deck-backdrop {
  position: absolute; inset: 0;
  background: rgba(4,4,10,.78);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.deck-box {
  position: relative; width: min(460px, 90vw);
  background: rgba(10,10,20,.96);
  border: 1px solid rgba(139,92,246,.45);
  border-radius: 20px;
  padding: 2.4rem 2.2rem 2.2rem;
  box-shadow: 0 0 60px rgba(139,92,246,.25), 0 30px 80px rgba(0,0,0,.6);
  animation: deck-in .35s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes deck-in {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
.deck-x {
  position: absolute; top: .9rem; right: 1rem;
  background: none; border: none; color: rgba(255,255,255,.4);
  font-size: 1rem; padding: .3rem;
  transition: color .2s;
}
.deck-x:hover { color: #fff; }
.deck-kicker {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .3em;
  color: var(--violet-lt); margin-bottom: 1rem;
}
.deck-title {
  font-size: 1.7rem; margin-bottom: .8rem;
  text-shadow: 0 0 24px rgba(139,92,246,.4);
}
.deck-status {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .2em;
  color: rgba(251,191,36,.85);
  border: 1px solid rgba(251,191,36,.3); border-radius: 8px;
  background: rgba(251,191,36,.06);
  padding: .4rem .9rem; margin-bottom: 1.3rem;
}
.deck-status .pulse-dot { background: #fbbf24; box-shadow: 0 0 10px rgba(251,191,36,.9); }
.deck-copy { color: rgba(255,255,255,.55); font-size: .9rem; line-height: 1.7; margin-bottom: 1.7rem; }
.deck-copy b { color: #fff; }
.deck-cta { width: 100%; justify-content: center; }

/* ═══════════════════════════════════════════════════════
   MOBILE / TABLET / FOLDABLE
   ═══════════════════════════════════════════════════════ */

.btn-primary.full { width: 100%; justify-content: center; }

/* hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  width: 44px; height: 44px; flex-shrink: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 11px;
  background: rgba(6,6,13,.5);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff;
  transition: transform .3s ease, opacity .2s ease;
}
.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); }

/* full-height drawer (opaque — never shows content through) */
.nav-mobile {
  position: fixed; inset: 0; z-index: 99;
  padding: 5.2rem 1.4rem 2rem;
  display: flex; flex-direction: column; gap: .35rem;
  background:
    radial-gradient(ellipse 90% 50% at 80% 0%, rgba(139,92,246,.14), transparent 60%),
    radial-gradient(ellipse 90% 50% at 10% 100%, rgba(236,72,153,.12), transparent 60%),
    #07070e;
  animation: drawer-in .28s ease;
  overflow-y: auto;
}
.nav-mobile[hidden] { display: none; }
@keyframes drawer-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.nav-mobile a[data-navlink] {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .16em;
  font-size: .82rem; color: rgba(255,255,255,.72); text-decoration: none;
  padding: .95rem .4rem; border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color .2s;
}
.nav-mobile a[data-navlink]:active { color: #fff; }
.nav-mobile .deck-block {
  justify-content: flex-start; padding: .8rem 1rem; margin-bottom: .5rem;
  border-radius: 12px;
}
.nav-mobile .deck-label em { display: block; margin-top: 2px; }
.nav-mobile .btn-primary.full { margin-top: 1rem; padding: 1rem; }

@media (max-width: 820px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .nav.menu-open {
    background: rgba(6,6,13,.97);
    border-bottom-color: rgba(255,255,255,.08);
  }
}

/* phones & narrow foldables */
@media (max-width: 600px) {
  .hero { padding-top: 46svh; padding-bottom: 3rem; }
  .hero-title { font-size: clamp(1.85rem, 8.4vw, 2.6rem); }
  .hero-sub { font-size: .96rem; line-height: 1.65; }
  .hero-meta { gap: .5rem 1.1rem; margin-top: 1.8rem; }
  .section { padding: 4.5rem 1.2rem; }
  .section-title {
    font-size: clamp(1.7rem, 7.2vw, 2.4rem);
    text-shadow: 0 2px 20px #06060d, 0 0 40px rgba(6,6,13,.9);
  }
  .section-sub {
    font-size: .92rem;
    text-shadow: 0 2px 16px #06060d, 0 1px 30px rgba(6,6,13,.95);
  }
  .section-label { text-shadow: none; }
  .finale-title { font-size: clamp(1.8rem, 7.6vw, 2.7rem); }
  .stats-grid { gap: 1.6rem 1rem; }
  .proto-step { padding: 1.15rem 1.2rem; gap: 1rem; }
  .cap-card { padding: 1.6rem 1.4rem 1.3rem; }
  .contact-card { padding: 1.8rem 1.6rem 1.5rem; }
  .footer-base { justify-content: center; text-align: center; }
}

/* full-width tap targets on small phones */
@media (max-width: 460px) {
  .hero-ctas .btn-primary,
  .hero-ctas .btn-ghost,
  .finale .hero-ctas .btn-primary,
  .finale .hero-ctas .btn-ghost { width: 100%; justify-content: center; }
  .hero-ctas { gap: .7rem; }
}

/* very small / folded */
@media (max-width: 360px) {
  .hero-title { font-size: clamp(1.6rem, 9vw, 2rem); }
  .nav { padding-left: 1rem; padding-right: 1rem; }
  .section { padding: 4rem 1rem; }
}

/* ── reduced motion ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none !important; }
}
