:root {
  --bg: #0e0e0d;
  --bg-elevated: #1c1c1b;
  --card: #2c2c2b50;
  --card-border: #ffffff16;
  --text-primary: #ffffff;
  --text-secondary: #a8a8a6;
  --text-tertiary: #8a8a84;
  --accent: #ffffff;
  --accent-light: #ffffff;
  --accent-dim: #2c2c2b;
  --success: #ffffff;
  --radius: 18px;
  --font-display: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 100;
  background: #ffffff;
  color: #0e0e0d;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 16px; }

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  border-radius: 4px;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  background-image:
    radial-gradient(ellipse 1000px 520px at 62% -8%, #2c2c2b 0%, transparent 58%),
    radial-gradient(ellipse 700px 420px at 8% 15%, #202020 0%, transparent 55%);
  background-repeat: no-repeat;
}

h1, h2, h3, .btn { font-family: var(--font-display); }
.brand { font-family: "Poppins", var(--font-display); }

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.16,1,.3,1), transform 0.7s cubic-bezier(.16,1,.3,1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal.reveal-scale { transform: translateY(28px) scale(0.96); }
.reveal.reveal-scale.in-view { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

.hero-chips .chip:nth-child(1) { --d: 0.05s; }
.hero-chips .chip:nth-child(2) { --d: 0.15s; }
.hero-chips .chip:nth-child(3) { --d: 0.25s; }

.hero-title.reveal { --d: 0.05s; }
.hero-sub.reveal { --d: 0.12s; }
.hero-actions.reveal { --d: 0.2s; }

.stats-grid .stat-card:nth-child(1) { --d: 0s; }
.stats-grid .stat-card:nth-child(2) { --d: 0.08s; }
.stats-grid .stat-card:nth-child(3) { --d: 0.16s; }
.stats-grid .stat-card:nth-child(4) { --d: 0.24s; }

.features-grid .feature-card:nth-child(1) { --d: 0s; }
.features-grid .feature-card:nth-child(2) { --d: 0.08s; }
.features-grid .feature-card:nth-child(3) { --d: 0.16s; }
.features-grid .feature-card:nth-child(4) { --d: 0.24s; }

.footer-grid .footer-col:nth-child(1) { --d: 0.05s; }
.footer-grid .footer-col:nth-child(2) { --d: 0.1s; }
.footer-grid .footer-col:nth-child(3) { --d: 0.15s; }

/* Nav + logo micro-interactions */
.brand-logo { transition: transform 0.3s ease; }
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.08); }

.icon-badge { transition: transform 0.25s ease, border-color 0.25s ease; }
.chip:hover .icon-badge,
.feature-card:hover .icon-badge { transform: translateY(-2px) rotate(-4deg); }

.pill .dot { animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 #ffffff55; }
  50% { box-shadow: 0 0 0 5px #ffffff00; }
}

.stat-card { transition: border-color 0.2s ease, transform 0.2s ease; }
.stat-card:hover { border-color: #ffffff30; transform: translateY(-2px); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1100px;
  z-index: 40;
  background: #14141370;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  box-shadow: 0 8px 32px -12px #00000080;
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

header.scrolled {
  background: #14141398;
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-color: #ffffff22;
  box-shadow: 0 10px 36px -10px #000000a0;
}

body { padding-top: 88px; }

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 12px 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.brand-logo { flex-shrink: 0; object-fit: contain; }

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

.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.15s ease;
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn-primary {
  background: #ffffff;
  color: #0e0e0d;
  box-shadow: 0 8px 24px -8px #00000066;
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -8px #00000088; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-primary);
}

.btn-ghost:hover { background: #ffffff08; border-color: #ffffff30; }

/* Hero */
.hero {
  padding: 48px 24px 64px;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-secondary);
  background: #ffffff06;
  margin-bottom: 28px;
}

.pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

h1.hero-title {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  background: linear-gradient(180deg, #ffffff 0%, #c7d3c9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 620px;
  margin: 0 auto 36px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 56px;
}

.hero-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 920px;
  margin: 0 auto;
}

.chip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  padding: 16px 18px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.chip:hover { border-color: #ffffff26; transform: translateY(-2px); }

.chip .icon-badge { flex-shrink: 0; }

.chip strong { display: block; font-size: 14px; margin-bottom: 3px; }
.chip span { font-size: 13px; color: var(--text-secondary); line-height: 1.4; }

/* Icon badges */
.icon-badge {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.ib-green, .ib-blue, .ib-purple, .ib-amber {
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
}

/* Stats */
.stats {
  padding: 12px 24px 64px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
}

.stat-card {
  padding: 22px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card);
}

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.live-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--card);
  border: 1px solid var(--card-border);
  padding: 3px 9px;
  border-radius: 999px;
}

.stat-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.stat-value { font-size: 30px; font-weight: 700; letter-spacing: -0.01em; }

/* Section heading */
.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 16px;
}

/* Features */
.features { padding: 40px 24px 96px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
}

.feature-card {
  padding: 24px;
  border: 1px solid var(--card-border);
  border-top: 1px solid #ffffff20;
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.feature-card:hover { border-color: #ffffff40; transform: translateY(-2px); }

.feature-card .icon-badge { margin-bottom: 18px; }
.feature-card h3 { font-size: 17px; margin: 0 0 8px; font-weight: 700; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.55; margin: 0; }

/* CTA */
.cta {
  padding: 0 24px 96px;
}

.cta-box {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 40px;
  text-align: center;
  border: 1px solid var(--card-border);
  border-radius: 24px;
  background:
    radial-gradient(ellipse 600px 300px at 50% 0%, #2c2c2b80 0%, transparent 70%),
    var(--bg-elevated);
}

.cta-icon {
  width: 56px; height: 56px;
  margin: 0 auto 28px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  display: flex; align-items: center; justify-content: center;
}

.cta-box h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.cta-box p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

/* Footer */
footer {
  border-top: 1px solid var(--card-border);
  padding: 56px 24px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; max-width: 320px; }

.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin: 0 0 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  transition: color 0.15s ease;
}

.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--card-border);
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
}

.badge-live {
  color: var(--text-primary);
  border-color: var(--card-border);
  background: var(--card);
}

.icon-link {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  border: 1px solid var(--card-border);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.icon-link:hover { color: var(--text-primary); border-color: #ffffff30; }

/* Legal page */
.legal { padding: 48px 24px 96px; }

.legal-wrap { max-width: 760px; }

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.legal-intro {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 32px;
}

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 16px 20px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card);
  margin-bottom: 48px;
}

.legal-toc a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.legal-toc a:hover { color: var(--text-primary); }

.legal-section {
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid var(--card-border);
  scroll-margin-top: 110px;
}

.legal-section:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }

.legal-section h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 16px;
}

.legal-section p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 14px;
}

.legal-section code {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 13px;
}

.legal-section ul {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 14px;
  padding-left: 20px;
}

.legal-section li { margin-bottom: 6px; }

/* Responsive */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero-chips { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 520px) {
  .stats-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}