@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
}

:root {
  --bg: #05070b;
  --raised: #0d1219;
  --panel: #0b1017;
  --ink: #eef2fa;
  --muted: #b0bbc7;
  --ice: #adceff;
  --ice-deep: #88b4f5;
  --line: rgba(173, 206, 255, 0.16);
  --line-strong: rgba(173, 206, 255, 0.22);
  --shadow-pill: inset 0 0 0 1px rgba(173, 206, 255, 0.45), inset 0 0 18px rgba(151, 171, 217, 0.38);
  --shadow-pill-hover: inset 0 0 0 1px rgba(173, 206, 255, 0.6), inset 0 0 22px rgba(151, 171, 217, 0.75);
  --radius: 20px;
  --nav-offset: 108px;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(rgba(173, 206, 255, 0.11) 1px, transparent 1px);
  background-size: 32px 32px;
  animation: grid-pan 22s linear infinite;
}

.atmosphere .orb,
.atmosphere .streak {
  position: absolute;
  display: block;
}

.orb {
  border-radius: 50%;
}

.orb-a {
  width: 78vw;
  height: 78vw;
  top: -32vw;
  left: 6vw;
  background: radial-gradient(circle, rgba(173, 206, 255, 0.34), rgba(136, 180, 245, 0.12) 38%, transparent 68%);
  animation: drift-a 16s ease-in-out infinite;
}

.orb-b {
  width: 52vw;
  height: 52vw;
  right: -14vw;
  bottom: -8vw;
  background: radial-gradient(circle, rgba(120, 156, 220, 0.28), rgba(173, 206, 255, 0.06) 46%, transparent 70%);
  animation: drift-b 20s ease-in-out infinite;
}

.orb-c {
  width: 34vw;
  height: 34vw;
  top: 42vh;
  left: -10vw;
  background: radial-gradient(circle, rgba(231, 239, 252, 0.16), transparent 66%);
  animation: drift-c 13s ease-in-out infinite;
}

.streak {
  top: 22%;
  left: -30%;
  width: 42%;
  height: 140px;
  background: linear-gradient(90deg, transparent, rgba(173, 206, 255, 0.16), transparent);
  filter: blur(8px);
  animation: streak 11s ease-in-out infinite;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

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

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

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

ul,
ol,
dl,
dd,
h1,
h2,
h3,
p {
  margin: 0;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ice-deep);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(173, 206, 255, 0.28);
  color: #fff;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--raised);
  border-radius: 999px;
}

.skip:focus {
  top: 16px;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.eyebrow {
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}

.display {
  font-size: clamp(2.75rem, 5.2vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 400;
}

.display span {
  display: block;
}

h2 {
  max-width: 16em;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.gradient-text {
  color: transparent;
  background-image: linear-gradient(100deg, #a4afc2 0%, #e7effc 22%, #c5d8fb 48%, #eef3fc 70%, #a4afc2 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  padding-bottom: 0.08em;
  animation: sheen 9s ease-in-out infinite;
}

.lede {
  max-width: 42rem;
  margin-top: 16px;
  color: rgba(238, 242, 250, 0.72);
  font-size: 15px;
  line-height: 1.65;
}

.hero-lede {
  max-width: 38rem;
}

section[id] {
  scroll-margin-top: 88px;
}

.section {
  padding: 96px 0;
}

.section-head {
  margin-bottom: 40px;
}

.plate {
  background: rgba(13, 18, 25, 0.62);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fine,
.disclaimer,
.field-help,
.results-note,
.footer-meta,
.modal-copy,
.note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.disclaimer {
  max-width: 68ch;
  margin-top: 28px;
}

.field-help a {
  color: #d7e6ff;
  text-underline-offset: 3px;
}

.nav-wrap {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 16px;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(1040px, 100%);
  padding: 8px 8px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(to bottom, rgba(24, 27, 36, 0.72), rgba(18, 20, 24, 0.9));
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  flex: none;
  text-decoration: none;
}

.brand img,
.footer-brand img {
  width: 36px;
  height: 36px;
}

.brand-name {
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
  font-size: 14px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 28px;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-spacer {
  flex: 1;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(173, 206, 255, 0.2);
  box-shadow: var(--shadow-pill);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.btn-nav {
  min-height: 40px;
  padding: 10px 18px;
}

.btn-ghost {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(173, 206, 255, 0.32);
}

.btn-text {
  color: #d7e6ff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: transparent;
}

.btn-text:hover {
  text-decoration-color: rgba(215, 230, 255, 0.7);
}

button:disabled,
.btn-text:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: none;
}

.burger {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(173, 206, 255, 0.28);
}

.burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1px;
  background: #fff;
}

.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 19px; }
.burger span:nth-child(3) { top: 23px; }

.hero {
  position: relative;
  padding: 140px 0 88px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 78%;
  background: radial-gradient(130% 70% at 50% -8%, rgba(173, 206, 255, 0.2), rgba(173, 206, 255, 0.05) 42%, transparent 72%);
  pointer-events: none;
  animation: glow-breathe 10s ease-in-out infinite;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 64px;
  align-items: center;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.status-block {
  margin-top: 40px;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.status-pill,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 13px;
}

.status-pill {
  margin: 0;
  padding: 6px 12px 6px 10px;
  background: rgba(173, 206, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(173, 206, 255, 0.35);
}

.duration-label,
.status-caption {
  color: var(--muted);
  font-size: 13px;
}

.status-caption {
  margin-top: 18px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ice);
}

.status-pill.is-live .dot {
  animation: pulse 2.6s ease infinite;
}

.status-pill.is-ended .dot,
.status-pill.is-upcoming .dot {
  background: var(--muted);
}

.clock {
  display: flex;
  margin-top: 12px;
}

.clock div {
  min-width: 76px;
  margin-right: 18px;
  padding-right: 18px;
  border-right: 1px solid var(--line);
}

.clock div:last-child {
  margin-right: 0;
  border-right: 0;
}

.clock strong {
  display: block;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.clock span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.date-range {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.fine {
  max-width: 46ch;
  margin-top: 10px;
}

.instrument {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(173, 206, 255, 0.08), transparent 55%),
    var(--raised);
}

.instrument-mark {
  position: absolute;
  top: 72px;
  right: -78px;
  width: 260px;
  height: 260px;
  opacity: 0.3;
  pointer-events: none;
}

.instrument-mark img {
  width: 100%;
  height: 100%;
  animation: float-mark 12s ease-in-out infinite;
}

.instrument-body {
  position: relative;
  z-index: 1;
  padding: 24px 24px 26px;
}

.instrument-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chip {
  padding: 5px 10px 5px 6px;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(173, 206, 255, 0.05), rgba(173, 206, 255, 0.02));
  box-shadow: inset 0 0 0 1px rgba(82, 86, 92, 0.45);
}

.chip img {
  width: 20px;
  height: 20px;
}

.chip-plain {
  padding: 6px 12px;
}

.instrument-kicker {
  margin-top: 36px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.instrument-figure {
  margin-top: 6px;
  font-size: clamp(4.25rem, 7vw, 6.25rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.instrument-caption {
  max-width: 34ch;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.instrument-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
  margin-top: 28px;
}

.instrument-meta dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.instrument-meta dd {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.token-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.token-line img {
  width: 22px;
  height: 22px;
  flex: none;
}

.stat-value.token-line img {
  width: 42px;
  height: 42px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat {
  padding: 4px 32px 4px 0;
}

.stat + .stat {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.stat-kicker {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.stat-value {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat-unit {
  margin-left: 2px;
  color: var(--muted);
  font-size: 0.42em;
  letter-spacing: 0;
}

.stat-label {
  max-width: 26ch;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.panel {
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  padding: 22px 28px 8px;
  background: var(--panel);
}

.panel-kicker {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 8px;
}

.sim {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.elig-lead {
  max-width: 22ch;
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

#view-connected .elig-lead {
  max-width: none;
}

.addr {
  margin-top: 8px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  word-break: break-all;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 16px;
}

.progress {
  position: relative;
  height: 1px;
  margin-top: 20px;
  overflow: hidden;
  background: rgba(173, 206, 255, 0.16);
}

.progress::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 35%;
  background: var(--ice);
  animation: load 1.1s ease-in-out infinite;
}

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 28px;
}

.metric {
  padding: 18px 22px 18px 0;
  border-bottom: 1px solid var(--line);
}

.metric:nth-child(even) {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.metric dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metric dd {
  margin: 0;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.metric .sub {
  display: block;
  min-height: 1.2em;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0;
}

#m-status.is-ok {
  color: #d7e6ff;
}

.note {
  padding: 18px 0 20px;
}

#view-disconnected {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 1.2fr);
  gap: 28px 36px;
  align-items: end;
  padding: 8px 0 18px;
}

#view-disconnected .cta-row {
  margin-top: 22px;
}

.elig-rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.elig-rules li {
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.elig-rules strong {
  display: block;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.elig-rules span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

#elig-panel:has(#view-disconnected:not([hidden])) .metrics,
#elig-panel:has(#view-disconnected:not([hidden])) .note {
  display: none;
}

.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 20px;
  align-items: start;
}

.calc-panel,
.results-panel {
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: rgba(5, 7, 11, 0.35);
}

.field {
  margin-bottom: 16px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field label,
.table-label,
.results-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

#calc-form {
  padding: 22px 22px 18px;
}

.input-shell {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg);
}

.input-shell:focus-within {
  outline: 2px solid var(--ice-deep);
  outline-offset: 1px;
}

.suffix {
  flex: none;
  padding-right: 14px;
  color: var(--muted);
  font-size: 13px;
}

input[type="number"],
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  letter-spacing: -0.01em;
}

.input-shell input[type="number"] {
  border: 0;
  background: transparent;
  outline: none;
  min-width: 0;
}

.input-shell input:focus {
  outline: none;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 L6 6.5 L11 1.5' fill='none' stroke='%23B0BBC7' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

input:focus,
select:focus {
  outline: 2px solid var(--ice-deep);
  outline-offset: 1px;
}

.tier-pick {
  margin: 6px 0 18px;
}

.tier-picks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.tier-pick-btn {
  padding: 10px 8px 9px;
  border-radius: 12px;
  color: var(--muted);
  text-align: left;
  box-shadow: inset 0 0 0 1px var(--line);
}

.tier-pick-btn strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.tier-pick-btn span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
}

.tier-pick-btn.is-active {
  color: var(--ink);
  background: rgba(173, 206, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(173, 206, 255, 0.45);
}

.rate-block {
  margin-top: 20px;
}

.rate-sheet {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.rate-sheet .rate,
.rate-sheet .rate-head {
  border-radius: 0;
  border-bottom: 1px solid var(--line);
}

.rate-sheet .rate:last-child {
  border-bottom: 0;
}

.rate-sheet .rate.is-active {
  box-shadow: none;
  background: rgba(173, 206, 255, 0.08);
}

.rate,
.rate-head {
  display: grid;
  grid-template-columns: 1.5fr 0.75fr 0.75fr;
  gap: 8px;
  padding: 10px 12px;
}

.rate-head {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rate {
  width: 100%;
  border-radius: 10px;
  color: var(--ink);
  font-size: 14px;
  text-align: left;
}

.rate span:not(:first-child),
.rate-head span:not(:first-child) {
  text-align: right;
}

.rate span:not(:first-child) {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.rate.is-active {
  background: rgba(173, 206, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(173, 206, 255, 0.28);
}

.rate.is-active span {
  color: var(--ink);
}

.calc-error {
  margin-top: 12px;
  color: #e7d7c8;
  font-size: 13px;
}

.results-panel {
  display: flex;
  flex-direction: column;
  padding: 22px 24px 20px;
}

.results-hero {
  padding-bottom: 8px;
}

.results-hero-value {
  margin-top: 8px;
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}

.results-hero-sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.results-kicker {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
}

.results-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 6px;
}

.results-delta {
  margin-top: 6px;
  font-size: clamp(2.75rem, 4vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}

.results-delta-label {
  max-width: 24ch;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.results-side {
  padding-bottom: 4px;
  text-align: right;
}

.results-side .result-label {
  margin-bottom: 4px;
}

.results-side .result-value {
  font-size: 28px;
}

.result-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.result-row .result-label {
  margin-bottom: 0;
}

.result-row .result-value {
  font-size: 20px;
}

.result {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.result-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.result-value {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.unit {
  margin-left: 6px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0;
}

.is-emphasis .result-value {
  color: #d7e6ff;
}

.bar-track {
  height: 6px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(173, 206, 255, 0.1);
}

.bar-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #8b93a7;
  transition: width 0.45s ease;
}

.bar-fill.is-boost {
  background: var(--ice);
}

.results-note {
  padding-top: 8px;
}

.tiers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.tier {
  padding: 22px 22px 28px;
  border-right: 1px solid var(--line);
}

.tier:last-child {
  border-right: 0;
}

.tier.is-yours {
  background: rgba(173, 206, 255, 0.05);
}

.tier-tag {
  min-height: 16px;
  margin-bottom: 14px;
  color: #d7e6ff;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tier-mult {
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.tier h3 {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.tier .tier-summary {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
}

.steps li {
  padding: 24px 24px 28px;
}

.steps li + li {
  border-left: 1px solid var(--line);
}

.step-index {
  display: block;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.16em;
}

.steps h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.steps p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.faq-wrap {
  max-width: 860px;
}

.faq {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq h3 {
  font-size: inherit;
  font-weight: 400;
}

.faq-item button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 22px 0;
  color: var(--ink);
  font-size: 17px;
  letter-spacing: -0.02em;
  text-align: left;
}

.faq-icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex: none;
  transition: transform 0.25s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 1px;
  background: #fff;
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-inner {
  overflow: hidden;
}

.faq-inner p {
  max-width: 68ch;
  padding-bottom: 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.site-footer {
  padding: 48px 0 64px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 14px;
}

.footer-meta {
  margin-top: 12px;
}

.site-footer p {
  max-width: 68ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 16px;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 11, 0.72);
}

.modal {
  position: relative;
  width: min(460px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  padding: 22px 22px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--raised);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.modal h2 {
  max-width: none;
  font-size: 1.6rem;
}

.modal .eyebrow {
  margin-bottom: 8px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(173, 206, 255, 0.35);
}

.modal-copy {
  margin: 14px 0 16px;
}

.wallet-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wallet-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  color: var(--ink);
  text-align: left;
}

.wallet-option:hover,
.rate:hover {
  background: rgba(173, 206, 255, 0.05);
}

.wallet-option.is-current {
  box-shadow: inset 0 0 0 1px rgba(173, 206, 255, 0.4);
}

.wallet-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  font-size: 15px;
}

.wallet-preview {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.wallet-option .addr {
  margin-top: 0;
}

.modal-disconnect {
  margin-top: 14px;
}

.noscript {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 70;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--raised);
  color: var(--muted);
  font-size: 14px;
}

.reveal {
  --rise: 18px;
  opacity: 0;
  transform: translateY(var(--rise));
}

.reveal.is-in {
  animation: rise 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--reveal-delay, 0ms);
}

.reveal.is-settled {
  opacity: 1;
  transform: none;
  animation: none;
}

.instrument,
.panel,
.calc-panel,
.results-panel,
.elig-rules li,
.tier,
.steps li,
.faq-item,
.rate,
.tier-pick-btn {
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease;
}

.is-entering {
  animation: enter 0.45s ease;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(var(--rise));
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(173, 206, 255, 0.45); }
  70% { box-shadow: 0 0 0 6px rgba(173, 206, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(173, 206, 255, 0); }
}

@keyframes load {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

@keyframes grid-pan {
  to { background-position: 32px 32px; }
}

@keyframes drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(8vw, 6vh, 0) scale(1.12); }
}

@keyframes drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-10vw, -8vh, 0) scale(1.16); }
}

@keyframes drift-c {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.55; }
  50% { transform: translate3d(18vw, -6vh, 0); opacity: 1; }
}

@keyframes streak {
  0% { transform: translateX(0); opacity: 0; }
  18% { opacity: 0.9; }
  100% { transform: translateX(280%); opacity: 0; }
}

@keyframes sheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

@keyframes float-mark {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(-16px, 12px, 0) rotate(-8deg); }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn-pill:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-pill-hover);
  }

  .btn-ghost:hover {
    background: rgba(173, 206, 255, 0.06);
  }

  .instrument:hover,
  .panel:hover,
  .calc-panel:hover,
  .results-panel:hover {
    transform: translateY(-6px);
    border-color: rgba(173, 206, 255, 0.48);
    box-shadow: 0 22px 48px rgba(2, 6, 16, 0.42);
  }

  .elig-rules li:hover,
  .tier-pick-btn:hover {
    transform: translateY(-3px);
    background-color: rgba(173, 206, 255, 0.08);
    border-color: rgba(173, 206, 255, 0.45);
    box-shadow: inset 0 0 0 1px rgba(173, 206, 255, 0.45);
  }

  .tier-pick-btn.is-active:hover {
    background-color: rgba(173, 206, 255, 0.14);
  }

  .tier:hover,
  .steps li:hover,
  .rate:hover,
  .faq-item:hover {
    background-color: rgba(173, 206, 255, 0.06);
  }
}

.can-tilt {
  --rx: 0deg;
  --ry: 0deg;
  --ts: 1;
  --mx: 50%;
  --my: 50%;
  --sx: 0px;
  --sy: 0px;
  position: relative;
  transform-style: preserve-3d;
}

.can-tilt.is-settled,
.can-tilt:not(.reveal) {
  transform: perspective(980px) rotateX(var(--rx)) rotateY(var(--ry)) scale(var(--ts));
}

.can-tilt.is-tilting {
  --ts: 1.02;
  z-index: 3;
  border-color: rgba(173, 206, 255, 0.5);
  box-shadow: var(--sx) var(--sy) 46px rgba(2, 6, 16, 0.5);
  transition: transform 0.06s linear, border-color 0.35s ease, box-shadow 0.2s ease, background-color 0.35s ease;
}

.can-tilt::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(440px circle at var(--mx) var(--my), rgba(226, 236, 255, 0.2), transparent 46%);
  transition: opacity 0.3s ease;
}

.can-tilt.is-tilting::before {
  opacity: 1;
}

@media (hover: none) and (prefers-reduced-motion: no-preference) {
  .instrument:active,
  .panel:active,
  .calc-panel:active,
  .results-panel:active,
  .elig-rules li:active,
  .tier-pick-btn:active {
    transform: scale(0.985);
    border-color: rgba(173, 206, 255, 0.45);
    background-color: rgba(173, 206, 255, 0.08);
  }

  .tier:active,
  .steps li:active,
  .rate:active,
  .faq-item:active {
    background-color: rgba(173, 206, 255, 0.08);
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .calc-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .instrument {
    max-width: 560px;
  }

  .footer-grid {
    gap: 24px;
  }
}

@media (max-width: 860px) {
  .burger {
    display: inline-block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    background: rgba(13, 18, 25, 0.98);
  }

  .nav.is-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
  }
}

@media (max-width: 800px) {
  .stats,
  .tiers {
    grid-template-columns: 1fr 1fr;
  }

  .stats {
    column-gap: 32px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .steps li + li {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  #view-disconnected {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .tier-picks {
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    padding: 0 0 8px;
  }

  .stat + .stat {
    padding-left: 0;
    border-left: 0;
  }

  .stat:nth-child(1),
  .stat:nth-child(2) {
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--line);
  }

  .stat:nth-child(3) {
    grid-column: 1 / -1;
  }

  .tier {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .tier:nth-child(2n) {
    border-right: 0;
  }

  .tier:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .results-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .results-side {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1120px, calc(100% - 40px));
  }

  .section {
    padding: 64px 0;
  }

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

  .reveal {
    --rise: 10px;
  }

  .reveal.is-in {
    animation-duration: 0.48s;
  }

  .metrics,
  .field-row,
  .stats,
  .tiers,
  .steps,
  .elig-rules,
  .tier-picks {
    grid-template-columns: 1fr;
  }

  .metric,
  .metric:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
    border-left: 0;
  }

  .stat:nth-child(1),
  .stat:nth-child(2),
  .stat:nth-child(3) {
    grid-column: auto;
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
  }

  .stat + .stat {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
  }

  .tier {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .tier:last-child {
    border-bottom: 0;
  }

  .panel,
  .results-panel,
  .instrument-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .clock {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }

  .clock div {
    min-width: 0;
    margin-right: 0;
    padding-right: 10px;
  }

  .clock strong {
    font-size: 26px;
  }

  .result-value {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .brand-name {
    margin-left: 8px;
    padding-left: 8px;
    font-size: 13px;
  }

  .btn-nav {
    padding: 10px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
