@font-face {
  font-family: "Rubik";
  src: url("/assets/fonts/Rubik-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rubik";
  src: url("/assets/fonts/Rubik-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rubik";
  src: url("/assets/fonts/Rubik-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rubik";
  src: url("/assets/fonts/Rubik-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --color-accent: #FFD600;
  --color-secondary: #3A4261;
  --color-background: #05070D;
  --color-surface: #151A2B;
  --color-primary-text: #FFFFFF;
  --color-secondary-text: #B3B3B3;
  --color-success: #1ED760;
  --color-warning: #FFAB29;
  --color-fail: #F3727F;

  /* derived neutrals (not brand tokens; used only for editorial depth) */
  --surface-2: #1b2236;
  --text-soft: #E7E8EE;
  --text-dim: #5A6076;
  --hairline: rgb(179 179 179 / 14%);
  --accent-soft: rgb(255 214 0 / 12%);

  --space-xs: 8px;
  --space-s: 12px;
  --space-m: 16px;
  --space-l: 20px;
  --space-xl: 24px;
  --space-xxl: 32px;

  --radius-small: 8px;
  --radius-medium: 16px;
  --radius-large: 24px;
  --radius-pill: 999px;

  --shell-max: 1040px;
  --reading-max: 680px;
  --copy-max: 560px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--color-background);
  color: var(--color-primary-text);
  font-family: "Rubik", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top right, rgb(255 214 0 / 9%), transparent 280px),
    var(--color-background);
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

/* ----------------------------- shell ----------------------------- */

.shell {
  width: min(100% - 40px, var(--shell-max));
  margin-inline: auto;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  padding-block: var(--space-l);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-primary-text);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--color-accent);
  color: var(--color-background);
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 0 22px rgb(255 214 0 / 22%);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  justify-content: flex-end;
}

.site-nav a {
  border: 1px solid rgb(255 214 0 / 26%);
  border-radius: var(--radius-pill);
  padding: 7px 13px;
  color: var(--color-secondary-text);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--color-background);
  background: var(--color-accent);
  border-color: var(--color-accent);
}

/* ----------------------------- buttons ----------------------------- */

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: var(--radius-medium);
  padding-inline: var(--space-l);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.12s, box-shadow 0.2s, border-color 0.15s;
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  border: 1px solid var(--color-surface);
  background: var(--color-accent);
  color: var(--color-background);
  box-shadow: 0 0 26px rgb(255 214 0 / 16%);
}

a.button-primary:hover {
  box-shadow: 0 0 36px rgb(255 214 0 / 28%);
}

.button-secondary {
  border: 1.25px solid rgb(255 214 0 / 50%);
  background: var(--color-background);
  color: var(--color-primary-text);
}

.button-secondary:hover {
  border-color: var(--color-accent);
}

/* pre-launch "coming soon" — visually primary, not interactive */
.button-soon {
  gap: var(--space-s);
  cursor: default;
  text-align: left;
}

.button-stack {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.button-kicker {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.62;
}

.button-label {
  font-size: 16px;
  font-weight: 900;
}

.soon-pill {
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgb(5 7 13 / 18%);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ----------------------------- shared type ----------------------------- */

.eyebrow {
  margin: 0 0 var(--space-s);
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ----------------------------- home hero ----------------------------- */

.home-hero {
  padding-block: 40px 24px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 26px;
  color: var(--color-secondary-text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

.home-title {
  margin: 0;
  font-size: clamp(46px, 8.5vw, 104px);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-title-tail {
  color: var(--text-dim);
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-xxl);
  align-items: end;
  margin-top: 34px;
}

.hero-lead {
  max-width: 42ch;
  margin: 0;
  color: var(--text-soft);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
  max-width: 264px;
  justify-self: end;
}

.hero-actions .button {
  width: 100%;
}

.hero-actions .button-soon {
  justify-content: space-between;
}

.hero-meta {
  margin: 4px 0 0;
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 700;
}

/* ----------------------------- home sections ----------------------------- */

.content-column {
  padding-bottom: var(--space-xxl);
}

.home-section {
  padding-block: 30px;
}

.home-section + .home-section {
  border-top: 1px solid var(--hairline);
}

.section-sub {
  max-width: 60ch;
  margin: 0 0 6px;
  color: var(--color-secondary-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

/* zig-zag value props */
.prop-list {
  margin-top: 6px;
}

.prop {
  display: grid;
  grid-template-columns: auto 64px 1fr;
  gap: var(--space-l);
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--hairline);
}

.prop:last-child {
  border-bottom: 1px solid var(--hairline);
}

.prop-num {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.prop-chip {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--accent-soft);
}

.prop-chip img {
  width: 32px;
  height: 32px;
  filter: invert(76%) sepia(96%) saturate(1178%) hue-rotate(357deg) brightness(105%) contrast(104%);
}

.prop-body {
  max-width: 60ch;
}

.prop-body h3 {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.prop-body p {
  margin: 0;
  color: var(--color-secondary-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.prop--alt {
  grid-template-columns: 1fr 64px auto;
}

.prop--alt .prop-body {
  order: 1;
}

.prop--alt .prop-chip {
  order: 2;
}

.prop--alt .prop-num {
  order: 3;
  text-align: right;
}

/* link list */
/* home FAQ */
.qa-list {
  margin-top: 6px;
}

.qa-item {
  padding: 24px 0;
  border-top: 1px solid var(--hairline);
}

.qa-item:last-child {
  border-bottom: 1px solid var(--hairline);
}

.qa-item h3 {
  margin: 0 0 8px;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.qa-item p {
  max-width: 70ch;
  margin: 0;
  color: var(--color-secondary-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.qa-item p + p {
  margin-top: 8px;
}

.link-list {
  list-style: none;
  margin: var(--space-m) 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
  max-width: var(--copy-max);
}

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  padding: 16px 4px;
  border-bottom: 1px solid var(--hairline);
  color: var(--color-primary-text);
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  transition: padding 0.15s, color 0.15s;
}

.link-list a:hover {
  padding-left: 12px;
  color: var(--color-accent);
}

.link-list .arrow {
  color: var(--color-accent);
  font-weight: 900;
}

/* ----------------------------- legal ----------------------------- */

.legal-hero {
  padding-block: var(--space-xxl) 22px;
  max-width: 70ch;
}

.legal-hero h1 {
  margin: 0 0 var(--space-m);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -0.02em;
}

.legal-lead {
  max-width: 60ch;
  margin: 0 0 var(--space-l);
  color: var(--text-soft);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
}

.updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 var(--space-l);
  color: var(--color-secondary-text);
  font-size: 12.5px;
  font-weight: 700;
}

.updated .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 10px var(--color-success);
}

.hero-actions.is-row,
.legal-hero .hero-actions {
  flex-direction: row;
  flex-wrap: wrap;
  width: auto;
  max-width: none;
  justify-self: start;
}

.legal-hero .hero-actions .button {
  width: auto;
}

.legal-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding-block: 24px 50px;
}

.toc {
  position: sticky;
  top: 24px;
  align-self: start;
}

.toc-label {
  margin: 0 0 var(--space-m);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
  display: grid;
  gap: 2px;
}

.toc a {
  display: flex;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--color-secondary-text);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.toc a::before {
  counter-increment: toc;
  content: counter(toc, decimal-leading-zero);
  color: var(--text-dim);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.toc a:hover,
.toc a.is-active {
  background: var(--color-surface);
  color: var(--color-primary-text);
}

.toc a.is-active {
  background: var(--accent-soft);
}

.toc a.is-active::before {
  color: var(--color-accent);
}

.doc {
  min-width: 0;
  max-width: var(--reading-max);
}

.article {
  border-top: 1px solid var(--hairline);
  padding-block: 26px;
  scroll-margin-top: 20px;
}

.article:first-child {
  border-top: 0;
  padding-top: 6px;
}

.article h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.005em;
  line-height: 1.2;
}

.article-num {
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.article p {
  max-width: 68ch;
  margin: 0 0 12px;
  color: #C7CAD6;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.62;
}

.article p:last-child {
  margin-bottom: 0;
}

.inline-link {
  color: var(--color-accent);
  font-weight: 700;
  border-bottom: 1px solid rgb(255 214 0 / 35%);
  text-decoration: none;
}

.inline-link:hover {
  border-bottom-color: var(--color-accent);
}

.step-list {
  margin: 6px 0 0;
  padding-left: var(--space-l);
  display: grid;
  gap: 10px;
  max-width: 68ch;
}

.step-list li {
  color: #C7CAD6;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
}

.step-list li::marker {
  color: var(--color-accent);
  font-weight: 800;
}

/* ----------------------------- footer ----------------------------- */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--hairline);
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-l);
  flex-wrap: wrap;
  padding-block: var(--space-xl);
}

.site-footer strong {
  font-weight: 900;
}

.site-footer p {
  margin: 6px 0 0;
  color: var(--color-secondary-text);
  font-size: 12px;
  font-weight: 700;
}

.site-footer .site-nav a {
  border-color: rgb(255 255 255 / 12%);
}

body {
  display: flex;
  flex-direction: column;
}

/* status tokens kept available for future states */
.is-warning { color: var(--color-warning); }
.is-fail { color: var(--color-fail); }

/* ----------------------------- responsive ----------------------------- */

@media (max-width: 880px) {
  .home-hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-l);
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    width: auto;
    max-width: none;
    justify-self: start;
  }

  .hero-actions .button {
    width: auto;
  }

  .legal-body {
    grid-template-columns: 1fr;
    gap: var(--space-l);
  }

  .toc {
    display: none;
  }

  .prop,
  .prop--alt {
    grid-template-columns: 40px 1fr;
    gap: var(--space-m);
    align-items: start;
  }

  .prop-chip,
  .prop--alt .prop-chip {
    display: none;
  }

  .prop--alt .prop-body {
    order: 2;
  }

  .prop--alt .prop-num {
    order: 1;
    text-align: left;
  }
}

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

  .site-nav {
    justify-content: flex-start;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
