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

:root {
  --bg: #0a0a0a;
  --bg-elev: #141414;
  --bg-soft: #1a1a1a;
  --border: #262626;
  --cream: #F0E4CC;
  --cream-dim: #B5A788;
  --cream-muted: #807663;
  --gold: #C9A961;
  --gold-bright: #D9B970;
  --gold-soft: rgba(201, 169, 97, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-gold: 0 0 40px rgba(201, 169, 97, 0.15);
  --max: 1180px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold-bright);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand:hover {
  color: var(--cream);
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

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

.nav-links a {
  color: var(--cream-dim);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cream);
}

.nav-cta {
  padding: 9px 18px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  color: var(--gold) !important;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--bg) !important;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 100px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--gold-soft) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 112px;
  height: 112px;
  margin: 0 auto 36px;
  border-radius: 22px;
  box-shadow: var(--shadow-gold);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 24px;
  color: var(--cream);
}

.hero h1 .accent {
  color: var(--gold);
}

.hero p.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--cream-dim);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.btn-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--gold-bright);
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201, 169, 97, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ---------- Sections ---------- */
section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--cream-dim);
  font-size: 1.05rem;
}

/* ---------- Features grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.25s ease;
}

.feature:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--gold);
}

.feature h3 {
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature p {
  color: var(--cream-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.7;
  letter-spacing: -0.02em;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--cream);
  padding-right: 60px;
}

.step p {
  color: var(--cream-dim);
  font-size: 0.94rem;
}

/* ---------- Privacy callout ---------- */
.privacy-callout {
  background: linear-gradient(135deg, var(--bg-elev) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.privacy-callout h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 14px;
  color: var(--cream);
  letter-spacing: -0.02em;
}

.privacy-callout p {
  color: var(--cream-dim);
  max-width: 580px;
  margin: 0 auto 28px;
}

/* ---------- CTA strip ---------- */
.cta-strip {
  text-align: center;
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-strip h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin-bottom: 18px;
  color: var(--cream);
  letter-spacing: -0.02em;
}

.cta-strip p {
  color: var(--cream-dim);
  margin-bottom: 32px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Footer ---------- */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

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

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.footer-brand span {
  font-weight: 600;
  color: var(--cream);
  font-size: 1.05rem;
}

.footer-tag {
  color: var(--cream-muted);
  font-size: 0.92rem;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--cream-dim);
  font-size: 0.93rem;
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--cream-muted);
  font-size: 0.86rem;
}

/* ---------- Legal pages ---------- */
.legal-hero {
  padding: 80px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.legal-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 12px;
}

.legal-hero .updated {
  color: var(--cream-muted);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.legal-content section {
  padding: 0;
  margin-bottom: 48px;
}

.legal-content h2 {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.legal-content h2 .num {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cream);
  margin: 24px 0 10px;
}

.legal-content p {
  color: var(--cream-dim);
  margin-bottom: 14px;
  font-size: 0.98rem;
  line-height: 1.75;
}

.legal-content ul,
.legal-content ol {
  color: var(--cream-dim);
  margin: 0 0 16px 22px;
  font-size: 0.98rem;
  line-height: 1.75;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content li strong {
  color: var(--cream);
  font-weight: 600;
}

.legal-content strong {
  color: var(--cream);
  font-weight: 600;
}

.toc {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 56px;
}

.toc h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 32px;
}

.toc li {
  margin-bottom: 8px;
  font-size: 0.92rem;
  break-inside: avoid;
}

.toc a {
  color: var(--cream-dim);
}

.toc a:hover {
  color: var(--gold);
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.9rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.legal-content th,
.legal-content td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--cream-dim);
  vertical-align: top;
}

.legal-content th {
  background: var(--bg-soft);
  color: var(--cream);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.legal-content tr:last-child td {
  border-bottom: none;
}

.contact-box {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-top: 16px;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav-links {
    gap: 18px;
  }
  .nav-links a:not(.nav-cta) {
    display: none;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand-col {
    grid-column: 1 / -1;
  }
  .privacy-callout {
    padding: 32px 24px;
  }
  .toc ol {
    columns: 1;
  }
  section {
    padding: 64px 0;
  }
  .hero {
    padding: 80px 0 64px;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .legal-content {
    padding: 40px 20px 60px;
  }
}
