:root {
  --bg: #080B11;
  --bg-soft: #0F1420;
  --surface: #121926;
  --surface-2: #182132;
  --border: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(211, 200, 74, 0.28);
  --text: #FFFFFF;
  --muted: rgba(255, 255, 255, 0.7);
  --muted-strong: rgba(255, 255, 255, 0.88);
  --gold: #D3C84A;
  --gold-soft: rgba(211, 200, 74, 0.14);
  --on-gold: #0B0E14;
  --mint: #3DEFA2;
  --blue: #4FA3E3;
  --red: #F46366;
  --purple: #B07FE0;
  --orange: #E9A23B;

  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;
  --space-96: 96px;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 150ms;
  --dur: 250ms;
  --dur-slow: 500ms;

  --container: 1200px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-24);
}

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.site-header.scrolled,
.site-header.solid {
  background: rgba(8, 11, 17, 0.96);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-24);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand img {
  height: 36px;
  width: auto;
}

.header-nav {
  display: flex;
  gap: var(--space-8);
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-12);
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.header-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.header-nav a[aria-current="page"] {
  color: var(--gold);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  min-height: 48px;
  padding: 0 var(--space-24);
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--dur-fast) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.btn:active {
  transform: scale(0.97);
}

.btn .icon {
  width: 20px;
  height: 20px;
}

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

.btn-primary:hover {
  background: #E2D85C;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

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

.btn-sm {
  min-height: 44px;
  padding: 0 var(--space-16);
  font-size: 0.95rem;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
}

.store-badges a {
  display: inline-flex;
  border-radius: 10px;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}

.store-badges a:hover {
  transform: translateY(-2px);
}

.store-badges img {
  height: 52px;
  width: auto;
}

/* ===== Section scaffolding ===== */
.section {
  padding: var(--space-96) 0;
}

.section-head {
  margin-bottom: var(--space-32);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  margin-bottom: var(--space-16);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
}

.section-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-16);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.section-meta {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.section-sub {
  margin-top: var(--space-12);
  color: var(--muted);
  max-width: 60ch;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-48) 0;
  margin-top: var(--space-48);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-24);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  color: var(--muted);
}

.footer-brand img {
  height: 28px;
  width: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  min-height: 44px;
  padding: 0 var(--space-12);
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  transition: color var(--dur-fast) var(--ease);
}

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

.footer-links .icon {
  width: 18px;
  height: 18px;
}

/* ===== Reveal motion ===== */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===== Document pages (support / privacy) ===== */
.doc-hero {
  padding: var(--space-64) 0 var(--space-48);
}

.doc-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
}

.doc-hero p {
  margin-top: var(--space-16);
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.125rem;
}

.doc-hero .btn {
  margin-top: var(--space-32);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-32);
}

@media (max-width: 860px) {
  .header-nav {
    display: none;
  }

  .section {
    padding: var(--space-64) 0;
  }

  .section-head {
    margin-bottom: var(--space-32);
  }
}

@media (max-width: 480px) {
  :root {
    --header-h: 64px;
  }

  .container {
    padding: 0 var(--space-16);
  }

  .brand img {
    height: 30px;
  }

  .panel {
    padding: var(--space-24);
    border-radius: var(--radius-md);
  }

  .store-badges img {
    height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}