/* ===== HERO CTAs (landing page) ===== */
.hero-ctas {
  display: flex;
  gap: 1.25rem;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 2.25rem;
  background: var(--accent);
  color: #0a0a0f;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity 0.2s, transform 0.2s;
}

.hero-cta-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--fg);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: border-color 0.2s, color 0.2s;
}

.hero-cta-secondary:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--fg);
}

/* ===== APP-WIDE NAV ===== */
.app-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--fg-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--fg);
}

/* ===== APP MAIN ===== */
.app-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

/* ===== PAGE HEADER ===== */
.page-header {
  margin-bottom: 4rem;
}

.page-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.page-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 1rem;
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 500px;
  line-height: 1.6;
}

/* ===== SECTION HEADING ===== */
.section-heading {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  margin-top: 0.5rem;
}

/* ===== UTILITY ===== */
.mono { font-family: var(--font-mono); }
.accent { color: var(--accent); }
.accent-secondary { color: var(--accent-secondary); }
.fg-muted { color: var(--fg-muted); }

.btn-link {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
  transition: opacity 0.2s;
}

.btn-link:hover { opacity: 0.7; }

/* ===== METRICS GRID ===== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 5rem;
}

.metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  transition: border-color 0.25s, transform 0.2s;
}

.metric-card:hover {
  border-color: rgba(247, 147, 26, 0.25);
  transform: translateY(-2px);
}

.metric-card.featured {
  background: var(--bg-elevated);
  border-color: rgba(247, 147, 26, 0.3);
}

.metric-label {
  font-size: 0.78rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.metric-value {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.metric-sub {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* ===== DISTRIBUTION SECTION ===== */
.dist-section,
.alloc-section,
.breakdown-section,
.mechanics-section,
.timeline-phase {
  margin-bottom: 5rem;
}

.supply-bar-wrapper { margin-top: 1.5rem; }

.supply-bar {
  height: 20px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border);
}

.supply-segment {
  height: 100%;
  transition: flex 0.5s ease;
}

.seg-circ   { background: var(--accent); }
.seg-burned { background: var(--accent-secondary); }
.seg-locked { background: var(--bg-elevated); border-left: 1px solid var(--border); }

.supply-legend {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--fg-muted);
}

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

.dot-circ   { background: var(--accent); }
.dot-burned { background: var(--accent-secondary); }
.dot-locked { background: var(--bg-elevated); border: 1px solid var(--border); }

/* ===== ALLOC LIST (Dashboard) ===== */
.alloc-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.alloc-row {
  display: grid;
  grid-template-columns: 160px 1fr 60px 160px;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.alloc-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alloc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.alloc-name {
  font-size: 0.9rem;
  font-weight: 500;
}

.alloc-bar-wrap {
  background: var(--bg-surface);
  border-radius: 4px;
  height: 6px;
  overflow: hidden;
}

.alloc-bar {
  height: 6px;
  border-radius: 4px;
  border: 1px solid;
  min-width: 4px;
  transition: width 0.5s ease;
}

.alloc-pct {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: right;
}

.alloc-amount {
  font-size: 0.78rem;
  text-align: right;
}

/* ===== TOKENOMICS PAGE ===== */
.supply-hero {
  margin-bottom: 4rem;
  padding: 3rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.supply-hero::before {
  content: '';
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  pointer-events: none;
}

.supply-number {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}

.supply-caption {
  font-size: 0.9rem;
  color: var(--fg-muted);
  margin-top: 0.5rem;
  position: relative;
  z-index: 1;
}

.breakdown-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
}

.donut-wrapper { position: sticky; top: 6rem; }

.donut-svg {
  width: 100%;
  max-width: 260px;
  display: block;
  margin: 0 auto;
  transform: rotate(-90deg);
}

.donut-segment {
  transition: opacity 0.25s;
  cursor: pointer;
}

.donut-center-top {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  fill: var(--fg);
  transform: rotate(90deg);
  transform-origin: 100px 100px;
}

.donut-center-bot {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: var(--fg-muted);
  transform: rotate(90deg);
  transform-origin: 100px 100px;
}

.alloc-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.alloc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  cursor: default;
}

.alloc-card:hover {
  border-color: var(--card-color, var(--accent));
  box-shadow: 0 0 24px -8px var(--card-color, var(--accent));
}

.alloc-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.alloc-card-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.alloc-card-label {
  font-weight: 600;
  font-size: 1rem;
  flex: 1;
}

.alloc-card-pct {
  font-size: 1rem;
  font-weight: 700;
}

.alloc-card-amount {
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
}

.alloc-card-desc {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.alloc-card-vesting {
  font-size: 0.75rem;
  color: var(--fg-muted);
  font-family: var(--font-mono);
}

.alloc-card-vesting.free {
  color: var(--accent-secondary);
}

/* ===== MECHANICS ===== */
.mechanics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.mechanic-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  transition: border-color 0.25s;
}

.mechanic-item:hover { border-color: rgba(247, 147, 26, 0.25); }

.mechanic-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.mechanic-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.mechanic-item p {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ===== ROADMAP PAGE ===== */
.phase-overview {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 4rem;
  padding: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.phase-summary {
  display: grid;
  grid-template-columns: 80px 1fr 48px;
  align-items: center;
  gap: 1.25rem;
}

.phase-summary-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.phase-progress-bar {
  height: 6px;
  background: var(--bg-elevated);
  border-radius: 3px;
  overflow: hidden;
}

.phase-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  border-radius: 3px;
  transition: width 0.8s ease;
}

.phase-pct {
  font-size: 0.8rem;
  color: var(--accent);
  text-align: right;
}

.timeline-phase {
  margin-bottom: 4rem;
}

.timeline-phase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.timeline-phase-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.timeline-phase-stats {
  font-size: 0.82rem;
  color: var(--fg-muted);
}

.timeline-items { }

.timeline-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.5rem;
  position: relative;
}

.timeline-status-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 1.5rem;
  flex-shrink: 0;
  position: relative;
}

.dot-done {
  background: var(--accent-secondary);
  color: #0a0a0f;
}

.dot-active {
  background: var(--accent);
  color: #0a0a0f;
}

.dot-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--accent);
  animation: ripple 1.5s ease-out infinite;
  opacity: 0.4;
}

@keyframes ripple {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(2.2); opacity: 0; }
}

.dot-pending {
  background: var(--bg-elevated);
  border: 2px solid var(--border);
}

.timeline-connector {
  flex: 1;
  width: 1px;
  background: var(--border);
  min-height: 20px;
}

.timeline-item:last-child .timeline-connector { display: none; }

.timeline-content {
  padding: 1.5rem 0 2rem;
}

.timeline-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.timeline-desc {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.timeline-status-badge {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
}

.badge-completed {
  background: rgba(0, 212, 170, 0.15);
  color: var(--accent-secondary);
  border: 1px solid rgba(0, 212, 170, 0.25);
}

.badge-active {
  background: rgba(247, 147, 26, 0.15);
  color: var(--accent);
  border: 1px solid rgba(247, 147, 26, 0.25);
}

.badge-pending {
  background: var(--bg-elevated);
  color: var(--fg-muted);
  border: 1px solid var(--border);
}

.timeline-date {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

/* ===== ERROR PAGE ===== */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  gap: 1rem;
}

.error-code {
  font-size: 6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.error-msg {
  font-size: 1.1rem;
  color: var(--fg-muted);
}

/* ===== APP FOOTER ===== */
.app-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
}

.app-footer .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.app-footer .footer-links {
  display: flex;
  gap: 2rem;
}

.app-footer .footer-links a {
  font-size: 0.85rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.app-footer .footer-links a:hover { color: var(--fg); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .breakdown-layout {
    grid-template-columns: 1fr;
  }

  .donut-wrapper {
    position: static;
    max-width: 220px;
    margin: 0 auto;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .alloc-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
  }

  .alloc-bar-wrap, .alloc-amount {
    display: none;
  }
}

@media (max-width: 600px) {
  .app-nav { padding: 1rem; }
  .nav-links { gap: 1rem; }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .mechanics-grid {
    grid-template-columns: 1fr;
  }

  .app-main { padding: 2rem 1rem 4rem; }

  .phase-summary {
    grid-template-columns: 64px 1fr 36px;
    gap: 0.75rem;
  }

  .timeline-item {
    grid-template-columns: 36px 1fr;
    gap: 1rem;
  }
}
