:root {
  --bg: #0b0906;
  --panel: #12100a;
  --border: rgb(242 193 78 / 0.2);
  --gold: #f2c14e;
  --cyan: #5ad1e6;
  --green: #5fd78a;
  --red: #f07178;
  --heading: #fff4d6;
  --text: #f3ecd9;
  --muted: #a89f86;
  --btn-text: #1a1304;
  --font: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  margin: 0;
  color: var(--heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--heading);
  background: rgb(242 193 78 / 0.08);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.1em 0.45em;
}

a { color: inherit; }

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--gold);
  color: var(--btn-text);
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 10;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.narrow { max-width: 760px; }

.gold { color: var(--gold); }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
}

/* Header */
.site-header { padding: 1rem 0; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.brand img { border-radius: 9px; }
.wordmark {
  color: var(--heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}
.header-actions { display: flex; align-items: center; gap: 1.25rem; }
.text-link {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  padding: 0.25rem 0.1rem;
}
.text-link:hover { color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--btn-text);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 0.7rem 1.2rem;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.15s, border-color 0.15s;
}
.btn:hover { background: #f7cf75; border-color: #f7cf75; }
.btn:active { transform: translateY(1px); }
.btn-small { padding: 0.4rem 0.9rem; font-size: 0.9rem; border-radius: 10px; }
.btn-large { padding: 1rem 1.9rem; font-size: 1.125rem; border-radius: 14px; }
.btn-ghost {
  background: transparent;
  color: var(--gold);
  border-color: var(--border);
}
.btn-ghost:hover { background: rgb(242 193 78 / 0.1); border-color: var(--gold); }

/* Hero */
.hero {
  position: relative;
  padding: 3.5rem 0 4.5rem;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -4rem 0 0;
  z-index: -1;
  background:
    radial-gradient(60% 55% at 22% 30%, rgb(242 193 78 / 0.14), transparent 70%),
    radial-gradient(40% 40% at 85% 70%, rgb(242 193 78 / 0.06), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  font-weight: 900;
}
.lead {
  margin-top: 1.25rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text);
  max-width: 34ch;
}
.cta { margin-top: 2rem; }
.cta-note { margin-top: 0.75rem; }
.mobile-note {
  display: none;
  padding: 1rem 1.1rem;
  color: var(--text);
}

/* Mock trades table */
.terminal { padding: 0.25rem 0; overflow: hidden; }
.terminal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}
.terminal th {
  text-align: left;
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--muted);
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
.terminal td {
  padding: 0.8rem 0.75rem;
  border-bottom: 1px solid rgb(242 193 78 / 0.08);
  vertical-align: middle;
}
.terminal tbody tr:last-child td { border-bottom: 0; }
.terminal th:first-child, .terminal td:first-child { padding-left: 1rem; }
.terminal th:last-child, .terminal td:last-child { padding-right: 1rem; }
.col-maker, .terminal th.col-maker { text-align: right; }
.col-maker .chip { margin-left: auto; }
.col-maker .addr { display: block; }
.buy { color: var(--green); font-weight: 600; }
.sell { color: var(--red); font-weight: 600; }
.addr {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--muted);
}
.addr-plain { color: var(--text); font-size: 0.9375rem; }

.row.tone-gold { --rgb: 242 193 78; }
.row.tone-cyan { --rgb: 90 209 230; }
.row.tone-green { --rgb: 95 215 138; }
.row[class*="tone-"] {
  background: linear-gradient(90deg, rgb(var(--rgb) / 0.14), transparent 75%);
}
.row[class*="tone-"] td:first-child {
  box-shadow: inset 3px 0 0 rgb(var(--rgb));
}

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
  color: rgb(var(--rgb));
  background: rgb(var(--rgb) / 0.16);
  border: 1px solid rgb(var(--rgb) / 0.55);
}
.chip.tone-gold { --rgb: 242 193 78; }
.chip.tone-cyan { --rgb: 90 209 230; }
.chip.tone-green { --rgb: 95 215 138; }
.col-maker .chip + .addr { margin-top: 0.3rem; }

/* Sections */
.section { padding: 4rem 0; }
.section h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 900; }
.section-intro { margin-top: 0.75rem; max-width: 52ch; }

.cards {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.card { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.card h3 { font-size: 1.25rem; }
.legend { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; padding-top: 0.5rem; }

/* Steps */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.step {
  counter-increment: step;
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 4.25rem;
}
.step::before {
  content: counter(step);
  position: absolute;
  left: 1.25rem;
  top: 1.2rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(242 193 78 / 0.14);
  border: 1px solid rgb(242 193 78 / 0.55);
  color: var(--gold);
  font-weight: 800;
  font-size: 0.95rem;
}
.step h3 { font-size: 1.125rem; letter-spacing: -0.01em; }
.step p { margin-top: 0.35rem; }
.step .note { margin-top: 0.75rem; }
.inline-link { color: var(--gold); font-weight: 600; text-underline-offset: 3px; }
.inline-link:hover { color: #f7cf75; }
.copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.copy-row code { font-size: 1rem; padding: 0.4em 0.7em; }

/* Safe */
.safe-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.safe-list li { padding: 1rem 1.25rem; }
.safe-list strong { color: var(--heading); }
.honest {
  margin-top: 1.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--gold);
  color: var(--text);
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}
.footer-inner .wordmark { font-size: 1.25rem; }
.footer-note { margin-left: auto; }

/* Motion: one gentle fade on load */
.reveal { animation: fade-up 0.7s ease-out both; animation-delay: var(--d, 0ms); }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; }
  .btn { transition: none; }
}

/* Wider screens */
@media (min-width: 900px) {
  .hero { padding: 5rem 0 6rem; }
  .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 3.5rem; }
  .cards { grid-template-columns: repeat(3, 1fr); }
}

/* Phones and non-desktop browsers: no download */
@media (max-width: 720px) {
  .desktop-only { display: none !important; }
  .mobile-note { display: block; }
  .section { padding: 3rem 0; }
  .step { padding-left: 3.75rem; }
  .step::before { left: 1rem; }
  .footer-note { margin-left: 0; width: 100%; }
}
@media (max-width: 480px) {
  .col-age { display: none; }
  .terminal th, .terminal td { padding-left: 0.6rem; padding-right: 0.6rem; }
}
html.is-mobile .desktop-only { display: none !important; }
html.is-mobile .mobile-note { display: block; }
