:root {
  --ink: #10182f;
  --ink-soft: #26304c;
  --paper: #fbf8f0;
  --cream: #f4eddd;
  --gold: #f7c95e;
  --coral: #ed7d67;
  --mint: #90d7c6;
  --line: rgba(16, 24, 47, 0.14);
  --shadow: 0 22px 70px rgba(16, 24, 47, 0.13);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 7%, rgba(247, 201, 94, 0.25), transparent 28rem),
    radial-gradient(circle at 8% 45%, rgba(144, 215, 198, 0.18), transparent 32rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  padding: .75rem 1rem;
  background: var(--gold);
}

.skip-link:focus { left: 1rem; top: 1rem; }

.shell { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 8;
  border-bottom: 1px solid rgba(16, 24, 47, .08);
  background: rgba(251, 248, 240, .88);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-weight: 850;
  text-decoration: none;
  letter-spacing: -.02em;
}

.brand-mark {
  width: 38px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--gold);
  box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(-3deg);
}

.brand-mark::after { content: "C"; font-weight: 950; }

.brand-logo {
  width: 46px;
  height: 46px;
  border: 2px solid var(--ink);
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 4px 4px 0 var(--ink);
}

.nav-links { display: flex; align-items: center; gap: 1.35rem; }
.nav-links a { text-decoration: none; font-size: .94rem; font-weight: 700; }
.nav-links a:hover, .nav-links a:focus-visible { text-decoration: underline; text-underline-offset: 5px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .75rem 1.15rem;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--gold);
  box-shadow: 5px 5px 0 var(--ink);
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease;
}

.button:hover, .button:focus-visible { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.button.secondary { background: transparent; box-shadow: none; }

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
  padding: 5.5rem 0 4.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1.2rem;
  padding: .4rem .75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.58);
  font-size: .79rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }

h1, h2, h3 { line-height: 1.05; letter-spacing: -.045em; }
h1 { max-width: 760px; margin: 0; font-size: clamp(3.35rem, 7.2vw, 6.35rem); }
h2 { margin: 0 0 1rem; font-size: clamp(2.2rem, 4vw, 4rem); }
h3 { margin: 0 0 .55rem; font-size: 1.35rem; }

.hero-copy > p:not(.eyebrow) { max-width: 630px; margin: 1.45rem 0; color: var(--ink-soft); font-size: clamp(1.05rem, 1.6vw, 1.24rem); }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.card-stage { position: relative; min-height: 450px; display: grid; place-items: center; }
.logo-stage { position: relative; min-height: 480px; display: grid; place-items: center; isolation: isolate; }
.logo-stage::before {
  content: "";
  position: absolute;
  width: min(430px, 86vw);
  aspect-ratio: 1;
  border: 2px dashed rgba(16,24,47,.2);
  border-radius: 50%;
  animation: spin 34s linear infinite;
  z-index: -2;
}
.logo-stage::after {
  content: "";
  position: absolute;
  width: 75%;
  height: 75%;
  border-radius: 50%;
  background: rgba(247, 201, 94, .34);
  filter: blur(42px);
  z-index: -3;
}
.hero-logo {
  width: min(385px, 76vw);
  aspect-ratio: 1;
  border: 3px solid var(--ink);
  border-radius: 32px;
  object-fit: cover;
  box-shadow: 16px 18px 0 var(--ink);
  transform: rotate(2deg);
}
.logo-tag {
  position: absolute;
  right: 0;
  bottom: 44px;
  padding: .75rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 5px 5px 0 var(--ink);
  font-weight: 900;
}
.stage-ring { position: absolute; width: 390px; height: 390px; border: 2px dashed rgba(16,24,47,.18); border-radius: 50%; animation: spin 34s linear infinite; }
.stage-ring::before, .stage-ring::after { content: ""; position: absolute; width: 15px; height: 15px; border: 2px solid var(--ink); border-radius: 50%; background: var(--gold); }
.stage-ring::before { top: 32px; left: 62px; }
.stage-ring::after { right: 25px; bottom: 92px; background: var(--mint); }

.trading-card {
  position: absolute;
  width: min(270px, 62vw);
  aspect-ratio: .70;
  padding: 14px;
  border: 3px solid var(--ink);
  border-radius: 22px;
  background: #fffdf7;
  box-shadow: 14px 18px 0 rgba(16,24,47,.94);
}

.trading-card.back { transform: rotate(-14deg) translate(-42px, 8px); background: var(--coral); }
.trading-card.middle { transform: rotate(10deg) translate(44px, -5px); background: var(--mint); }
.trading-card.front { transform: rotate(-2deg); }
.card-art { height: 54%; border: 2px solid var(--ink); border-radius: 13px; background: linear-gradient(135deg, var(--gold), var(--coral)); display: grid; place-items: center; overflow: hidden; }
.card-art::before { content: "★"; font-size: 6rem; color: rgba(255,255,255,.78); text-shadow: 5px 5px 0 var(--ink); }
.card-label { display: flex; justify-content: space-between; align-items: center; padding: 1rem .2rem .55rem; font-weight: 900; }
.card-lines { height: 8px; border-radius: 999px; background: var(--line); box-shadow: 0 15px 0 var(--line), 0 30px 0 var(--line); }

@keyframes spin { to { transform: rotate(360deg); } }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 2px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.58);
  box-shadow: var(--shadow);
}

.trust-item { padding: 1.3rem 1.5rem; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item strong { display: block; font-size: 1.02rem; }
.trust-item span { color: var(--ink-soft); font-size: .9rem; }

.section { padding: 7rem 0; }
.section-head { max-width: 700px; margin-bottom: 2.8rem; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.step {
  min-height: 255px;
  padding: 1.65rem;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: rgba(255,255,255,.7);
  box-shadow: 7px 7px 0 var(--ink);
}
.step:nth-child(2) { background: #fff2d0; }
.step:nth-child(3) { background: #dff5ef; }
.step-number { width: 46px; height: 46px; margin-bottom: 2.2rem; border: 2px solid var(--ink); border-radius: 50%; display: grid; place-items: center; background: var(--coral); font-weight: 950; }
.step p { margin: 0; color: var(--ink-soft); }

.rules-panel {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 3rem;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 26px;
  background: var(--ink);
  color: var(--paper);
}

.rules-panel p { color: rgba(251,248,240,.75); }
.rule-list { display: grid; gap: 1rem; }
.rule { display: grid; grid-template-columns: 34px 1fr; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,.15); }
.rule:last-child { border-bottom: 0; padding-bottom: 0; }
.rule-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--gold); color: var(--ink); font-weight: 950; }
.rule strong { display: block; }
.rule span { color: rgba(251,248,240,.7); font-size: .94rem; }

.identity {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
}
.identity-card { padding: 2rem; border: 2px solid var(--ink); border-radius: 24px; background: var(--gold); box-shadow: 10px 10px 0 var(--ink); }
.identity-card .legal-name { font-size: 1.45rem; font-weight: 900; }
.identity-card dl { display: grid; grid-template-columns: auto 1fr; gap: .65rem 1.25rem; margin: 1.5rem 0 0; }
.identity-card dt { font-weight: 850; }
.identity-card dd { margin: 0; }

.cta-panel { padding: clamp(2.3rem, 6vw, 5rem); border: 2px solid var(--ink); border-radius: 28px; background: linear-gradient(135deg, #fbe7df, #fff1c5); text-align: center; box-shadow: var(--shadow); }
.cta-panel p { max-width: 630px; margin: 0 auto 2rem; color: var(--ink-soft); }
.cta-panel .actions { justify-content: center; }

.site-footer { padding: 3rem 0; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.footer-grid p { max-width: 420px; color: var(--ink-soft); }
.footer-links { display: grid; align-content: start; gap: .5rem; }
.footer-links strong { margin-bottom: .4rem; }
.footer-links a { color: var(--ink-soft); }
.copyright { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .88rem; }

.legal-page main { padding: 5rem 0 7rem; }
.legal-hero { max-width: 790px; margin-bottom: 3.5rem; }
.legal-hero h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); }
.legal-hero p { color: var(--ink-soft); font-size: 1.08rem; }
.legal-content { max-width: 820px; padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.72); }
.legal-content h2 { margin-top: 2.6rem; font-size: 1.65rem; letter-spacing: -.02em; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content li + li { margin-top: .55rem; }
.notice { margin: 1.4rem 0; padding: 1.1rem 1.2rem; border-left: 5px solid var(--coral); background: #fff2ec; }

@media (max-width: 850px) {
  .nav-links a:not(.button) { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 4rem; }
  .card-stage { min-height: 430px; }
  .logo-stage { min-height: 430px; }
  .trust-strip, .steps, .identity, .footer-grid { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); }
  .rules-panel { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .shell { width: min(100% - 1.25rem, 1120px); }
  .nav { min-height: 68px; }
  .brand-mark { width: 32px; height: 37px; box-shadow: 4px 4px 0 var(--ink); }
  .brand-logo { width: 38px; height: 38px; box-shadow: 3px 3px 0 var(--ink); }
  .nav .button { min-height: 42px; padding: .55rem .72rem; font-size: .82rem; }
  h1 { font-size: clamp(2.9rem, 15vw, 4.4rem); }
  .hero { min-height: auto; }
  .stage-ring { width: 310px; height: 310px; }
  .card-stage { min-height: 390px; }
  .logo-stage { min-height: 390px; }
  .hero-logo { box-shadow: 10px 12px 0 var(--ink); }
  .logo-tag { right: 4px; bottom: 24px; font-size: .83rem; }
  .section { padding: 5rem 0; }
  .actions .button { width: 100%; }
  .identity-card dl { grid-template-columns: 1fr; gap: .1rem; }
  .identity-card dd { margin-bottom: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage-ring { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
