:root {
  color-scheme: light;
  --ink: #10130f;
  --ink-soft: #2b302a;
  --paper: #f4f6ef;
  --paper-2: #e6eadf;
  --line: #c7cfbf;
  --muted: #66705f;
  --signal: #b7ff3c;
  --signal-2: #1f8f5f;
  --warn: #c86e2d;
  --panel: #ffffff;
  --shadow: 0 24px 80px rgba(16, 19, 15, 0.13);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(183, 255, 60, 0.16), transparent 32rem),
    radial-gradient(circle at 82% 8%, rgba(31, 143, 95, 0.2), transparent 26rem),
    var(--paper);
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(16, 19, 15, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 19, 15, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 70%);
  z-index: -1;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  background: var(--ink);
  color: white;
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(16, 19, 15, 0.12);
  background: rgba(244, 246, 239, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--ink);
  background: var(--signal);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
}

.site-nav a {
  padding: 0.62rem 0.8rem;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
  border-color: rgba(16, 19, 15, 0.16);
  background: rgba(255, 255, 255, 0.62);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 0.62rem 0.8rem;
  font: inherit;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(20rem, 0.88fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: calc(100dvh - 4.2rem);
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 3rem) 3rem;
  max-width: 1440px;
  margin: 0 auto;
}

.hero-copy {
  max-width: 48rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--signal-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 11ch;
  margin-bottom: 1.2rem;
  font-size: clamp(3.5rem, 8vw, 7.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  max-width: 15ch;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.12rem;
  line-height: 1.2;
}

p {
  color: var(--ink-soft);
  line-height: 1.68;
}

.hero-lead {
  max-width: 38rem;
  margin-bottom: 1.5rem;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-weight: 760;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease;
}

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

.button.primary {
  background: var(--ink);
  color: white;
}

.button.primary:hover {
  background: #000;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.55);
}

.button.secondary:hover {
  background: white;
}

.hero-visual {
  position: relative;
  border: 1px solid rgba(16, 19, 15, 0.18);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 1.28;
  object-fit: contain;
  background: var(--ink);
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border-top: 1px solid rgba(16, 19, 15, 0.14);
  background: rgba(16, 19, 15, 0.92);
  color: white;
  font-size: 0.78rem;
  font-weight: 720;
}

.section {
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 4vw, 3rem);
}

.ad-section {
  display: flex;
  justify-content: center;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem) clamp(2rem, 4vw, 3.5rem);
}

.ad-section-bottom {
  padding-top: clamp(1rem, 3vw, 2rem);
}

.ad-wrap {
  display: none;
  width: min(100%, var(--ad-width));
  min-height: calc(var(--ad-height) + 1.35rem);
  text-align: center;
}

.ad-frame {
  display: flex;
  justify-content: center;
  min-height: var(--ad-height);
  overflow: hidden;
}

.ad-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (min-width: 900px) {
  .ad-wrap[aria-label="Desktop leaderboard ad"] {
    display: block;
  }
}

@media (min-width: 700px) {
  .ad-wrap[aria-label="Medium rectangle ad"] {
    display: block;
  }
}

@media (max-width: 699px) {
  .ad-wrap[aria-label="Mobile banner ad"] {
    display: block;
  }
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 0.72fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.trend-card,
.fact-panel,
.price-table,
.risk-card,
.code-card {
  border: 1px solid rgba(16, 19, 15, 0.18);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 50px rgba(16, 19, 15, 0.08);
}

.trend-card {
  padding: 1rem;
}

.trend-row,
.price-table div,
.fact-panel div,
.comparison-table > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(16, 19, 15, 0.12);
}

.trend-row:last-child,
.price-table div:last-child,
.fact-panel div:last-child {
  border-bottom: 0;
}

.trend-row span,
.price-table span,
.fact-panel span {
  color: var(--muted);
}

.trend-row b,
.price-table b,
.fact-panel b {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  display: flex;
  min-height: 12rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.2rem;
  border: 1px solid rgba(16, 19, 15, 0.18);
  background: rgba(255, 255, 255, 0.56);
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  background: white;
  border-color: var(--ink);
}

.feature-card span {
  font-weight: 820;
  font-size: 1.15rem;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.columns article {
  padding-top: 1rem;
  border-top: 2px solid var(--ink);
}

.callout {
  max-width: 1220px;
}

.callout > div {
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--ink);
  background: var(--signal);
}

.callout h2 {
  max-width: 18ch;
}

.callout p {
  max-width: 64ch;
}

.fact-panel div {
  grid-template-columns: 10rem minmax(0, 1fr);
}

.code-card {
  padding: 1rem;
  background: var(--ink);
  color: white;
}

.terminal-label {
  margin-bottom: 0.7rem;
  color: var(--signal);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
}

pre {
  overflow-x: auto;
  margin: 0 0 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
}

code {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.code-card p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.copy-code {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(16, 19, 15, 0.24);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  padding: 0.3rem 0.44rem;
  font: 700 0.92em ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  cursor: pointer;
}

.copy-code.copied {
  background: var(--signal);
}

.check-list {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 1rem;
  border-left: 4px solid var(--signal-2);
  background: rgba(255, 255, 255, 0.56);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(16, 19, 15, 0.18);
  background: rgba(255, 255, 255, 0.58);
}

.timeline div {
  padding: 1.1rem;
  border-right: 1px solid rgba(16, 19, 15, 0.13);
}

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

.timeline span {
  display: inline-flex;
  margin-bottom: 0.8rem;
  color: var(--signal-2);
  font-weight: 820;
}

.timeline p {
  margin-bottom: 0;
}

.comparison-table {
  border: 1px solid rgba(16, 19, 15, 0.18);
  background: rgba(255, 255, 255, 0.64);
}

.comparison-table > div {
  grid-template-columns: 0.7fr 0.9fr 1fr 1.1fr;
}

.comparison-table .head {
  background: var(--ink);
  color: white;
  font-weight: 800;
}

.comparison-table b,
.comparison-table span {
  min-width: 0;
}

.risk-card {
  padding: 1.2rem;
}

.risk-card span {
  display: block;
  margin-bottom: 1rem;
  font-weight: 820;
}

.risk-card ul {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding-left: 1.2rem;
}

.faq-section h2 {
  margin-bottom: 1.2rem;
}

.faq-list {
  display: grid;
  gap: 0.7rem;
}

details {
  border: 1px solid rgba(16, 19, 15, 0.18);
  background: rgba(255, 255, 255, 0.64);
}

summary {
  cursor: pointer;
  padding: 1rem;
  font-weight: 800;
}

details p {
  margin: 0;
  padding: 0 1rem 1rem;
}

.sources {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(18rem, 1fr);
  gap: 2rem;
  border-top: 1px solid rgba(16, 19, 15, 0.14);
}

.sources ul {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding-left: 1.1rem;
}

.sources a {
  color: var(--ink);
  text-decoration-color: rgba(31, 143, 95, 0.55);
  text-decoration-thickness: 2px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid rgba(16, 19, 15, 0.14);
  background: var(--ink);
  color: white;
}

.site-footer p,
.site-footer a {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 980px) {
  .hero,
  .split,
  .sources {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(3.1rem, 15vw, 5.8rem);
  }

  .page-grid,
  .columns,
  .timeline {
    grid-template-columns: 1fr;
  }

  .timeline div {
    border-right: 0;
    border-bottom: 1px solid rgba(16, 19, 15, 0.13);
  }

  .timeline div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.4rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem;
    border: 1px solid rgba(16, 19, 15, 0.16);
    background: rgba(244, 246, 239, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.82rem;
  }

  .brand span:last-child {
    max-width: 12rem;
    line-height: 1.1;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 2.2rem;
  }

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

  h2 {
    max-width: 12ch;
  }

  .hero-visual img {
    aspect-ratio: 1;
  }

  .fact-panel div,
  .price-table div,
  .trend-row,
  .comparison-table > div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .comparison-table .head {
    display: none;
  }

  .comparison-table > div {
    align-items: start;
  }
}
