:root{
  --void:#0B0B10;
  --void-2:#15151F;
  --void-line:#26262F;
  --ember:#FF3B5C;
  --ember-soft:rgba(255,59,92,0.16);
  --teal:#2DD4BF;
  --amber:#F2A93B;
  --paper:#EFF1EE;
  --paper-2:#FFFFFF;
  --ink:#14141C;
  --ink-soft:#5B5F66;
  --paper-line:#DEE1DC;
  --display:'Space Grotesk', sans-serif;
  --body:'IBM Plex Sans', sans-serif;
  --mono:'IBM Plex Mono', monospace;
}
*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  font-family:var(--body);
  background:var(--paper);
  color:var(--ink);
  line-height:1.6;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; }
::selection{ background:var(--ember); color:#fff; }

:focus-visible{ outline:3px solid var(--teal); outline-offset:3px; }

.eyebrow{
  font-family:var(--mono);
  font-size:0.78rem;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:var(--ember);
}
section.on-paper .eyebrow{ color:var(--ember); }

.wrap{ max-width:1180px; margin:0 auto; padding-left:6%; padding-right:6%; }

h1,h2,h3{ font-family:var(--display); font-weight:700; letter-spacing:-0.02em; }

/* ---------- NAV ---------- */
nav{
  position:sticky; top:0; z-index:200;
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 6%;
  background:rgba(11,11,16,0.72);
  backdrop-filter:blur(16px);
  border-bottom:1px solid var(--void-line);
}
.nav-logo{
  display:flex; align-items:center; gap:10px;
  font-family:var(--display); font-weight:700; font-size:1.1rem;
  color:#fff; text-decoration:none;
}
.nav-logo img{ width:28px; height:28px; border-radius:7px; }
.nav-cta{
  font-family:var(--mono); font-size:0.85rem; font-weight:500;
  padding:10px 20px; border-radius:8px;
  background:var(--ember); color:#fff; text-decoration:none;
  transition:transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow:0 4px 18px rgba(255,59,92,0.35);
}
.nav-cta:hover{ transform:translateY(-2px); box-shadow:0 8px 26px rgba(255,59,92,0.5); }

/* ---------- HERO ---------- */
.hero{
  position:relative;
  min-height:100vh;
  display:flex; flex-direction:column; align-items:flex-start; justify-content:center;
  padding:140px 6% 100px;
  background:var(--void);
  color:#fff;
  overflow:hidden;
}
.hero-noise{
  position:absolute; inset:0; pointer-events:none; opacity:0.5;
  background-image:
    radial-gradient(ellipse 60% 40% at 15% 15%, rgba(255,59,92,0.14) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 90% 80%, rgba(45,212,191,0.10) 0%, transparent 60%);
}
.hero-ghost-feed{
  position:absolute; top:0; right:4%; height:100%; width:260px;
  display:flex; flex-direction:column; gap:14px;
  opacity:0.12; pointer-events:none;
  animation:ghostScroll 26s linear infinite;
}
.hero-ghost-feed div{
  height:180px; border-radius:16px; flex-shrink:0;
  background:linear-gradient(135deg, #2a2a38, #1b1b26);
  border:1px solid var(--void-line);
}
@keyframes ghostScroll{ from{ transform:translateY(0); } to{ transform:translateY(-50%); } }

.hero-content{ position:relative; z-index:1; max-width:760px; }
.hero-content .eyebrow{ margin-bottom:22px; display:block; }

.glitch-wrap{ min-height:1.1em; margin-bottom:8px; }
h1.headline{
  font-size:clamp(2.6rem, 6.2vw, 4.6rem);
  line-height:1.06;
  margin-bottom:26px;
}
h1.headline .clean{ color:#fff; }
h1.headline .accent{ color:var(--ember); }
.glitch-cursor{
  display:inline-block; width:0.5ch; background:var(--ember);
  animation:blink 0.9s steps(1) infinite;
}
@keyframes blink{ 50%{ opacity:0; } }

.hero p.sub{
  font-size:1.15rem; color:rgba(255,255,255,0.72);
  max-width:560px; margin-bottom:42px;
}
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; }

.btn{
  font-family:var(--mono); font-weight:500; font-size:0.95rem;
  padding:15px 30px; border-radius:9px;
  text-decoration:none; cursor:pointer; border:none;
  transition:transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  display:inline-flex; align-items:center; gap:8px;
}
.btn-fill{ background:var(--ember); color:#fff; box-shadow:0 8px 26px rgba(255,59,92,0.35); }
.btn-fill:hover{ transform:translateY(-3px); box-shadow:0 12px 34px rgba(255,59,92,0.5); }
.btn-ghost{ background:transparent; color:#fff; border:1.5px solid rgba(255,255,255,0.3); }
.btn-ghost:hover{ border-color:#fff; background:rgba(255,255,255,0.06); transform:translateY(-3px); }
.btn-ghost-dark{ background:transparent; color:var(--ink); border:1.5px solid var(--ink); }
.btn-ghost-dark:hover{ background:var(--ink); color:#fff; transform:translateY(-3px); }

/* ---------- INTERRUPTION (scrollytelling) ---------- */
.interrupt{ background:var(--void); color:#fff; padding:90px 0 120px; }
.interrupt-grid{
  max-width:1180px; margin:0 auto; padding:0 6%;
  display:grid; grid-template-columns:0.9fr 1.1fr; gap:80px; align-items:start;
}
.phone-sticky{ position:sticky; top:110px; display:flex; justify-content:center; }
.phone{
  width:260px; height:540px; border-radius:38px;
  background:#000; border:6px solid #26262f;
  box-shadow:0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  position:relative; overflow:hidden;
}
.phone-notch{
  position:absolute; top:8px; left:50%; transform:translateX(-50%);
  width:70px; height:18px; background:#000; border-radius:12px; z-index:5;
}
.phone-feed{
  position:absolute; inset:0;
  display:flex; flex-direction:column; gap:6px;
  animation:feedScroll 3.2s linear infinite;
}
.phone-feed div{
  height:540px; flex-shrink:0;
  background:linear-gradient(160deg, #3a2a4a, #1b1424);
}
.phone-feed div:nth-child(2){ background:linear-gradient(160deg, #1e3a3a, #0f1f22); }
.phone-feed div:nth-child(3){ background:linear-gradient(160deg, #3a2020, #1c0f10); }
@keyframes feedScroll{ from{ transform:translateY(0); } to{ transform:translateY(-1080px); } }

.phone.blocked .phone-feed{ animation-play-state:paused; }
.phone-flash{
  position:absolute; inset:0; background:var(--ember);
  opacity:0; z-index:4; pointer-events:none;
}
.phone.blocked .phone-flash{ animation:flashOnce 0.5s ease-out forwards; }
@keyframes flashOnce{ 0%{ opacity:0; } 15%{ opacity:0.9; } 100%{ opacity:0; } }
.phone-home{
  position:absolute; inset:0; z-index:3;
  display:flex; align-items:center; justify-content:center;
  opacity:0; background:#fff;
}
.phone.blocked .phone-home{ animation:homeIn 0.6s 0.25s ease-out forwards; }
@keyframes homeIn{ from{ opacity:0; } to{ opacity:1; } }
.phone-home img{ width:100%; height:100%; object-fit:cover; }

.interrupt-steps{ display:flex; flex-direction:column; gap:130px; padding-top:40px; }
.i-step{ opacity:0.35; transition:opacity 0.4s ease; }
.i-step.active{ opacity:1; }
.i-step .tag{ font-family:var(--mono); font-size:0.78rem; letter-spacing:0.14em; color:var(--teal); margin-bottom:14px; display:block; }
.i-step h3{ font-size:1.7rem; margin-bottom:14px; }
.i-step p{ color:rgba(255,255,255,0.65); font-size:1.02rem; max-width:420px; }

.i-readout{
  margin-top:10px; display:flex; gap:28px; flex-wrap:wrap;
  font-family:var(--mono); font-size:0.85rem; color:var(--teal);
}
.i-readout span{ opacity:0.7; color:rgba(255,255,255,0.5); }

/* ---------- STATS STRIP ---------- */
.stats{ background:var(--paper); padding:80px 6%; }
.stats-grid{
  max-width:1000px; margin:0 auto;
  display:grid; grid-template-columns:repeat(3, 1fr); gap:40px;
  text-align:center;
}
.stat-num{
  font-family:var(--display); font-weight:700;
  font-size:clamp(2.4rem, 5vw, 3.4rem); color:var(--ink);
}
.stat-label{
  font-family:var(--mono); font-size:0.85rem; color:var(--ink-soft);
  margin-top:8px; letter-spacing:0.02em;
}

/* ---------- SECTION HEADER (shared) ---------- */
.section-header{ max-width:640px; margin-bottom:60px; }
.section-header h2{ font-size:clamp(2rem, 4vw, 2.8rem); margin-top:14px; margin-bottom:16px; line-height:1.15; }
.section-header p{ color:var(--ink-soft); font-size:1.05rem; }

/* ---------- FEATURES ---------- */
.features{ background:var(--paper-2); padding:110px 6%; }
.features-grid{
  max-width:1180px; margin:0 auto;
  display:grid; grid-template-columns:repeat(auto-fit, minmax(270px, 1fr)); gap:2px;
  background:var(--paper-line); border:1px solid var(--paper-line); border-radius:18px; overflow:hidden;
}
.feature{
  padding:34px 28px; background:var(--paper-2);
  transition:background 0.25s ease;
}
.feature:hover{ background:var(--paper); }
.feature svg{ width:26px; height:26px; stroke:var(--ember); margin-bottom:18px; }
.feature h3{ font-size:1.05rem; margin-bottom:8px; font-weight:600; font-family:var(--body); }
.feature p{ color:var(--ink-soft); font-size:0.92rem; line-height:1.65; }

/* ---------- PIPELINE (how it works) ---------- */
.pipeline{ background:var(--paper); padding:110px 6%; }
.pipe-track{
  position:relative; max-width:1000px; margin:0 auto;
  display:grid; grid-template-columns:repeat(4, 1fr);
  gap:0;
}
.pipe-line{
  position:absolute; top:34px; left:0; right:0; height:2px;
  background:var(--paper-line);
  overflow:hidden;
}
.pipe-line::after{
  content:""; position:absolute; top:0; left:-30%; width:30%; height:100%;
  background:linear-gradient(90deg, transparent, var(--ember), transparent);
  animation:pulseTravel 3.4s linear infinite;
}
@keyframes pulseTravel{ from{ left:-30%; } to{ left:100%; } }
.pipe-node{ position:relative; text-align:center; padding-top:0; }
.pipe-dot{
  width:70px; height:70px; border-radius:50%; margin:0 auto 22px;
  background:var(--paper-2); border:2px solid var(--paper-line);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--mono); font-weight:500; color:var(--ember);
  position:relative; z-index:1;
}
.pipe-node h3{ font-size:1.05rem; margin-bottom:8px; font-family:var(--body); font-weight:600; }
.pipe-node p{ color:var(--ink-soft); font-size:0.9rem; padding:0 12px; }

/* ---------- APPS ---------- */
.apps{ background:var(--paper-2); padding:110px 6%; }
.apps-grid{
  max-width:1000px; margin:0 auto;
  display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:20px;
}
.app-card{
  padding:30px 24px; border-radius:14px;
  border:1px solid var(--paper-line);
  transition:border-color 0.25s ease, transform 0.25s ease;
}
.app-card:hover{ border-color:var(--ember); transform:translateY(-4px); }
.app-card svg{ width:28px; height:28px; stroke:var(--ink); margin-bottom:16px; }
.app-card h3{ font-size:1.02rem; margin-bottom:6px; font-family:var(--body); font-weight:600; }
.app-card p{ color:var(--ink-soft); font-size:0.88rem; }

/* ---------- SCREENSHOTS ---------- */
.shots{ background:var(--paper); padding:110px 6%; }
.shots-row{
  max-width:1180px; margin:0 auto;
  display:flex; gap:28px; justify-content:center; flex-wrap:wrap;
}
.shot{
  width:270px; border-radius:22px; overflow:hidden;
  box-shadow:0 24px 60px rgba(20,20,28,0.14);
  border:1px solid var(--paper-line);
  transition:transform 0.4s ease;
}
.shot:nth-child(2){ transform:translateY(-18px); }
.shot:hover{ transform:translateY(-8px) scale(1.02); }
.shot:nth-child(2):hover{ transform:translateY(-26px) scale(1.02); }

/* ---------- REALITY CHECK ---------- */
.reality{ background:var(--paper-2); padding:90px 6%; }
.reality-card{
  max-width:820px; margin:0 auto;
  background:var(--paper); border:1.5px solid var(--amber);
  border-radius:16px; padding:40px;
  display:flex; gap:26px;
}
.reality-card svg{ width:30px; height:30px; stroke:var(--amber); flex-shrink:0; }
.reality-card h3{ color:#9a6414; font-size:1.1rem; margin-bottom:10px; font-family:var(--body); font-weight:700; }
.reality-card p{ color:var(--ink-soft); line-height:1.75; font-size:0.96rem; }
.reality-card strong{ color:var(--ink); }

/* ---------- INSTALL (terminal) ---------- */
.install{ background:var(--paper); padding:110px 6%; }
.terminal{
  max-width:720px; margin:0 auto;
  background:var(--void); border-radius:16px; overflow:hidden;
  box-shadow:0 30px 70px rgba(11,11,16,0.35);
}
.terminal-bar{
  display:flex; gap:8px; padding:16px 20px;
  border-bottom:1px solid var(--void-line);
}
.terminal-bar span{ width:11px; height:11px; border-radius:50%; background:#3a3a46; }
.terminal-body{ padding:32px 30px 38px; font-family:var(--mono); font-size:0.92rem; }
.term-line{ display:flex; gap:14px; margin-bottom:26px; align-items:flex-start; }
.term-line:last-child{ margin-bottom:0; }
.term-prompt{ color:var(--ember); flex-shrink:0; }
.term-done .term-prompt{ color:var(--teal); }
.term-text{ color:rgba(255,255,255,0.85); }
.term-text strong{ color:#fff; }
.term-text a{ color:var(--teal); text-decoration:underline; }
.term-tag{
  display:inline-block; margin-top:6px;
  background:var(--ember-soft); color:var(--ember);
  padding:2px 9px; border-radius:6px; font-size:0.75rem;
}
.term-cursor{ display:inline-block; width:8px; height:15px; background:var(--teal); animation:blink 1s steps(1) infinite; vertical-align:middle; }

/* ---------- CTA ---------- */
.cta{ background:var(--void); color:#fff; text-align:center; padding:130px 6%; }
.cta h2{ font-size:clamp(2.2rem, 5vw, 3.2rem); margin-bottom:20px; }
.cta p{ color:rgba(255,255,255,0.65); font-size:1.1rem; max-width:520px; margin:0 auto 44px; }
.cta-actions{ display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }

/* ---------- FOOTER ---------- */
footer{
  background:var(--void); color:rgba(255,255,255,0.4);
  text-align:center; padding:36px 6% 48px; font-size:0.88rem;
  border-top:1px solid var(--void-line);
}
footer a{ color:var(--teal); text-decoration:none; font-weight:500; }
footer a:hover{ color:#fff; }

/* ---------- RESPONSIVE ---------- */
@media (max-width:900px){
  .interrupt-grid{ grid-template-columns:1fr; }
  .phone-sticky{ position:static; margin-bottom:50px; }
  .interrupt-steps{ gap:60px; padding-top:0; }
  .i-step{ opacity:1; }
  .pipe-track{ grid-template-columns:1fr; gap:36px; }
  .pipe-line{ display:none; }
  .stats-grid{ grid-template-columns:1fr; gap:36px; }
}
@media (max-width:600px){
  .hero{ padding:120px 6% 70px; }
  .hero-actions{ flex-direction:column; }
  .btn{ justify-content:center; }
  .reality-card{ flex-direction:column; }
  .shots-row{ flex-direction:column; align-items:center; }
  .shot, .shot:nth-child(2){ transform:none; width:100%; max-width:320px; }
}

@media (prefers-reduced-motion:reduce){
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}
