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

:root {
  --bg:        #09090b;
  --surface:   #111114;
  --surface2:  #1a1a1f;
  --border:    #222228;
  --accent:    #b8f53d;
  --accent-dim:#8bc42a;
  --text:      #f0f0f0;
  --text-dim:  #7a7a8a;
  --text-mid:  #b0b0bc;
  --red:       #ff5f57;
  --yellow:    #febc2e;
  --green:     #28c840;

  --font-head: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius:    6px;
  --radius-lg: 12px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ========================
   NAV
   ======================== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 8px; }
.logo-mark { font-size: 20px; color: var(--accent); }
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.nav-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ========================
   HERO
   ======================== */
.hero {
  min-height: calc(100vh - 61px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 48px;
  position: relative;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(184, 245, 61, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 245, 61, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
}
.headline-accent { color: var(--accent); }
.hero-sub {
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  gap: 0;
  align-items: stretch;
}
.stat { padding: 0 28px 0 0; }
.stat:first-child { padding-left: 0; }
.stat-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}
.stat-label {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.4;
}
.stat-divider {
  width: 1px;
  background: var(--border);
  margin: 0 28px 0 0;
  align-self: stretch;
}

/* ========================
   TERMINAL
   ======================== */
.hero-terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 80px rgba(184, 245, 61, 0.06), 0 32px 64px rgba(0,0,0,0.4);
}
.terminal-header {
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.terminal-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.terminal-dot.red    { background: var(--red); }
.terminal-dot.yellow { background: var(--yellow); }
.terminal-dot.green  { background: var(--green); }
.terminal-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-left: 8px;
  letter-spacing: 0.04em;
}
.terminal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 420px;
  overflow-y: auto;
}
.tlog {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid transparent;
}
.tlog-ok { background: rgba(40, 200, 64, 0.08); border-color: rgba(40, 200, 64, 0.15); color: var(--text-mid); }
.tlog-alert { background: rgba(254, 188, 46, 0.08); border-color: rgba(254, 188, 46, 0.2); color: var(--text-mid); }
.tlog-info { background: rgba(184, 245, 61, 0.05); border-color: rgba(184, 245, 61, 0.1); color: var(--text-mid); }
.tlog-time { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); flex-shrink: 0; width: 36px; }
.tlog-icon { font-size: 14px; flex-shrink: 0; }
.tlog-ok .tlog-icon { color: var(--green); }
.tlog-alert .tlog-icon { color: var(--yellow); }
.tlog-info .tlog-icon { color: var(--accent); }
.tlog strong { color: var(--text); }
.tlog-mono { font-family: var(--font-mono); color: var(--accent); font-size: 13px; }

/* ========================
   MANIFESTO
   ======================== */
.manifesto {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 96px 48px;
}
.manifesto-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.manifesto-headline {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  color: var(--text);
}
.manifesto-body {
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ========================
   FEATURES
   ======================== */
.features {
  padding: 96px 48px;
}
.features-header {
  max-width: 600px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature-card {
  background: var(--bg);
  padding: 40px 36px;
  transition: background 0.2s;
}
.feature-card:hover { background: var(--surface); }
.feature-icon {
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 20px;
}
.feature-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.feature-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ========================
   SPEND WATCH
   ======================== */
.spend-watch {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 96px 48px;
}
.sw-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
}
.sw-title {
  font-family: var(--font-head);
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}
.sw-desc {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.65;
}
.sw-metrics {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.sw-metric-label {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 8px;
  margin-bottom: 6px;
}
.sw-metric-val {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}
.sw-metric-bar {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.sw-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 1s ease;
}
.sw-bar-accent { background: var(--text-mid); }

/* ========================
   CLOSING
   ======================== */
.closing {
  padding: 120px 48px;
  text-align: center;
}
.closing-inner { max-width: 700px; margin: 0 auto; }
.closing-statement {
  font-family: var(--font-head);
  font-size: clamp(22px, 2.8vw, 38px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text);
}
.closing-sub {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ========================
   FOOTER
   ======================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.footer-logo { display: flex; align-items: center; gap: 8px; }
.footer-tagline { font-size: 14px; color: var(--text-mid); }
.footer-legal { font-size: 12px; color: var(--text-dim); }

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding: 60px 32px; gap: 48px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .sw-inner { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 768px) {
  .nav { padding: 16px 24px; }
  .hero { padding: 48px 24px; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .stat-divider { display: none; }
  .features { padding: 64px 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .manifesto { padding: 64px 24px; }
  .spend-watch { padding: 64px 24px; }
  .closing { padding: 80px 24px; }
  .footer { padding: 40px 24px; }
  .sw-metric-val { font-size: 16px; }
}
@media (max-width: 480px) {
  .hero-headline { font-size: 36px; }
  .terminal-body { font-size: 12px; }
}