/* ── Variables ── */
:root {
  --bg: #0A0A0F;
  --bg-surface: #111118;
  --bg-elevated: #1A1A24;
  --fg: #F5F0E8;
  --fg-muted: #A8A29E;
  --accent: #F5A623;
  --accent-dim: rgba(245, 166, 35, 0.15);
  --green: #4ADE80;
  --amber: #F5A623;
  --text-primary: #F5F0E8;
  --text-secondary: #A8A29E;
  --border: rgba(245, 166, 35, 0.12);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Instrument Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10,10,15,0.7);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--fg);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 2rem 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245,166,35,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245,166,35,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.hero-left { display: flex; flex-direction: column; gap: 1.5rem; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-dim);
  border: 1px solid rgba(245,166,35,0.25);
  border-radius: 100px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  width: fit-content;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--fg);
}
.hero-sub {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 480px;
}
.hero-code-hint {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.code-sample {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(245,166,35,0.2);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  width: fit-content;
}
.code-output {
  font-size: 0.8rem;
  color: var(--green);
}

/* ── Code Health Viz ── */
.hero-right { position: relative; }
.code-health-viz {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 0 80px rgba(245,166,35,0.06);
}
.viz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.viz-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.viz-score {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
}
.viz-score.good { color: var(--green); }
.viz-score.warn { color: var(--amber); }
.viz-bars { display: flex; flex-direction: column; gap: 0.75rem; }
.viz-bar-row {
  display: grid;
  grid-template-columns: 100px 1fr 60px;
  align-items: center;
  gap: 0.75rem;
}
.viz-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 500;
}
.viz-bar-track {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  overflow: hidden;
}
.viz-bar {
  height: 100%;
  border-radius: 100px;
  transition: width 1s ease;
}
.fill-green { background: var(--green); }
.fill-amber { background: var(--amber); }
.viz-val {
  font-size: 0.75rem;
  font-weight: 600;
  text-align: right;
}
.viz-val.warn { color: var(--amber); }
.viz-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.viz-badge-pass {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--green);
  font-weight: 500;
}
.viz-time {
  font-size: 0.7rem;
  color: var(--fg-muted);
}

/* ── Stats ── */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 2rem;
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.stat-item { text-align: center; }
.stat-number {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-desc {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.5;
}
.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
}

/* ── Section Labels ── */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-heading {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-bottom: 1rem;
}

/* ── Features ── */
.features { padding: 6rem 2rem; }
.features-inner { max-width: 1200px; margin: 0 auto; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: border-color 0.3s, transform 0.3s;
}
.feature-card:hover {
  border-color: rgba(245,166,35,0.3);
  transform: translateY(-4px);
}
.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.feature-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.6rem;
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ── How ── */
.how { padding: 6rem 2rem; background: var(--bg-surface); }
.how-inner { max-width: 1200px; margin: 0 auto; }
.steps {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 3rem;
}
.step {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
}
.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 1rem;
}
.step-body h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.6rem;
}
.step-body p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.65;
}
.step-arrow {
  display: flex;
  align-items: center;
  padding-top: 2.5rem;
  flex-shrink: 0;
}

/* ── Difference / Compare ── */
.difference { padding: 6rem 2rem; }
.difference-inner { max-width: 1200px; margin: 0 auto; }
.difference-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 3rem;
}
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.compare-col {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
}
.compare-old .compare-col { border-color: rgba(255,255,255,0.06); }
.compare-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.compare-label.accent { color: var(--accent); }
.compare-list { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; }
.compare-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--fg-muted);
}
.compare-x { color: rgba(255,255,255,0.2); font-size: 0.8rem; }
.compare-check { color: var(--green); font-size: 0.8rem; }

/* ── Closing ── */
.closing {
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.closing-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(245,166,35,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.closing-inner { max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }
.closing-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 1.25rem;
}
.closing-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.closing-code {
  margin-bottom: 1rem;
}
.closing-code code {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(245,166,35,0.25);
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
}
.closing-note {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--fg);
  margin-bottom: 0.25rem;
}
.footer-tagline {
  font-size: 0.875rem;
  color: var(--fg-muted);
}
.footer-copy {
  font-size: 0.75rem;
  color: rgba(168,162,158,0.5);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-right { order: -1; }
  .hero-headline { font-size: 2.5rem; }
  .stats-inner { flex-direction: column; gap: 1.5rem; }
  .stat-divider { width: 60px; height: 1px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); padding: 0; justify-content: center; }
  .compare { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .viz-bar-row { grid-template-columns: 80px 1fr 50px; }
}