/* ============================================================
   Aperture — refined infrastructure aesthetic
   Display:  Geist (heavy weights), Fraunces italic for accents
   Body:     Geist
   Mono:     JetBrains Mono
   ============================================================ */

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

:root {
  --bg:          #05070d;
  --bg-2:        #080b15;
  --panel:       #0b0f1c;
  --panel-2:     #0f1426;
  --line:        #161c2e;
  --line-2:      #232a44;

  --accent:      #d8c690;       /* warm starlight cream */
  --accent-2:    #6ad8c2;       /* cool aurora */
  --accent-3:    #b48dff;       /* purple, used very sparingly */

  --text:        #e9eaf0;
  --text-2:      #b3b9cb;
  --muted:       #7d8497;
  --muted-2:     #525a72;

  --shadow:      0 30px 80px -28px rgba(0, 0, 0, 0.7),
                 0 8px 24px -12px rgba(0, 0, 0, 0.5);

  --radius:      12px;
  --radius-lg:   20px;
  --ease:        cubic-bezier(0.22, 0.61, 0.36, 1);
}

body {
  font-family: 'Geist', system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; cursor: pointer; }

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 32px;
}

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 0.01em; }
.small { font-size: 11.5px; }
.muted { color: var(--muted); }

/* ============================================================
   Stellar background — layered cosmic depth
   ============================================================ */
#stars {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Three nebula clouds at different scales, hues, drift speeds */
.nebula {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px) saturate(120%);
  mix-blend-mode: screen;
  will-change: transform;
}
.nebula-a {
  top: -22%; left: -18%;
  width: 80vw; height: 72vh;
  background: radial-gradient(closest-side,
    rgba(160, 110, 255, 0.32) 0%,
    rgba(118, 90, 220, 0.16) 35%,
    transparent 72%);
  animation: drift-a 52s cubic-bezier(0.4, 0, 0.6, 1) infinite alternate;
}
.nebula-b {
  top: 8%; right: -28%;
  width: 78vw; height: 78vh;
  background: radial-gradient(closest-side,
    rgba(70, 180, 220, 0.18) 0%,
    rgba(60, 140, 200, 0.08) 40%,
    transparent 72%);
  animation: drift-b 68s cubic-bezier(0.4, 0, 0.6, 1) infinite alternate;
}
.nebula-c {
  bottom: -34%; left: 18%;
  width: 78vw; height: 70vh;
  background: radial-gradient(closest-side,
    rgba(255, 168, 130, 0.10) 0%,
    rgba(216, 140, 90, 0.05) 40%,
    transparent 72%);
  animation: drift-c 84s cubic-bezier(0.4, 0, 0.6, 1) infinite alternate;
}
@keyframes drift-a {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  50%  { transform: translate(40px, 50px) scale(1.08) rotate(8deg); }
  100% { transform: translate(80px, 20px) scale(1.04) rotate(-4deg); }
}
@keyframes drift-b {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  50%  { transform: translate(-60px, -30px) scale(1.06) rotate(-6deg); }
  100% { transform: translate(-30px, 40px) scale(1.10) rotate(3deg); }
}
@keyframes drift-c {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, -25px) scale(1.05); }
}

/* Milky-way diagonal luminosity band */
.milky {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  inset: 0;
  background:
    linear-gradient(118deg,
      transparent 28%,
      rgba(220, 215, 240, 0.045) 44%,
      rgba(255, 240, 220, 0.06) 50%,
      rgba(200, 200, 240, 0.045) 56%,
      transparent 72%);
  filter: blur(20px);
  mix-blend-mode: screen;
  opacity: 0.85;
}

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

.vignette {
  position: fixed; inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(140% 90% at 50% 25%, transparent 45%, rgba(0,0,0,0.5) 100%),
    radial-gradient(80% 60% at 50% 100%, rgba(0,0,0,0.35), transparent 60%);
}

main, header, footer { position: relative; z-index: 2; }

/* ============================================================
   Typography
   ============================================================ */
.display, .display-2 {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  letter-spacing: -0.034em;
  line-height: 1.05;
  margin: 0;
  color: var(--text);
}
.display    { font-size: clamp(44px, 6.4vw, 80px); letter-spacing: -0.04em; }
.display-2  { font-size: clamp(30px, 3.8vw, 50px); }

.display em, .display-2 em {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-variation-settings: 'opsz' 96;
  color: var(--accent);
  letter-spacing: -0.02em;
}

h1, h2, h3 { margin: 0 0 14px; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.014em; color: var(--text); }
p  { margin: 0 0 12px; color: var(--text-2); }
.lede { font-size: 17px; line-height: 1.6; color: var(--text-2); max-width: 620px; }
.lede.light { color: rgba(255, 255, 255, 0.78); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-2);
  margin-bottom: 28px;
}

.section-label {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 18px;
}
.section-label.light { color: var(--accent); }

.section-head { max-width: 820px; margin-bottom: 56px; }
.section-head .lede { margin-top: 16px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, #f1e7c2 0%, #d8c690 100%);
  color: #14171f;
  box-shadow: 0 10px 24px -12px rgba(216, 198, 144, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -12px rgba(216, 198, 144, 0.65),
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.10);
  color: var(--text);
  padding: 8px 14px;
  font-size: 13.5px;
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.25); color: #fff; }
.btn-ghost-2 {
  background: transparent;
  border-color: var(--line-2);
  color: var(--text);
}
.btn-ghost-2:hover {
  border-color: var(--accent);
  background: rgba(216, 198, 144, 0.04);
}
.btn-block { width: 100%; padding: 14px 20px; }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky; top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(5, 7, 13, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  color: var(--accent);
}
.brand-name { color: var(--text); }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 400;
  position: relative;
  transition: color .2s;
}
.nav-links a:not(.btn):hover { color: var(--text); }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: 80px 0 100px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  min-height: 72vh;
}
.hero-copy { padding-top: 12px; }
.hero-copy h1 { margin-bottom: 28px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

.trust {
  margin: 56px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: 640px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.trust > div { display: flex; flex-direction: column; gap: 4px; }
.trust dt {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.trust dd {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ----------------- Phone preview ----------------- */
.phone-stage {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  perspective: 1200px;
}
.phone {
  position: relative;
  width: 320px;
  aspect-ratio: 9 / 19.5;
  background: linear-gradient(160deg, #1d2438 0%, #0c1020 100%);
  border-radius: 44px;
  padding: 8px;
  border: 1px solid #232a44;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 50px 100px -40px rgba(0, 0, 0, 0.9),
    0 0 80px -30px rgba(180, 141, 255, 0.35);
  transition: transform .6s var(--ease);
}
.phone:hover { transform: translateY(-4px); }

.phone-punch {
  position: absolute;
  top: 22px; left: 50%;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #02040a;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transform: translateX(-50%);
  z-index: 3;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.4);
}

.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  background: #04060c;
  border-radius: 36px;
  overflow: hidden;
  display: flex; flex-direction: column;
}

/* Android status bar */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 22px 8px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0;
}
.status-time { font-variant-numeric: tabular-nums; }
.status-right {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
}
.status-pct { font-variant-numeric: tabular-nums; font-size: 11px; }
.bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 9px;
}
.bars i {
  display: block;
  width: 2px;
  background: currentColor;
  border-radius: 1px;
}
.bars i:nth-child(1) { height: 3px; }
.bars i:nth-child(2) { height: 5px; }
.bars i:nth-child(3) { height: 7px; }
.bars i:nth-child(4) { height: 9px; opacity: 0.5; }
.battery {
  position: relative;
  width: 18px; height: 9px;
  border: 1px solid currentColor;
  border-radius: 2px;
  display: inline-block;
}
.battery::after {
  content: '';
  position: absolute;
  right: -2.5px; top: 2.5px;
  width: 1.5px; height: 4px;
  background: currentColor;
  border-radius: 0 1px 1px 0;
}
.battery-fill {
  position: absolute;
  inset: 1.2px;
  width: 70%;
  background: currentColor;
  border-radius: 1px;
}

/* App header inside phone */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--line);
}
.app-header-left {
  display: flex; align-items: center; gap: 10px;
}
.app-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(216, 198, 144, 0.08);
  border: 1px solid rgba(216, 198, 144, 0.25);
  color: var(--accent);
}
.app-header-text { display: flex; flex-direction: column; gap: 1px; }
.app-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  font-family: 'Geist', sans-serif;
}
.app-sub {
  color: var(--muted);
  font-size: 10.5px;
  display: inline-flex; align-items: center;
}
.app-sub .dot { width: 5px; height: 5px; margin-right: 5px; }
.app-pill {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(106, 216, 194, 0.08);
  color: var(--accent-2);
  border: 1px solid rgba(106, 216, 194, 0.25);
  font-size: 9.5px;
  letter-spacing: 0.12em;
}

/* Cards inside the phone */
.phone-card {
  margin: 10px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: flex; flex-direction: column;
}
.phone-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.phone-card-tag {
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--text);
  font-weight: 500;
}
.phone-card-meta {
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px;
}

.phone-foot {
  margin: auto 14px 4px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  color: var(--muted);
  font-size: 10.5px;
}
.phone-foot .dot { width: 6px; height: 6px; }

/* Android nav pill at bottom */
.phone-nav {
  display: flex; justify-content: center;
  padding: 6px 0 12px;
}
.nav-pill {
  width: 100px; height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

/* Hide additional sensor rows that don't fit on the phone */
.tel-hidden { display: none; }

.cam {
  position: relative;
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 40%, #1a2440, #0a1326 70%),
    linear-gradient(180deg, #0e1a36, #050a18);
  border: 1px solid var(--line);
  height: 150px;
}
.cam-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(106, 216, 194, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(106, 216, 194, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  animation: gridscan 12s linear infinite;
}
@keyframes gridscan { to { transform: translate(28px, 28px); } }

.cam-reticle {
  position: absolute; left: 50%; top: 50%;
  width: 60px; height: 60px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.reticle-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(216, 198, 144, 0.45);
  animation: reticle 5s ease-in-out infinite;
}
@keyframes reticle {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50%      { transform: scale(1.04); opacity: 0.85; }
}
.reticle-cross {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(216, 198, 144, 0.4) 1px, transparent 1px) center / 100% 1px no-repeat,
    linear-gradient(90deg, rgba(216, 198, 144, 0.4) 1px, transparent 1px) center / 1px 100% no-repeat;
}
.cam-scan {
  position: absolute; left: 0; right: 0; top: 0;
  height: 50%;
  background: linear-gradient(180deg, transparent 0%, rgba(106, 216, 194, 0.10) 80%, rgba(106, 216, 194, 0.32) 100%);
  animation: scanline 6s ease-in-out infinite;
}
@keyframes scanline {
  0%   { transform: translateY(-50%); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: translateY(180%); opacity: 0; }
}
.cam-tags {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  display: flex; justify-content: space-between;
  color: rgba(216, 198, 144, 0.78);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.06em;
}
.rec {
  width: 6px; height: 6px; border-radius: 50%;
  background: #e8718a;
  box-shadow: 0 0 8px rgba(232, 113, 138, 0.6);
  animation: blink 1.6s ease-in-out infinite;
  display: inline-block;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

.tel-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.tel-list li {
  display: flex; align-items: center; justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  gap: 10px;
}
.tel-key {
  color: var(--accent-2);
  letter-spacing: 0.1em;
  font-weight: 500;
  font-size: 9.5px;
}
.tel-list code { color: var(--text); font-size: 10px; }

.dot {
  display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--muted-2);
  margin-right: 6px;
}
.dot-ok { background: var(--accent-2); box-shadow: 0 0 6px rgba(106, 216, 194, 0.6); }

/* ============================================================
   Section: Problem
   ============================================================ */
.problem { padding: 100px 0; }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.problem-card {
  background: linear-gradient(180deg, rgba(15, 20, 38, 0.6), rgba(8, 11, 21, 0.6));
  padding: 38px 30px;
  position: relative;
}
.problem-card .num {
  position: absolute;
  top: 22px; right: 26px;
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.16em;
}
.problem-card h3 {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.02em;
  margin: 8px 0 12px;
  color: var(--text);
}
.problem-card p { color: var(--text-2); font-size: 15px; margin: 0; }

/* ============================================================
   Section: Features
   ============================================================ */
.features { padding: 100px 0; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.feature {
  grid-column: span 2;
  background: linear-gradient(180deg, rgba(15, 20, 38, 0.65), rgba(8, 11, 21, 0.65));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.feature:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
}
.feature-hero { grid-column: span 3; padding: 32px; }

.feature-glyph {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(216, 198, 144, 0.05);
  border: 1px solid rgba(216, 198, 144, 0.18);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-glyph.small { width: 36px; height: 36px; margin-bottom: 14px; }

.feature h3 {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.feature-hero h3 { font-size: 22px; }
.feature p { font-size: 14.5px; color: var(--text-2); }
.feature-hero p { font-size: 15.5px; }

.bullets { list-style: none; padding: 0; margin: 16px 0 0; }
.bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
  color: var(--text-2);
  margin: 8px 0;
}
.bullets li::before {
  content: '';
  position: absolute;
  left: 4px; top: 9px;
  width: 8px; height: 1px;
  background: var(--accent-2);
}

/* ============================================================
   Section: How it works (animated pipeline)
   ============================================================ */
.how { padding: 100px 0; }
.pipeline {
  display: grid;
  grid-template-columns: 1fr 60px 1fr 60px 1fr;
  gap: 0;
  align-items: stretch;
}
.pipeline-stage {
  background: linear-gradient(180deg, rgba(15, 20, 38, 0.65), rgba(8, 11, 21, 0.65));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex; flex-direction: column;
  min-width: 0;
}
.pipeline-stage > header { margin-bottom: 18px; }
.pipeline-num {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent-2);
  margin-bottom: 14px;
  display: inline-block;
}
.pipeline-stage h3 {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.pipeline-stage p { font-size: 14px; color: var(--text-2); margin: 0; }

/* Connector with animated signal */
.connector {
  display: flex; align-items: center; justify-content: center;
  position: relative;
  color: var(--line-2);
  align-self: center;
  height: 24px;
}
.connector svg { width: 100%; height: 24px; display: block; }
.connector .signal {
  position: absolute;
  top: 50%;
  left: -6px;
  width: 12px; height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent), 0 0 32px rgba(216, 198, 144, 0.4);
  opacity: 0;
}
.connector .signal.go {
  animation: signal-flow 0.45s cubic-bezier(0.45, 0, 0.55, 1) forwards;
}
@keyframes signal-flow {
  0%   { left: -6px; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: calc(100% - 6px); opacity: 0; }
}

/* Window (used for YAML, terminal, farm) */
.window {
  background: #04060c;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex; flex-direction: column;
  flex: 1;
  min-height: 280px;
}
.window-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.025), transparent);
}
.win-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #2a3045;
}
.win-dot-r { background: #e8718a; }
.win-dot-y { background: #e8b46f; }
.win-dot-g { background: #6ad8c2; }
.win-title {
  margin-left: 8px;
  font-size: 11px;
  color: var(--muted);
}
.window-body {
  flex: 1;
  padding: 14px 16px;
  overflow: auto;
}
.typer {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.7;
  color: #b9c0d2;
  white-space: pre-wrap;
  word-break: break-word;
}
.typer code { display: block; white-space: pre-wrap; }
.typer .line {
  display: block;
  opacity: 0;
  transform: translateY(3px);
  animation: lineIn 320ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
@keyframes lineIn {
  to { opacity: 1; transform: translateY(0); }
}

/* YAML syntax */
.y-key  { color: var(--accent-3); }
.y-val  { color: var(--accent); }
.y-punc { color: #b9c0d2; }

/* Terminal syntax */
.t-prompt  { color: var(--muted-2); }
.t-cmd     { color: #e9eaf0; }
.t-ok      { color: var(--accent-2); }
.t-out     { color: #b9c0d2; }
.t-comment { color: var(--accent-3); opacity: 0.85; font-style: italic; }

/* Stage stack — multiple visuals inside one stage */
.stage-stack {
  display: flex; flex-direction: column;
  gap: 12px;
  flex: 1;
}
.stage-stack > .window { min-height: 0; }

/* File card — APK input/output */
.file-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.005));
  border: 1px solid var(--line-2);
  border-radius: 10px;
  position: relative;
}
.file-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 8px;
  background: rgba(106, 216, 194, 0.06);
  border: 1px solid rgba(106, 216, 194, 0.22);
  color: #a4d9af;
  display: inline-flex; align-items: center; justify-content: center;
}
.file-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.file-name { color: var(--text); font-size: 13px; }
.file-info { color: var(--muted); }

/* Output APK — revealed on stage 3 */
.file-ready {
  opacity: 0.35;
  filter: grayscale(0.4);
  transition: opacity .6s var(--ease), filter .6s var(--ease), border-color .6s var(--ease), box-shadow .6s var(--ease), transform .6s var(--ease);
  transform: translateY(6px);
}
.file-ready.arrived {
  opacity: 1;
  filter: none;
  transform: translateY(0);
  border-color: rgba(216, 198, 144, 0.45);
  box-shadow: 0 0 0 1px rgba(216, 198, 144, 0.15), 0 12px 40px -16px rgba(216, 198, 144, 0.4);
}
.file-icon-ready {
  background: rgba(216, 198, 144, 0.10);
  border-color: rgba(216, 198, 144, 0.4);
  color: var(--accent);
}
.file-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(216, 198, 144, 0.12);
  border: 1px solid rgba(216, 198, 144, 0.4);
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .5s var(--ease) .2s;
}
.file-ready.arrived .file-badge { opacity: 1; }

/* Small device strip below output APK */
.device-strip {
  background: #04060c;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}
.device-strip-head {
  display: flex; align-items: center; justify-content: space-between;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.device-grid-sm {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  align-content: center;
}
.device-grid-sm .mini-device { max-height: 48px; }

/* Audience note below pipeline */
.audience-note {
  margin: 36px auto 0;
  max-width: 760px;
  text-align: center;
  font-size: 14.5px;
  color: var(--text-2);
  padding: 14px 18px;
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.015);
}
.audience-note strong { color: var(--text); font-weight: 600; }

/* Stage 3 — device farm */
.window-body-farm {
  display: flex; flex-direction: column;
  padding: 16px;
}
.device-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 12px;
  flex: 1;
  align-content: center;
  padding: 8px 0 14px;
}
.mini-device {
  position: relative;
  aspect-ratio: 9 / 16;
  max-height: 64px;
  border-radius: 4px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #0a0e1c, #060912);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.mini-screen {
  width: 76%; height: 78%;
  border-radius: 1.5px;
  background: #0a0f1e;
  transition: background .25s var(--ease), box-shadow .25s var(--ease);
}
.mini-device.on {
  border-color: var(--accent-2);
  box-shadow: 0 0 12px rgba(106, 216, 194, 0.35);
}
.mini-device.on .mini-screen {
  background: linear-gradient(180deg, rgba(106, 216, 194, 0.5), rgba(106, 216, 194, 0.15));
  box-shadow: inset 0 0 6px rgba(106, 216, 194, 0.6);
}
.mini-device.pulse {
  animation: device-pulse 0.4s ease-in-out;
}
@keyframes device-pulse {
  50% { transform: scale(1.06); box-shadow: 0 0 18px rgba(106, 216, 194, 0.7); }
}
.farm-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
}

/* ============================================================
   Section: Use cases
   ============================================================ */
.use-cases { padding: 100px 0; }
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.case {
  background: linear-gradient(180deg, rgba(15, 20, 38, 0.65), rgba(8, 11, 21, 0.65));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.case:hover { transform: translateY(-2px); border-color: var(--line-2); }
.case h3 {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.case p { font-size: 14.5px; color: var(--text-2); margin: 0; }

/* ============================================================
   Section: Integrations
   ============================================================ */
.stack { padding: 100px 0; }
.stack-inner {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 80px;
  align-items: center;
}
.stack-copy h2 { margin-bottom: 18px; }
.stack-copy .lede { margin-bottom: 28px; }

.constellation {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex; align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-2);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.005em;
  transition: all .2s var(--ease);
}
.chip:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(216, 198, 144, 0.04);
}
.chip-strong {
  background: rgba(106, 216, 194, 0.06);
  border-color: rgba(106, 216, 194, 0.28);
  color: var(--text);
}
.chip-strong:hover {
  border-color: var(--accent-2);
  background: rgba(106, 216, 194, 0.10);
}
.chip-soon {
  color: var(--muted);
  border-style: dashed;
}

/* ============================================================
   Section: Security
   ============================================================ */
.security { padding: 100px 0; }
.sec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.sec-card {
  background: linear-gradient(180deg, rgba(15, 20, 38, 0.65), rgba(8, 11, 21, 0.65));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.sec-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(106, 216, 194, 0.06);
  border: 1px solid rgba(106, 216, 194, 0.2);
  color: var(--accent-2);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.sec-card h3 {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.sec-card p { font-size: 14.5px; color: var(--text-2); margin: 0; }

/* ============================================================
   CTA
   ============================================================ */
.cta { padding: 60px 0 130px; }
.cta-card {
  position: relative;
  border-radius: 24px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  background:
    radial-gradient(80% 100% at 0% 0%, rgba(180, 141, 255, 0.18), transparent 55%),
    radial-gradient(80% 100% at 100% 100%, rgba(106, 216, 194, 0.14), transparent 55%),
    linear-gradient(180deg, #0c1124 0%, #060a18 100%);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.cta-copy { position: relative; z-index: 1; }
.cta-copy h2 { margin-bottom: 18px; }
.display-2.light { color: #fff; }
.display-2.light em { color: var(--accent); }

.cta-bullets {
  list-style: none; padding: 0; margin: 22px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}
.cta-bullets li {
  margin: 8px 0;
  padding-left: 20px;
  position: relative;
}
.cta-bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 10px; height: 1px;
  background: var(--accent);
}

.contact-form {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 14px;
  background: rgba(5, 7, 13, 0.6);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 26px;
  backdrop-filter: blur(12px);
}
.contact-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12px; font-weight: 500;
  color: var(--text-2);
}
.contact-form label > span { padding-left: 2px; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  background: #04060c;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: 'Geist', sans-serif;
  font-size: 14.5px;
  transition: border-color .15s, box-shadow .15s;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(216, 198, 144, 0.10);
}
.contact-form textarea { resize: vertical; }
.form-note {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--accent-2);
  min-height: 18px;
}

/* Honeypot — hidden but reachable to bots that scrape forms */
.hp-field {
  position: absolute !important;
  left: -10000px;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.brand-sm { font-size: 17px; }
.footer-tag {
  font-size: 14px;
  color: var(--muted);
  margin: 12px 0 0;
  max-width: 320px;
  line-height: 1.5;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-cols > div { display: flex; flex-direction: column; gap: 10px; }
.footer-h {
  color: var(--muted-2);
  letter-spacing: 0.14em;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.footer-cols a { color: var(--text-2); font-size: 14px; }
.footer-cols a:hover { color: var(--text); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 22px;
  color: var(--muted-2);
  letter-spacing: 0.06em;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1180px) {
  .pipeline {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .connector {
    width: 100%;
    height: 40px;
    transform: rotate(90deg);
    align-self: center;
  }
  .connector svg { width: 80px; }
  .connector .signal { left: -6px; }
  @keyframes signal-flow {
    0%   { left: -6px; opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { left: calc(80px - 6px); opacity: 0; }
  }
}
@media (max-width: 1080px) {
  .feature-hero { grid-column: span 6; }
  .feature { grid-column: span 3; }
}
@media (max-width: 900px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 50px 0 70px; }
  .hero-inner { grid-template-columns: 1fr; gap: 50px; min-height: auto; }
  .display { font-size: clamp(38px, 8vw, 56px); }
  .display-2 { font-size: clamp(26px, 5vw, 38px); }
  .trust { grid-template-columns: 1fr 1fr; }
  .problem-grid, .feature-grid, .case-grid, .sec-grid { grid-template-columns: 1fr; }
  .feature, .feature-hero { grid-column: span 1; }
  .stack-inner { grid-template-columns: 1fr; gap: 36px; }
  .cta-card { grid-template-columns: 1fr; padding: 36px 26px; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 540px) {
  .container { padding: 0 20px; }
  .phone { width: 280px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
