/* ══════════════════════════════════════════════════════
   NAKAM — Main Stylesheet
   Aesthetic: Dark futuristic · Green circuit energy · Syne
   ══════════════════════════════════════════════════════ */

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

:root {
  --green:       #5dc85d;
  --green-dim:   #3a8a3a;
  --green-dark:  #0d1f0d;
  --green-glow:  rgba(93,200,93,0.18);
  --green-glow2: rgba(93,200,93,0.06);
  --bg:          #070710;
  --bg2:         #0b0b1a;
  --bg3:         #0f0f22;
  --card:        #111126;
  --border:      #1e1e3a;
  --border2:     #2a2a4a;
  --text:        #e8e8f4;
  --text-dim:    #8888aa;
  --text-muted:  #44445a;
  --gold:        #f0b429;
  --blue:        #6478ff;
  --red:         #e74c3c;
  --font-head:   'Syne', sans-serif;
  --font-mono:   'DM Mono', monospace;
  --max-w:       1180px;
  --radius:      12px;
}

html { scroll-behavior: smooth; }

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

/* ── Canvas BG ── */
#bgCanvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; opacity: .45;
}

/* ── Container ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  position: relative; z-index: 1;
}

/* ══ NAVBAR ══════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 32px; height: 68px;
  display: flex; align-items: center;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(7,7,16,.92);
  backdrop-filter: blur(12px);
  border-color: var(--border);
}
.nav-inner {
  width: 100%; max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font-weight: 800; font-size: 20px; letter-spacing: -.3px;
}
.nav-logo img { height: 34px; width: 34px; object-fit: contain; border-radius: 50%; }
.logo-fallback {
  display: none; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-dim));
  align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: #000;
}
.nav-links {
  display: flex; align-items: center; gap: 32px;
}
.nav-links a {
  color: var(--text-dim); text-decoration: none; font-size: 14px;
  font-weight: 600; transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.btn-nav {
  padding: 8px 20px; border-radius: 8px;
  background: var(--green-dark); color: var(--green) !important;
  border: 1px solid var(--green-dim);
  font-weight: 700 !important;
  transition: all .2s !important;
}
.btn-nav:hover { background: var(--green) !important; color: #000 !important; }
.btn-nav.active { background: var(--green) !important; color: #000 !important; }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span { width: 22px; height: 2px; background: var(--text-dim); border-radius: 2px; transition: .3s; display: block; }

/* ══ BUTTONS ════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: 8px; border: none;
  font-family: var(--font-head); font-size: 15px; font-weight: 700;
  cursor: pointer; text-decoration: none; transition: all .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary {
  background: var(--green); color: #000;
  box-shadow: 0 0 0 rgba(93,200,93,0);
}
.btn-primary:hover {
  background: #74d874; transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(93,200,93,.3);
}
.btn-outline {
  background: transparent; color: var(--green);
  border: 1px solid var(--green-dim);
}
.btn-outline:hover { background: var(--green-dark); border-color: var(--green); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-xl { padding: 18px 40px; font-size: 18px; border-radius: 12px; }
.btn-secondary {
  background: var(--card); color: var(--text);
  border: 1px solid var(--border2);
}
.btn-secondary:hover { background: var(--bg3); }

/* ══ HERO ════════════════════════════════════════════ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 120px 0 80px;
}
.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(93,200,93,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93,200,93,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 100px;
  background: rgba(93,200,93,.08); border: 1px solid rgba(93,200,93,.2);
  font-size: 13px; font-weight: 600; color: var(--green);
  margin-bottom: 24px; font-family: var(--font-mono);
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(93,200,93,.6);
  animation: pulse 2s ease-in-out infinite;
}
.pulse-dot.small { width: 6px; height: 6px; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(93,200,93,.6); }
  70%  { box-shadow: 0 0 0 8px rgba(93,200,93,0); }
  100% { box-shadow: 0 0 0 0 rgba(93,200,93,0); }
}
.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -2px; margin-bottom: 24px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--green) 0%, #a8ff78 50%, var(--green) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; background-size: 200% auto;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-dim); margin-bottom: 36px;
  max-width: 560px; line-height: 1.7;
}
.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-stats {
  display: flex; align-items: center; gap: 0;
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px 28px;
  backdrop-filter: blur(8px); flex-wrap: wrap;
  max-width: 680px;
}
.h-stat { flex: 1; min-width: 120px; text-align: center; }
.h-stat-val {
  font-size: 22px; font-weight: 800;
  color: var(--text); font-family: var(--font-mono);
}
.h-stat-label { font-size: 11px; color: var(--text-muted); margin-top: 3px; text-transform: uppercase; letter-spacing: .8px; }
.h-stat-div { width: 1px; height: 40px; background: var(--border); flex-shrink: 0; }
.audit-badge { color: var(--green) !important; }

/* Floating nodes */
.hero-nodes { position: absolute; right: 5%; top: 20%; pointer-events: none; }
.node {
  position: absolute;
  width: 60px; height: 60px; border-radius: 14px;
  background: rgba(93,200,93,.06); border: 1px solid rgba(93,200,93,.15);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--green);
  animation: float 6s ease-in-out infinite;
}
.n1 { top:0; left:60px; animation-delay:0s; }
.n2 { top:80px; left:0; animation-delay:1.5s; }
.n3 { top:160px; left:100px; animation-delay:3s; }
.n4 { top:60px; left:160px; animation-delay:4.5s; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* ══ SECTIONS ════════════════════════════════════════ */
.section { padding: 96px 0; position: relative; }
.section-dark { background: var(--bg2); }
.section-label {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  color: var(--green); text-transform: uppercase; letter-spacing: 3px;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800; letter-spacing: -1px; line-height: 1.1;
  margin-bottom: 16px;
}
.section-sub { color: var(--text-dim); font-size: 1.05rem; max-width: 560px; line-height: 1.7; margin-bottom: 48px; }

/* ══ FEATURES GRID ════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px; margin-top: 48px;
}
.feature-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: all .25s; cursor: default;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0; transition: opacity .3s;
}
.feature-card:hover { border-color: var(--green-dim); transform: translateY(-3px); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { font-size: 28px; margin-bottom: 14px; display: block; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }

/* ══ TOKENOMICS ══════════════════════════════════════ */
.token-layout {
  display: flex; gap: 48px; align-items: center;
  flex-wrap: wrap; margin-bottom: 48px;
}
.donut-wrap { flex-shrink: 0; width: 220px; }
.donut-svg { width: 100%; height: auto; }
.donut-ring {
  fill: none; stroke-width: 28;
  transform: rotate(-90deg); transform-origin: 50% 50%;
  transition: stroke-dashoffset .5s ease;
}
.token-allocs { flex: 1; min-width: 280px; display: flex; flex-direction: column; gap: 16px; }
.alloc-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 20px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.alloc-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.alloc-info { flex: 1; }
.alloc-name { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.alloc-desc { font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.alloc-right { text-align: right; flex-shrink: 0; }
.alloc-amount { font-family: var(--font-mono); font-size: 16px; font-weight: 600; color: var(--text); }
.alloc-pct { font-size: 12px; color: var(--text-muted); }

.supply-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px;
}
.supply-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 20px; text-align: center;
}
.supply-icon { font-size: 24px; margin-bottom: 10px; }
.supply-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 6px; }
.supply-val { font-family: var(--font-mono); font-size: 20px; font-weight: 700; }
.supply-val span { font-size: 13px; color: var(--text-dim); font-weight: 400; }

/* ══ ECOSYSTEM ═══════════════════════════════════════ */
.eco-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin-bottom: 32px;
}
.eco-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 20px;
  text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; gap: 6px;
  transition: all .2s; position: relative;
}
.eco-card:hover { border-color: var(--green-dim); transform: translateY(-3px); }
.eco-icon { font-size: 26px; margin-bottom: 6px; }
.eco-name { font-size: 16px; font-weight: 700; }
.eco-desc { font-size: 13px; color: var(--text-dim); font-family: var(--font-mono); }
.eco-arrow { position: absolute; top: 20px; right: 20px; font-size: 18px; color: var(--text-muted); transition: color .2s; }
.eco-card:hover .eco-arrow { color: var(--green); }

/* MetaMask card */
.metamask-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px 28px;
  display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap;
}
.mm-left { display: flex; gap: 14px; align-items: center; min-width: 220px; }
.mm-icon { font-size: 32px; flex-shrink: 0; }
.mm-title { font-size: 16px; font-weight: 700; }
.mm-sub { font-size: 13px; color: var(--text-dim); }
.mm-params { flex: 1; min-width: 260px; display: flex; flex-direction: column; gap: 8px; }
.mm-row {
  display: flex; align-items: center; gap: 10px; font-size: 13px;
  justify-content: space-between;
}
.mm-row span { color: var(--text-dim); white-space: nowrap; }
.mm-row code {
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: 5px; padding: 2px 8px;
  font-family: var(--font-mono); font-size: 12px; color: var(--green);
}

/* ══ CTA ═════════════════════════════════════════════ */
.section-cta { padding: 80px 0; }
.cta-box {
  background: linear-gradient(135deg, var(--card) 0%, rgba(93,200,93,.06) 100%);
  border: 1px solid var(--border); border-radius: 20px;
  padding: 64px 48px; text-align: center; position: relative; overflow: hidden;
}
.cta-glow {
  position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(93,200,93,.12) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none;
}
.cta-box h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 800; margin-bottom: 12px; }
.cta-box p { color: var(--text-dim); font-size: 1.05rem; margin-bottom: 32px; }

/* ══ FOOTER ═════════════════════════════════════════ */
.footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}
.footer-top { display: flex; gap: 48px; flex-wrap: wrap; margin-bottom: 40px; }
.footer-brand { max-width: 280px; }
.footer-brand .nav-logo { margin-bottom: 12px; }
.footer-brand p { font-size: 14px; color: var(--text-dim); line-height: 1.6; margin-bottom: 12px; }
.footer-chain { display: flex; align-items: center; gap: 8px; font-size: 12px; font-family: var(--font-mono); color: var(--text-muted); }
.footer-links { display: flex; gap: 48px; flex: 1; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; min-width: 120px; }
.footer-col-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 4px; }
.footer-col a { color: var(--text-dim); text-decoration: none; font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: var(--green); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; gap: 8px; }

/* ══ DOWNLOAD PAGE ════════════════════════════════════ */
.dl-hero { padding: 60px 0 20px; text-align: center; }
.badge-pill {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  background: var(--card); border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 12px; color: var(--text-dim);
}
.badge-pill.green { color: var(--green); border-color: var(--green-dim); background: var(--green-dark); }
.dl-version-info { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.dl-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 48px; max-width: 800px; margin-left: auto; margin-right: auto; }
.dl-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color .2s;
}
.dl-card:hover { border-color: var(--green-dim); }
.dl-os-icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: rgba(93,200,93,.08); border: 1px solid rgba(93,200,93,.15);
  display: flex; align-items: center; justify-content: center;
}
.dl-os-icon svg { width: 28px; height: 28px; color: var(--green); }
.dl-os-icon.linux svg { color: var(--text-dim); }
.dl-os-name { font-size: 22px; font-weight: 800; }
.dl-os-sub { font-size: 13px; color: var(--text-dim); margin-top: -10px; }
.dl-file-info { display: flex; flex-direction: column; gap: 8px; }
.dl-file-row { display: flex; justify-content: space-between; font-size: 13px; align-items: center; }
.dl-file-row span { color: var(--text-dim); }
.dl-file-row code { font-family: var(--font-mono); font-size: 12px; color: var(--text); background: var(--bg3); padding: 2px 8px; border-radius: 4px; }
.dl-verify { text-align: center; }
.dl-verify a { font-size: 13px; color: var(--text-muted); text-decoration: none; }
.dl-verify a:hover { color: var(--green); }
.dl-features { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 32px 28px; max-width: 800px; margin: 0 auto; }
.dl-features h3 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.dl-features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.dl-feat { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-dim); }
.dl-feat span { color: var(--green); font-weight: 700; flex-shrink: 0; }

/* Guide steps */
.guide-steps { display: flex; flex-direction: column; gap: 0; }
.guide-step {
  display: flex; gap: 24px; padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.guide-step:last-child { border-bottom: none; }
.step-num { font-family: var(--font-mono); font-size: 32px; font-weight: 700; color: var(--green-dim); flex-shrink: 0; line-height: 1; }
.step-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step-desc { font-size: 14px; color: var(--text-dim); line-height: 1.7; }
.step-desc code { background: var(--bg3); padding: 2px 6px; border-radius: 4px; font-family: var(--font-mono); font-size: 13px; color: var(--text); }

/* ══ RESPONSIVE ══════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: fixed; top: 68px; left: 0; right: 0; background: rgba(7,7,16,.97); padding: 20px 24px; border-bottom: 1px solid var(--border); gap: 16px; backdrop-filter: blur(12px); }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .hero-nodes { display: none; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .h-stat-div { display: none; }
  .token-layout { flex-direction: column; }
  .donut-wrap { width: 180px; margin: 0 auto; }
  .metamask-card { flex-direction: column; }
  .dl-cards { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
  .cta-box { padding: 40px 24px; }
  .features-grid { grid-template-columns: 1fr; }
}
