:root {
  --background: oklch(0.97 0.012 80);
  --foreground: oklch(0.18 0.018 60);
  --card: oklch(1 0 0);
  --primary: oklch(0.58 0.14 70);
  --primary-foreground: oklch(0.98 0.01 80);
  --primary-dark: oklch(0.48 0.12 70);
  --muted: oklch(0.93 0.015 80);
  --muted-foreground: oklch(0.45 0.02 60);
  --accent: oklch(0.4 0.08 150);
  --accent-foreground: oklch(0.98 0.01 80);
  --border: oklch(0.18 0.018 60 / 0.12);
  --input: oklch(0.18 0.018 60 / 0.15);
  --ring: oklch(0.58 0.14 70);
  --radius: 0.5rem;
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --max-w: 80rem;
  --nav-height: 4rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, select { font: inherit; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.kicker {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 1rem;
}
.text-muted { color: var(--muted-foreground); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.15s, opacity 0.15s;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0 1.75rem;
  height: 3rem;
  font-size: 1rem;
}
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }
.btn-primary.btn-lg { height: 3.5rem; padding: 0 2.5rem; }
.btn-outline {
  background: transparent;
  border: 1px solid oklch(0.18 0.018 60 / 0.2);
  color: var(--foreground);
  padding: 0 1.75rem;
  height: 3rem;
  font-size: 1rem;
}
.btn-outline:hover { background: var(--muted); }
.btn-accent {
  background: var(--accent);
  color: var(--accent-foreground);
  width: 100%;
  height: 3rem;
}
.btn-accent:hover:not(:disabled) { filter: brightness(1.05); }
.btn-nav { height: 2.5rem; padding: 0 1rem; font-size: 0.875rem; }
.icon { width: 1rem; height: 1rem; flex-shrink: 0; }
.icon-lg { width: 1.25rem; height: 1.25rem; }

/* Header / hero */
.site-header {
  position: relative;
  overflow: hidden;
  min-height: min(106vh, 62.4rem);
  display: flex;
  flex-direction: column;
}
.site-header__bg {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat url("../assets/background.png");
}
.site-header__wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, oklch(0.97 0.012 80 / 0.12), oklch(0.97 0.012 80 / 0.1), oklch(0.97 0.012 80 / 0.2));
}
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid oklch(0.18 0.018 60 / 0.06);
  background: oklch(0.97 0.012 80 / 0.3);
  backdrop-filter: blur(12px);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--accent);
}
.nav-links {
  display: none;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}
.nav-links a:hover { color: var(--primary); }
@media (min-width: 768px) { .nav-links { display: flex; } }

.hero {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 2.5rem 0 4rem;
}
@media (min-width: 1024px) {
  .hero { padding: 3rem 0 5rem; }
}
.hero .container { width: 100%; }
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: oklch(0.58 0.14 70 / 0.1);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 0.125rem;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(4rem, 3.8vw, 3.25rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.hero h1 em { color: var(--primary); font-style: italic; }
.hero-lead {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--muted-foreground);
  max-width: 42rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Sections */
.section { padding: 6rem 1.5rem; }
.section-dark {
  background: var(--foreground);
  color: var(--background);
}
.section-muted {
  background: oklch(0.93 0.015 80 / 0.4);
  border-block: 1px solid var(--border);
}
.section-center { text-align: center; }
.section-center .container { max-width: 48rem; }

.grid-2 { display: grid; gap: 3rem; }
@media (min-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-2-6-6 { grid-template-columns: 1fr 1fr; }
}
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 3rem; } }
.grid-3 { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-5 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .grid-5 { grid-template-columns: repeat(5, 1fr); } }
.grid-2-cards { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .grid-2-cards { grid-template-columns: 1fr 1fr; } }

.section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  text-wrap: balance;
}
.section-intro { color: var(--muted-foreground); max-width: 42rem; margin-bottom: 4rem; line-height: 1.6; }
.section-dark .section-intro,
.section-dark p { color: oklch(0.97 0.012 80 / 0.7); }
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.stat-label { font-size: 0.875rem; color: oklch(0.97 0.012 80 / 0.6); line-height: 1.4; max-width: 28ch; }
.stats-row {
  border-top: 1px solid oklch(0.97 0.012 80 / 0.1);
  padding-top: 3rem;
  margin-top: 4rem;
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.75rem;
}
.card:hover { border-color: oklch(0.58 0.14 70 / 0.4); }
.card-step { display: flex; flex-direction: column; gap: 1.25rem; }
.card-step-top { display: flex; justify-content: space-between; align-items: flex-start; }
.card-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 0.5rem;
  background: oklch(0.58 0.14 70 / 0.1);
  color: var(--primary);
}
.card-step h3 { font-size: 1.5rem; }
.card-step p { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; }
.sms-demo {
  margin-top: auto;
  background: oklch(0.93 0.015 80 / 0.6);
  padding: 0.75rem;
  border-radius: 0.375rem;
  border-left: 2px solid var(--primary);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.5;
}
.sms-demo .reply { color: var(--primary); }

.market-card { padding: 1.25rem; border-radius: 0.5rem; }
.market-flag { font-size: 1.5rem; margin-bottom: 0.75rem; }
.market-name { font-weight: 600; margin-bottom: 0.25rem; }
.market-status {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.market-status.active { color: var(--accent); }
.market-status.roadmap { color: var(--muted-foreground); }

.role-card {
  position: relative;
  padding: 2rem;
  border-radius: 1rem;
  background: var(--card);
  display: flex;
  flex-direction: column;
}
.role-card.ring-primary { box-shadow: 0 0 0 2px var(--primary); }
.role-card.ring-border { box-shadow: 0 0 0 1px var(--border); }
.role-badge {
  position: absolute;
  top: -0.75rem;
  right: 1.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.25rem 0.75rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 0.125rem;
}
.role-price {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  margin: 1rem 0 0.25rem;
}
.role-price.accent { color: var(--accent); }
.role-price.primary { color: var(--primary); }
.role-features { list-style: none; margin: 2rem 0; flex: 1; }
.role-features li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}
.check-icon { width: 1rem; height: 1rem; flex-shrink: 0; margin-top: 0.125rem; }

.opt-in-steps { list-style: none; display: grid; gap: 2rem; margin-bottom: 4rem; }
@media (min-width: 768px) { .opt-in-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .opt-in-steps { grid-template-columns: repeat(4, 1fr); } }
.opt-in-step { display: flex; gap: 1rem; }
.opt-in-num {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-display);
  font-weight: 700;
}
.legal-fine {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: oklch(0.97 0.012 80 / 0.55);
  max-width: 48rem;
  border-top: 1px solid oklch(0.97 0.012 80 / 0.1);
  padding-top: 2rem;
}
.legal-fine p + p { margin-top: 1rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  font-size: 0.875rem;
}
.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
@media (min-width: 768px) {
  .site-footer .container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer-logo { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; color: var(--accent); }
.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
}
.footer-links a:hover,
.footer-links button:hover { color: var(--primary); }
.footer-links button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  color: inherit;
}

/* Legal prose */
.legal-page main { max-width: 48rem; margin: 0 auto; padding: 4rem 1.5rem; }
.prose h2 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
.prose p, .prose li { line-height: 1.7; margin-bottom: 0.75rem; color: var(--muted-foreground); }
.prose ul { margin: 0.75rem 0 1rem 1.25rem; }
.prose a { color: var(--primary); text-decoration: underline; }
.prose strong { color: var(--foreground); }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: oklch(0 0 0 / 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--card);
  border-radius: 0.75rem;
  width: 100%;
  max-width: 36rem;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
  box-shadow: 0 25px 50px oklch(0 0 0 / 0.15);
}
.modal h2 { font-size: 1.875rem; margin-bottom: 0.5rem; }
.modal-desc { color: var(--muted-foreground); font-size: 0.875rem; margin-bottom: 1.25rem; }
.modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted-foreground);
  line-height: 1;
}
.modal-wrap { position: relative; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 1.25rem; background: var(--muted); border-radius: var(--radius); padding: 0.25rem; }
.tab {
  padding: 0.625rem;
  border: none;
  background: transparent;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted-foreground);
}
.tab.active { background: var(--card); color: var(--foreground); box-shadow: 0 1px 2px oklch(0 0 0 / 0.06); }

.form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-grid .span-2 { grid-column: 1 / -1; }
.field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  margin-bottom: 0.375rem;
}
.field label .req { color: var(--primary); }
.field input, .field select {
  width: 100%;
  height: 2.25rem;
  padding: 0 0.75rem;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  background: transparent;
}
.field input:focus, .field select:focus {
  outline: none;
  box-shadow: 0 0 0 1px var(--ring);
}
.info-box {
  padding: 1rem;
  border-radius: 0 0.375rem 0.375rem 0;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 1rem 0;
  display: none;
}
.info-box.visible { display: block; }
.info-box.accent {
  background: oklch(0.4 0.08 150 / 0.1);
  border-left: 4px solid var(--accent);
}
.info-box.primary {
  background: oklch(0.58 0.14 70 / 0.1);
  border-left: 4px solid var(--primary);
}

/* Toast — below sticky nav; hide slides fully above viewport */
.toast {
  position: fixed;
  top: calc(var(--nav-height) + 0.75rem);
  left: 50%;
  transform: translateX(-50%) translateY(calc(-100% - var(--nav-height) - 1.5rem));
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 10px 30px oklch(0 0 0 / 0.12);
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  max-width: 90vw;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}
.toast.success { background: var(--accent); color: var(--accent-foreground); }
.toast.error { background: oklch(0.55 0.22 27); color: white; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
