/* ═══════════════════════════════════════════════════════════
   SOLANA MEME COIN — STYLESHEET
   Edit config.js to change colors/fonts; this file handles layout.
   ═══════════════════════════════════════════════════════════ */

:root {
  --primary: #9945FF;
  --secondary: #14F195;
  --bg: #0A0A0F;
  --bg-card: #12121A;
  --bg-card-hover: #1A1A28;
  --text: #E8E8ED;
  --text-muted: #8A8A9A;
  --border: #1E1E2E;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 30px rgba(153, 69, 255, 0.15);
  --glow-primary: 0 0 40px rgba(153, 69, 255, 0.3);
  --glow-secondary: 0 0 40px rgba(20, 241, 149, 0.3);
  --font: 'Inter', 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --nav-h: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul, ol { list-style: none; }

#particles-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.section.revealed {
  opacity: 1;
  transform: translateY(0);
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  background: rgba(153, 69, 255, 0.1);
  border: 1px solid rgba(153, 69, 255, 0.2);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-glow {
  background: linear-gradient(135deg, var(--primary), #7B3FE4);
  color: #fff;
  box-shadow: var(--glow-primary);
}
.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px rgba(153, 69, 255, 0.5);
}
.btn-outline {
  border: 1.5px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(153, 69, 255, 0.08);
  transform: translateY(-2px);
}
.btn-arrow { transition: transform 0.2s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  backdrop-filter: blur(20px);
  background: rgba(10, 10, 15, 0.8);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(10, 10, 15, 0.95);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}
.nav-logo-img { width: 36px; height: 36px; border-radius: 50%; }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  flex-direction: column;
  gap: 16px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 16px;
  padding: 8px 0;
  color: var(--text-muted);
  transition: var(--transition);
}
.nav-mobile a:hover { color: var(--text); }

/* ── HERO ── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.hero-content {
  max-width: 700px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
  background: rgba(20, 241, 149, 0.08);
  border: 1px solid rgba(20, 241, 149, 0.2);
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--secondary);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-ticker {
  display: block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-ca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-size: 13px;
  margin-bottom: 32px;
}
.ca-label { color: var(--text-muted); font-weight: 600; }
.ca-address {
  font-family: 'Courier New', monospace;
  color: var(--text);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ca-copy {
  padding: 4px;
  color: var(--text-muted);
  transition: var(--transition);
}
.ca-copy:hover { color: var(--primary); }
.ca-copied {
  color: var(--secondary);
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s;
}
.ca-copied.show { opacity: 1; }
.hero-stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}
.hero-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero-visual {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.15;
}
.hero-coin-wrap {
  position: relative;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}
.hero-coin-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(153, 69, 255, 0.3), transparent 70%);
  filter: blur(40px);
  animation: glow-pulse 4s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
.hero-coin-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 500px;
}
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-mouse {
  width: 26px;
  height: 42px;
  border: 2px solid var(--text-muted);
  border-radius: 14px;
  position: relative;
  opacity: 0.5;
}
.scroll-dot {
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 4px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-bounce 2s infinite;
}
@keyframes scroll-bounce {
  0% { opacity: 1; top: 8px; }
  100% { opacity: 0; top: 24px; }
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}
.about-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.about-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: var(--transition);
}
.about-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(153, 69, 255, 0.06);
}
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(153, 69, 255, 0.3);
  transform: translateY(-2px);
}
.feature-icon { font-size: 1.5rem; margin-bottom: 12px; }
.feature-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.feature-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── TOKENOMICS ── */
.tokenomics-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: center;
}
.tokenomics-chart-wrap { position: relative; }
#tokenomics-chart {
  width: 320px;
  height: 320px;
  margin: 0 auto;
}
.tokenomics-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.tokenomics-supply-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.tokenomics-supply-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
}
.tokenomics-details {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.tokenomics-tax {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.tax-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.tax-row:last-child { border-bottom: none; }
.tax-label { color: var(--text-muted); }
.tax-value { font-weight: 600; color: var(--secondary); }
.tokenomics-legend { display: flex; flex-direction: column; gap: 12px; }
.legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.legend-dot {
  width: 14px; height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
}
.legend-label { flex: 1; color: var(--text-muted); }
.legend-pct { font-weight: 700; font-family: var(--font-display); }

/* ── HOW TO BUY ── */
.htb-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.htb-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}
.htb-step:hover {
  background: var(--bg-card-hover);
  border-color: rgba(153, 69, 255, 0.3);
  transform: translateY(-4px);
}
.htb-step-num {
  position: absolute;
  top: -14px; left: 24px;
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.htb-step-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}
.htb-step-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
}
.htb-step-detail {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── ROADMAP ── */
.roadmap-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.roadmap-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  transform: translateX(-50%);
}
.roadmap-phase {
  position: relative;
  margin-bottom: 48px;
  width: 45%;
}
.roadmap-phase:nth-child(odd) {
  margin-left: 0;
  text-align: right;
  padding-right: 40px;
}
.roadmap-phase:nth-child(even) {
  margin-left: 55%;
  text-align: left;
  padding-left: 40px;
}
.roadmap-phase::before {
  content: '';
  position: absolute;
  top: 8px;
  width: 16px;
  height: 16px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(153, 69, 255, 0.5);
}
.roadmap-phase:nth-child(odd)::before {
  right: -8px;
}
.roadmap-phase:nth-child(even)::before {
  left: -8px;
}
.roadmap-phase-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--text);
}
.roadmap-phase-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.roadmap-phase-items li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.roadmap-phase:nth-child(odd) .roadmap-phase-items li {
  margin-left: auto;
  max-width: 280px;
}

/* ── FAQ ── */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item:hover {
  border-color: rgba(153, 69, 255, 0.3);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}
.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--text-muted);
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-item.open .faq-answer {
  max-height: 300px;
}

/* ── CTA BANNER ── */
.cta-banner {
  text-align: center;
}
.cta-content {
  background: linear-gradient(135deg, rgba(153, 69, 255, 0.15), rgba(20, 241, 149, 0.08));
  border: 1px solid rgba(153, 69, 255, 0.2);
  border-radius: 24px;
  padding: 64px 40px;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.cta-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── FOOTER ── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo { width: 32px; height: 32px; border-radius: 50%; }
.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
}
.footer-socials {
  display: flex;
  gap: 12px;
}
.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: var(--transition);
}
.footer-social-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(153, 69, 255, 0.08);
}
.footer-social-link svg {
  width: 18px;
  height: 18px;
}
.footer-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 12px;
  opacity: 0.7;
  line-height: 1.6;
}
.footer-copyright {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  opacity: 0.5;
}

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  border: 1px solid var(--secondary);
  color: var(--secondary);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  z-index: 200;
  opacity: 0;
  transition: all 0.4s ease;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .tokenomics-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  #tokenomics-chart {
    width: 260px;
    height: 260px;
  }
  .roadmap-timeline::before { left: 24px; }
  .roadmap-phase,
  .roadmap-phase:nth-child(odd),
  .roadmap-phase:nth-child(even) {
    width: 100%;
    margin-left: 0;
    text-align: left;
    padding-left: 56px;
    padding-right: 0;
  }
  .roadmap-phase::before,
  .roadmap-phase:nth-child(odd)::before,
  .roadmap-phase:nth-child(even)::before {
    left: 16px;
    right: auto;
  }
  .roadmap-phase:nth-child(odd) .roadmap-phase-items li {
    margin-left: 0;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .section { padding: 72px 0; }
  .section-header { margin-bottom: 48px; }
  .hero { padding: 100px 24px 60px; }
  .hero-visual { display: none; }
  .hero-stats { gap: 20px; }
  .htb-steps {
    grid-template-columns: 1fr 1fr;
  }
  .about-features {
    grid-template-columns: 1fr;
  }
  .footer-top {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .cta-content { padding: 48px 24px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.4rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-ca { font-size: 11px; }
  .htb-steps {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}
