:root {
  --bg-dark: #050711;
  --bg-card: rgba(10, 16, 33, 0.75);
  --bg-card-hover: rgba(16, 26, 52, 0.85);
  --border-color: rgba(240, 185, 11, 0.25);
  --border-cyan: rgba(0, 240, 255, 0.35);
  --gold: #f0b90b;
  --gold-light: #ffd700;
  --cyan: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.5);
  --violet: #c084fc;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --font-display: 'Orbitron', -apple-system, sans-serif;
  --font-body: 'Rajdhani', -apple-system, sans-serif;
  --font-code: 'Fira Code', monospace;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Background Cosmic Effects */
.stars-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    radial-gradient(1.5px 1.5px at 20px 30px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 75px 150px, #f0b90b, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 150px 80px, #00f0ff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 280px 240px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 390px 180px, #ffd700, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 450px 320px, #00f0ff, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 500px 500px;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.nebula-bg {
  position: fixed;
  top: -10%;
  left: -10%;
  width: 120vw;
  height: 120vh;
  background: 
    radial-gradient(circle at 80% 20%, rgba(240, 185, 11, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 20% 70%, rgba(0, 240, 255, 0.14) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(192, 132, 252, 0.08) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  position: relative;
  z-index: 1;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 2px;
}

.brand .icon {
  font-size: 26px;
  filter: drop-shadow(0 0 10px var(--gold));
}

.brand .highlight {
  color: var(--gold);
}

.header-badges {
  display: flex;
  gap: 10px;
}

.badge-chain, .badge-agent {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 1px;
}

.badge-chain {
  background: rgba(240, 185, 11, 0.15);
  border: 1px solid var(--gold);
  color: var(--gold);
}

.badge-agent {
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid var(--cyan);
  color: var(--cyan);
}

/* Hero Banner */
.hero-banner-frame {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  align-items: center;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-cyan);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 240, 255, 0.05);
}

.hero-banner-art {
  width: 100%;
  max-width: 280px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--gold);
  box-shadow: 0 0 25px rgba(240, 185, 11, 0.3);
}

.hero-featured-art {
  width: 100%;
  height: auto;
  display: block;
}

.hero-pill {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid var(--cyan);
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  letter-spacing: 1.5px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.hero-title span {
  color: var(--gold);
  text-shadow: 0 0 20px rgba(240, 185, 11, 0.6);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.hero-subtitle strong {
  color: var(--cyan);
}

/* Stats Grid */
.grid-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px 20px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.stat-label {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: #fff;
}

.stat-value.highlight-cyan {
  color: var(--cyan);
  text-shadow: 0 0 15px var(--cyan-glow);
}

.stat-value.highlight-gold {
  color: var(--gold);
  text-shadow: 0 0 15px rgba(240, 185, 11, 0.5);
}

.stat-value.highlight-amber {
  color: #fbbf24;
}

.stat-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Terminal Panel */
.terminal-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  margin-bottom: 40px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.terminal-header {
  background: rgba(4, 8, 20, 0.95);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 1px;
  margin-left: 10px;
}

.live-indicator {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.terminal-body {
  padding: 24px;
}

/* Progress Section */
.progress-section {
  margin-bottom: 24px;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-family: var(--font-display);
}

.progress-labels strong {
  color: var(--gold);
}

.progress-bar-container {
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--gold) 100%);
  border-radius: 6px;
  transition: width 0.5s ease;
  box-shadow: 0 0 10px var(--gold);
}

/* Terminal Grid */
.terminal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.control-box {
  background: rgba(5, 9, 22, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
}

.control-box h3 {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 1px;
  margin-bottom: 4px;
  color: #fff;
}

.control-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.qty-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.btn-qty {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--gold);
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-qty:hover {
  background: rgba(240, 185, 11, 0.2);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.qty-display {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  min-width: 60px;
  text-align: center;
}

.quote-box {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quote-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
}

.quote-highlight {
  font-size: 15px;
  color: var(--cyan);
  font-family: var(--font-display);
}

.gate-status {
  color: #10b981;
  font-weight: 600;
}

.btn-mint {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold) 0%, #eab308 100%);
  border: none;
  color: #000;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(240, 185, 11, 0.4);
}

.btn-mint:hover {
  background: linear-gradient(135deg, #ffd700 0%, var(--gold) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240, 185, 11, 0.6);
}

.wallet-status-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}

/* CLI Box */
.cli-box {
  background: rgba(2, 4, 10, 0.85);
  border: 1px solid var(--border-cyan);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.cli-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 12px;
}

.btn-copy-small {
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  font-family: var(--font-display);
  transition: all 0.2s;
}

.btn-copy-small:hover {
  background: var(--cyan);
  color: #000;
}

.cli-code {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px;
  color: #a7f3d0;
  font-family: var(--font-code);
  font-size: 11px;
  line-height: 1.5;
  overflow-x: auto;
  flex-grow: 1;
  white-space: pre-wrap;
  word-break: break-all;
  margin-bottom: 14px;
}

.cli-actions {
  display: flex;
  gap: 10px;
}

.btn-secondary {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--cyan);
  color: var(--cyan);
}

/* Gallery Section */
.gallery-section {
  margin-bottom: 50px;
}

.section-header {
  text-align: center;
  margin-bottom: 28px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.25s;
}

.gallery-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  box-shadow: 0 10px 25px rgba(0, 240, 255, 0.2);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
}

.gallery-info {
  padding: 12px 14px;
}

.gallery-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  display: flex;
  justify-content: space-between;
}

.gallery-sub {
  font-size: 12px;
  color: var(--cyan);
  margin-top: 2px;
}

/* Features */
.features-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 24px;
  backdrop-filter: blur(10px);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Roadmap */
.roadmap-section {
  margin-bottom: 50px;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.roadmap-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 20px;
  position: relative;
}

.roadmap-card.active {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(240, 185, 11, 0.2);
}

.phase-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(240, 185, 11, 0.15);
  color: var(--gold);
  margin-bottom: 10px;
}

.roadmap-card h4 {
  font-family: var(--font-display);
  font-size: 15px;
  margin-bottom: 12px;
  color: #fff;
}

.roadmap-card ul {
  list-style: none;
  font-size: 12.5px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Specs */
.specs-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 40px;
}

.specs-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.spec-name {
  color: var(--text-secondary);
  font-weight: 600;
}

.spec-val {
  font-family: var(--font-code);
  color: var(--cyan);
}

.spec-val a {
  color: var(--cyan);
  text-decoration: none;
}

.spec-val a:hover {
  text-decoration: underline;
}

/* Sibling Ecosystem Navigation */
.sibling-nav {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.sibling-nav span {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
  display: block;
  margin-bottom: 12px;
}

.sibling-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.sibling-links a {
  font-family: var(--font-display);
  font-size: 12px;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
}

.sibling-links a:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* Footer */
footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(4, 8, 20, 0.95);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  padding: 12px 20px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 1px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  pointer-events: none;
  z-index: 999;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.toast.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-banner-frame {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-banner-art {
    margin: 0 auto;
  }
  .grid-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .terminal-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-section, .roadmap-grid {
    grid-template-columns: 1fr;
  }
}
