:root {
  --bg: #050b18;
  --surface: #0c1628;
  --surface-2: #122033;
  --fg: #e8f1ff;
  --muted: #8fa3c1;
  --cyan: #3ec6ff;
  --gold: #e8c36a;
  --line: #1c334c;
  --sans: "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
  --display: "Outfit", ui-sans-serif, system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
}

img, video { max-width: 100%; height: auto; display: block; }

button, input, select { font: inherit; color: inherit; }

a { color: var(--cyan); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6rem;
}

p { margin: 0 0 0.8rem; color: var(--muted); }

.wrap {
  width: min(72rem, calc(100% - 2rem));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--cyan);
  color: var(--bg);
  padding: 0.6rem 1rem;
  z-index: 80;
}

.skip:focus { top: 0.5rem; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 11, 24, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

body.admin-bar .site-header { top: 32px; }

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  min-height: 4.25rem;
  padding: 0.6rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--fg);
  text-decoration: none;
  margin-right: auto;
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line);
}

.brand span {
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.15;
}

.brand span span {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.primary-nav { display: none; flex: 1 0 100%; }
.primary-nav.is-open { display: block; }

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0 0.8rem;
  display: flex;
  flex-direction: column;
}

.nav-list a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  padding: 0.7rem 0.2rem;
}

.nav-list .current-menu-item > a,
.nav-list .current-menu-ancestor > a,
.nav-list .current_page_item > a,
.nav-list a:hover { color: var(--cyan); }

.nav-toggle {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.7rem;
  border: 1px solid var(--line);
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 1rem;
  height: 1.5px;
  background: var(--fg);
}

.cta-desktop { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.55rem 1.1rem;
  border-radius: 0.7rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.btn-cyan { background: var(--cyan); color: var(--bg); }
.btn-gold { background: var(--gold); color: var(--bg); width: 100%; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--fg); }

.kicker {
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.lede { font-size: 1.15rem; max-width: 40rem; }

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 11, 24, 0.96), rgba(5, 11, 24, 0.72) 55%, rgba(5, 11, 24, 0.35));
}
.hero-grid, .page-hero { position: relative; }
.hero-grid {
  display: grid;
  gap: 1.5rem;
  padding: 3.5rem 0;
}
.hero h1, .page-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  color: var(--fg);
}
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 3rem 0;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.2rem; }

.frame {
  width: 100%;
  border-radius: 1.1rem;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}
.frame-wrap { padding: 1.5rem 0 0; }

.card-grid, .stat-grid {
  display: grid;
  gap: 0.9rem;
  padding: 1.5rem 0 2rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.25rem;
}
.card h2 { font-size: 1.25rem; color: var(--fg); }
.card-dark { background: var(--bg); }
.step { color: var(--gold); font-family: var(--display); margin: 0 0 0.4rem; }
.gold { color: var(--gold); font-family: var(--display); font-size: 1.7rem; margin: 0; }
.gold.big { font-size: 2.4rem; }
.band {
  background: var(--surface);
  border-block: 1px solid var(--line);
  padding: 2.2rem 0;
}
.band h2, .split h2, .film h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); color: var(--fg); }
.split, .founder {
  display: grid;
  gap: 1.4rem;
  padding: 2.5rem 0;
  align-items: center;
}
.text-link { font-weight: 700; text-decoration: none; }
.film { padding-bottom: 2.5rem; }
.note { color: var(--muted); font-size: 0.85rem; }
.split-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.stat p:first-child { margin-bottom: 0.25rem; }
.steps { list-style: none; padding: 0; margin: 1rem 0 0; }
.steps p { color: var(--fg); font-weight: 600; margin: 0.4rem 0 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 1rem; }
table { width: 100%; border-collapse: collapse; min-width: 36rem; }
th, td { text-align: left; padding: 0.75rem 0.8rem; vertical-align: top; }
th { background: var(--surface-2); color: var(--muted); font-weight: 600; }
td { border-top: 1px solid var(--line); }
tr.target td { color: var(--gold); background: var(--surface); }
.timeline { margin: 0.5rem 0 0; padding-left: 1.1rem; color: var(--muted); }
.timeline strong { color: var(--fg); }
.tight { padding: 0; }
.closer { margin-top: 1.4rem; max-width: 40rem; }
.closer-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 0;
  margin: 1rem 0 0;
  max-width: 32rem;
}
.closer-stats strong {
  display: block;
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--gold);
}
.closer-stats span { color: var(--muted); font-size: 0.8rem; }

.founder blockquote {
  margin: 0;
  padding-left: 1rem;
  border-left: 2px solid var(--cyan);
  font-family: var(--display);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.35;
  color: var(--fg);
}
.founder dl {
  display: grid;
  gap: 0.7rem;
  margin: 1.4rem 0 0;
}
.founder dl div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
}
.founder dt { color: var(--muted); font-size: 0.85rem; }
.founder dd { margin: 0.2rem 0 0; font-weight: 600; }

.legal-index h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--fg); }
.legal-index ul { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.legal-index a {
  display: block;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  margin-bottom: 0.7rem;
}
.legal-index a:hover { border-color: var(--cyan); }
.legal-index strong { display: block; color: var(--fg); font-family: var(--display); font-size: 1.15rem; }
.legal-index span { color: var(--muted); }

.policy { padding-top: 1.5rem; }
.back a { text-decoration: none; font-size: 0.95rem; }
.doc { max-width: 46rem; margin: 0 auto 3rem; padding: 0 0 1rem; }
.doc h2 { font-size: 1.45rem; margin-top: 1.6rem; color: var(--fg); }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--fg); }
.doc ul { padding-left: 1.2rem; }
.doc-code {
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 1rem;
  color: var(--fg);
  font-size: 0.85rem;
}
.page-copy { padding: 3rem 0; }
.page-copy h1 { font-size: clamp(2rem, 4vw, 3rem); }

.explorer {
  display: grid;
  gap: 0.9rem;
  padding-bottom: 2.5rem;
}
.explorer h2 { font-size: 1rem; }
.field-label { display: block; color: var(--muted); font-size: 0.9rem; margin: 0.8rem 0 0.3rem; }
.explorer input,
.explorer select {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.7rem;
}
.explorer input[type="search"],
.explorer input[name="amount"] { width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; max-height: 18rem; overflow: auto; margin-top: 0.8rem; }
.chips button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 0.45rem;
  padding: 0.25rem 0.45rem;
  cursor: pointer;
}
.chips button.is-on { border-color: var(--cyan); color: var(--cyan); }
.swap-row { display: flex; gap: 0.5rem; align-items: center; }
.swap-row input { text-align: right; font-family: var(--display); font-size: 1.4rem; }
.receive { justify-content: space-between; background: var(--bg); border: 1px solid var(--line); border-radius: 0.7rem; padding-right: 0.8rem; }
.receive select { border: 0; }
.receive strong { font-family: var(--display); font-size: 1.5rem; color: var(--gold); }
.quote { margin: 1rem 0; }
.quote div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.25rem 0; color: var(--muted); font-size: 0.95rem; }
.quote dd { margin: 0; color: var(--fg); }
.swaps { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.swaps li { border-bottom: 1px solid var(--line); padding-bottom: 0.7rem; margin-bottom: 0.7rem; }
.swaps p { margin: 0; }
.swaps p:first-child { color: var(--fg); font-weight: 600; }
.muted { color: var(--muted); }
.compact { grid-template-columns: 1fr 1fr; padding-top: 0; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2rem;
}
.footer-bar {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.footer-bar p { margin: 0; font-size: 0.95rem; }
.footer-bar nav { display: flex; flex-wrap: wrap; gap: 0.8rem 1rem; }
.footer-bar a,
.footer-bar button {
  color: var(--muted);
  background: none;
  border: 0;
  padding: 0;
  text-decoration: none;
  cursor: pointer;
}
.footer-bar a:hover,
.footer-bar button:hover { color: var(--cyan); }

.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 1rem 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
}
.cookie-bar[hidden] { display: none; }
.cookie-inner { display: flex; flex-direction: column; gap: 0.8rem; }
.cookie-inner p { margin: 0; }
.cookie-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

@media (min-width: 720px) {
  .cols-2, .founder dl { grid-template-columns: 1fr 1fr; }
  .cols-3 { grid-template-columns: repeat(3, 1fr); }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-bar { flex-direction: row; align-items: center; justify-content: space-between; }
  .cookie-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .founder { grid-template-columns: 17rem 1fr; align-items: start; }
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .cta-desktop { display: inline-flex; }
  .primary-nav {
    display: block;
    flex: 0 1 auto;
    margin-left: auto;
  }
  .nav-list { flex-direction: row; padding: 0; gap: 0.15rem; }
  .nav-list a { padding: 0.45rem 0.55rem; font-size: 0.95rem; }
  .brand { margin-right: 0; }
  .hero-grid, .split { grid-template-columns: 1.1fr 0.9fr; }
  .cols-4, .explorer { grid-template-columns: repeat(4, 1fr); }
  .explorer { grid-template-columns: 15rem 1fr 16rem; align-items: start; }
  .stat-grid { grid-template-columns: repeat(6, 1fr); }
  .compact { grid-template-columns: 1fr 1fr; }
}

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