/* 4Miner — black / industrial yellow / neon green */
:root {
  --bg: #000;
  --bg-elev: #0a0a0a;
  --card: #121212;
  --card-hover: #161616;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #fff;
  --muted: #a0a0a0;
  --muted-2: #6e6e6e;
  --yellow: #F5D000;
  --yellow-hover: #ffdf33;
  --yellow-soft: rgba(245, 208, 0, 0.14);
  --green: #39FF14;
  --green-soft: rgba(57, 255, 20, 0.12);
  --blue: #F5D000;
  --blue-hover: #ffdf33;
  --blue-soft: rgba(245, 208, 0, 0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
  --topbar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
  color: #e8e0a8;
}
strong { font-weight: 600; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { border-radius: 8px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: 15px; font-weight: 700; }
.brand__text em { font-style: normal; font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav a {
  padding: 8px 12px;
  font-size: 14px;
  color: var(--muted);
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }

.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.lang-switch {
  display: flex; gap: 2px; padding: 3px;
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
}
.lang-btn {
  appearance: none; border: 0; background: transparent;
  color: var(--muted); font: 500 12px/1 var(--font);
  padding: 6px 8px; border-radius: 6px; cursor: pointer;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.is-active { background: var(--yellow-soft); color: var(--yellow); }

.menu-toggle {
  display: none; width: 40px; height: 40px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--card);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer;
}
.menu-toggle span { display: block; width: 16px; height: 1.5px; background: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 14px/1 var(--font); border-radius: 999px; border: 1px solid transparent;
  padding: 10px 18px; cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s, color .15s;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--sm { padding: 8px 14px; font-size: 13px; }
.btn--lg { padding: 14px 24px; font-size: 15px; }
.btn--primary { background: var(--yellow); color: #111; }
.btn--primary:hover:not(:disabled) { background: var(--yellow-hover); }
.btn--ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn--ghost:hover { background: rgba(255,255,255,.04); }

.hero {
  max-width: var(--max); margin: 0 auto; padding: 56px 24px 32px;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px;
  padding: 6px 12px; font-size: 12px; font-weight: 500;
  color: var(--yellow); background: var(--yellow-soft);
  border: 1px solid rgba(245, 208, 0, 0.28); border-radius: 999px;
}
.hero h1 {
  margin: 0 0 16px; font-size: clamp(32px, 5vw, 48px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.15;
}
.hero__lede { margin: 0 0 28px; font-size: 16px; color: var(--muted); max-width: 540px; }
.hero__lede strong { color: var(--text); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }

.progress-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
}
.progress-card__head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 13px; color: var(--muted); margin-bottom: 12px;
}
.progress-card__meta { display: flex; align-items: center; gap: 8px; color: var(--text); font-variant-numeric: tabular-nums; }
.pill {
  font-style: normal; font-size: 11px; padding: 3px 8px; border-radius: 999px;
  background: rgba(255,255,255,.06); color: var(--muted);
}
.pill--live { background: var(--green-soft); color: var(--green); }
.progress-bar {
  height: 8px; background: rgba(255,255,255,.06); border-radius: 999px; overflow: hidden; position: relative;
}
.progress-bar--xl { height: 12px; }
.progress-bar__fill {
  height: 100%; background: linear-gradient(90deg, #F5D000, #39FF14);
  border-radius: inherit; transition: width .6s ease;
}
.progress-milestones { position: absolute; inset: 0; pointer-events: none; }
.progress-milestones span {
  position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(0,0,0,.35);
}
.progress-marks {
  display: flex; justify-content: space-between; margin-top: 8px;
  font-size: 11px; color: var(--muted-2);
}
.progress-card__note { margin: 10px 0 0; font-size: 12px; color: var(--muted-2); }

.progress-viz {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center;
}
.progress-ring { position: relative; width: 140px; height: 140px; }
.progress-ring svg { display: block; transform: rotate(-90deg); }
.progress-ring__track { fill: none; stroke: rgba(255,255,255,.06); stroke-width: 10; }
.progress-ring__fill {
  fill: none; stroke: url(#none); stroke: #F5D000; stroke-width: 10;
  stroke-linecap: round; transition: stroke-dashoffset .6s ease;
}
.progress-ring__center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
}
.progress-ring__center strong { font-size: 22px; letter-spacing: -0.02em; }
.progress-ring__center span { font-size: 11px; color: var(--muted); }

.miner-art {
  position: relative; border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(245, 208, 0, 0.35); background: var(--card); aspect-ratio: 1;
  box-shadow: 0 0 60px rgba(245, 208, 0, 0.12);
}
.miner-art img { width: 100%; height: 100%; object-fit: cover; }
.miner-art__glow {
  pointer-events: none; position: absolute; inset: auto -20% -30% -20%; height: 55%;
  background: radial-gradient(ellipse at center, rgba(57,255,20,.28), transparent 70%);
}

.metrics {
  max-width: var(--max); margin: 0 auto 24px; padding: 0 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.metric {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
}
.metric__label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.metric__value { display: block; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.metric__value small { font-size: 13px; font-weight: 500; color: var(--muted); }
.metric__hint {
  display: inline-block; margin-top: 6px; font-style: normal;
  font-size: 11px; color: var(--muted-2);
}

.section { max-width: var(--max); margin: 0 auto; padding: 72px 24px; }
.section--alt {
  max-width: none; background: var(--bg-elev);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding-left: 0; padding-right: 0;
}
.section--alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.section__head { margin-bottom: 36px; }
.eyebrow {
  margin: 0 0 8px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--yellow);
}
.section__head h2 {
  margin: 0 0 8px; font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 700; letter-spacing: -0.025em;
}
.section__sub { margin: 0; color: var(--muted); font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
.step {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: border-color .15s, background .15s;
}
.step:hover { border-color: var(--border-strong); background: var(--card-hover); }
.step__num {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--yellow); margin-bottom: 14px; letter-spacing: 0.06em;
}
.step h3 { margin: 0 0 10px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }
.step p strong { color: var(--text); }

.split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.split--2 { grid-template-columns: repeat(2, 1fr); }
.split__item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.split__item--accent {
  border-color: rgba(57, 255, 20, 0.35);
  background: linear-gradient(180deg, rgba(57,255,20,.1), var(--card) 60%);
}
.split__pct {
  font-size: 36px; font-weight: 700; letter-spacing: -0.03em;
  color: var(--text); margin-bottom: 8px;
}
.split__item--accent .split__pct { color: var(--green); }
.split__item h3 { margin: 0 0 8px; font-size: 16px; }
.split__item p { margin: 0; font-size: 14px; color: var(--muted); }

.flow {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px; margin: 0 0 32px; padding: 18px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
}
.flow__step {
  padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
}
.flow__step--hot {
  background: var(--green-soft); border-color: rgba(57,255,20,.35); color: var(--green);
}
.flow__arrow { color: var(--muted-2); font-weight: 700; }

.token-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 24px;
}
.token-card__head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-bottom: 8px;
}
.token-card__head h3 { margin: 0; font-size: 18px; }
.token-card__name { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.token-card__addr {
  display: block; padding: 10px 12px; background: rgba(255,255,255,.04);
  border: 1px solid var(--border); border-radius: 8px; word-break: break-all; margin-bottom: 12px;
}
.token-card__note { margin: 0; font-size: 13px; color: var(--muted-2); }

.callout {
  border: 1px solid rgba(245, 208, 0, 0.3); background: var(--yellow-soft);
  border-radius: var(--radius); padding: 22px 24px;
}
.callout h3 { margin: 0 0 8px; font-size: 16px; }
.callout p { margin: 0; color: var(--muted); font-size: 14px; }

.live-board {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.live-board__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; margin-bottom: 20px;
}
.live-board__head h3 { margin: 0 0 4px; font-size: 18px; }
.live-board__sub { margin: 0; font-size: 13px; color: var(--muted); }
.live-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.live-stat {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px;
}
.live-stat--hot {
  border-color: rgba(57,255,20,.35);
  box-shadow: inset 0 0 0 1px rgba(57,255,20,.12);
}
.live-stat__label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.live-stat__value { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.live-stat__value small { font-size: 12px; font-weight: 500; color: var(--muted); }

.mint-panel {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px 0; overflow: hidden;
}
.mint-panel__art {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 28px 24px 8px; border-bottom: 1px solid var(--border);
}
.mint-panel__art img {
  width: min(240px, 70vw); height: auto; border-radius: 16px;
  border: 1px solid rgba(245,208,0,.4); background: #0a0a0a;
}
.mint-panel__art-cap { margin: 0; font-size: 13px; color: var(--muted); }
.mint-panel__row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 16px 24px; border-bottom: 1px solid var(--border); font-size: 14px;
}
.mint-panel__row > span { color: var(--muted); flex-shrink: 0; }
.mint-panel__row code { text-align: right; }
.mint-panel__row em { font-style: normal; font-size: 11px; color: var(--muted-2); margin-left: 6px; }
.mint-panel__cta { padding: 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mint-panel__cta .btn { min-width: 200px; }
.mint-panel__hint { margin: 0; font-size: 13px; color: var(--muted-2); }
.mint-panel__status { margin: 0; font-size: 13px; color: var(--green); }

.skill-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 24px; }
.skill-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.skill-card h3 { margin: 0 0 10px; font-size: 16px; }
.skill-card p, .skill-card li { color: var(--muted); font-size: 14px; }
.skill-card__meta { margin-top: 12px; font-size: 13px; color: var(--muted-2); }
.skill-steps, .skill-list { margin: 0; padding-left: 18px; }
.skill-steps li, .skill-list li { margin-bottom: 6px; }
.skill-prompt {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px;
}
.skill-prompt__head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-bottom: 12px;
}
.skill-prompt__head p { margin: 0; font-size: 13px; color: var(--muted); }
.skill-prompt__pre {
  margin: 0; padding: 16px; background: #0a0a0a; border: 1px solid var(--border);
  border-radius: 8px; overflow: auto; font-size: 12px; line-height: 1.55; color: #c8d0e0;
  white-space: pre-wrap;
}
.skill-prompt__aside { margin: 12px 0 0; font-size: 13px; color: var(--muted-2); }

.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0 18px;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 15px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--muted); font-size: 18px; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); font-size: 14px; padding-bottom: 4px; }

.finale { max-width: var(--max); margin: 0 auto; padding: 80px 24px; text-align: center; }
.finale h2 { margin: 0 0 12px; font-size: clamp(26px, 3.5vw, 36px); letter-spacing: -0.025em; }
.finale p { margin: 0 0 28px; color: var(--muted); font-size: 15px; }

.footer {
  border-top: 1px solid var(--border); padding: 32px 24px 48px;
  text-align: center; color: var(--muted-2); font-size: 13px;
}
.footer__brand {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text); font-weight: 600; margin-bottom: 10px;
}
.footer__brand img { border-radius: 6px; }
.footer__meta { margin: 0 0 8px; color: var(--muted); }
.footer__links { margin: 0 0 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.footer__links a { color: var(--yellow); }
.footer__links a:hover { text-decoration: underline; }
.footer__copy { margin: 0; }

.fade-up { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.fade-up.in { opacity: 1; transform: none; }

/* 4AGENT live chart */
.chart-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  overflow: hidden;
}
.chart-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.chart-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  flex: 1;
  min-width: min(100%, 520px);
}
.chart-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.chart-stat__label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.chart-stat__value {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.chart-stat__value.is-up { color: var(--green); }
.chart-stat__value.is-down { color: #ff6b6b; }
.chart-frame-wrap {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0b0b0b;
}
.chart-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #0b0b0b;
}
.chart-panel__foot {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted-2);
}

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 1000px) {
  .steps--4 { grid-template-columns: repeat(2, 1fr); }
  .live-grid { grid-template-columns: repeat(2, 1fr); }
  .chart-stats { grid-template-columns: repeat(2, 1fr); }
  .chart-frame-wrap { height: 400px; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .hero__visual { order: -1; max-width: 360px; margin: 0 auto; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .steps, .steps--3, .split, .split--2, .skill-grid { grid-template-columns: 1fr; }
  .progress-viz { grid-template-columns: 1fr; justify-items: center; }
  .nav { display: none; }
  .topbar.is-open .nav {
    display: flex; flex-direction: column; position: absolute;
    top: var(--topbar-h); left: 0; right: 0; background: #0a0a0a;
    border-bottom: 1px solid var(--border); padding: 12px; margin: 0;
  }
  .menu-toggle { display: flex; }
  .lang-switch { display: none; }
  .topbar.is-open .lang-switch {
    display: flex; position: absolute; top: calc(var(--topbar-h) + 220px); left: 12px;
  }
  .mint-panel__row { flex-direction: column; gap: 6px; }
  .mint-panel__row code { text-align: left; }
}
@media (max-width: 480px) {
  .topbar { padding: 0 14px; gap: 10px; }
  .hero, .section, .metrics, .finale { padding-left: 16px; padding-right: 16px; }
  .section--alt > * { padding-left: 16px; padding-right: 16px; }
  .btn--lg { width: 100%; }
  .hero__actions { flex-direction: column; }
  .live-grid { grid-template-columns: 1fr; }
  .chart-stats { grid-template-columns: 1fr 1fr; }
  .chart-frame-wrap { height: 320px; }
  .chart-panel { padding: 14px; }
}
