/* ── Reset & base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0a0a0a;
  --bg2:      #111111;
  --bg3:      #181818;
  --border:   #1e1e1e;
  --border2:  #2a2a2a;
  --text:     #f0f0f0;
  --text2:    #999999;
  --text3:    #555555;
  --accent:   #00c896;
  --accent2:  #00a87e;
  --accent-dim: rgba(0, 200, 150, 0.08);
  --red:      #ff4444;
  --orange:   #ff8c00;

  --font:     'Inter', -apple-system, sans-serif;
  --mono:     'JetBrains Mono', 'SF Mono', monospace;

  --radius:   14px;
  --radius-sm: 8px;
  --max-w:    880px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ── Header ────────────────────────────────────────────── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 20px; }
.logo-text { font-size: 17px; font-weight: 700; letter-spacing: -0.5px; }
.logo-tag {
  font-family: var(--mono);
  font-size: 10px;
  background: var(--accent-dim);
  border: 1px solid rgba(0,200,150,0.2);
  padding: 2px 8px;
  border-radius: 100px;
  color: var(--accent);
}

nav { display: flex; align-items: center; gap: 20px; }
.nav-link { color: var(--text3); font-size: 13px; font-weight: 500; transition: color 0.2s; }
.nav-link:hover { color: var(--text); }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,200,150,0.2); }
.btn-primary:active { transform: translateY(0); box-shadow: none; }
.btn-outline { background: transparent; border: 1px solid var(--border2); color: var(--text2); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text3); }
.btn-ghost:hover { color: var(--text); }
.btn-lg { padding: 13px 26px; font-size: 15px; border-radius: 10px; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px 32px 56px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  border: 1px solid rgba(0,200,150,0.3);
  background: var(--accent-dim);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(0,200,150,0); }
  50%       { box-shadow: 0 0 24px rgba(0,200,150,0.15); }
}

h1 {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 18px;
}

.highlight { color: var(--accent); }

.hero-sub {
  font-size: 16px;
  color: var(--text2);
  max-width: 440px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-cta { display: flex; gap: 10px; justify-content: center; margin-bottom: 36px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.stat-pill {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.stat-label { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.3px; }
.stat-value { font-family: var(--mono); font-size: 12px; font-weight: 600; }

/* ── Section headings ───────────────────────────────────── */
.station-section, .how-section, .connect-section, .stats-section, .contracts-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px 56px;
}
.station-section h2, .how-section h2, .connect-section h2, .stats-section h2, .contracts-section h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: var(--text2);
}
.section-sub { color: var(--text3); font-size: 14px; margin-bottom: 20px; line-height: 1.6; }

/* ── Wallet Station ─────────────────────────────────────── */
.station-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.station-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.station-status { display: flex; align-items: center; gap: 12px; }
.station-actions { display: flex; gap: 8px; }
.status-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.3px;
}
.status-badge.disconnected { background: rgba(255,68,68,0.08); color: var(--red); border: 1px solid rgba(255,68,68,0.3); }
.status-badge.connected { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(0,200,150,0.3); }
.station-addr { font-family: var(--mono); font-size: 13px; color: var(--text2); }

.station-body { padding: 20px; }
.station-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.station-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
}
.station-item-label { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 6px; }
.station-item-value { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--text); }

.permit-status { font-family: var(--mono); font-size: 12px; font-weight: 700; }
.permit-status.signed { color: var(--accent); }
.permit-status.unsigned { color: var(--orange); }

.station-step { margin-bottom: 16px; }
.step-label { font-size: 12px; color: var(--text3); margin-bottom: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }

.deposit-row { display: flex; align-items: center; gap: 10px; }
.deposit-input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  width: 110px;
  outline: none;
  transition: border-color 0.2s;
}
.deposit-input:focus { border-color: var(--accent); }
.deposit-hint { font-size: 11px; color: var(--text3); }

.status-msg { padding: 10px 20px; font-size: 13px; min-height: 18px; }
.status-msg.success { color: var(--accent); }
.status-msg.error { color: var(--red); }
.status-msg.info { color: var(--text2); }

/* ── How it works ───────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.step {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.step:hover { border-color: rgba(0,200,150,0.3); transform: translateY(-2px); }
.step-num { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-bottom: 10px; }
.step-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.step-desc { font-size: 13px; color: var(--text2); line-height: 1.6; }

/* ── MCP Connect ────────────────────────────────────────── */
.connect-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.connect-card-body { padding: 20px; }
.connect-card-body p { font-size: 13px; color: var(--text2); margin-bottom: 12px; }
.connect-card-body p strong { color: var(--text); }

.code-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.8;
}
.code-row { color: var(--text2); }
.code-label { color: var(--text3); }
.code-url { color: var(--accent); word-break: break-all; }

.prompt-section {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.prompt-section h3 { font-size: 13px; color: var(--text3); margin-bottom: 10px; font-weight: 600; }
.prompt-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text2);
  white-space: pre-wrap;
  margin-bottom: 10px;
  line-height: 1.7;
}

/* ── Stats ──────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  transition: border-color 0.2s;
}
.stat-card:hover { border-color: var(--border2); }
.stat-card-label { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 6px; }
.stat-card-value { font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--accent); margin-bottom: 2px; }
.stat-card-sub { font-size: 11px; color: var(--text3); }

.progress-wrap {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.progress-bar { height: 6px; background: var(--bg3); border-radius: 100px; overflow: hidden; margin-bottom: 10px; }
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #00ffbd);
  border-radius: 100px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-labels { display: flex; justify-content: space-between; font-size: 11px; font-family: var(--mono); color: var(--text3); }

/* ── Contracts ──────────────────────────────────────────── */
.contract-list { display: flex; flex-direction: column; gap: 10px; }
.contract-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.contract-name { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; min-width: 100px; }
.contract-addr { font-family: var(--mono); font-size: 12px; color: var(--accent); word-break: break-all; flex: 1; }
.contract-desc { font-size: 11px; color: var(--text3); }

/* ── Footer ─────────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); padding: 20px 32px 14px; }
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-left { font-size: 12px; color: var(--text3); }
.footer-links { display: flex; gap: 16px; }
.footer-links a { font-size: 12px; color: var(--text3); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-disclaimer {
  max-width: var(--max-w);
  margin: 10px auto 0;
  font-size: 10px;
  color: var(--text3);
  text-align: center;
  opacity: 0.5;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  header { padding: 12px 16px; }
  nav { gap: 14px; }
  .nav-link { font-size: 12px; }

  .hero { padding: 48px 16px 36px; }
  h1 { letter-spacing: -1px; }
  .hero-sub { font-size: 14px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-stats { flex-direction: column; align-items: center; }

  .station-section, .how-section, .connect-section, .stats-section, .contracts-section { padding-left: 16px; padding-right: 16px; }
  .station-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .deposit-row { flex-wrap: wrap; }
  .contract-item { flex-direction: column; align-items: flex-start; gap: 4px; }

  footer { padding: 16px; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 400px) {
  .stats-grid { grid-template-columns: 1fr; }
  .station-grid { grid-template-columns: 1fr; }
}

/* ── Utility ────────────────────────────────────────────── */
.hidden { display: none !important; }
