/* ========================================
   Cthulhrr Landing — Dark Eldritch Theme
   ======================================== */

:root {
  --bg-deep: #0a0a0f;
  --bg-dark: #0e0e16;
  --bg-card: #12121c;
  --bg-card-hover: #181826;
  --border: #1e1e30;
  --border-light: #2a2a44;
  --text: #e0e0e8;
  --text-dim: #8888a0;
  --text-muted: #555570;
  --accent: #00e5a0;
  --accent-dim: #00c88a;
  --accent-glow: rgba(0, 229, 160, 0.25);
  --purple: #7c4dff;
  --purple-glow: rgba(124, 77, 255, 0.2);
  --cyan: #00b8d4;
  --orange: #ff6e40;
  --yellow: #ffd740;
  --red: #ff5252;
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: #fff; }

/* ---- Background ---- */
.bg-abyss {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-tentacles {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 600px at 20% 20%, rgba(0, 229, 160, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 80% 80%, rgba(124, 77, 255, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 400px 800px at 50% 50%, rgba(0, 184, 212, 0.02) 0%, transparent 70%);
  animation: bgPulse 12s ease-in-out infinite alternate;
}

.bg-particles {
  position: absolute;
  inset: 0;
}

@keyframes bgPulse {
  0% { opacity: 1; }
  100% { opacity: 0.5; transform: scale(1.05); }
}

/* ---- Container ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.3s;
  background: transparent;
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
}
.nav-logo:hover { color: var(--accent); }

.logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--accent-glow));
  border-radius: 50%;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-link {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s;
}
.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.05);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-deep);
}
.btn-primary:hover {
  background: #fff;
  color: var(--bg-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-glow {
  box-shadow: 0 0 20px var(--accent-glow), 0 0 60px rgba(0, 229, 160, 0.1);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--bg-deep);
}

.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid var(--border-light);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: var(--text-dim);
}

.btn-block { width: 100%; }

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
}

.btn-icon { font-size: 1.1rem; }

.icon-x { flex-shrink: 0; }

/* ---- Hero ---- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 60px;
}

.hero-content {
  flex: 1;
  max-width: 640px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0, 229, 160, 0.1);
  border: 1px solid rgba(0, 229, 160, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-title-line {
  display: block;
}

.accent { color: var(--accent); }
.highlight {
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-value {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Hero Orb */
.hero-visual {
  flex: 0 0 auto;
}

.hero-orb {
  position: relative;
  width: 340px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
}

.orb-ring-1 {
  width: 100%;
  height: 100%;
  border-color: rgba(0, 229, 160, 0.15);
  animation: orbSpin 20s linear infinite;
}
.orb-ring-2 {
  width: 75%;
  height: 75%;
  border-color: rgba(124, 77, 255, 0.15);
  animation: orbSpin 15s linear infinite reverse;
}
.orb-ring-3 {
  width: 50%;
  height: 50%;
  border-color: rgba(0, 184, 212, 0.2);
  animation: orbSpin 10s linear infinite;
}

.orb-core {
  filter: drop-shadow(0 0 30px var(--accent-glow)) drop-shadow(0 0 60px var(--purple-glow));
  animation: orbFloat 4s ease-in-out infinite;
  z-index: 1;
}

.orb-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 50%;
}

@keyframes orbSpin {
  to { transform: rotate(360deg); }
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* ---- Sections ---- */
.section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.section-dark {
  background: rgba(0, 0, 0, 0.3);
}

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

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(124, 77, 255, 0.1);
  border: 1px solid rgba(124, 77, 255, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--purple);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.2;
}

/* ---- About Grid ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s;
}
.about-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.about-card-main {
  grid-column: 1 / -1;
}

.about-card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #fff;
}

.about-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 229, 160, 0.08);
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover::before { opacity: 1; }

.feature-number {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0.6;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.feature-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 229, 160, 0.08);
  border: 1px solid rgba(0, 229, 160, 0.15);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
}

/* ---- Tokenomics ---- */
.tokenomics-layout {
  display: flex;
  align-items: center;
  gap: 64px;
}

.tokenomics-chart {
  flex: 0 0 320px;
}

.donut-chart {
  position: relative;
  width: 320px;
  height: 320px;
}

.donut-chart svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.donut-segment {
  fill: none;
  stroke-width: 28;
  transition: all 0.3s;
  cursor: pointer;
}
.donut-segment:nth-child(1) { stroke: var(--accent); }
.donut-segment:nth-child(2) { stroke: var(--cyan); }
.donut-segment:nth-child(3) { stroke: var(--purple); }
.donut-segment:nth-child(4) { stroke: var(--orange); }
.donut-segment:nth-child(5) { stroke: var(--yellow); }

.donut-segment:hover {
  stroke-width: 34;
  filter: brightness(1.2);
}

.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.donut-total {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
}

.donut-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tokenomics-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.token-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.2s;
}
.token-row:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}

.token-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--clr);
  flex-shrink: 0;
}

.token-name {
  flex: 1;
  font-weight: 500;
  font-size: 0.95rem;
}

.token-pct {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
}

.token-amount {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  min-width: 120px;
  text-align: right;
}

.token-info {
  margin-top: 12px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.token-info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.token-info-row:last-child { border-bottom: none; }
.token-info-row span:first-child { color: var(--text-muted); }
.token-info-row span:last-child { color: #fff; font-weight: 600; font-family: var(--font-mono); }

/* ---- Roadmap ---- */
.roadmap-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.roadmap-timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
}

.roadmap-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  transition: all 0.3s;
}
.roadmap-item:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
}

.roadmap-item.active {
  border-color: rgba(0, 229, 160, 0.3);
}

.roadmap-phase {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.roadmap-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 16px;
}

.roadmap-item ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.roadmap-item li {
  font-size: 0.85rem;
  color: var(--text-dim);
  padding-left: 16px;
  position: relative;
}
.roadmap-item li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-light);
}
.roadmap-item.active li::before {
  background: var(--accent);
}

.roadmap-status {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 6px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  display: inline-block;
}
.roadmap-item.active .roadmap-status {
  color: var(--accent);
  background: rgba(0, 229, 160, 0.08);
}

/* ---- Footer ---- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  background: rgba(0, 0, 0, 0.4);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-links a {
  color: var(--text-dim);
  font-size: 0.9rem;
}
.footer-links a:hover { color: var(--accent); }

.footer-address {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  word-break: break-all;
  line-height: 1.5;
  margin-bottom: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  padding: 24px;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 520px;
  width: 100%;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s;
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dim);
  transition: all 0.2s;
}
.modal-close:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-icon { font-size: 1.3rem; }

.modal-subtitle {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

/* ---- Airdrop Steps ---- */
.airdrop-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.airdrop-step {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.airdrop-step:hover { border-color: var(--border-light); }

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  color: #fff;
}

.step-content p {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.step-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}
.step-link:hover { color: #fff; }

/* ---- Scroll Animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 140px;
  }
  .hero-content { max-width: 100%; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-orb { width: 260px; height: 260px; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .roadmap-timeline { grid-template-columns: repeat(2, 1fr); }
  .roadmap-timeline::before { display: none; }
  .tokenomics-layout { flex-direction: column; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-deep);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 99;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
  }
  .nav-link { font-size: 1.2rem; }
  .nav-burger { display: flex; z-index: 101; }

  .hero { padding-top: 120px; min-height: auto; padding-bottom: 60px; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .hero-visual { display: none; }

  .about-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .roadmap-timeline { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .tokenomics-chart { flex: 0 0 auto; }
  .donut-chart { width: 260px; height: 260px; }

  .modal { padding: 28px 20px; }
}
