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

:root {
  --bg: #030609;
  --fg: #e2e8f0;
  --cyan: #00d4ff;
  --green: #00ff88;
  --purple: #7000ff;
  --slate-400: #90a1b9;
  --slate-500: #62748e;
  --slate-600: #45556c;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.font-orbitron { font-family: 'Orbitron', sans-serif; }
.font-mono { font-family: ui-monospace, monospace; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0f16; }
::-webkit-scrollbar-thumb { background: rgba(0,212,255,.3); border-radius: 3px; }
::selection { color: var(--green); background: rgba(0,255,136,.25); }

/* Effects */
.cyber-grid {
  background-image:
    linear-gradient(rgba(0,212,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.scanlines { position: relative; overflow: hidden; }
.scanlines::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px 4px);
}
.hero-gradient-text {
  color: transparent;
  background: linear-gradient(135deg, #32cd32, #00ff88 35%, #00d4ff 65%, #1e90ff);
  background-size: 200%;
  -webkit-background-clip: text; background-clip: text;
  animation: grad 4s linear infinite;
}
@keyframes grad { 0%{background-position:0%} 100%{background-position:200%} }
.gradient-text {
  background: linear-gradient(135deg, #00d4ff, #00ff88);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.glass-card {
  background: rgba(10,15,22,.7);
  border: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
  border-radius: 12px;
}
.border-glow-green { border: 1px solid rgba(0,255,136,.4); box-shadow: 0 0 10px rgba(0,255,136,.15); }
.border-glow-blue { border: 1px solid rgba(0,212,255,.4); box-shadow: 0 0 10px rgba(0,212,255,.15); }
.section-alt { background: linear-gradient(rgba(10,15,22,.4), transparent); }

.btn-cyber-green {
  display: inline-block; text-decoration: none; cursor: pointer;
  color: var(--green); padding: 14px 32px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(0,255,136,.15), rgba(0,212,255,.1));
  border: 1px solid rgba(0,255,136,.5); transition: all .3s;
  font-family: 'Orbitron', sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
}
.btn-cyber-green:hover {
  color: #fff; border-color: rgba(0,255,136,.9);
  box-shadow: 0 0 20px rgba(0,255,136,.5);
}
.btn-cyber-blue {
  display: inline-block; text-decoration: none; cursor: pointer;
  color: var(--cyan); padding: 14px 32px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(0,212,255,.1), rgba(0,255,136,.1));
  border: 1px solid rgba(0,212,255,.5); transition: all .3s;
  font-family: 'Orbitron', sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
}
.btn-cyber-blue:hover {
  color: #fff; border-color: rgba(0,212,255,.9);
  box-shadow: 0 0 20px rgba(0,212,255,.5);
}
.btn-cyber-green:disabled, .btn-cyber-blue:disabled { opacity: .4; cursor: not-allowed; }

.rarity-silver { border: 2px solid rgba(192,192,192,.6); box-shadow: 0 0 15px rgba(192,192,192,.25); }
.rarity-gold { border: 2px solid rgba(255,215,0,.6); }
.rarity-platinum { border: 2px solid rgba(229,228,226,.7); }
.rarity-diamond { border: 2px solid rgba(0,212,255,.8); }
.rarity-emerald { border: 2px solid rgba(0,255,136,.8); }

/* Layout */
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media(min-width:640px){.container{padding:0 24px}}
@media(min-width:1024px){.container{padding:0 32px}}

/* Header */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: all .5s;
}
header.scrolled {
  background: rgba(3,6,9,.95); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; height: 80px;
}
.logo-link { text-decoration: none; display: flex; align-items: center; gap: 12px; }
.logo-img { width: 64px; height: 64px; object-fit: contain; }
.logo-title { font-family: 'Orbitron',sans-serif; font-weight: 900; font-size: 20px; letter-spacing: .28em; color: #fff; line-height: 1; }
.logo-sub { font-size: 9px; letter-spacing: .22em; color: rgba(0,212,255,.6); text-transform: uppercase; margin-top: 2px; }

nav.desktop-nav { display: none; align-items: center; gap: 32px; }
@media(min-width:768px){ nav.desktop-nav { display: flex; } }
nav.desktop-nav a, nav.desktop-nav button.nav-link {
  position: relative; background: none; border: none; cursor: pointer;
  font-family: 'Orbitron',sans-serif; font-size: 14px; font-weight: 500;
  letter-spacing: .05em; color: var(--slate-400); text-decoration: none; transition: color .2s;
}
nav.desktop-nav a:hover, nav.desktop-nav button.nav-link:hover { color: var(--cyan); }
nav.desktop-nav a::after, nav.desktop-nav button.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; height: 1px; width: 0;
  background: var(--cyan); transition: width .3s;
}
nav.desktop-nav a:hover::after, nav.desktop-nav button.nav-link:hover::after { width: 100%; }

.header-right { display: flex; align-items: center; gap: 16px; }
.live-badge {
  display: none; align-items: center; gap: 8px; padding: 6px 12px;
  border-radius: 999px; border: 1px solid rgba(0,255,136,.2); background: rgba(0,255,136,.05);
}
@media(min-width:640px){ .live-badge { display: flex; } }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }
.live-text { font-size: 10px; letter-spacing: .1em; color: var(--green); text-transform: uppercase; }

.wallet-btn {
  display: none; padding: 10px 20px; border-radius: 8px; cursor: pointer;
  font-family: 'Orbitron',sans-serif; font-size: 13px; letter-spacing: .05em;
  border: 1px solid rgba(0,212,255,.35); background: rgba(0,212,255,.05);
  color: var(--cyan); transition: all .3s;
}
@media(min-width:640px){ .wallet-btn { display: block; } }
.wallet-btn:hover { background: rgba(0,212,255,.1); }
.wallet-btn.connected { color: var(--green); border-color: rgba(0,255,136,.3); background: rgba(0,255,136,.05); }

.menu-toggle { display: block; background: none; border: none; color: var(--slate-400); cursor: pointer; padding: 8px; }
@media(min-width:768px){ .menu-toggle { display: none; } }
.mobile-nav {
  display: none; background: rgba(3,6,9,.98); border-top: 1px solid rgba(255,255,255,.05);
  padding: 24px 16px;
}
.mobile-nav.open { display: block; }
.mobile-nav a, .mobile-nav button {
  display: block; width: 100%; text-align: left; background: none; border: none;
  font-family: 'Orbitron',sans-serif; font-size: 14px; color: var(--slate-400);
  padding: 12px 0; cursor: pointer; text-decoration: none;
}
.mobile-nav a:hover, .mobile-nav button:hover { color: var(--cyan); }

main { flex: 1; }
.page { display: none; }
.page.active { display: block; }

/* Footer */
footer { border-top: 1px solid rgba(255,255,255,.05); padding: 48px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
@media(min-width:640px){ .footer-inner { flex-direction: row; justify-content: space-between; } }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.05); }
.footer-links a, .footer-links button {
  background: none; border: none; cursor: pointer;
  font-family: 'Orbitron',sans-serif; font-size: 12px; letter-spacing: .05em;
  color: var(--slate-500); text-decoration: none;
}
.footer-links a:hover, .footer-links button:hover { color: var(--cyan); }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.hero-banner-wrap {
  position: absolute; top: 96px; left: 0; right: 0; display: flex; justify-content: center;
  pointer-events: none; opacity: .25;
}
@media(min-width:640px){ .hero-banner-wrap { opacity: .35; top: 112px; } }
.hero-banner { max-width: 896px; width: 100%; padding: 0 24px; position: relative; }
.hero-banner img { width: 100%; height: auto; object-fit: contain; }
.hero-banner-fade {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 10%, #030609 65%);
}
.hero-glow-1 {
  position: absolute; top: 33%; left: 25%; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(50,205,50,.08), transparent 70%); filter: blur(80px); pointer-events: none;
}
.hero-glow-2 {
  position: absolute; bottom: 25%; right: 25%; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,.07), transparent 70%); filter: blur(80px); pointer-events: none;
}
.hero-content {
  position: relative; z-index: 10; flex: 1; display: flex; flex-direction: column;
  justify-content: center; padding: 112px 0 64px; text-align: center;
}
.hero-label { font-size: 10px; letter-spacing: .35em; color: rgba(0,212,255,.7); text-transform: uppercase; margin-bottom: 24px; }
.hero-title { font-family: 'Orbitron',sans-serif; font-weight: 900; font-size: 36px; line-height: 1.05; margin-bottom: 24px; }
@media(min-width:640px){ .hero-title { font-size: 48px; } }
@media(min-width:1024px){ .hero-title { font-size: 72px; } }
.hero-desc { color: var(--slate-400); max-width: 640px; margin: 0 auto 40px; line-height: 1.6; font-size: 16px; }
.hero-desc .green { color: var(--green); }
.hero-btns { display: flex; flex-direction: column; gap: 16px; align-items: center; margin-bottom: 64px; }
@media(min-width:640px){ .hero-btns { flex-direction: row; justify-content: center; } }
.hero-miner-link {
  display: inline-flex; align-items: center; gap: 8px; background: none; border: none; cursor: pointer;
  font-size: 12px; letter-spacing: .25em; color: var(--slate-500); text-transform: uppercase; margin-bottom: 64px;
}
.hero-miner-link:hover { color: var(--cyan); }

.metrics-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 960px; margin: 0 auto; width: 100%;
}
@media(min-width:640px){ .metrics-grid { grid-template-columns: 1fr 1fr; } }
@media(min-width:1024px){ .metrics-grid { grid-template-columns: repeat(4, 1fr); } }
.metric-card { padding: 20px; transition: border-color .3s; }
.metric-card:hover { border-color: rgba(0,212,255,.25); }
.metric-label { display: flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .2em; color: var(--slate-500); text-transform: uppercase; margin-bottom: 12px; }
.metric-value { font-family: 'Orbitron',sans-serif; font-weight: 700; font-size: 24px; }
.metric-sub { font-size: 12px; color: var(--slate-500); margin-top: 4px; }
.text-green { color: var(--green); }
.text-cyan { color: var(--cyan); }
.text-amber { color: #fcbb00; }

.scroll-hint {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--slate-600); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  animation: pulse 2s infinite;
}

/* Sections */
.page-header { text-align: center; padding: 112px 0 48px; }
.page-label { font-size: 10px; letter-spacing: .35em; color: rgba(0,212,255,.7); text-transform: uppercase; margin-bottom: 16px; }
.page-title { font-family: 'Orbitron',sans-serif; font-weight: 900; font-size: 36px; color: #fff; margin-bottom: 16px; }
@media(min-width:640px){ .page-title { font-size: 48px; } }
.page-desc { color: var(--slate-400); max-width: 640px; margin: 0 auto; line-height: 1.6; }

.section { padding: 96px 0; }
.section-title { font-family: 'Orbitron',sans-serif; font-weight: 900; font-size: 32px; color: #fff; text-align: center; margin-bottom: 16px; }
.section-desc { color: var(--slate-400); text-align: center; max-width: 640px; margin: 0 auto 64px; }

.steps-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media(min-width:768px){ .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step-card { padding: 32px; border-radius: 16px; transition: transform .3s; }
.step-card:hover { transform: scale(1.02); }
.step-num { font-size: 10px; letter-spacing: .3em; color: var(--slate-600); }
.step-title { font-family: 'Orbitron',sans-serif; font-weight: 700; font-size: 20px; color: #fff; margin: 8px 0 12px; }
.step-desc { font-size: 14px; color: var(--slate-400); line-height: 1.6; }

.two-col { display: grid; grid-template-columns: 1fr; gap: 32px; max-width: 960px; margin: 0 auto; }
@media(min-width:1024px){ .two-col { grid-template-columns: 1fr 1fr; } }

.flywheel { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-bottom: 48px; }
.flywheel-step { font-size: 12px; padding: 6px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.05); background: rgba(255,255,255,.05); }
.flywheel-arrow { color: var(--slate-600); display: none; }
@media(min-width:640px){ .flywheel-arrow { display: inline; } }

.mint-card { padding: 32px; }
.mint-progress { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; font-size: 10px; letter-spacing: .25em; color: var(--slate-500); text-transform: uppercase; }
.progress-bar { flex: 1; max-width: 120px; height: 6px; background: rgba(255,255,255,.05); border-radius: 999px; margin-left: 16px; }
.progress-fill { height: 100%; background: var(--green); border-radius: 999px; width: 0%; }
.pickaxe-icon { width: 128px; height: 128px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; background: linear-gradient(to bottom, rgba(148,163,184,.1), transparent); font-size: 48px; }
.tier-list { display: flex; flex-direction: column; gap: 12px; }
.tier-item { padding: 20px; display: flex; align-items: center; justify-content: space-between; border-radius: 12px; border-width: 2px; }
.tier-item.dim { opacity: .6; }
.tier-badge { font-size: 10px; letter-spacing: .1em; color: var(--green); text-transform: uppercase; padding: 4px 8px; border-radius: 4px; border: 1px solid rgba(0,255,136,.3); background: rgba(0,255,136,.05); }

.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 640px; border-collapse: collapse; }
th { text-align: left; padding: 12px 16px; font-size: 10px; letter-spacing: .1em; color: var(--slate-500); text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,.1); }
td { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.05); }
tr:hover td { background: rgba(255,255,255,.05); }

.stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(min-width:640px){ .stats-row { grid-template-columns: repeat(4, 1fr); } }
.stat-box { padding: 20px; text-align: center; }

.miner-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media(min-width:1024px){ .miner-grid { grid-template-columns: 11fr 17fr; } }
.slot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.slot { aspect-ratio: 1; border-radius: 12px; border: 1px dashed rgba(255,255,255,.1); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(255,255,255,.02); color: var(--slate-600); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.empty-state { padding: 48px; text-align: center; border: 1px dashed rgba(255,255,255,.1); border-radius: 12px; color: var(--slate-500); }

.map-preview { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); height: 400px; margin-bottom: 48px; }
@media(min-width:640px){ .map-preview { height: 520px; } }
.map-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 80%, rgba(0,255,136,.15), transparent 60%), radial-gradient(ellipse at 20% 20%, rgba(0,212,255,.1), transparent 50%), #0a0f16; }
.zone-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media(min-width:768px){ .zone-grid { grid-template-columns: repeat(3, 1fr); } }

.text-center { text-align: center; }
.text-sm { font-size: 14px; }
.text-xs { font-size: 12px; }
.text-red { color: #ff6568; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mt-8 { margin-top: 32px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }
.w-full { width: 100%; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.badge-soon { display: inline-block; font-size: 10px; letter-spacing: .1em; color: #fcbb00; text-transform: uppercase; padding: 4px 12px; border-radius: 4px; border: 1px solid rgba(251,191,36,.3); background: rgba(251,191,36,.1); margin-top: 16px; }
.badge-idle { font-size: 10px; letter-spacing: .1em; color: var(--slate-500); text-transform: uppercase; padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); }
.reward-box { padding: 16px; border-radius: 12px; border: 1px solid rgba(0,255,136,.2); background: rgba(0,255,136,.05); margin-bottom: 16px; }
.yield-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.yield-box { padding: 16px; border-radius: 12px; background: rgba(255,255,255,.05); }
.accessory-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media(min-width:640px){ .accessory-grid { grid-template-columns: 1fr 1fr; } }
.accessory-card { padding: 16px; border-radius: 12px; border: 1px solid rgba(112,0,255,.3); background: rgba(112,0,255,.05); }

/* Contract address */
.ca-box {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px;
  margin-top: 32px; padding: 12px 16px; border-radius: 10px;
  border: 1px solid rgba(0,212,255,.25); background: rgba(0,212,255,.05);
}
.ca-label {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--slate-500);
}
.ca-address {
  font-size: 11px; color: var(--cyan); word-break: break-all;
}
@media(min-width:640px){ .ca-address { font-size: 12px; } }
.ca-copy {
  padding: 6px 14px; border-radius: 6px; cursor: pointer;
  font-family: 'Orbitron', sans-serif; font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--green); border: 1px solid rgba(0,255,136,.35); background: rgba(0,255,136,.08);
  transition: all .2s;
}
.ca-copy:hover { background: rgba(0,255,136,.15); border-color: rgba(0,255,136,.6); }
.ca-copy.copied { color: #fff; border-color: var(--green); }
.ca-footer { color: var(--slate-500); }
.ca-footer-link {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--cyan); font-family: ui-monospace, monospace; font-size: 11px;
  text-decoration: underline; text-underline-offset: 2px;
}
.ca-footer-link:hover { color: var(--green); }
