:root {
  color-scheme: light;
  --base: #eff1f5;
  --mantle: #e6e9ef;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --text: #4c4f69;
  --muted: #6c6f85;
  --line: rgba(124, 127, 147, 0.18);
  --shadow: 0 18px 50px rgba(76, 79, 105, 0.12);
  --blue: #89b4fa;
  --sapphire: #74c7ec;
  --teal: #94e2d5;
  --green: #a6e3a1;
  --yellow: #f9e2af;
  --peach: #fab387;
  --mauve: #cba6f7;
  --rosewater: #f5e0dc;
  --hero-grad: linear-gradient(135deg, rgba(137, 180, 250, 0.28), rgba(250, 179, 135, 0.22) 46%, rgba(148, 226, 213, 0.28));
  --max: 1120px;
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(137, 180, 250, 0.18), transparent 32%),
    radial-gradient(circle at 85% 15%, rgba(250, 179, 135, 0.16), transparent 24%),
    radial-gradient(circle at bottom right, rgba(148, 226, 213, 0.18), transparent 30%),
    linear-gradient(180deg, #f7f8fb 0%, var(--base) 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.42) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
  opacity: 0.28;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(247, 248, 251, 0.72);
  border-bottom: 1px solid rgba(124, 127, 147, 0.1);
}

.site-header .shell,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(137, 180, 250, 0.88), rgba(116, 199, 236, 0.9) 42%, rgba(250, 179, 135, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 12px 24px rgba(116, 199, 236, 0.22);
  position: relative;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.96);
  left: 50%;
  transform: translateX(-50%);
}

.brand-mark::before {
  top: 8px;
  width: 8px;
  height: 20px;
  border-radius: 999px;
}

.brand-mark::after {
  bottom: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav a,
.pill,
.tag {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
  border-radius: 999px;
}

.nav a {
  padding: 8px 12px;
  font-size: 0.88rem;
  color: var(--muted);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  line-height: 1;
}

.nav a:hover,
.nav a:focus-visible,
.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(76, 79, 105, 0.1);
}

.hero {
  padding: 56px 0 28px;
}

.hero-grid,
.split {
  display: grid;
  gap: 24px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: center;
}

.eyebrow,
.mini-title {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--muted);
}

h1,
h2,
h3 {
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.96;
  margin-top: 14px;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.03;
  margin-bottom: 12px;
}

h3 {
  font-size: 1.22rem;
  margin-bottom: 10px;
}

.lead,
.section-copy,
.legal-copy,
li,
p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.04rem;
}

.lead {
  max-width: 640px;
  margin: 22px 0 0;
  font-size: 1.13rem;
}

.button-row,
.link-row,
.stat-row,
.feature-list,
.faq-list,
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button.primary {
  background: linear-gradient(135deg, #477edb, #2666d0);
  color: white;
  box-shadow: 0 14px 30px rgba(38, 102, 208, 0.24);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
}

.hero-art,
.card,
.legal-card,
.timeline-item,
.faq-item {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.hero-art {
  border-radius: calc(var(--radius) + 10px);
  padding: 26px;
  min-height: 520px;
  position: relative;
  overflow: hidden;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 32px;
  background: var(--hero-grad);
  opacity: 0.9;
  filter: blur(1px);
}

.hero-panel {
  position: relative;
  z-index: 1;
  height: 100%;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 22px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
}

.app-preview {
  display: grid;
  gap: 14px;
}

.preview-top,
.preview-actions,
.preview-bottom {
  display: grid;
  gap: 14px;
}

.preview-top {
  grid-template-columns: 1.1fr 0.9fr;
}

.preview-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.preview-bottom {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tile {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(124, 127, 147, 0.14);
  border-radius: 24px;
  padding: 16px;
  min-height: 104px;
}

.tile strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 8px;
}

.wheel {
  width: 168px;
  aspect-ratio: 1;
  border-radius: 50%;
  margin: 0 auto;
  background:
    conic-gradient(from 10deg, rgba(116, 199, 236, 0.94), rgba(137, 180, 250, 0.94), rgba(203, 166, 247, 0.92), rgba(250, 179, 135, 0.95), rgba(166, 227, 161, 0.92), rgba(116, 199, 236, 0.94));
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.78), inset 0 0 0 28px rgba(255, 255, 255, 0.26), 0 20px 40px rgba(76, 79, 105, 0.16);
  position: relative;
}

.wheel::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 22px solid #4c4f69;
}

.wheel::after {
  content: "";
  position: absolute;
  inset: 50%;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 0 7px rgba(76, 79, 105, 0.12);
}

.coin-stack {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding-top: 8px;
}

.coin {
  width: 70px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff8e5, var(--yellow) 58%, var(--peach));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.75), 0 12px 24px rgba(250, 179, 135, 0.24);
}

.sparkline {
  height: 84px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.55)),
    linear-gradient(115deg, rgba(137, 180, 250, 0.18), rgba(203, 166, 247, 0.16));
  position: relative;
  overflow: hidden;
}

.sparkline::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 28px;
  height: 28px;
  border-radius: 999px;
  border: 3px solid rgba(71, 126, 219, 0.55);
  border-color: transparent transparent rgba(71, 126, 219, 0.7) transparent;
  transform: skewX(-18deg);
}

.finger-dots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.finger-dots span {
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(148, 226, 213, 0.95), rgba(137, 180, 250, 0.9));
}

.dice-pips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  width: 78px;
  margin: 4px auto 0;
}

.dice-pips span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #4c4f69;
  margin: 0 auto;
}

.tag,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  color: var(--muted);
}

.tag {
  background: rgba(255, 255, 255, 0.6);
}

.pill strong,
.tag strong {
  color: var(--text);
}

.pill-stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  border-radius: 24px;
}

.pill-stack span {
  font-size: 0.9rem;
  line-height: 1.35;
}

main section {
  padding: 30px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.card {
  border-radius: var(--radius);
  padding: 24px;
}

.span-4 {
  grid-column: span 4;
}

.span-5 {
  grid-column: span 5;
}

.span-6 {
  grid-column: span 6;
}

.span-7 {
  grid-column: span 7;
}

.span-8 {
  grid-column: span 8;
}

.span-12 {
  grid-column: span 12;
}

.metric {
  font-size: 2.3rem;
  line-height: 1;
  color: var(--text);
  margin-bottom: 12px;
}

.stat-row {
  margin-top: 22px;
}

.stat {
  min-width: 160px;
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid rgba(124, 127, 147, 0.12);
  background: rgba(255, 255, 255, 0.48);
}

.stat strong {
  display: block;
  color: var(--text);
  margin-bottom: 6px;
}

.feature-list {
  margin-top: 18px;
}

.mini-card {
  padding: 14px 16px;
  min-width: 140px;
  background: rgba(255, 255, 255, 0.54);
  border-radius: 22px;
  border: 1px solid rgba(124, 127, 147, 0.12);
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  border-radius: 24px;
  padding: 18px 20px;
}

.timeline-item strong {
  display: block;
  color: var(--text);
  margin-bottom: 6px;
}

.legal-hero,
.legal-layout {
  display: grid;
  gap: 24px;
}

.legal-hero {
  padding: 50px 0 18px;
}

.legal-card {
  border-radius: 32px;
  padding: 28px;
}

.legal-layout {
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
  padding-bottom: 50px;
}

.legal-nav {
  position: sticky;
  top: 96px;
  flex-direction: column;
  align-items: stretch;
}

.legal-nav a {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
}

.legal-section + .legal-section {
  margin-top: 18px;
}

.legal-section {
  scroll-margin-top: 100px;
}

.legal-list,
.faq-list {
  padding-left: 18px;
}

.faq-item {
  border-radius: 24px;
  padding: 20px;
}

.footer {
  padding: 24px 0 42px;
}

.footer a {
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 960px) {
  .hero-grid,
  .split,
  .legal-layout,
  .preview-top,
  .preview-actions,
  .preview-bottom {
    grid-template-columns: 1fr;
  }

  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8 {
    grid-column: span 12;
  }

  .span-12 {
    grid-column: span 12;
  }

  .hero-art {
    min-height: auto;
  }

  .legal-nav {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header .shell,
  .footer-inner,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .lead,
  .section-copy,
  .legal-copy,
  li,
  p {
    font-size: 0.98rem;
  }

  .eyebrow,
  .mini-title {
    font-size: 0.72rem;
  }

  .stat,
  .mini-card {
    font-size: 0.92rem;
  }

  .card p,
  .card li,
  .faq-item p,
  .timeline-item,
  .legal-card p {
    font-size: 0.92rem;
  }

  .metric {
    font-size: 2rem;
  }

  .hero-art,
  .card,
  .legal-card,
  .timeline-item,
  .faq-item {
    padding: 20px;
  }

  .nav {
    width: 100%;
    gap: 6px;
    justify-content: flex-end;
    margin-bottom: 10px;
  }

  .nav a {
    padding: 7px 10px;
    font-size: 0.8rem;
    text-align: center;
  }
}
