:root {
  color-scheme: dark;
  --background: #0b0d12;
  --surface: #131722;
  --surface-raised: #1a2030;
  --border: #2b3446;
  --text: #f5f7fb;
  --muted: #9ca8bd;
  --accent: #8bf0bf;
  --accent-ink: #07130e;
  --danger: #ff9f9f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--background);
  color: var(--text);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 80% -10%, #203452 0, transparent 42rem), var(--background); }
a { color: inherit; }
button, a.button { font: inherit; }

.site-header, main, .site-footer { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; }
.brand { font-size: 1.1rem; font-weight: 800; letter-spacing: -.04em; text-decoration: none; }
.brand span { color: var(--accent); margin-left: 5px; }
nav { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: .92rem; }
nav a { text-decoration: none; }
nav a:hover { color: var(--text); }

.hero { padding: 120px 0 110px; max-width: 700px; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: .75rem; font-weight: 800; letter-spacing: .16em; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 680px; margin-bottom: 20px; font-size: clamp(3rem, 8vw, 6.5rem); line-height: .95; letter-spacing: -.08em; }
h2 { margin-bottom: 12px; font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -.06em; }
h3 { margin-bottom: 14px; font-size: 1.1rem; }
.hero-copy, .section-heading > p:last-child { max-width: 580px; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border: 1px solid var(--accent); border-radius: 8px; background: var(--accent); color: var(--accent-ink); cursor: pointer; font-weight: 750; text-decoration: none; transition: transform .15s ease, filter .15s ease; }
.button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .55; transform: none; }
.button-small { min-height: 38px; padding: 0 13px; font-size: .85rem; }
.button-secondary { border-color: var(--border); background: var(--surface-raised); color: var(--text); }
.button-ghost { border-color: transparent; background: transparent; color: var(--muted); }

.section { padding: 72px 0; border-top: 1px solid var(--border); }
.section-heading { margin-bottom: 30px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.compact-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card, .balance-card, .account-panel { border: 1px solid var(--border); border-radius: 14px; background: color-mix(in srgb, var(--surface) 92%, transparent); }
.card { display: flex; flex-direction: column; min-height: 225px; padding: 24px; }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--muted); line-height: 1.5; }
.card .button { width: 100%; margin-top: auto; }
.price { margin: 3px 0 14px; font-size: 2rem; font-weight: 800; letter-spacing: -.05em; }
.muted, .label { color: var(--muted); }
.label { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }

.feedback { margin: 0 0 24px; padding: 13px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); }
.feedback.error { border-color: #7e3b45; color: var(--danger); }
.account-panel { display: grid; gap: 28px; padding: 24px; }
.balance-card { padding: 22px; background: linear-gradient(135deg, #1b3b38, var(--surface)); }
.balance-card strong { display: block; margin: 8px 0; font-size: 3.5rem; letter-spacing: -.07em; }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.stack-list { display: grid; gap: 10px; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); }
.list-row strong { display: block; margin-bottom: 4px; }
.list-row span { color: var(--muted); font-size: .9rem; }
.site-footer { display: flex; justify-content: space-between; gap: 16px; padding: 28px 0 44px; color: var(--muted); font-size: .8rem; }

@media (max-width: 640px) {
  .site-header { align-items: flex-start; }
  nav { flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
  nav a { display: none; }
  .hero { padding: 80px 0; }
  h1 { font-size: 3.8rem; }
  .site-footer { flex-direction: column; }
}
