@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Outfit:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");

/* Design tokens — identical to app */
:root {
  --bg-void:      #060a12;
  --bg-primary:   #090d18;
  --bg-secondary: #0d1320;
  --bg-tertiary:  #131b2e;
  --bg-hover:     #1a2438;
  --bg-active:    #1e2b44;

  --text-primary:   #e0e7f5;
  --text-secondary: #7a8fab;
  --text-tertiary:  #374563;

  --accent:        #38bdf8;
  --accent-hover:  #7dd3fc;
  --accent-deep:   #0ea5e9;
  --accent-subtle: rgba(56, 189, 248, 0.10);
  --accent-glow:   rgba(56, 189, 248, 0.22);

  --success: #34d399;
  --border:        rgba(255, 255, 255, 0.07);
  --border-focus:  rgba(56, 189, 248, 0.55);

  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --radius-xl:   20px;
  --radius-full: 9999px;

  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.60);
  --shadow-lg: 0 12px 52px rgba(0, 0, 0, 0.75);

  --font-display: "Syne", system-ui, sans-serif;
  --font-sans:    "Outfit", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", monospace;

  --t-base: 160ms ease;
  --t-slow: 260ms cubic-bezier(0.4, 0, 0.2, 1);

  --max-width: 960px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* Grid-dot hero background */
.grid-bg {
  background-image: radial-gradient(circle, rgba(56, 189, 248, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Section wrapper */
.section {
  width: 100%;
  padding: 80px 24px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Section heading */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-body {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--t-base);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #060a12;
  box-shadow: 0 0 32px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #060a12;
  transform: translateY(-1px);
  box-shadow: 0 0 48px var(--accent-glow);
}

.hero-alt-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.alt-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--t-base);
}

.alt-link:hover { color: var(--accent); }

.alt-sep { color: var(--text-tertiary); }

.hero-version {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* ── Pillars ── */
.pillars {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.pillar {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-right: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}

.pillar:hover {
  border-right-color: var(--accent-hover);
  box-shadow: var(--shadow-md);
}

.pillar-icon {
  font-size: 1.75rem;
  color: var(--accent);
  line-height: 1;
}

.pillar-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.pillar-body {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ── How It Works ── */
.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 48px;
  border-left: 1px solid var(--border);
  padding-left: 0;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 32px 0 32px 40px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.step:last-child { border-bottom: none; }

.step::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 36px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  min-width: 28px;
  padding-top: 4px;
  letter-spacing: 0.05em;
}

.step-content { display: flex; flex-direction: column; gap: 8px; }

.step-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.step-body {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 560px;
}

/* ── Download ── */
.download {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  text-align: center;
  transition: all var(--t-base);
  text-decoration: none;
}

.download-card:hover {
  border-color: var(--accent);
  background: var(--bg-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.dl-icon {
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}

.dl-platform {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.dl-format {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.dl-note {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  font-style: italic;
  line-height: 1.4;
  margin-top: 2px;
}

.download-note {
  margin-top: 28px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(6, 10, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-wordmark:hover { color: var(--text-primary); }

.nav-links { display: flex; gap: 24px; align-items: center; }

.nav-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--t-base);
}

.nav-link:hover { color: var(--accent); }

/* ── Footer ── */
.footer {
  padding: 60px 24px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--t-base);
}

.footer-links a:hover { color: var(--accent); }

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .nav { padding: 14px 20px; }

  .hero-title { font-size: 2.25rem; }

  .hero-subtitle { font-size: 1rem; }

  .hero-cta { width: 100%; }

  .btn { width: 100%; justify-content: center; }

  .hero-alt-links { justify-content: center; }

  .pillars-grid { grid-template-columns: 1fr; }

  .download-grid { grid-template-columns: 1fr; }

  .step { padding-left: 28px; gap: 20px; }

  .section { padding: 60px 20px; }
}
