@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Mono:wght@400;500&display=swap');

:root {
  --bg: #0a0c10;
  --bg-elevated: #12151c;
  --bg-card: #181c26;
  --fg: #e8eaf0;
  --fg-muted: #8b91a3;
  --accent: #3dffa3;
  --accent-dim: rgba(61, 255, 163, 0.12);
  --danger: #ff5c5c;
  --danger-dim: rgba(255, 92, 92, 0.12);
  --border: rgba(255, 255, 255, 0.06);
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

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

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

/* HERO */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(61, 255, 163, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  background: var(--accent-dim);
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  border: 1px solid rgba(61, 255, 163, 0.2);
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  max-width: 800px;
}

.hero h1 .highlight {
  color: var(--accent);
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

/* STAT BAR */
.stat-bar {
  display: flex;
  gap: 1px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
  max-width: 700px;
}

.stat-item {
  flex: 1;
  background: var(--bg-elevated);
  padding: 1.5rem 1.2rem;
  text-align: center;
}

.stat-item:first-child { border-radius: 12px 0 0 12px; }
.stat-item:last-child { border-radius: 0 12px 12px 0; }

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--danger);
  display: block;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--fg-muted);
  margin-top: 0.3rem;
  display: block;
  letter-spacing: 0.02em;
}

/* PROBLEM SECTION */
.problem {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

.problem h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  max-width: 700px;
}

.problem h2 .danger {
  color: var(--danger);
}

.audit-demo {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  overflow: hidden;
}

.audit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.audit-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--fg-muted);
}

.audit-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  background: var(--danger-dim);
  color: var(--danger);
  border: 1px solid rgba(255, 92, 92, 0.25);
}

.audit-rows {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.audit-row {
  display: grid;
  grid-template-columns: 80px 1fr 120px;
  align-items: center;
  background: var(--bg-card);
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
}

.audit-row:first-child { border-radius: 8px 8px 0 0; }
.audit-row:last-child { border-radius: 0 0 8px 8px; }

.audit-row.header {
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.6rem 1.2rem;
}

.size-label {
  font-family: var(--font-mono);
  font-weight: 500;
}

.drift-bar-container {
  height: 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 1rem;
}

.drift-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}

.drift-bar.low { background: var(--accent); }
.drift-bar.med { background: #ffb84d; }
.drift-bar.high { background: var(--danger); }

.drift-value {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-align: right;
}

.drift-value.pass { color: var(--accent); }
.drift-value.warn { color: #ffb84d; }
.drift-value.fail { color: var(--danger); }

/* FEATURES */
.features {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.features h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  max-width: 600px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.feature-card {
  background: var(--bg-elevated);
  padding: 2.5rem 2rem;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
}

.feature-icon.green { background: var(--accent-dim); color: var(--accent); }
.feature-icon.red { background: var(--danger-dim); color: var(--danger); }
.feature-icon.amber { background: rgba(255, 184, 77, 0.12); color: #ffb84d; }
.feature-icon.blue { background: rgba(100, 160, 255, 0.12); color: #64a0ff; }

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* CLOSING */
.closing {
  padding: 8rem 2rem 6rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.closing h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.closing p {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* FOOTER */
footer {
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}

.footer-brand span {
  color: var(--fg);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .stat-bar { flex-direction: column; }
  .stat-item { border-radius: 0 !important; }
  .stat-item:first-child { border-radius: 12px 12px 0 0 !important; }
  .stat-item:last-child { border-radius: 0 0 12px 12px !important; }
  .feature-grid { grid-template-columns: 1fr; }
  .audit-row { grid-template-columns: 60px 1fr 80px; padding: 0.8rem; font-size: 0.8rem; }
  .hero { padding: 4rem 1.5rem 3rem; min-height: 80vh; }
  .problem, .features, .closing { padding: 4rem 1.5rem; }
}
