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

:root {
  --ink: #0A0A0C;
  --surface: #0E0F13;
  --surface-2: #121419;
  --border: rgba(255,255,255,0.08);
  --border-soft: rgba(255,255,255,0.05);
  --text: #F3F4F6;
  --text-muted: #9CA3AF;
  --text-faint: #6B7280;
  --blue: #3B82F6;
  --blue-deep: #1A56DB;
  --red: #F0556B;
  --amber: #F6A609;
  --green: #2BD47D;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  background: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

.kicker {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 1.1rem; display: block;
}
.headline { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: -1.2px; line-height: 1.12; }

/* NAV */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,12,0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  padding: 0 3rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-logo { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.3px; color: var(--text); text-decoration: none; }
.nav-logo em { color: var(--blue); font-style: normal; }
.nav-links { display: flex; gap: 2.25rem; list-style: none; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-size: 0.85rem; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-cta {
  background: var(--blue) !important; color: #fff !important;
  padding: 0.5rem 1.1rem; border-radius: 7px;
  font-weight: 700 !important; font-size: 0.82rem !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--blue-deep) !important; }

/* BUTTONS */
.btn-primary {
  background: var(--blue); color: #fff;
  padding: 0.85rem 1.75rem; border-radius: 8px;
  font-weight: 700; font-size: 0.95rem; text-decoration: none;
  transition: background 0.2s, transform 0.15s; display: inline-block;
}
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-1px); }
.btn-secondary {
  color: var(--text); font-size: 0.9rem; font-weight: 600;
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem;
  border-bottom: 1px solid var(--border); padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }

/* PAGE WRAPPER — each inner page feels like one screen */
.page {
  min-height: calc(100vh - 60px);
  max-width: 1080px; margin: 0 auto;
  padding: 3.5rem 3rem 2.5rem;
  display: flex; flex-direction: column; justify-content: center;
}
.page-head { margin-bottom: 2.5rem; max-width: 720px; }
.page-head p { color: var(--text-muted); font-size: 1.02rem; margin-top: 1rem; line-height: 1.7; }
.page-next {
  margin-top: 2.75rem; display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--text-muted); font-size: 0.9rem; font-weight: 600; text-decoration: none;
  transition: color 0.2s, gap 0.2s; align-self: flex-start;
}
.page-next:hover { color: var(--blue); gap: 0.7rem; }
.page-next span { color: var(--blue); }

/* HERO (home) */
.hero {
  max-width: 1100px; margin: 0 auto;
  padding: 5rem 3rem 1rem; text-align: center; position: relative;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -2.5px;
  max-width: 880px; margin: 0 auto 1.75rem;
}
.hero h1 em { font-style: italic; font-weight: 300; color: var(--text-muted); }
.hero-sub {
  font-size: 1.1rem; color: var(--text-muted); max-width: 560px;
  line-height: 1.7; margin: 0 auto 2.25rem; font-weight: 400;
}
.hero-actions { display: flex; gap: 1rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.hero-note { font-size: 0.78rem; color: var(--text-faint); margin-top: 1rem; }

/* SCANNER (home animation) */
.scanner { max-width: 1100px; margin: 1rem auto 0; padding: 0 1.5rem 2rem; }
.canvas-wrap { position: relative; width: 100%; aspect-ratio: 1040 / 620; }
canvas { width: 100%; height: 100%; display: block; }
.legend { display: flex; gap: 1.75rem; flex-wrap: wrap; justify-content: center; margin-top: 0.5rem; }
.legend span { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; color: var(--text-faint); font-weight: 500; }
.ldot { width: 9px; height: 9px; border-radius: 50%; }
.l-r { background: var(--red); box-shadow: 0 0 9px var(--red); }
.l-a { background: var(--amber); box-shadow: 0 0 9px var(--amber); }
.l-g { background: var(--green); box-shadow: 0 0 9px var(--green); }

/* PROBLEM — stat grid */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.75rem 1.85rem;
}
.stat-card .num { font-size: 2.6rem; font-weight: 800; color: var(--blue); letter-spacing: -1.5px; line-height: 1; margin-bottom: 0.75rem; }
.stat-card strong { display: block; font-size: 0.92rem; font-weight: 600; color: var(--text); margin-bottom: 0.3rem; }
.stat-card span { font-size: 0.76rem; color: var(--text-faint); }

/* HOW IT WORKS — steps row */
.steps-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.step-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.75rem;
}
.step-card .step-n { font-size: 0.72rem; font-weight: 700; color: var(--blue); letter-spacing: 1px; text-transform: uppercase; }
.step-card h3 { font-size: 1.12rem; font-weight: 700; margin: 0.7rem 0 0.5rem; letter-spacing: -0.3px; }
.step-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* CATEGORY grid (folded into How It Works) */
.cat-block { margin-top: 3rem; }
.cat-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-faint); margin-bottom: 1.25rem; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }
.cat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 11px; padding: 1.1rem 1.2rem;
  display: flex; align-items: flex-start; gap: 0.7rem;
}
.cat-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.cat-card strong { display: block; font-size: 0.9rem; font-weight: 700; }
.cat-card span { font-size: 0.76rem; color: var(--text-faint); }

/* FOOTER (slim) */
footer { border-top: 1px solid var(--border-soft); padding: 1.75rem 3rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; max-width: 1100px; margin: 0 auto; }
.footer-logo { font-size: 0.9rem; font-weight: 800; color: var(--text); }
.footer-logo em { color: var(--blue); font-style: normal; }
.footer-disclaimer { font-size: 0.75rem; color: var(--text-faint); }

@media (max-width: 768px) {
  nav { padding: 0 1.25rem; }
  .nav-links { gap: 0; }
  .nav-links li:not(:last-child) { display: none; } /* keep only the CTA */
  .page { padding: 2.5rem 1.5rem; min-height: calc(100vh - 60px); }
  .hero { padding: 3rem 1.25rem 0.5rem; }
  .hero h1 { letter-spacing: -1.5px; }
  .hero-sub { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-primary { text-align: center; }
  .hero-actions .btn-secondary { justify-content: center; }
  .scanner { padding: 0.5rem 0.25rem 1rem; }
  .canvas-wrap { aspect-ratio: 360 / 640; }
  .legend { gap: 1rem; }
  .stat-grid { grid-template-columns: 1fr; }
  .steps-3 { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .join-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  footer { padding: 1.5rem; flex-direction: column; text-align: center; }
}
