/* ══════════════════════════════════════════
   NERVA — Global Stylesheet
   Deep Navy + Electric Coral + Ice Blue
   Syne display · Instrument Sans body · JetBrains Mono
   ══════════════════════════════════════════ */

:root {
  --night: #080818;
  --navy: #0d0d24;
  --navy2: #111130;
  --panel: #13132e;
  --panel2: #181838;
  --coral: #ff6b47;
  --coral-dim: rgba(255,107,71,0.1);
  --blue: #4f8ef7;
  --violet: #7c5cbf;
  --paper: #e8e6f0;
  --muted: #6b6b90;
  --border: rgba(232,230,240,0.08);
  --border2: rgba(232,230,240,0.14);
  --fs: 'Syne', sans-serif;
  --fb: 'Instrument Sans', sans-serif;
  --fm: 'JetBrains Mono', monospace;
  --max: 1180px;
  --r: 6px;
}

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

body {
  background: var(--night);
  color: var(--paper);
  font-family: var(--fb);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none;
}

/* GRAIN */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9997;
  opacity: 0.5;
}

/* ── CURSOR ── */
.cursor {
  width: 7px; height: 7px;
  background: var(--coral);
  border-radius: 50%;
  position: fixed; pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .15s, height .15s;
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1.5px solid rgba(255,107,71,0.4);
  border-radius: 50%;
  position: fixed; pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width .2s, height .2s, border-color .2s;
}
body:has(a:hover) .cursor,
body:has(button:hover) .cursor { width: 12px; height: 12px; }
body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring { width: 44px; height: 44px; border-color: rgba(255,107,71,0.65); }

/* ── UTILS ── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 2.5rem; }
em { font-style: normal; color: var(--coral); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
textarea { resize: vertical; }

/* ── EYEBROW ── */
.eyebrow {
  font-family: var(--fm);
  font-size: 0.67rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1rem;
}

/* ── TEXT LINK ── */
.text-link {
  font-family: var(--fm);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--coral);
  text-transform: uppercase;
  transition: opacity .2s;
  display: inline-block;
}
.text-link:hover { opacity: 0.7; }

/* ── BUTTONS ── */
.btn-coral {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--coral);
  color: #fff;
  font-family: var(--fs);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.85rem 1.8rem;
  border-radius: var(--r);
  border: none; cursor: none;
  transition: background .18s, transform .15s, box-shadow .18s;
  white-space: nowrap;
}
.btn-coral:hover { background: #ff7d60; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,107,71,0.3); }
.btn-coral.btn-lg { font-size: 1.05rem; padding: 1rem 2.2rem; }
.btn-coral.full { width: 100%; justify-content: center; }
.btn-arrow { transition: transform .2s; }
.btn-coral:hover .btn-arrow { transform: translateX(3px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent;
  color: var(--muted);
  font-family: var(--fs);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.85rem 1.6rem;
  border: 1px solid rgba(107,107,144,0.35);
  border-radius: var(--r);
  cursor: none;
  transition: border-color .18s, color .18s;
}
.btn-outline:hover { border-color: var(--paper); color: var(--paper); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.5rem 2.5rem;
  transition: background .3s, padding .3s, border-color .3s;
}
nav.scrolled {
  background: rgba(8,8,24,0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2.5rem;
}

.logo {
  font-family: var(--fs);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.logo-n { color: var(--coral); }
.logo:hover { opacity: 0.85; }

.nav-links { display: flex; align-items: center; gap: 2.5rem; }
.nav-links a {
  font-family: var(--fs);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .18s;
}
.nav-links a:hover, .nav-links a.active { color: var(--paper); }
.nav-cta {
  background: var(--coral) !important;
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: var(--r);
  font-weight: 600 !important;
}
.nav-cta:hover { background: #ff7d60 !important; }
.nav-cta.active { background: var(--paper) !important; color: var(--navy) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: none; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--paper); transition: transform .25s, opacity .25s; }

.mobile-menu {
  display: none; position: fixed; inset: 0;
  background: var(--navy); z-index: 499;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 2rem; padding-top: 5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: var(--fs); font-size: 2.2rem; font-weight: 700; color: var(--paper); transition: color .18s; }
.mobile-menu a:hover { color: var(--coral); }

/* ══════════════════════
   HERO
══════════════════════ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  padding: 8rem 2.5rem 4rem;
  max-width: var(--max);
  margin: 0 auto;
  gap: 3rem;
  position: relative;
}

.hero-orb {
  position: fixed; border-radius: 50%;
  pointer-events: none; z-index: -1;
}
.orb1 {
  width: 500px; height: 500px;
  background: radial-gradient(ellipse, rgba(255,107,71,0.07) 0%, transparent 65%);
  top: -100px; right: 10%;
}
.orb2 {
  width: 400px; height: 400px;
  background: radial-gradient(ellipse, rgba(79,142,247,0.05) 0%, transparent 65%);
  bottom: 10%; left: -100px;
}

.hero-mesh {
  position: fixed; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,107,71,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,71,0.025) 1px, transparent 1px);
  background-size: 70px 70px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--coral-dim);
  border: 1px solid rgba(255,107,71,0.2);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  font-family: var(--fm);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--coral);
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.badge-pulse {
  width: 6px; height: 6px;
  background: var(--coral);
  border-radius: 50%;
  animation: pulse-badge 1.8s ease-in-out infinite;
}
@keyframes pulse-badge { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(0.6)} }

.hero h1 {
  font-family: var(--fs);
  font-size: clamp(3.4rem, 6vw, 6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.05em;
}
.italic-line { font-style: italic; font-weight: 600; color: rgba(232,230,240,0.7); }
.coral-line { color: var(--coral); }

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(232,230,240,0.55);
  max-width: 430px;
  margin-bottom: 2.2rem;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.trust-row { display: flex; align-items: center; gap: 1rem; }
.trust-faces { display: flex; }
.tf {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--night);
  background: var(--bg, #333);
  color: var(--c, #fff);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700;
  margin-left: -7px;
}
.tf:first-child { margin-left: 0; }
.trust-row p { font-size: 0.82rem; color: var(--muted); }
.trust-row strong { color: var(--paper); }

/* Neural Visual */
.nerve-canvas { position: relative; }
.nerve-svg { width: 100%; max-width: 460px; display: block; margin: 0 auto; }
.nerve-line { stroke-dasharray: 200; animation: dash-travel 3s linear infinite; }
.nerve-line:nth-child(2) { animation-delay: -1s; }
.nerve-line:nth-child(3) { animation-delay: -2s; }
@keyframes dash-travel { to { stroke-dashoffset: -200; } }

.float-card {
  position: absolute;
  background: rgba(13,13,36,0.92);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  display: flex; align-items: center; gap: 0.6rem;
  backdrop-filter: blur(8px);
  animation: float-card 5s ease-in-out infinite;
}
.fc1 { bottom: 15%; left: -5%; animation-delay: 0s; }
.fc2 { top: 10%; right: -5%; animation-delay: -2.5s; }
@keyframes float-card { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.fc-dot { width: 7px; height: 7px; background: var(--coral); border-radius: 50%; flex-shrink:0; animation: pulse-badge 2s ease-in-out infinite; }
.fc-dot.blue { background: var(--blue); }
.fc-val { font-family: var(--fs); font-size: 0.95rem; font-weight: 700; color: var(--paper); }
.fc-lbl { font-family: var(--fm); font-size: 0.6rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

/* ══════════════════════
   TICKER
══════════════════════ */
.ticker-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,107,71,0.02);
  padding: 0.85rem 0;
  overflow: hidden;
}
.ticker-inner {
  display: inline-flex; align-items: center; gap: 2rem;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
  font-family: var(--fm);
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.ticker-inner em { color: rgba(255,107,71,0.5); font-size: 0.45rem; }
@keyframes ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ══════════════════════
   PROBLEM
══════════════════════ */
.problem { padding: 8rem 0; }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.prob-left h2 {
  font-family: var(--fs); font-size: clamp(2rem,3.5vw,3rem);
  font-weight: 800; letter-spacing: -0.02em;
  margin: 1rem 0 1.4rem; line-height: 1.05;
}
.prob-left p { color: rgba(232,230,240,0.55); line-height: 1.75; margin-bottom: 1rem; font-size: 0.96rem; }
.prob-left .text-link { margin-top: 0.5rem; }

.time-breakdown {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.8rem;
}
.tb-title { font-family: var(--fm); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem; }
.tb-label { font-family: var(--fm); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem; }
.tb-label.coral-text { color: var(--coral); }
.tb-bar-group { display: flex; flex-direction: column; gap: 0.7rem; }
.tb-row { display: flex; align-items: center; gap: 0.8rem; }
.tb-row span { font-size: 0.78rem; color: rgba(232,230,240,0.55); width: 130px; flex-shrink: 0; }
.tb-track { flex: 1; background: rgba(255,255,255,0.05); border-radius: 2px; height: 18px; overflow: hidden; }
.tb-fill {
  height: 100%; border-radius: 2px;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 6px;
  font-family: var(--fm); font-size: 0.6rem; font-weight: 500;
  color: var(--night);
  width: 0; transition: width 1.4s cubic-bezier(0.16,1,0.3,1);
}
.tb-fill.red { background: rgba(255,107,71,0.55); color: rgba(255,255,255,0.8); }
.tb-fill.coral { background: var(--coral); }
.tb-fill.dim { background: rgba(79,142,247,0.4); color: rgba(255,255,255,0.7); }
.tb-divider { height: 1px; background: var(--border); margin: 1.4rem 0; }

/* ══════════════════════
   STATS
══════════════════════ */
.stats { padding: 0 0 6rem; }
.stats-row {
  display: flex; align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel);
}
.stat { flex: 1; padding: 2.5rem 2rem; text-align: center; }
.stat-div { width: 1px; background: var(--border); align-self: stretch; }
.stat-val {
  font-family: var(--fs);
  font-size: 3.2rem; font-weight: 800;
  color: var(--coral);
  line-height: 1; letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.stat-val span { font-size: 1.8rem; }
.stat-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }

/* ══════════════════════
   SERVICES GRID
══════════════════════ */
.services { padding: 6rem 0; background: var(--navy); }
.section-head { margin-bottom: 3.5rem; }
.section-head h2 {
  font-family: var(--fs); font-size: clamp(2.2rem,4vw,3.4rem);
  font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.8rem;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.svc-tile {
  background: var(--panel);
  padding: 2rem 1.8rem;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transition: background .2s;
}
.svc-tile:hover { background: var(--panel2); }
.svc-tile::after {
  content:''; position:absolute; inset:0;
  background: linear-gradient(135deg, var(--coral-dim) 0%, transparent 60%);
  opacity: 0; transition: opacity .2s;
}
.svc-tile:hover::after { opacity: 1; }
.svc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.2rem; }
.svc-ico { font-size: 1.5rem; }
.svc-num { font-family: var(--fm); font-size: 0.6rem; color: rgba(107,107,144,0.5); letter-spacing: 0.1em; }
.svc-tile h3 { font-family: var(--fs); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.6rem; }
.svc-tile p { font-size: 0.86rem; line-height: 1.65; color: rgba(232,230,240,0.5); flex:1; margin-bottom: 1.5rem; }
.svc-arrow { font-size: 1.1rem; color: var(--coral); opacity: 0; transform: translateX(-5px); transition: opacity .2s, transform .2s; }
.svc-tile:hover .svc-arrow { opacity: 1; transform: translateX(0); }

/* ══════════════════════
   PROCESS
══════════════════════ */
.process { padding: 8rem 0; }
.process-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1.5rem; margin-top: 3.5rem;
  position: relative;
}
.process-grid::before {
  content: ''; position: absolute;
  top: 1.8rem; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,107,71,0.25), transparent);
}
.process-step { text-align: center; }
.ps-num {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,107,71,0.3);
  background: var(--coral-dim);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fs); font-size: 0.85rem; font-weight: 700;
  color: var(--coral);
  margin: 0 auto 1.4rem;
}
.ps-body h3 { font-family: var(--fs); font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.6rem; }
.ps-body p { font-size: 0.84rem; line-height: 1.65; color: rgba(232,230,240,0.5); margin-bottom: 0.8rem; }
.ps-tag { font-family: var(--fm); font-size: 0.62rem; letter-spacing: 0.1em; color: var(--coral); text-transform: uppercase; }

/* ══════════════════════
   CTA STRIP
══════════════════════ */
.cta-strip { padding: 8rem 0; position: relative; overflow: hidden; background: var(--navy); }
.cta-orb {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 700px; height: 300px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,107,71,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.cta-content { text-align: center; }
.cta-content h2 {
  font-family: var(--fs); font-size: clamp(2.2rem,4.5vw,4rem);
  font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.05; margin-bottom: 1.2rem;
}
.cta-content p { font-size: 1rem; color: rgba(232,230,240,0.55); max-width: 460px; margin: 0 auto 2.5rem; line-height: 1.7; }
.cta-foot { font-family: var(--fm); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 1rem; }

/* ══════════════════════
   FOOTER
══════════════════════ */
footer { border-top: 1px solid var(--border); padding: 4rem 0 2rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 2fr; gap: 4rem; margin-bottom: 3rem; }
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.88rem; color: var(--muted); line-height: 1.65; max-width: 270px; margin-bottom: 1.5rem; }
.footer-socials { display: flex; gap: 0.7rem; }
.footer-socials a {
  width: 32px; height: 32px; border: 1px solid var(--border);
  border-radius: var(--r); display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; color: var(--muted); transition: border-color .18s, color .18s;
}
.footer-socials a:hover { border-color: var(--paper); color: var(--paper); }
.footer-nav { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.fn-head { font-family: var(--fm); font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.fn-col { display: flex; flex-direction: column; gap: 0.65rem; }
.fn-col a { font-size: 0.88rem; color: rgba(232,230,240,0.5); transition: color .18s; }
.fn-col a:hover { color: var(--paper); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom span { font-family: var(--fm); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(107,107,144,0.5); }

/* ══════════════════════
   PAGE HERO (inner)
══════════════════════ */
.page-hero { padding: 10rem 0 5rem; position: relative; overflow: hidden; }
.page-orb {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 600px; height: 400px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,107,71,0.05) 0%, transparent 65%);
  pointer-events: none;
}
.page-h1 {
  font-family: var(--fs); font-size: clamp(2.8rem,5.5vw,5.5rem);
  font-weight: 800; letter-spacing: -0.025em;
  line-height: 1.0; margin-bottom: 1.5rem;
}
.page-sub { font-size: 1.1rem; color: rgba(232,230,240,0.5); max-width: 480px; }

/* ══════════════════════
   SERVICES DETAIL
══════════════════════ */
.svc-details { padding: 5rem 0; }
.svc-block {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}
.svc-block:last-child { border-bottom: none; }
.svc-flip .sb-left { order: 2; }
.svc-flip .sb-right { order: 1; }
.sb-tag { font-family: var(--fm); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--coral); margin-bottom: 1rem; }
.sb-left h2 {
  font-family: var(--fs); font-size: clamp(2rem,3.5vw,2.8rem);
  font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.05; margin-bottom: 1.2rem;
}
.sb-left p { font-size: 0.95rem; color: rgba(232,230,240,0.55); line-height: 1.78; margin-bottom: 1rem; }
.sb-stack { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.sb-stack span {
  background: rgba(255,107,71,0.08); border: 1px solid rgba(255,107,71,0.18);
  color: rgba(255,107,71,0.8);
  font-family: var(--fm); font-size: 0.62rem; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 0.3rem 0.75rem; border-radius: 2px;
}
.sb-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.8rem;
}

/* Flow demo */
.flow-demo { display: flex; flex-direction: column; gap: 0; }
.fd-step {
  display: flex; align-items: center; gap: 0.9rem;
  background: var(--panel2); border-radius: 7px;
  padding: 0.9rem 1rem; margin-bottom: 0.4rem;
  opacity: 0.45; transition: opacity .3s;
  font-size: 1rem;
}
.fd-step.active, .fd-step.pulsing { opacity: 1; }
.fd-step.pulsing { border: 1px solid rgba(255,107,71,0.25); }
.fd-step div strong { display: block; font-size: 0.88rem; margin-bottom: 0.15rem; }
.fd-step div p { font-size: 0.77rem; color: var(--muted); margin: 0; }
.check { margin-left: auto; color: var(--coral); font-size: 0.9rem; }
.spinner { margin-left: auto; width: 13px; height: 13px; border: 2px solid rgba(255,107,71,0.2); border-top-color: var(--coral); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to{ transform: rotate(360deg); } }
.fd-connector { width: 1px; height: 10px; background: rgba(255,107,71,0.2); margin: 0 auto; }

/* Terminal */
.terminal { background: #06060f; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,107,71,0.12); }
.term-bar { background: #0e0e20; padding: 0.65rem 1rem; display: flex; align-items: center; gap: 0.45rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.term-title { font-family: var(--fm); font-size: 0.62rem; color: var(--muted); letter-spacing: 0.06em; margin-left: 0.5rem; }
.term-body { padding: 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; }
.tl { font-family: var(--fm); font-size: 0.71rem; color: var(--paper); display: flex; gap: 0.55rem; }
.tl.dim { color: var(--muted); }
.tl.coral { color: var(--coral); }
.tl.blink-cursor { animation: blink-anim 1s step-end infinite; }
@keyframes blink-anim { 50% { opacity: 0; } }
.tp { color: var(--coral); flex-shrink: 0; }

/* Doc demo */
.doc-demo { display: flex; flex-direction: column; gap: 1.2rem; }
.dd-file { display: flex; align-items: center; gap: 0.8rem; font-size: 1.3rem; }
.dd-file div strong { display: block; font-size: 0.9rem; }
.processing { font-family: var(--fm); font-size: 0.62rem; color: var(--coral); letter-spacing: 0.06em; display: block; }
.dd-fields { display: flex; flex-direction: column; gap: 0.6rem; }
.ddf { display: flex; justify-content: space-between; font-size: 0.84rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--border); }
.ddf:last-child { border-bottom: none; }
.ddf span:first-child { color: var(--muted); }
.coral-text { color: var(--coral); }
.green { color: #28c840; }

/* Chat demo */
.chat-demo { border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.chat-header { background: var(--panel2); padding: 0.9rem 1.1rem; display: flex; align-items: center; gap: 0.8rem; border-bottom: 1px solid var(--border); }
.ch-ava { width: 30px; height: 30px; background: var(--coral); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--fs); font-size: 0.85rem; font-weight: 700; color: #fff; }
.chat-header strong { display: block; font-size: 0.88rem; }
.online-dot { font-family: var(--fm); font-size: 0.6rem; color: #28c840; letter-spacing: 0.05em; display: block; }
.chat-msgs { padding: 1.1rem; display: flex; flex-direction: column; gap: 0.7rem; }
.cm { max-width: 82%; padding: 0.6rem 0.88rem; border-radius: 8px; font-size: 0.83rem; line-height: 1.5; }
.cm.bot { background: rgba(255,255,255,0.05); align-self: flex-start; border-radius: 0 8px 8px 8px; }
.cm.user { background: var(--coral); color: #fff; align-self: flex-end; border-radius: 8px 0 8px 8px; }
.cm.typing-anim { display: flex; align-items: center; gap: 4px; padding: 0.75rem 0.88rem; }
.cm.typing-anim span { width: 5px; height: 5px; background: var(--muted); border-radius: 50%; animation: typing-b 1.2s ease-in-out infinite; }
.cm.typing-anim span:nth-child(2){animation-delay:.2s} .cm.typing-anim span:nth-child(3){animation-delay:.4s}
@keyframes typing-b { 0%,80%,100%{transform:translateY(0)} 40%{transform:translateY(-5px)} }

/* Pipeline */
.pipeline-card { display: flex; align-items: center; gap: 1rem; justify-content: center; }
.pipe-sources, .pipe-outputs { display: flex; flex-direction: column; gap: 0.5rem; }
.ps, .po { background: var(--panel2); border: 1px solid var(--border); border-radius: 5px; padding: 0.45rem 0.8rem; font-family: var(--fm); font-size: 0.63rem; text-align: center; color: var(--muted); letter-spacing: 0.05em; white-space: nowrap; }
.pipe-center { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; flex: 1; }
.pipe-line { width: 1px; height: 28px; background: linear-gradient(to bottom, transparent, rgba(255,107,71,0.3), transparent); }
.pipe-hub { background: var(--coral-dim); border: 1px solid rgba(255,107,71,0.3); border-radius: 8px; padding: 0.7rem 0.9rem; font-family: var(--fs); font-size: 0.88rem; font-weight: 700; color: var(--coral); text-align: center; line-height: 1.3; white-space: nowrap; }
.pipe-hub small { font-size: 0.5rem; color: var(--muted); display: block; letter-spacing: 0.08em; text-transform: uppercase; }

/* Hub card */
.hub-card { position: relative; min-height: 240px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1rem; }
.hub-center { background: var(--coral-dim); border: 1px solid rgba(255,107,71,0.35); border-radius: 10px; padding: 0.9rem 1.2rem; font-family: var(--fs); font-size: 0.95rem; font-weight: 700; color: var(--coral); text-align: center; }
.hub-nodes { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.hn { background: var(--panel2); border: 1px solid var(--border); border-radius: 5px; padding: 0.4rem 0.75rem; font-family: var(--fm); font-size: 0.63rem; color: var(--muted); letter-spacing: 0.05em; animation: float-card 4s ease-in-out infinite; }
.hn:nth-child(2){animation-delay:-1s} .hn:nth-child(3){animation-delay:-2s} .hn:nth-child(4){animation-delay:-0.5s} .hn:nth-child(5){animation-delay:-1.5s} .hn:nth-child(6){animation-delay:-2.5s}

/* ══════════════════════
   ABOUT PAGE
══════════════════════ */
.about-story { padding: 7rem 0; }
.story-split { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; }
.story-text h2 { font-family: var(--fs); font-size: clamp(1.9rem,3vw,2.7rem); font-weight: 800; letter-spacing: -0.02em; margin: 1rem 0 1.3rem; }
.story-text p { font-size: 0.95rem; color: rgba(232,230,240,0.55); line-height: 1.78; margin-bottom: 1.1rem; }
.story-panel { }
.sp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.sp-item { background: var(--panel); padding: 1.8rem; }
.sp-n { font-family: var(--fs); font-size: 2.3rem; font-weight: 800; color: var(--coral); margin-bottom: 0.4rem; }
.sp-l { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }

.values-section { padding: 6rem 0; background: var(--navy); }
.values-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.2rem; margin-top: 3rem; }
.val { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 2rem; transition: border-color .2s; }
.val:hover { border-color: rgba(255,107,71,0.25); }
.val-ico { font-size: 1.7rem; margin-bottom: 0.9rem; }
.val h3 { font-family: var(--fs); font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.6rem; }
.val p { font-size: 0.87rem; line-height: 1.7; color: rgba(232,230,240,0.5); }

.team-section { padding: 8rem 0; }
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 3rem; }
.team-card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; transition: border-color .2s, transform .2s; }
.team-card:hover { border-color: rgba(255,107,71,0.25); transform: translateY(-4px); }
.tc-top {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fs); font-size: 1.1rem; font-weight: 800; color: #fff;
  margin-bottom: 1.2rem;
}
.team-card h3 { font-family: var(--fs); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.3rem; }
.tc-role { font-family: var(--fm); font-size: 0.63rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--coral); margin-bottom: 0.9rem; }
.team-card p { font-size: 0.85rem; line-height: 1.68; color: rgba(232,230,240,0.5); }
.hiring-banner { text-align: center; margin-top: 3rem; padding: 1.4rem; border: 1px dashed rgba(255,107,71,0.22); border-radius: 8px; font-size: 0.9rem; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 1rem; }
.hiring-banner a { color: var(--coral); font-weight: 500; transition: opacity .18s; }
.hiring-banner a:hover { opacity: 0.7; }

/* ══════════════════════
   WAITLIST PAGE
══════════════════════ */
.waitlist-page {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  max-width: var(--max); margin: 0 auto;
  padding: 7rem 2.5rem 4rem; gap: 5rem;
}
.wl-left-inner h1 {
  font-family: var(--fs); font-size: clamp(3rem,5.5vw,5rem);
  font-weight: 800; letter-spacing: -0.025em;
  line-height: 0.95; margin-bottom: 1.4rem;
}
.wl-left-inner p { font-size: 1rem; color: rgba(232,230,240,0.55); line-height: 1.75; max-width: 400px; margin-bottom: 2.5rem; }
.wl-perks { display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: 2.5rem; }
.wl-perk { display: flex; gap: 0.9rem; align-items: flex-start; }
.wp-ico { font-size: 1.35rem; flex-shrink: 0; padding-top: 0.1rem; }
.wl-perk strong { display: block; font-size: 0.94rem; margin-bottom: 0.15rem; }
.wl-perk p { font-size: 0.82rem; color: var(--muted); line-height: 1.5; margin: 0; }
.spots-meter { }
.sm-track { background: rgba(255,255,255,0.07); border-radius: 100px; height: 5px; margin-bottom: 0.6rem; overflow: hidden; }
.sm-fill { height: 100%; background: linear-gradient(to right, var(--coral), var(--blue)); border-radius: 100px; width: 0; transition: width 1.4s cubic-bezier(0.16,1,0.3,1); }
.sm-label { font-family: var(--fm); font-size: 0.63rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.sm-label span { color: var(--coral); font-weight: 500; }

.wl-form-card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 2.5rem; position: sticky; top: 7rem; }
.step-dots { display: flex; align-items: center; margin-bottom: 2rem; }
.sd { display: flex; align-items: center; gap: 0.45rem; flex-shrink: 0; }
.sd span { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-family: var(--fm); font-size: 0.62rem; color: var(--muted); transition: all .2s; }
.sd label { font-family: var(--fm); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.sd.active span { background: var(--coral); border-color: var(--coral); color: #fff; }
.sd.active label { color: var(--paper); }
.sd.done span { background: var(--coral-dim); border-color: rgba(255,107,71,0.3); color: var(--coral); }
.sd-line { flex: 1; height: 1px; background: var(--border); margin: 0 0.5rem; }

.wl-step { display: none; }
.wl-step.active { display: block; }
.wl-step h3 { font-family: var(--fs); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.35rem; }
.step-sub { font-size: 0.84rem; color: var(--muted); margin-bottom: 1.7rem; line-height: 1.5; }

.f-field { margin-bottom: 1rem; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
label { display: block; font-family: var(--fm); font-size: 0.61rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.42rem; }
input, select, textarea {
  width: 100%;
  background: rgba(232,230,240,0.04);
  border: 1px solid rgba(232,230,240,0.1);
  color: var(--paper);
  font-family: var(--fb); font-size: 0.92rem;
  padding: 0.78rem 0.95rem;
  border-radius: var(--r); outline: none;
  transition: border-color .2s;
  -webkit-appearance: none; cursor: none;
}
input::placeholder, textarea::placeholder { color: rgba(232,230,240,0.2); }
input:focus, select:focus, textarea:focus { border-color: rgba(255,107,71,0.45); }
select option { background: #1a1a38; }
.f-btns { display: flex; gap: 0.7rem; margin-top: 0.5rem; }
.f-btns .btn-coral { flex: 1; justify-content: center; }

/* AI box */
.ai-box { background: rgba(255,107,71,0.04); border: 1px solid rgba(255,107,71,0.15); border-radius: 8px; padding: 1.1rem; margin: 1rem 0 1.1rem; }
.ai-box-hd { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.9rem; font-size: 1.1rem; }
.ai-box-hd strong { display: block; font-size: 0.88rem; }
.ai-badge { font-family: var(--fm); font-size: 0.55rem; letter-spacing: 0.08em; text-transform: uppercase; background: var(--coral-dim); color: var(--coral); padding: 0.18rem 0.5rem; border-radius: 2px; margin-left: 0.4rem; }
.ai-loading { display: flex; align-items: center; gap: 0.7rem; font-size: 0.82rem; color: var(--muted); }
.ai-dots { display: flex; gap: 3px; }
.ai-dots span { width: 5px; height: 5px; background: var(--coral); border-radius: 50%; animation: typing-b 1.2s ease-in-out infinite; }
.ai-dots span:nth-child(2){animation-delay:.2s} .ai-dots span:nth-child(3){animation-delay:.4s}

/* Audit result */
.audit-result { display: flex; flex-direction: column; gap: 0.9rem; }
.ar-top { display: flex; align-items: center; gap: 1rem; }
.ar-donut { position: relative; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ar-donut svg { display: block; }
.ar-donut-n { position: absolute; font-family: var(--fs); font-size: 1rem; font-weight: 800; color: var(--coral); }
.ar-donut-l { font-family: var(--fm); font-size: 0.58rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); line-height: 1.4; }
.ar-stats { display: flex; gap: 1rem; flex: 1; flex-wrap: wrap; }
.ar-stat { text-align: center; }
.arv { font-family: var(--fs); font-size: 1.1rem; font-weight: 800; color: var(--coral); }
.arl { font-family: var(--fm); font-size: 0.57rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.ar-headline { font-size: 0.86rem; line-height: 1.55; color: rgba(232,230,240,0.8); padding: 0.7rem; background: rgba(255,107,71,0.06); border-radius: 5px; border-left: 2px solid var(--coral); }
.ar-wins { display: flex; flex-direction: column; gap: 0.3rem; }
.ar-win { font-size: 0.79rem; color: rgba(232,230,240,0.65); }
.ar-foot { display: flex; gap: 1.2rem; border-top: 1px solid var(--border); padding-top: 0.7rem; font-family: var(--fm); font-size: 0.6rem; color: var(--muted); letter-spacing: 0.05em; flex-wrap: wrap; }
.ar-foot strong { color: var(--paper); }

/* Success */
.success-step { text-align: center; padding: 0.5rem 0; }
.success-ring-wrap { position: relative; width: 80px; height: 80px; margin: 0 auto 1.5rem; display: flex; align-items: center; justify-content: center; }
.success-ring-anim { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--coral); animation: ring-pop .8s cubic-bezier(0.16,1,0.3,1) forwards; }
@keyframes ring-pop { from{transform:scale(0);opacity:0} to{transform:scale(1);opacity:1} }
.success-bolt { font-size: 2.5rem; }
.success-step h3 { font-family: var(--fs); font-size: 1.9rem; font-weight: 800; color: var(--coral); margin-bottom: 0.7rem; }
.success-step > p { font-size: 0.88rem; color: var(--muted); margin-bottom: 1.8rem; }
.success-steps { display: flex; flex-direction: column; gap: 1.1rem; text-align: left; }
.ss-item { display: flex; gap: 0.75rem; align-items: flex-start; }
.ss-dot { width: 7px; height: 7px; background: var(--coral); border-radius: 50%; flex-shrink: 0; margin-top: 0.4rem; }
.ss-item strong { display: block; font-size: 0.88rem; margin-bottom: 0.18rem; }
.ss-item p { font-size: 0.79rem; color: var(--muted); line-height: 1.5; margin: 0; }

/* ══════════════════════
   SCROLL ANIMATIONS
══════════════════════ */
.reveal-up { opacity: 0; transform: translateY(26px); transition: opacity .65s ease, transform .65s ease; transition-delay: var(--d, 0s); }
.reveal-left { opacity: 0; transform: translateX(-26px); transition: opacity .65s ease, transform .65s ease; }
.reveal-right { opacity: 0; transform: translateX(26px); transition: opacity .65s ease, transform .65s ease; }
.reveal-up.visible, .reveal-left.visible, .reveal-right.visible { opacity: 1; transform: none; }

@keyframes shake { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-5px)} 40%{transform:translateX(5px)} 60%{transform:translateX(-3px)} 80%{transform:translateX(3px)} }

/* ══════════════════════
   RESPONSIVE
══════════════════════ */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .problem-grid { grid-template-columns: 1fr; gap: 3rem; }
  .stats-row { flex-wrap: wrap; }
  .stat { min-width: 40%; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-grid::before { display: none; }
  .svc-block { grid-template-columns: 1fr; gap: 2.5rem; }
  .svc-flip .sb-left { order: 0; }
  .svc-flip .sb-right { order: 1; }
  .story-split { grid-template-columns: 1fr; gap: 3rem; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .waitlist-page { grid-template-columns: 1fr; }
  .wl-form-card { position: static; }
  .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .wrap { padding: 0 1.4rem; }
  .hero { padding: 6.5rem 1.4rem 3rem; }
  .svc-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .page-hero { padding: 7.5rem 0 3rem; }
  .waitlist-page { padding: 6rem 1.4rem 3rem; }
  .f-row { grid-template-columns: 1fr; }
  .cursor, .cursor-ring { display: none; }
  body { cursor: auto; }
  input, select, textarea, button, a { cursor: auto; }
}
@media (max-width: 480px) {
  .stats-row { flex-direction: column; }
  .stat-div { width: auto; height: 1px; }
}
