/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0c0c0e;
  --surface:   #111116;
  --border:    #1e1e28;
  --blue:       #00A8FF;
  --teal:       #00E5C3;
  --green:      #3DFF9A;
  --amber:      #FFB800;
  --red:        #FF4D6A;
  --text:       #e8e8ed;
  --text-dim:   #6e6e82;
  --font-head:  'JetBrains Mono', monospace;
  --font-body:  'IBM Plex Mono', monospace;
}

html { font-size: 16px; }

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

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(12,12,14,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.logo-prompt {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--blue);
}
.logo-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--teal);
  font-family: var(--font-head);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  padding-top: 56px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,168,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,168,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero-bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 60% 50%, transparent 40%, var(--bg) 80%);
}
.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}
.hero-text {
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 12px;
  margin-bottom: 28px;
  background: var(--surface);
}
.badge-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}
.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 460px;
}

/* ===== TERMINAL ===== */
.hero-terminal {
  position: relative;
  z-index: 1;
}
.terminal-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,168,255,0.08),
    0 32px 64px rgba(0,0,0,0.5),
    0 0 80px rgba(0,168,255,0.06);
}
.terminal-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #0a0a0e;
  border-bottom: 1px solid var(--border);
}
.terminal-dots {
  display: flex;
  gap: 6px;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.dot-red    { background: #FF5F57; }
.dot-yellow { background: #FFBD2E; }
.dot-green  { background: #28CA41; }
.terminal-title {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--font-head);
  flex: 1;
  text-align: center;
}
.terminal-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 280px;
}
.terminal-line {
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-dim);
}
.line-prompt {
  color: var(--blue);
  font-weight: 600;
  margin-right: 8px;
}
.line-cmd {
  color: var(--text);
}
.line-info    { color: var(--text-dim); padding-left: 4px; }
.line-success { color: var(--green); padding-left: 4px; }
.line-warning { color: var(--amber); padding-left: 4px; }
.line-icon {
  margin-right: 6px;
  font-weight: 700;
}
.blink { animation: blink-cursor 1.2s step-end infinite; }
@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ===== STATS ===== */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.stat {
  text-align: center;
  flex: 1;
}
.stat-value {
  display: block;
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-head);
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ===== SECTION SHARED ===== */
.section-label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* ===== FEATURES ===== */
.features {
  max-width: 1100px;
  margin: 0 auto;
  padding: 96px 24px;
}
.features-header {
  margin-bottom: 56px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.feature-card {
  background: var(--surface);
  padding: 36px 32px;
  transition: background 0.2s;
}
.feature-card:hover { background: #13131a; }
.feature-wide {
  grid-column: span 2;
}
.feature-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: rgba(0,168,255,0.08);
  border: 1px solid rgba(0,168,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 20px;
}
.feature-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.feature-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ===== HOW IT WORKS ===== */
.howitworks {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 96px 24px;
}
.howitworks-header {
  max-width: 1100px;
  margin: 0 auto 56px;
}
.steps {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.step {
  flex: 1;
  padding: 0 24px;
}
.step-num {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.step-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.step-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.65;
}
.step-connector {
  width: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-top: 32px;
}
.step-connector::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--blue), var(--teal));
  opacity: 0.3;
}

/* ===== MANIFESTO ===== */
.manifesto {
  padding: 96px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.manifesto-inner {
  max-width: 700px;
}
.manifesto-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.line-accent {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--teal);
}
.manifesto-text {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 24px;
  border: none;
  padding: 0;
}
.manifesto-sub {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.75;
}

/* ===== CLOSING ===== */
.closing {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 96px 24px;
}
.closing-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.closing-headline {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.closing-sub {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 40px;
}
.closing-cta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.cta-label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 4px;
  display: block;
}
.footer-tagline {
  font-size: 0.75rem;
  color: var(--text-dim);
}
.footer-copy {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--font-head);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 24px;
  }
  .hero-terminal { order: -1; }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .feature-wide { grid-column: span 1; }
  .steps {
    flex-direction: column;
    gap: 32px;
  }
  .step-connector { display: none; }
  .stats-inner {
    flex-direction: column;
    gap: 20px;
  }
  .stat-divider { width: 48px; height: 1px; }
}
@media (max-width: 480px) {
  .hero-headline { font-size: 1.8rem; }
  .terminal-body { padding: 16px; }
  .features { padding: 64px 16px; }
  .feature-card { padding: 24px 20px; }
}