:root {
  --bg: #050917;
  --bg-alt: #070d1f;
  --accent: #2fb6ff;
  --accent-soft: rgba(47, 182, 255, 0.16);
  --muted: #9fb6c8;
  --text: #e3f3ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  background: radial-gradient(circle at top, #0b1d3a 0, #050917 55%, #02040a 100%);
  color: var(--text);
}

/* NAVBAR */
.topnav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 40px;
  background: rgba(5, 9, 23, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.nav-left { display: flex; align-items: center; gap: 10px; }
.nav-logo { height: 32px; width: auto; }
.nav-title {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 14px;
  color: var(--muted);
}
.nav-links a {
  margin-left: 18px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
.nav-links a:hover { color: var(--accent); }

/* HERO */
.hero { padding: 40px 40px 20px; }
.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 32px;
  align-items: center;
}
.hero-text h1 { font-size: 34px; margin-bottom: 8px; }
.hero-text p { margin: 0; }
.hero-sub { margin-top: 12px; color: var(--muted); max-width: 640px; }
.hero-cta { margin-top: 18px; display: flex; gap: 10px; }

.btn-primary,
.btn-ghost {
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #021524;
  font-weight: 600;
}
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent-soft);
}

.hero-card {
  background: radial-gradient(circle at top left, rgba(47, 182, 255, 0.24), #050917 60%);
  border-radius: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.hero-card h2 { margin-top: 0; font-size: 18px; color: var(--accent); }
.hero-card ul { list-style: none; padding: 0; margin: 0; }
.hero-card li { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.hero-card span { color: var(--text); }
.addr {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 4px;
  border-radius: 4px;
  word-break: break-all;
}
.hero-card a {
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
}
.hero-card a:hover {
  text-decoration: underline;
}

/* SECTIONS */
.section {
  max-width: 1120px;
  margin: 20px auto 32px;
  padding: 0 40px;
}
.section h2 { color: var(--accent); margin-bottom: 10px; }
.section p { color: var(--muted); }

/* GRID CARDS */
.section-grid .grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.card {
  background: var(--bg-alt);
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.card h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 16px;
  color: var(--text);
}
.card p,
.card ul {
  font-size: 14px;
  color: var(--muted);
}

/* TOKENOMICS */
.tokenomics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 12px 0;
}
.tokenomics-grid ul { padding-left: 18px; }
.note { font-size: 13px; color: var(--muted); }

/* ROADMAP */
.timeline {
  border-left: 2px solid rgba(47, 182, 255, 0.36);
  margin-left: 6px;
  padding-left: 16px;
}
.timeline-item {
  position: relative;
  padding: 8px 0 8px 4px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(47, 182, 255, 0.8);
}
.timeline-item h3 { margin: 0 0 4px; font-size: 16px; }
.timeline-item p { margin: 0 0 4px; font-size: 13px; color: var(--muted); }
.timeline-item ul { margin: 2px 0 4px; font-size: 13px; color: var(--muted); }

/* TERMINAL */
.terminal-section { margin-top: 30px; }

.terminal-sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 10px;
}

.terminal-window {
  background: #050815;
  border-radius: 12px;
  border: 1px solid rgba(47, 182, 255, 0.25);
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.65);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #02030a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: var(--muted);
}

.terminal-header .dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.terminal-header .red { background: #ff5f57; }
.terminal-header .yellow { background: #febc2e; }
.terminal-header .green { background: #26c940; }

.terminal-title {
  margin-left: 8px;
  opacity: 0.8;
}

.terminal-body {
  padding: 10px 12px 8px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  color: #e3f3ff;
  background: radial-gradient(circle at top left, rgba(47, 182, 255, 0.18), #050815 55%);
  max-height: 260px;
  overflow-y: auto;
}

#terminal-output {
  margin: 0 0 4px;
  white-space: pre-wrap;
}

.terminal-input-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.terminal-prompt {
  color: #2fb6ff;
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: #e3f3ff;
  margin-left: 2px;
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.terminal-hints {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.terminal-hints code {
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 5px;
  border-radius: 4px;
}

/* FOOTER */
.footer {
  margin-top: 40px;
  padding: 16px 40px 24px;
  background: #02040a;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 12px;
  color: var(--muted);
}
.footer-small { margin-top: 4px; }

/* RESPONSIVE */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { margin-top: 10px; }
  .section { padding: 0 20px; }
  .topnav { padding: 10px 18px; }
  .nav-links { display: none; }
  .section-grid .grid,
  .tokenomics-grid { grid-template-columns: 1fr; }
  .terminal-section { padding: 0 20px; }
}
/* Whitepaper Buttons */
.whitepaper-buttons {
  margin-top: 20px;
  display: flex;
  gap: 14px;
}

.wp-btn {
  background: var(--accent);
  color: #000;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s;
}

.wp-btn:hover {
  opacity: 0.9;
}

.wp-btn.download {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.wp-btn.download:hover {
  background: var(--accent);
  color: #000;
}

/* Modal Styling */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.65);
}

.modal-content {
  background: #111;
  margin: auto;
  padding: 20px;
  border: 1px solid #333;
  width: 70%;
  border-radius: 8px;
  color: #eee;
  line-height: 1.6;
}

.close {
  float: right;
  font-size: 28px;
  cursor: pointer;
}

.close:hover {
  color: var(--accent);
}
/* CA Popup */
.ca-popup {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2100;
}

.ca-popup-inner {
  background: #050815;
  border-radius: 10px;
  padding: 16px 18px 14px;
  border: 1px solid rgba(47,182,255,0.5);
  max-width: 420px;
  width: calc(100% - 40px);
  color: var(--muted);
  font-size: 13px;
}

.ca-close {
  background: transparent;
  border: none;
  color: #ccc;
  font-size: 20px;
  float: right;
  cursor: pointer;
}

.ca-close:hover {
  color: var(--accent);
}

.addr-popup {
  display: block;
  margin: 6px 0 4px;
  word-break: break-all;
  background: rgba(255,255,255,0.04);
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 12px;
}

.ca-note {
  font-size: 11px;
  color: var(--muted);
  opacity: 0.9;
}
