:root {
  color-scheme: dark;
  --background: #0a111b;
  --panel: #101d2a;
  --line: #2a3949;
  --text: #eff6fa;
  --muted: #aabccc;
  --accent: #45d3ac;
  --accent-fill: #14a37f;
  --accent-fill-hover: #1cbb93;
  --on-accent: #04221a;
  --danger: #ff8a8a;
  --sans: "Segoe UI", system-ui, sans-serif;
  --mono: "Cascadia Mono", Consolas, monospace;
}

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

body {
  margin: 0;
  background-color: var(--background);
  color: var(--text);
  font: 1rem/1.65 var(--sans);
}

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
[id] { scroll-margin-top: 1.5rem; }
p { margin: 0; color: var(--muted); }
h1, h2, h3 { margin: 0; }
img { display: block; max-width: 100%; height: auto; }

.shell { width: min(74rem, calc(100% - 6rem)); margin-inline: auto; }

.skip-link {
  position: absolute;
  z-index: 2;
  top: .6rem;
  left: .6rem;
  padding: .4rem .8rem;
  transform: translateY(-200%);
  background: var(--background);
}

.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }

.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  min-height: 4.6rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  width: fit-content;
  font-size: .95rem;
  font-weight: 750;
  letter-spacing: .15em;
  text-decoration: none;
}

.wordmark img { width: 1.9rem; height: 1.9rem; border-radius: .3rem; }
.wordmark sup, .tm { font-size: .55em; font-weight: 500; letter-spacing: 0; vertical-align: super; }

nav { display: flex; flex-wrap: wrap; gap: .45rem 1.8rem; }
nav a, .site-footer a {
  color: var(--muted);
  font-size: .9rem;
  text-decoration: none;
}

nav a[aria-current="page"] { color: var(--text); }
nav a:hover, .site-footer a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: .22em; }

.hero {
  background: radial-gradient(ellipse at 80% 9%, #12302b 0%, transparent 67%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(3rem, 7vw, 6rem);
}

h1 {
  font-size: clamp(2.6rem, 5.6vw, 5.4rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.06em;
}

h1 span { color: var(--accent); }
.hero-copy > p { max-width: 34rem; margin-block: 1.65rem 1.8rem; font-size: clamp(1.05rem, 1.55vw, 1.24rem); }
.hero-visual { border: 1px solid var(--line); border-radius: .6rem; overflow: hidden; background: #05080e; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem 1rem;
  border: 1px solid var(--accent-fill);
  border-radius: .27rem;
  background: var(--accent-fill);
  color: var(--on-accent);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover { background: var(--accent-fill-hover); border-color: var(--accent-fill-hover); }
.button[disabled] { opacity: .6; cursor: progress; }

.strategy-card {
  padding: clamp(1.3rem, 2.5vw, 2.1rem);
  border: 1px solid #2f5350;
  border-radius: .45rem;
  background: linear-gradient(150deg, #13302d, var(--panel) 61%);
}

.strategy-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--accent);
  font: 600 .75rem/1.5 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}

.ticker {
  display: flex;
  align-items: end;
  gap: 1rem;
  margin-block: 1.1rem;
  color: var(--text);
  font: 600 clamp(3.2rem, 5vw, 4.6rem)/1 var(--mono);
  letter-spacing: -.09em;
}

.ticker span {
  flex: 1;
  height: .75em;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(1rem - 1px), #2a5551 0 1rem),
    repeating-linear-gradient(0deg, transparent 0 calc(1rem - 1px), #2a5551 0 1rem);
  mask-image: linear-gradient(90deg, transparent, black);
}

.strategy-card h3 { margin-bottom: .6rem; font-size: clamp(1.15rem, 2vw, 1.38rem); line-height: 1.3; }
.strategy-card p:not(.ticker) { margin-bottom: 1rem; }
.text-link { color: var(--accent); font-weight: 650; text-decoration: none; }
.text-link span { margin-left: .25rem; }

.band { padding-block: clamp(2.6rem, 5vw, 4.3rem); border-bottom: 1px solid var(--line); }
.band.alt { background: #0d1723; }

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.65rem, 6vw, 6rem);
}

.section-grid h2, .page-head h1 {
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -.035em;
}

.section-grid h2 + p { max-width: 34rem; margin-top: 1rem; }
.section-grid p + a, .section-grid p + .actions { margin-top: 1.2rem; }
.section-grid .text-link { display: inline-block; }
.note { margin-top: .65rem; font: .8rem/1.6 var(--mono); }

.item-list { margin: 0; padding: 0; list-style: none; }
.item-list li { border-top: 1px solid var(--line); padding: .9rem 0; }
.item-list li:last-child { padding-bottom: 0; }
.item-list strong { display: block; }
.item-list span { color: var(--muted); }

.risk h2 { font-size: 1.35rem; }
.risk { font-size: .95rem; }

.page-head { padding-block: clamp(2.6rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.2rem); border-bottom: 1px solid var(--line); }
.page-head p { max-width: 44rem; margin-top: 1rem; font-size: 1.1rem; }
.back-link { display: inline-block; margin-bottom: 1.4rem; color: var(--muted); font-size: .9rem; text-decoration: none; }
.back-link:hover { color: var(--text); }

.prose { max-width: 46rem; padding-block: clamp(2rem, 4vw, 3rem); }
.prose h2 { margin: 2.2rem 0 .7rem; font-size: 1.3rem; font-weight: 650; letter-spacing: -.02em; }
.prose h2:first-child { margin-top: 0; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: .8rem; }
.prose ul { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.prose li + li { margin-top: .35rem; }
.prose a { color: var(--accent); }
.prose .note { margin-top: 2.5rem; }

.form { display: grid; gap: 1.1rem; max-width: 40rem; padding-block: clamp(2rem, 4vw, 3rem); }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .85rem; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .7rem .8rem;
  border: 1px solid #3a4c5e;
  border-radius: .27rem;
  background: var(--panel);
  color: var(--text);
  font: inherit;
}
.field textarea { min-height: 10rem; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #557086; }
.field-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.1rem; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.65em; color: var(--muted); }
.form-status.ok { color: var(--accent); }
.form-status.error { color: var(--danger); }
.form .small { font-size: .85rem; }
.form .small a { color: var(--accent); }

.site-footer { color: var(--muted); }
.footer-inner { flex-wrap: wrap; padding-block: 1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .45rem 1.5rem; }
.not-found { padding-block: clamp(4rem, 14vw, 10rem); }
.not-found p { margin-block: 1.5rem; }

@media (max-width: 54rem) {
  .shell { width: calc(100% - 3rem); }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: clamp(2.6rem, 9vw, 5rem); }
  .hero-visual { max-width: 38rem; }
}

@media (max-width: 37rem) {
  .shell { width: calc(100% - 2rem); }
  .header-inner { flex-direction: column; align-items: flex-start; gap: .55rem; padding-block: .85rem; }
  nav { column-gap: 1rem; }
  .section-grid, .field-pair { grid-template-columns: minmax(0, 1fr); }
  .risk .section-grid { gap: .65rem; }
}
