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

:root {
  --bg: #09090B;
  --surface: #111114;
  --surface-2: #1a1a1f;
  --border: #27272a;
  --text: #fafafa;
  --text-muted: #71717a;
  --text-dim: #52525b;
  --accent: #a78bfa;
  --accent-dim: #7c3aed;
  --green: #4ade80;
  --yellow: #fbbf24;
  --red: #f87171;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grid Background */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Navigation */
.nav {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.5px;
}
.nav-tagline {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Hero */
.hero {
  position: relative;
  z-index: 10;
  padding: 80px 32px 100px;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(167,139,250,0.1);
  border: 1px solid rgba(167,139,250,0.2);
  border-radius: 100px;
  padding: 5px 12px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--accent);
  margin-bottom: 28px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-heading {
  font-family: var(--font-mono);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  max-width: 480px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.terminal-bar {
  background: var(--surface-2);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28ca41; }
.terminal-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 8px;
}
.terminal-body {
  padding: 16px 18px;
}
.t-line {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
}
.t-cmd { color: var(--text); }
.t-ok { color: var(--green); }
.t-cursor-line { margin-top: 4px; }
.t-cursor {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Device illustrations */
.hero-devices {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  grid-template-rows: auto auto;
  gap: 12px;
  align-items: end;
}
.device {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  padding: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.device-phone {
  grid-row: 1;
  grid-column: 1;
  max-width: 140px;
}
.device-laptop {
  grid-row: 1;
  grid-column: 2;
}
.device-terminal {
  grid-row: 2;
  grid-column: 1 / 3;
}
.device-screen {
  background: #000;
  border-radius: 8px;
  padding: 10px;
  min-height: 100px;
}
.screen-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.session-card {
  background: var(--surface-2);
  border-radius: 6px;
  padding: 8px 10px;
}
.sc-name {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 4px;
}
.sc-status {
  font-size: 11px;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 2px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.status-dot.pulse { animation: pulse 2s ease-in-out infinite; }
.sc-agents {
  font-size: 10px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.session-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sl-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  background: var(--surface-2);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
}
.sl-item.active { border: 1px solid rgba(167,139,250,0.3); }
.sl-name { color: var(--text); }
.sl-badge {
  background: rgba(74,222,128,0.1);
  color: var(--green);
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.sl-badge.paused {
  background: rgba(251,191,36,0.1);
  color: var(--yellow);
}
.term-lines {
  font-family: var(--font-mono);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tl { color: #e4e4e7; }
.tl.muted { color: var(--text-dim); }

/* How It Works */
.how-it-works {
  position: relative;
  z-index: 10;
  padding: 80px 32px;
  border-top: 1px solid var(--border);
}
.hiw-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.hiw-header {
  max-width: 600px;
  margin-bottom: 60px;
}
.section-title {
  font-family: var(--font-mono);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-sub {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}
.hiw-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.step-body h3 {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.step-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Features */
.features {
  position: relative;
  z-index: 10;
  padding: 80px 32px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: var(--accent-dim); }
.fc-icon {
  color: var(--accent);
  margin-bottom: 14px;
  display: flex;
}
.feature-card h3 {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Security Promise */
.security-promise {
  position: relative;
  z-index: 10;
  padding: 100px 32px;
}
.sp-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.sp-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.sp-heading {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -1.5px;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 24px;
}
.sp-body {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 620px;
  margin: 0 auto 40px;
}
.sp-proof {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 560px;
  margin: 0 auto;
}
.proof-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}
.proof-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(167,139,250,0.1);
  border: 1px solid rgba(167,139,250,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

/* Closing */
.closing {
  position: relative;
  z-index: 10;
  padding: 100px 32px;
  text-align: center;
  overflow: hidden;
}
.closing-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(167,139,250,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.closing-inner { position: relative; z-index: 1; }
.closing-heading {
  font-family: var(--font-mono);
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -1.5px;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 20px;
}
.closing-body {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto 40px;
}
.closing-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}
.closing-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.stat-num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
}
.closing-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Footer */
.footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border);
  padding: 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-logo {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}
.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
}
.footer-right {
  display: flex;
  gap: 20px;
}
.footer-link {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--text); }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-devices {
    grid-template-columns: 1fr 1fr;
  }
  .hiw-steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .hero { padding: 60px 20px 80px; }
  .how-it-works { padding: 60px 20px; }
  .features { padding: 60px 20px; }
  .security-promise { padding: 60px 20px; }
  .closing { padding: 60px 20px; }
  .footer { padding: 24px 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-devices {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .hero-terminal { max-width: 100%; }
  .closing-meta { gap: 16px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-right { flex-wrap: wrap; }
}