/* ---------------------------------------------------------------------------
   Oddsy — marketing landing page
   Borrows the product's v4 "instrument panel" idiom: graphite cards on
   near-black, 28px radii, darker header strips split by a hairline, one signal
   red spent only on the primary action and live state. Dark by default, light
   under prefers-color-scheme: light.
--------------------------------------------------------------------------- */

:root {
  /* surfaces, darkest to lightest */
  --bg: #0b0b0b;
  --surface: #141414;
  --surface-2: #1c1c1c;
  --surface-3: #262626;
  --border: #232323;
  --border-strong: #343434;

  /* text */
  --text: #f4f4f4;
  --text-2: #a8a8a8;
  --text-3: #8a8a8a;

  /* signal red, lifted from the mark */
  --brand: #fb1424;
  --brand-2: #c9302f;
  --brand-soft: #ff6b6b;
  --brand-tint: #2a1012;
  --brand-ink: #ffffff;

  --up: #2fd27e;
  --up-tint: #0d2218;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-card: 0 1px 0 0 rgb(255 255 255 / 0.035) inset,
    0 30px 60px -30px rgb(0 0 0 / 0.75);
  --shadow-brand: 0 10px 30px -12px rgb(232 65 66 / 0.55);

  --ember: radial-gradient(50% 38% at 50% -4%, rgb(232 65 66 / 0.14), transparent 72%),
    radial-gradient(120% 70% at 50% 0%, #161616, transparent 70%);
  --card-bg: linear-gradient(180deg, #171717 0%, #131313 100%);
  --head-bg: rgb(0 0 0 / 0.22);
  --hairline: rgb(255 255 255 / 0.06);

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", "Menlo", monospace;

  --gutter: 16px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbfbfc;
    --surface: #ffffff;
    --surface-2: #f3f3f5;
    --surface-3: #e8e8ec;
    --border: #e3e3e8;
    --border-strong: #d2d2d9;

    --text: #121214;
    --text-2: #4e4e56;
    --text-3: #67676f;

    --brand-soft: #b32c2d;
    --brand-tint: #fdecec;

    --up: #108a52;
    --up-tint: #e6f6ee;

    --shadow-card: 0 1px 0 0 rgb(255 255 255 / 0.9) inset,
      0 18px 40px -28px rgb(16 16 20 / 0.35);
    --ember: radial-gradient(50% 38% at 50% -4%, rgb(232 65 66 / 0.09), transparent 72%),
      radial-gradient(120% 70% at 50% 0%, #f1f1f4, transparent 70%);
    --card-bg: linear-gradient(180deg, #ffffff 0%, #fcfcfd 100%);
    --head-bg: rgb(17 17 20 / 0.03);
    --hairline: rgb(17 17 20 / 0.07);
    color-scheme: light;
  }
}

/* --------------------------------------------------------------- base ---- */

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.015em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Graphite falloff from the top of the page with a faint red ember. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--ember);
  pointer-events: none;
  z-index: -1;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

::selection {
  background: var(--brand);
  color: var(--brand-ink);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--brand);
  color: var(--brand-ink);
  border-radius: 0 0 12px 0;
  font-size: 14px;
  font-weight: 500;
}
.skip-link:focus {
  left: 0;
}

/* ------------------------------------------------------------ helpers ---- */

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.label {
  font-size: 12.5px;
  color: var(--text-3);
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--head-bg);
  border-bottom: 1px solid var(--border);
}

.icon-well {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text-2);
}
.icon-well svg {
  width: 18px;
  height: 18px;
}

.panel {
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  transition: border-color 200ms ease;
}
.panel:hover {
  border-color: var(--hairline);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  background: var(--surface-3);
  color: var(--text-2);
  white-space: nowrap;
}
.tag-brand {
  background: var(--brand-tint);
  color: var(--brand-soft);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--brand);
  flex-shrink: 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease,
    border-color 180ms ease, box-shadow 220ms ease,
    transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover {
  background: var(--brand-2);
}

.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  background: var(--surface-3);
}

.btn-lg {
  height: 50px;
  padding: 0 26px;
  font-size: 15.5px;
}
.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 13.5px;
}

/* ------------------------------------------------------------- header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}
.brand span {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.header-nav {
  display: none;
  margin-left: 10px;
  gap: 2px;
}
.header-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-2);
  transition: background-color 180ms ease, color 180ms ease;
}
.header-nav a:hover {
  background: var(--surface-2);
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.header-actions .docs-link {
  display: none;
}

@media (min-width: 720px) {
  .header-nav {
    display: flex;
  }
  .header-actions .docs-link {
    display: inline-flex;
  }
}

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

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.25rem, 7.2vw, 4rem);
  letter-spacing: -0.045em;
  max-width: 17ch;
}
.hero h1 .accent {
  color: var(--brand);
}

.hero-sub {
  margin-top: 20px;
  max-width: 56ch;
  font-size: clamp(1rem, 2.4vw, 1.125rem);
  color: var(--text-2);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-foot {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-3);
}

.facts {
  display: grid;
  gap: 10px;
  margin-top: 40px;
  grid-template-columns: 1fr;
}
.facts > li {
  padding: 18px 20px;
}
.facts .figure {
  font-size: clamp(1.5rem, 4.4vw, 1.9rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.facts .label {
  margin-top: 6px;
}

@media (min-width: 640px) {
  .facts {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero {
    padding-top: 80px;
  }
}

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

.section {
  padding: 48px 0;
  scroll-margin-top: 80px;
}

.section-head {
  max-width: 62ch;
  margin-bottom: 24px;
}
.section-head h2 {
  margin-top: 10px;
  font-size: clamp(1.6rem, 4.4vw, 2.2rem);
  letter-spacing: -0.04em;
}
.section-head p {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 15.5px;
}

.split {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.card-body {
  padding: 20px 18px 22px;
}
.card-body p {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.6;
}

.bullets {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.bullets li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text-2);
}
.bullets svg {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
  color: var(--brand);
}

/* symbol strip for perps */
.symbols {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.symbols li {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
}
.symbols li.more {
  background: transparent;
  border-style: dashed;
  border-color: var(--border-strong);
  color: var(--text-3);
}

/* ------------------------------------------------------- how it works ---- */

.steps {
  display: grid;
  gap: 10px;
  padding: 14px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
.steps li {
  padding: 18px;
}
.steps .step-n {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
}
.steps h3 {
  margin-top: 10px;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.steps p {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--text-3);
  line-height: 1.6;
}
@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.flow-note {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  background: var(--head-bg);
  font-size: 13px;
  color: var(--text-3);
}

/* --------------------------------------------------------------- fees ---- */

.fees {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
}
.fee-cell {
  padding: 22px 20px;
  border-top: 1px solid var(--border);
}
.fee-cell:first-child {
  border-top: 0;
}
.fee-cell .figure {
  letter-spacing: -0.03em;
  font-size: clamp(1.6rem, 5vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.fee-cell .label {
  margin-top: 6px;
}
@media (min-width: 720px) {
  .fees {
    grid-template-columns: repeat(3, 1fr);
  }
  .fee-cell {
    border-top: 0;
    border-left: 1px solid var(--border);
  }
  .fee-cell:first-child {
    border-left: 0;
  }
}

/* ---------------------------------------------------------------- CTA ---- */

.cta {
  text-align: center;
  padding: 44px 20px 48px;
}
.cta h2 {
  font-size: clamp(1.6rem, 4.6vw, 2.1rem);
  letter-spacing: -0.04em;
  margin-inline: auto;
  max-width: 20ch;
}
.cta p {
  margin: 14px auto 0;
  max-width: 48ch;
  color: var(--text-2);
  font-size: 15px;
}
.cta .hero-cta {
  justify-content: center;
}

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

.site-footer {
  padding: 40px 0 56px;
}
.site-footer .wrap > :first-child {
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-brand img {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}
.footer-brand span {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-left: auto;
  font-size: 14px;
  color: var(--text-2);
}
.footer-links a:hover {
  color: var(--text);
}
.footer-note {
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--text-3);
  max-width: 70ch;
}

@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;
  }
}
