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

:root {
  --bg: #0c0c0e;
  --bg-2: #111114;
  --bg-3: #18181c;
  --fg: #f0ece4;
  --fg-muted: #8a8690;
  --accent: #f59e0b;
  --accent-dim: rgba(245, 158, 11, 0.12);
  --border: rgba(240, 236, 228, 0.08);
  --font-head: 'Syne', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

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

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(12, 12, 14, 0.85);
  backdrop-filter: blur(12px);
  -webkit-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;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 24px 80px;
  overflow: hidden;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.35) saturate(0.6);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(12, 12, 14, 0.2) 0%,
    rgba(12, 12, 14, 0.5) 50%,
    rgba(12, 12, 14, 0.97) 85%,
    rgba(12, 12, 14, 1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(245, 158, 11, 0.2);
  padding: 6px 14px;
  border-radius: 100px;
  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-headline {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.65;
}

.btn-ghost {
  display: inline-block;
  padding: 11px 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-body);
  transition: border-color 0.2s, background 0.2s;
}

.btn-ghost:hover {
  border-color: rgba(240, 236, 228, 0.25);
  background: rgba(240, 236, 228, 0.05);
}

/* === METRICS === */
.metrics {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 24px;
}

.metrics-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.metric-card {
  background: var(--bg-2);
  padding: 36px 32px;
}

.metric-value {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 10px;
}

.metric-label {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.5;
  margin-bottom: 8px;
}

.metric-source {
  font-size: 0.72rem;
  color: rgba(138, 134, 144, 0.5);
  font-family: var(--font-body);
}

/* === HOW IT WORKS === */
.how {
  padding: 100px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 64px;
}

.section-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--fg);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.step {
  display: flex;
  gap: 24px;
  padding: 40px 36px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.step:nth-child(even) { border-right: none; }
.step:nth-child(3),
.step:nth-child(4) { border-bottom: none; }

.step-number {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  padding-top: 3px;
  flex-shrink: 0;
}

.step-body h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step-body p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* === COUNTER === */
.counter-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 24px;
}

.counter-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.counter-heading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 40px;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}

.counter-item {
  background: var(--bg-3);
  padding: 28px 20px;
  text-align: center;
}

.counter-value {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}

.counter-value.accent {
  color: var(--accent);
}

.counter-label {
  font-size: 0.7rem;
  color: var(--fg-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.counter-note {
  font-size: 0.8rem;
  color: rgba(138, 134, 144, 0.5);
}

/* === COUNTER FLASH ANIMATION === */
@keyframes counterFlash {
  0%   { color: var(--fg); }
  30%  { color: var(--accent); }
  100% { color: var(--fg); }
}
.counter-value.counter-flash {
  animation: counterFlash 0.6s ease-out;
}

/* === MANIFESTO === */
.manifesto {
  padding: 100px 24px;
  max-width: 860px;
  margin: 0 auto;
}

.manifesto-inner {
  border-left: 3px solid var(--accent);
  padding-left: 48px;
}

.manifesto blockquote {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 28px;
}

.manifesto-body {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.manifesto-body:last-child { margin-bottom: 0; }

/* === CLOSING === */
.closing {
  padding: 100px 24px;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid var(--border);
}

.closing h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 24px;
}

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

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--fg);
}

.footer-note {
  font-size: 0.8rem;
  color: rgba(138, 134, 144, 0.5);
  max-width: 420px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero { min-height: 85vh; padding-bottom: 64px; }
  
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .metric-card:nth-child(3),
  .metric-card:nth-child(4) { border-top: 1px solid var(--border); }
  
  .steps-grid { grid-template-columns: 1fr; }
  .step { border-right: none !important; }
  .step:nth-child(odd) { border-bottom: 1px solid var(--border); }
  .step:last-child { border-bottom: none; }
  
  .counter-grid { grid-template-columns: repeat(3, 1fr); }
  .counter-item:nth-child(4),
  .counter-item:nth-child(5),
  .counter-item:nth-child(6) { border-top: 1px solid var(--border); }
  
  .manifesto-inner { padding-left: 24px; }
}

@media (max-width: 480px) {
  .metrics-grid { grid-template-columns: 1fr; }
  .counter-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-card { border-top: 1px solid var(--border); }
  .metric-card:first-child { border-top: none; }
}