/* Tremor design system. Tokens, base, and the parts every page shares. See design/SPEC.md. */
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }

:root {
  /* dark surface */
  --ground: #03070d;
  --panel: #07131a;
  --panel-2: #0b1c25;
  --hair: rgba(160, 220, 240, 0.10);
  --hair-2: rgba(160, 220, 240, 0.18);
  --text: #eef5f7;
  --text-2: #9bb0b8;
  --text-3: #64787f;
  /* light surface */
  --paper: #f8f7f4;
  --card: #ffffff;
  --rule: #e3e1da;
  --ink: #18181b;
  --ink-2: #52525b;
  --ink-3: #8a8a93;
  --teal: #145565;
  /* accent and function */
  --accent: #6fcde8;
  --on-accent: #04181c;
  --up: #3ddc97;
  --down: #ff7d6e;

  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --r: 8px;
  --r-lg: 12px;
  --wrap: 1200px;
  --gutter: 24px;
  --head: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 16px); background: var(--ground); }
body { margin: 0; font: 400 15px/1.5 var(--sans); color: var(--text); background: var(--ground); min-height: 100vh; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.light :focus-visible { outline-color: var(--teal); }
::selection { background: var(--accent); color: var(--on-accent); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: var(--r); font-weight: 500; }
.skip:focus { left: 8px; }

/* ---- type ---- */
.fig, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; font-feature-settings: "zero" 0; }
.eyebrow { font: 400 13px/1.4 var(--sans); color: var(--text-3); }
.light .eyebrow { color: var(--ink-3); }
.h-display { font: 500 64px/1.02 var(--sans); letter-spacing: -0.03em; text-wrap: balance; }
.h-section { font: 500 32px/1.15 var(--sans); letter-spacing: -0.02em; text-wrap: balance; }
.h-sub { font: 500 20px/1.3 var(--sans); letter-spacing: -0.01em; }
.lede { font-size: 17px; line-height: 1.55; color: var(--text-2); max-width: 56ch; }
.light .lede { color: var(--ink-2); }
.muted { color: var(--text-3); }
.light .muted { color: var(--ink-3); }

/* ---- layout ---- */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.band { padding: 112px 0 96px; border-top: 1px solid var(--hair); }
.band.light { background: var(--paper); color: var(--ink); border-top-color: var(--rule); }
.band.dark { background: var(--ground); color: var(--text); }
.band.tight { padding: 64px 0; }
.band-head { display: grid; gap: 12px; margin-bottom: 48px; max-width: 720px; }

/* ---- header ---- */
.site-head { position: sticky; top: 0; z-index: 50; height: var(--head); background: rgba(3, 7, 13, 0.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--hair); color: var(--text); }
.site-head .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.site-head.wide .wrap { max-width: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 500 17px/1 var(--sans); letter-spacing: -0.01em; color: var(--text); }
.brand svg { width: 22px; height: 22px; color: var(--accent); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: var(--r); text-decoration: none; font-size: 14px; font-weight: 500; color: var(--text-2); transition: color 0.15s var(--ease), background-color 0.15s var(--ease); }
.nav a[aria-current="page"] { color: var(--text); }
.head-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--hair-2); border-radius: var(--r); background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 18px; height: 18px; }
.menu { position: fixed; inset: var(--head) 0 auto 0; z-index: 49; background: var(--panel); border-bottom: 1px solid var(--hair-2); padding: 12px var(--gutter) 20px; display: grid; gap: 4px; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5); }
.menu a { padding: 12px 4px; font-size: 17px; font-weight: 500; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--hair); }
.menu a:last-child { border-bottom: 0; }

/* ---- chips, dots ---- */
.chip { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px; border: 1px solid var(--hair-2); border-radius: var(--r); font: 400 13px/1 var(--sans); color: var(--text-2); white-space: nowrap; }
.light .chip { border-color: var(--rule); color: var(--ink-2); }
/* No status dots. A state is said in words, and only when it is not the normal one. */
.dot { display: none !important; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r); border: 1px solid transparent; background: transparent; font: 500 15px/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease), transform 0.1s var(--ease); -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(0.985); }
.btn.lg { height: 48px; padding: 0 20px; font-size: 16px; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.block { width: 100%; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.light .btn.primary { background: var(--teal); color: #fff; }
.btn.ghost { border-color: var(--hair-2); color: var(--text); }
.light .btn.ghost { border-color: var(--rule); color: var(--ink); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--panel-2); color: var(--text-3); border-color: transparent; cursor: default; transform: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; color: var(--text); }
.light .link-arrow { color: var(--teal); }
.link-arrow::after { content: "\2192"; transition: transform 0.15s var(--ease); }

/* ---- surfaces ---- */
.panel { background: var(--panel); border: 1px solid var(--hair); border-radius: var(--r-lg); }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); }
.hair { border: 0; border-top: 1px solid var(--hair); margin: 0; }
.light .hair { border-top-color: var(--rule); }

/* ---- signed figures ---- */
.tri { display: inline-block; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; vertical-align: middle; margin-right: 6px; }
.tri.up { border-bottom: 6px solid var(--up); }
.tri.down { border-top: 6px solid var(--down); }

/* ---- table ---- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font: 400 13px/1.4 var(--sans); color: var(--text-3); padding: 12px 16px; border-bottom: 1px solid var(--hair); white-space: nowrap; }
.table td { padding: 0 16px; height: 44px; border-bottom: 1px solid var(--hair); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; }
.table td.num, .table td.time { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.table td.time { color: var(--text-2); }
.light .table th { color: var(--ink-3); border-bottom-color: var(--rule); }
.light .table td { border-bottom-color: var(--rule); }

/* ---- questions ---- */
.qa { border-top: 1px solid var(--rule); }
.qa details { border-bottom: 1px solid var(--rule); }
.qa summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font: 500 17px/1.4 var(--sans); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 400 20px/1 var(--mono); color: var(--ink-3); }
.qa details[open] summary::after { content: "\2212"; }
.qa details p { padding: 0 40px 20px 0; color: var(--ink-2); font-size: 17px; line-height: 1.55; max-width: 68ch; }

/* ---- footer ---- */
.site-foot { background: var(--ground); color: var(--text-2); border-top: 1px solid var(--hair); padding: 64px 0 40px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-grid h4 { font: 400 13px/1.4 var(--sans); color: var(--text-3); margin-bottom: 12px; }
.foot-grid a { display: block; padding: 4px 0; text-decoration: none; color: var(--text-2); transition: color 0.15s var(--ease); }
.foot-grid a.brand { display: inline-flex; padding: 0; color: var(--text); }
.foot-about p { margin-top: 12px; max-width: 34ch; }
.foot-base { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--hair); font: 400 13px/1.6 var(--sans); color: var(--text-3); }
.foot-base span { overflow-wrap: anywhere; }

@media (hover: hover) {
  .nav a:hover { color: var(--text); background: rgba(160, 220, 240, 0.06); }
  .btn.primary:not(:disabled):hover { background: #8fdcf2; }
  .light .btn.primary:not(:disabled):hover { background: #0f4350; }
  .btn.ghost:hover { background: rgba(160, 220, 240, 0.06); }
  .light .btn.ghost:hover { background: rgba(24, 24, 27, 0.04); }
  .link-arrow:hover::after { transform: translateX(3px); }
  .foot-grid a:hover { color: var(--text); }
  .menu-btn:hover { background: rgba(160, 220, 240, 0.06); }
}

@media (max-width: 860px) {
  :root { --gutter: 20px; }
  .h-display { font-size: 40px; line-height: 1.05; }
  .h-section { font-size: 26px; }
  .band { padding: 64px 0 56px; }
  .band-head { margin-bottom: 32px; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
}

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