/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: #0B1121;
  color: #E2E8F0;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; color: inherit; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ── Particles ── */
#particles {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

/* ── Gradient Text ── */
.gradient-text {
  background: linear-gradient(135deg, #60A5FA, #A78BFA);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0;
  background: rgba(11,17,33,0.8);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s;
}
.navbar.scrolled { padding: 10px 0; background: rgba(11,17,33,0.95); }
.nav-container {
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { flex-shrink: 0; }
.logo-text { font-size: 20px; font-weight: 800; color: white; letter-spacing: -0.5px; }
.logo-accent { color: #60A5FA; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link {
  padding: 8px 16px; font-size: 14px; font-weight: 500; color: #94A3B8;
  border-radius: 8px; transition: all 0.2s;
}
.nav-link:hover { color: white; background: rgba(255,255,255,0.06); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 10px;
  font-size: 14px; font-weight: 600; transition: all 0.3s;
  white-space: nowrap;
}
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-primary {
  background: linear-gradient(135deg, #3B82F6, #8B5CF6);
  color: white; box-shadow: 0 4px 20px rgba(59,130,246,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px); box-shadow: 0 8px 30px rgba(59,130,246,0.4);
}
.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.15); color: #E2E8F0;
  background: rgba(255,255,255,0.04);
}
.btn-outline:hover {
  border-color: #3B82F6; background: rgba(59,130,246,0.1);
  transform: translateY(-2px);
}
.btn-ghost {
  color: #94A3B8; background: transparent;
}
.btn-ghost:hover { color: white; background: rgba(255,255,255,0.06); }

/* ── Nav Toggle ── */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: #E2E8F0;
  border-radius: 2px; transition: all 0.3s;
}

/* ── Hero ── */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -30%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; left: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(139,92,246,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-container {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; position: relative; z-index: 1;
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-block; padding: 6px 20px;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 20px;
  font-size: 12px; letter-spacing: 1px; color: rgba(255,255,255,0.5);
  margin-bottom: 28px; text-transform: uppercase;
}
.hero-title { font-size: clamp(40px, 5vw, 64px); font-weight: 900; line-height: 1.1; margin-bottom: 16px; letter-spacing: -2px; }
.hero-subtitle {
  font-size: clamp(16px, 1.8vw, 22px); color: #94A3B8; font-weight: 400;
  margin-bottom: 28px; line-height: 1.5;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.hero-tag {
  padding: 5px 14px; border-radius: 8px; font-size: 13px; font-weight: 500;
  background: rgba(59,130,246,0.1); color: #60A5FA;
  border: 1px solid rgba(59,130,246,0.2);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-network { width: 100%; max-width: 460px; height: auto; }

/* Hero network animation */
@keyframes pulseNode {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.15); }
}
@keyframes dataFlow {
  0% { stroke-dashoffset: 100; }
  100% { stroke-dashoffset: 0; }
}
.pulse-glow { animation: pulseGlow 3s ease-in-out infinite; }
.node-core { animation: pulseNode 3s ease-in-out infinite; }
.node-dot { animation: pulseNode 2s ease-in-out infinite; }
.net-line { stroke-dasharray: 4 4; animation: dataFlow 8s linear infinite; }

.hero-gradient-bar {
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #3B82F6, #8B5CF6, #06B6D4, #8B5CF6, #3B82F6);
  background-size: 200% 100%; z-index: 2;
  animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ── Sections ── */
.section { position: relative; z-index: 1; padding: 100px 0; }
.section-alt {
  background: linear-gradient(180deg, rgba(59,130,246,0.03) 0%, rgba(139,92,246,0.03) 100%);
}
.section-header { text-align: center; max-width: 700px; margin: 0 auto 56px; }
.section-badge {
  display: inline-block; padding: 5px 16px; border-radius: 20px;
  font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(139,92,246,0.15));
  color: #93C5FD; margin-bottom: 16px;
}
.section-title { font-size: clamp(30px, 3.5vw, 42px); font-weight: 800; margin-bottom: 16px; letter-spacing: -1px; }
.section-desc { font-size: 16px; color: #94A3B8; line-height: 1.7; }

/* ── Stats ── */
.stats { position: relative; z-index: 1; padding: 0 0 80px; margin-top: -40px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 32px 24px; text-align: center;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s;
}
.stat-card:hover {
  border-color: rgba(59,130,246,0.3); transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(59,130,246,0.1);
}
.stat-icon { margin-bottom: 16px; }
.stat-number { font-size: 36px; font-weight: 800; color: white; margin-bottom: 6px; }
.stat-label { font-size: 14px; color: #94A3B8; font-weight: 500; }

/* ── Features ── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px; padding: 32px 28px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(59,130,246,0.25);
  box-shadow: 0 20px 60px rgba(59,130,246,0.12);
  background: rgba(255,255,255,0.06);
}
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--icon-color);
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
}
.feature-card:hover .feature-icon {
  background: rgba(255,255,255,0.08); border-color: var(--icon-color);
}
.feature-title { font-size: 18px; font-weight: 700; color: white; margin-bottom: 10px; }
.feature-desc { font-size: 14px; color: #94A3B8; line-height: 1.65; }

/* ── Architecture ── */
.arch-container {
  display: flex; justify-content: center;
}
.arch-svg-wrapper {
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px; padding: 32px 24px; max-width: 100%;
}
.arch-svg { width: 100%; max-width: 460px; height: auto; display: block; }
.arch-layer { transition: all 0.3s; }
.arch-layer:hover { filter: brightness(1.2); }

/* ── Tokenomics ── */
.tokenomics-container {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start;
}
.chart-img { width: 100%; height: auto; border-radius: 12px; }
.tokenomics-cards { display: flex; flex-direction: column; gap: 12px; }
.tkn-card {
  padding: 14px 18px; border-radius: 12px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  position: relative; overflow: hidden;
}
.tkn-bar {
  position: absolute; top: 0; left: 0; height: 100%;
  background: var(--tkn-color); opacity: 0.1; border-radius: 12px;
  transition: width 1s ease-out;
}
.tkn-info { display: flex; justify-content: space-between; align-items: center; position: relative; }
.tkn-label { font-size: 14px; font-weight: 500; color: #E2E8F0; }
.tkn-value { font-size: 16px; font-weight: 700; color: var(--tkn-color); }
.tkn-supply {
  margin-top: 8px; padding: 16px 18px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(139,92,246,0.1));
  border: 1px solid rgba(59,130,246,0.2);
  display: flex; justify-content: space-between; align-items: center;
}
.tkn-supply-label { font-size: 14px; color: #94A3B8; }
.tkn-supply-value { font-size: 16px; font-weight: 700; color: #60A5FA; }

/* ── Roadmap ── */
.roadmap-container { margin-bottom: 48px; }
.roadmap-img { max-width: 900px; margin: 0 auto; }
.milestones-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.milestone-card {
  padding: 24px 20px; border-radius: 14px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  text-align: center; transition: all 0.3s;
}
.milestone-card:hover {
  border-color: rgba(59,130,246,0.3); transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(59,130,246,0.08);
}
.milestone-num {
  font-size: 32px; font-weight: 900;
  background: linear-gradient(135deg, #3B82F6, #8B5CF6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 8px;
}
.milestone-title { font-size: 14px; font-weight: 700; color: white; margin-bottom: 6px; }
.milestone-desc { font-size: 12px; color: #94A3B8; line-height: 1.5; }

/* ── Ecosystem ── */
.eco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.eco-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px; padding: 30px 26px; transition: all 0.3s;
}
.eco-card:hover {
  border-color: rgba(59,130,246,0.25); transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(59,130,246,0.08);
}
.eco-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  color: var(--eco-color);
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
}
.eco-title { font-size: 17px; font-weight: 700; color: white; margin-bottom: 8px; }
.eco-desc { font-size: 13px; color: #94A3B8; line-height: 1.6; margin-bottom: 16px; }
.eco-status {
  display: inline-block; padding: 3px 12px; border-radius: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
}
.status-active { background: rgba(6,182,212,0.15); color: #22D3EE; }
.status-dev { background: rgba(59,130,246,0.15); color: #60A5FA; }
.status-future { background: rgba(139,92,246,0.15); color: #A78BFA; }

/* ── Security ── */
.security-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.security-card {
  padding: 32px 24px; border-radius: 16px; text-align: center;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s;
}
.security-card:hover {
  border-color: rgba(59,130,246,0.25); transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(59,130,246,0.08);
}
.security-icon { margin-bottom: 20px; }
.security-title { font-size: 17px; font-weight: 700; color: white; margin-bottom: 10px; }
.security-desc { font-size: 13px; color: #94A3B8; line-height: 1.6; }

/* ── Whitepaper CTA ── */
.wp-card {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding: 48px 56px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(59,130,246,0.06), rgba(139,92,246,0.06));
  border: 1px solid rgba(59,130,246,0.15);
}
.wp-title { font-size: clamp(24px, 2.5vw, 32px); font-weight: 800; margin-bottom: 14px; }
.wp-desc { font-size: 15px; color: #94A3B8; line-height: 1.7; margin-bottom: 28px; max-width: 560px; }
.wp-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.wp-icon { flex-shrink: 0; opacity: 0.6; }

/* ── FAQ ── */
.faq-container { max-width: 720px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: 22px 0; text-align: left;
  font-size: 16px; font-weight: 600; color: #E2E8F0;
  transition: color 0.2s;
}
.faq-question:hover { color: #60A5FA; }
.faq-question[aria-expanded="true"] { color: #60A5FA; }
.faq-arrow { transition: transform 0.3s; flex-shrink: 0; }
.faq-question[aria-expanded="true"] .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-answer p { padding: 0 0 20px; font-size: 15px; color: #94A3B8; line-height: 1.7; }
.faq-question[aria-expanded="true"] + .faq-answer { max-height: 300px; }

/* ── Footer ── */
.footer { position: relative; z-index: 1; background: rgba(255,255,255,0.02); border-top: 1px solid rgba(255,255,255,0.06); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-desc { font-size: 14px; color: #94A3B8; margin: 16px 0 20px; line-height: 1.7; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04); color: #94A3B8;
  transition: all 0.2s;
}
.footer-social a:hover { background: rgba(59,130,246,0.15); color: #60A5FA; }
.footer-social .disabled-link {
  width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.02); color: #475569;
  cursor: not-allowed; position: relative;
  transition: all 0.2s;
}
.footer-social .disabled-link::after {
  content: 'Coming Soon'; position: absolute; bottom: -22px;
  font-size: 9px; white-space: nowrap; color: #475569;
  opacity: 0; transition: opacity 0.2s;
}
.footer-social .disabled-link:hover::after { opacity: 1; }
.footer-social .disabled-link:hover { background: rgba(255,255,255,0.04); color: #64748B; }
.footer-links h4 { font-size: 13px; font-weight: 700; color: white; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-links a {
  display: block; padding: 5px 0; font-size: 14px; color: #94A3B8;
  transition: color 0.2s;
}
.footer-links a:hover { color: #60A5FA; }
.footer-links .disabled-link {
  display: block; padding: 5px 0; font-size: 14px; color: #475569;
  cursor: not-allowed;
}
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.06); text-align: center; }
.footer-bottom p { font-size: 13px; color: #64748B; }

/* ── Scroll Top ── */
.scroll-top {
  position: fixed; bottom: 30px; right: 30px; z-index: 999;
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, #3B82F6, #8B5CF6);
  color: white; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: all 0.3s; box-shadow: 0 4px 20px rgba(59,130,246,0.3);
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(59,130,246,0.4); }

/* ── Reveal Animations ── */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-tags { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }
  .hero { min-height: auto; padding: 140px 0 60px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .tokenomics-container { grid-template-columns: 1fr; }
  .milestones-grid { grid-template-columns: repeat(3, 1fr); }
  .eco-grid { grid-template-columns: repeat(2, 1fr); }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(11,17,33,0.98); backdrop-filter: blur(20px);
    padding: 16px 24px 24px; border-bottom: 1px solid rgba(255,255,255,0.06);
    gap: 4px;
  }
  .nav-toggle { display: flex; }
  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .hero-title { font-size: 36px; }
  .hero-subtitle { font-size: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-number { font-size: 28px; }
  .features-grid { grid-template-columns: 1fr; }
  .milestones-grid { grid-template-columns: repeat(2, 1fr); }
  .eco-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .wp-card { flex-direction: column; text-align: center; padding: 36px 28px; }
  .wp-desc { max-width: 100%; }
  .wp-actions { justify-content: center; }
  .wp-icon { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .tkn-supply { flex-direction: column; gap: 6px; }
}

@media (max-width: 480px) {
  .hero-tags { gap: 6px; }
  .hero-tag { font-size: 11px; padding: 4px 10px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 20px 16px; }
  .stat-number { font-size: 24px; }
  .milestones-grid { grid-template-columns: 1fr; }
}
