/* Own A Casino - marketing site
   Visual direction per spec §6: B2B vendor aesthetic (Stripe / Vercel / Linear,
   crypto-darkness applied). Sapphire structural, gold accent on CTAs + key numbers
   only. Generous whitespace. 150ms transitions. No glassmorphism, no jackpot
   tickers, no game grids.
*/

/* ---------- Tokens ---------- */
:root {
  /* Palette (per spec §6) */
  --bg-0: #06080d;             /* page background, near black */
  --bg-1: #0b1018;             /* card / section background */
  --bg-2: #11182a;             /* elevated surface */
  --bg-3: #1a2238;             /* hover / active */

  --fg-0: #f4f6fb;             /* primary text */
  --fg-1: #c5cde0;             /* secondary text */
  --fg-2: #8893ad;             /* muted text */
  --fg-3: #4f5872;             /* very muted, captions */

  --line: #1f2740;             /* 1px borders, restrained */
  --line-soft: rgba(255,255,255,0.06);

  --sapphire: #2563eb;         /* primary structural */
  --sapphire-2: #3b82f6;       /* hover */
  --sapphire-soft: rgba(37,99,235,0.12);

  --gold: #fbbf24;             /* accent: CTAs, key numbers */
  --gold-2: #f59e0b;
  --gold-soft: rgba(251,191,36,0.12);

  /* Spacing scale (generous) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Type */
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --t-xs: 12px;
  --t-sm: 14px;
  --t-base: 16px;
  --t-md: 18px;
  --t-lg: 22px;
  --t-xl: 28px;
  --t-2xl: 36px;
  --t-3xl: 48px;
  --t-4xl: 64px;
  --leading-tight: 1.15;
  --leading-snug: 1.35;
  --leading-normal: 1.55;
  --leading-relaxed: 1.7;

  /* Geometry */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --t-fast: 150ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: var(--t-base);
  line-height: var(--leading-normal);
  color: var(--fg-0);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--fg-0); text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--gold); }
button { font: inherit; cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-7) 0; }

/* ---------- Layout ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--s-5); }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--s-5); }

section { padding: var(--s-9) 0; border-top: 1px solid var(--line-soft); }
section:first-of-type { border-top: 0; }
section.section-tight { padding: var(--s-7) 0; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; margin: 0 0 var(--s-4) 0; }
h1 { font-size: var(--t-3xl); line-height: var(--leading-tight); letter-spacing: -0.035em; }
h2 { font-size: var(--t-2xl); line-height: var(--leading-tight); letter-spacing: -0.025em; }
h3 { font-size: var(--t-xl); line-height: var(--leading-snug); }
h4 { font-size: var(--t-lg); line-height: var(--leading-snug); }
p { margin: 0 0 var(--s-4) 0; color: var(--fg-1); }
.lead { font-size: var(--t-md); color: var(--fg-1); line-height: var(--leading-relaxed); max-width: 60ch; }
.eyebrow {
  font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--fg-2); margin: 0 0 var(--s-3) 0; font-weight: 500;
}
.muted { color: var(--fg-2); }
.gold-num { color: var(--gold); font-weight: 600; }

@media (min-width: 768px) {
  h1 { font-size: var(--t-4xl); }
  h2 { font-size: var(--t-3xl); }
  .lead { font-size: var(--t-lg); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 8, 13, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--s-4); padding-bottom: var(--s-4);
}
.brand {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-weight: 700; letter-spacing: -0.01em; font-size: var(--t-md);
  color: var(--fg-0);
}
.brand:hover { color: var(--fg-0); }
.brand-dot {
  width: 10px; height: 10px; background: var(--sapphire);
  border-radius: 2px; transform: rotate(45deg); display: inline-block;
}
.nav-links {
  display: none;
  gap: var(--s-6); align-items: center; list-style: none; padding: 0; margin: 0;
}
.nav-links a {
  color: var(--fg-1); font-size: var(--t-sm); font-weight: 500;
}
.nav-links a:hover { color: var(--fg-0); }
@media (min-width: 768px) { .nav-links { display: inline-flex; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-2); padding: 12px 20px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: var(--t-sm); line-height: 1;
  border: 1px solid transparent;
  transition: all var(--t-fast) var(--ease);
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: #1a1300;
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-2); color: #1a1300;
  border-color: var(--gold-2);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--fg-0);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--bg-2); color: var(--fg-0); border-color: var(--bg-3); }
.btn-lg { padding: 16px 28px; font-size: var(--t-base); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  padding: var(--s-10) 0 var(--s-9);
  background:
    radial-gradient(ellipse at top left, rgba(37,99,235,0.10), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(251,191,36,0.04), transparent 60%);
}
.hero-headline {
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 700; letter-spacing: -0.035em; line-height: 1.05;
  margin-bottom: var(--s-5);
  max-width: 16ch;
}
.hero-sub {
  font-size: var(--t-md); color: var(--fg-1);
  max-width: 56ch; line-height: var(--leading-relaxed);
  margin-bottom: var(--s-7);
}
@media (min-width: 768px) { .hero-sub { font-size: var(--t-lg); } }
.hero-cta-row { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.hero-meta {
  margin-top: var(--s-6);
  display: flex; gap: var(--s-5); flex-wrap: wrap;
  color: var(--fg-2); font-size: var(--t-sm);
}
.hero-meta strong { color: var(--fg-0); font-weight: 600; }

/* ---------- Trust bar ---------- */
.trust-bar {
  padding: var(--s-6) 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.015);
}
.trust-row {
  display: flex; align-items: center; gap: var(--s-6);
  flex-wrap: wrap; justify-content: space-between;
}
.trust-label {
  font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--fg-2); font-weight: 500;
}
.trust-brands {
  display: flex; gap: var(--s-6); flex-wrap: wrap; align-items: center;
}
.trust-brand {
  font-weight: 600; color: var(--fg-1);
  font-size: var(--t-md); letter-spacing: -0.01em;
}

/* ---------- Segment switcher ---------- */
.segment {
  display: flex; padding: 4px; background: var(--bg-1);
  border: 1px solid var(--line); border-radius: var(--radius);
  gap: 2px;
  flex-wrap: wrap;
  max-width: 100%;
}
.segment-btn {
  background: transparent; border: 0; color: var(--fg-1);
  padding: 10px 16px; border-radius: var(--radius-sm);
  font-size: var(--t-sm); font-weight: 500;
  transition: all var(--t-fast) var(--ease);
  flex: 1 1 auto;
  min-width: 0;
}
@media (min-width: 480px) {
  .segment { display: inline-flex; flex-wrap: nowrap; }
  .segment-btn { flex: 0 0 auto; padding: 10px 20px; }
}
.segment-btn:hover { color: var(--fg-0); }
.segment-btn.is-active {
  background: var(--bg-3); color: var(--fg-0);
}
.segment-content { display: none; margin-top: var(--s-6); }
.segment-content.is-active { display: block; }
.segment-quote {
  font-size: var(--t-lg); line-height: var(--leading-relaxed);
  color: var(--fg-0); max-width: 60ch;
}

/* ---------- Two-column ---------- */
.cols-2 {
  display: grid; gap: var(--s-6);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .cols-2 { grid-template-columns: 1fr 1fr; gap: var(--s-7); }
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid; gap: var(--s-4);
  grid-template-columns: 1fr;
  margin-top: var(--s-6);
}
@media (min-width: 600px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr 1fr; } }

.feature {
  padding: var(--s-5);
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.feature:hover { border-color: var(--sapphire); }
.feature-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--sapphire-soft);
  color: var(--sapphire);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-3);
  font-size: 18px;
}
.feature h4 { margin-bottom: var(--s-2); font-size: var(--t-md); }
.feature p { color: var(--fg-1); font-size: var(--t-sm); margin: 0; line-height: var(--leading-relaxed); }

/* ---------- Division of labor (we / you) ---------- */
.split-cards {
  display: grid; gap: var(--s-5); grid-template-columns: 1fr;
  margin-top: var(--s-6);
}
@media (min-width: 768px) { .split-cards { grid-template-columns: 1fr 1fr; } }
.split-card {
  padding: var(--s-6);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-1);
}
.split-card.we { border-color: var(--sapphire); background: linear-gradient(180deg, var(--sapphire-soft) 0%, var(--bg-1) 30%); }
.split-card.you { border-color: var(--gold); background: linear-gradient(180deg, var(--gold-soft) 0%, var(--bg-1) 30%); }
.split-card h3 { margin-top: 0; }
.split-card ul { list-style: none; padding: 0; margin: var(--s-3) 0 0 0; }
.split-card li {
  padding: var(--s-3) 0; border-bottom: 1px solid var(--line-soft);
  color: var(--fg-1); display: flex; align-items: flex-start; gap: var(--s-3);
}
.split-card li:last-child { border-bottom: 0; }
.split-card li::before {
  content: ''; flex-shrink: 0;
  width: 6px; height: 6px; border-radius: 50%; margin-top: 9px;
}
.split-card.we li::before { background: var(--sapphire); }
.split-card.you li::before { background: var(--gold); }

/* ---------- Mini-admin preview ---------- */
.admin-preview {
  margin-top: var(--s-6);
  padding: var(--s-6);
  background: var(--bg-1);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.admin-preview-frame {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--s-6);
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: var(--t-sm); color: var(--fg-1);
  line-height: var(--leading-relaxed);
  white-space: pre-wrap;
}
.admin-preview-placeholder {
  padding: var(--s-7); text-align: center;
  background: var(--bg-2); border: 1px dashed var(--line);
  border-radius: var(--radius); color: var(--fg-2);
  font-size: var(--t-sm);
}

/* ---------- Onboarding journey ---------- */
.journey {
  display: grid; gap: var(--s-3);
  grid-template-columns: 1fr; margin-top: var(--s-6);
}
@media (min-width: 768px) {
  .journey { grid-template-columns: repeat(7, 1fr); gap: var(--s-2); }
}
.journey-step {
  padding: var(--s-4);
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  position: relative;
}
.journey-step-num {
  width: 22px; height: 22px; border-radius: 4px;
  background: var(--sapphire); color: white;
  font-size: var(--t-xs); font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-2);
}
.journey-step h4 { font-size: var(--t-sm); margin: 0 0 4px 0; line-height: 1.3; }
.journey-step p { font-size: var(--t-xs); color: var(--fg-2); margin: 0; line-height: 1.5; }

/* ---------- Proof stats ---------- */
.stats {
  display: grid; gap: var(--s-5);
  grid-template-columns: 1fr 1fr;
  margin-top: var(--s-6);
}
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  padding: var(--s-5); border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg-1);
}
.stat-num {
  font-size: var(--t-3xl); font-weight: 700; color: var(--gold);
  line-height: 1; letter-spacing: -0.03em;
  margin-bottom: var(--s-2);
  font-feature-settings: 'tnum' 1;
}
.stat-label {
  font-size: var(--t-sm); color: var(--fg-2);
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500;
}

/* ---------- Eligibility list ---------- */
.elig {
  display: grid; gap: var(--s-5); grid-template-columns: 1fr;
  margin-top: var(--s-6);
}
@media (min-width: 768px) { .elig { grid-template-columns: 1fr 1fr; } }
.elig-col h4 { color: var(--fg-0); }
.elig-col ul { list-style: none; padding: 0; margin: 0; }
.elig-col li {
  padding: var(--s-3) 0; border-bottom: 1px solid var(--line-soft);
  color: var(--fg-1); display: flex; align-items: flex-start; gap: var(--s-3);
}
.elig-col li::before {
  content: ''; flex-shrink: 0; width: 16px; height: 16px;
  margin-top: 4px; border-radius: 50%;
}
.elig-col.yes li::before {
  background: var(--sapphire-soft);
  box-shadow: inset 0 0 0 1.5px var(--sapphire);
}
.elig-col.no li::before {
  background: rgba(220,38,38,0.10);
  box-shadow: inset 0 0 0 1.5px #ef4444;
}

/* ---------- FAQ ---------- */
.faq { margin-top: var(--s-6); }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: var(--s-5) 0;
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  font-weight: 600; color: var(--fg-0); font-size: var(--t-md);
  margin: 0 0 var(--s-2) 0;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; user-select: none;
}
.faq-q::after {
  content: '+'; color: var(--fg-2); font-weight: 400; font-size: var(--t-xl);
  margin-left: var(--s-4); transition: transform var(--t-fast) var(--ease);
}
.faq-item.is-open .faq-q::after { content: '−'; }
.faq-a { color: var(--fg-1); max-width: 70ch; display: none; }
.faq-item.is-open .faq-a { display: block; }

/* ---------- Final CTA block ---------- */
.final-cta {
  margin-top: var(--s-6);
  padding: var(--s-8) var(--s-6);
  background: linear-gradient(180deg, var(--sapphire-soft), var(--bg-1));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  text-align: center;
}
.final-cta h2 { margin-bottom: var(--s-3); }
.final-cta .lead { margin: 0 auto var(--s-6) auto; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--s-7) 0 var(--s-6);
  color: var(--fg-2); font-size: var(--t-sm);
  margin-top: var(--s-7);
}
.site-footer .wrap {
  display: flex; justify-content: space-between; gap: var(--s-5);
  flex-wrap: wrap; align-items: center;
}
.footer-links { display: flex; gap: var(--s-5); flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.footer-links a { color: var(--fg-2); }
.footer-links a:hover { color: var(--fg-0); }

/* ---------- Apply form ---------- */
.form-card {
  max-width: 640px; margin: var(--s-7) auto;
  padding: var(--s-7);
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.form-row { margin-bottom: var(--s-5); }
.form-row label {
  display: block; font-size: var(--t-sm); font-weight: 600;
  margin-bottom: var(--s-2); color: var(--fg-0);
}
.form-row .hint {
  display: block; font-size: var(--t-xs); color: var(--fg-2);
  margin-top: var(--s-1);
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="url"],
.form-row select,
.form-row textarea {
  width: 100%; padding: 12px 14px;
  background: var(--bg-0); border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--fg-0); font: inherit; font-size: var(--t-base);
  transition: border-color var(--t-fast) var(--ease);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none; border-color: var(--sapphire);
  box-shadow: 0 0 0 3px var(--sapphire-soft);
}
.form-row textarea { resize: vertical; min-height: 120px; line-height: var(--leading-relaxed); }
.form-row.req label::after {
  content: ' *'; color: var(--gold);
}
.form-row.checkbox label {
  display: flex; align-items: flex-start; gap: var(--s-3);
  font-weight: 400; font-size: var(--t-sm); color: var(--fg-1); cursor: pointer;
}
.form-row.checkbox input[type="checkbox"] { margin-top: 4px; flex-shrink: 0; }

.form-error {
  padding: var(--s-3) var(--s-4); border-radius: var(--radius-sm);
  background: rgba(220,38,38,0.10); border: 1px solid rgba(220,38,38,0.25);
  color: #fca5a5; font-size: var(--t-sm); margin-bottom: var(--s-5);
}
.form-success {
  padding: var(--s-5); border-radius: var(--radius-sm);
  background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.25);
  color: #86efac; margin-bottom: var(--s-5);
}

/* ---------- Confirmation page ---------- */
.confirm {
  max-width: 560px; margin: var(--s-10) auto;
  text-align: center; padding: var(--s-7);
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.confirm h1 { margin-bottom: var(--s-4); }
.confirm-icon {
  width: 56px; height: 56px;
  background: var(--sapphire-soft); color: var(--sapphire);
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px; margin: 0 auto var(--s-5) auto;
}

/* ---------- About / Legal text pages ---------- */
.prose h2 { margin-top: var(--s-8); }
.prose h3 { margin-top: var(--s-6); }
.prose ul, .prose ol { color: var(--fg-1); margin: 0 0 var(--s-5) 0; padding-left: var(--s-5); }
.prose li { margin-bottom: var(--s-2); }
.prose hr { margin: var(--s-7) 0; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: var(--s-5); right: var(--s-5); bottom: var(--s-5);
  z-index: 100;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--s-4) var(--s-5);
  display: none;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
.cookie-banner.is-open { display: flex; gap: var(--s-4); align-items: center; flex-wrap: wrap; justify-content: space-between; }
.cookie-banner p { margin: 0; font-size: var(--t-sm); color: var(--fg-1); max-width: 60ch; }
.cookie-banner .cookie-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.cookie-banner .btn { padding: 8px 14px; font-size: var(--t-xs); }
@media (min-width: 768px) {
  .cookie-banner {
    left: var(--s-5); right: auto; bottom: var(--s-5);
    max-width: 560px;
  }
}

/* ---------- Small utilities ---------- */
.text-center { text-align: center; }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }
