/* ── Reset & Base ──────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a0b;
  --bg2: #111113;
  --bg3: #18181b;
  --surface: #1c1c20;
  --border: #27272a;
  --border2: #3f3f46;
  --text: #fafafa;
  --text2: #a1a1aa;
  --text3: #71717a;
  --accent: #f97316;
  --accent2: #fb923c;
  --accent-dim: rgba(249, 115, 22, 0.1);
  --accent-glow: rgba(249, 115, 22, 0.15);
  --green: #22c55e;
  --blue: #3b82f6;
  --red: #ef4444;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius: 8px;
  --radius-lg: 12px;
}

html { scroll-behavior: smooth; cursor: none; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

/* Custom cursor */
#custom-cursor {
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 20px; height: 20px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.15s, height 0.15s, opacity 0.15s;
}
#custom-cursor::before {
  content: ''; position: absolute; inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, rgba(249,115,22,0.3) 60%, transparent 100%);
}
#custom-cursor::after {
  content: ''; position: absolute;
  top: -4px; left: 50%; width: 8px; height: 12px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(255,200,50,0.6) 0%, rgba(249,115,22,0.2) 60%, transparent 100%);
  border-radius: 50% 50% 20% 20%;
  animation: cursor-flicker 0.3s ease-in-out infinite alternate;
}
#cursor-trail {
  position: fixed; top: 0; left: 0; z-index: 9998;
  width: 40px; height: 40px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,0.08) 0%, transparent 70%);
  transition: transform 0.08s ease-out;
}
@keyframes cursor-flicker {
  0% { opacity: 0.6; height: 10px; }
  100% { opacity: 1; height: 14px; }
}
a, button, .btn { cursor: none; }

/* Flame canvas */
#flame-canvas {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none; opacity: 0.7;
}

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

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

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius);
  font-family: var(--font); font-weight: 500; font-size: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer; transition: all 0.2s;
  text-decoration: none;
}
.btn:hover { border-color: var(--border2); background: var(--bg3); color: var(--text); }
.btn-primary {
  background: var(--accent); border-color: var(--accent);
  color: #fff; font-weight: 600;
}
.btn-primary:hover { background: var(--accent2); border-color: var(--accent2); color: #fff; }
.btn-outline {
  background: transparent; border-color: var(--border2); color: var(--text2);
}
.btn-outline:hover { border-color: var(--text3); color: var(--text); }
.btn-lg { padding: 14px 28px; font-size: 15px; }

/* ── Navigation ───────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700; color: var(--text);
}
.nav-logo:hover { color: var(--text); }
.nav-logo img { border-radius: 6px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--text3); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-ca {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 6px 10px;
}
.nav-ca code {
  font-family: var(--mono); font-size: 11px; color: var(--text2);
  max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-ca .ca-label {
  font-size: 10px; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.nav-ca .btn-copy {
  font-size: 11px; padding: 2px 8px;
}
.nav-social {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius);
  color: var(--text3); transition: color 0.2s, background 0.2s;
}
.nav-social:hover { color: var(--text); background: var(--surface); }

/* ── Hero ─────────────────────────────────────────── */
#hero {
  position: relative; padding: 100px 0 48px; text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, var(--accent-glow) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content { position: relative; }
.hero-top { margin-bottom: 16px; }
.hero-logo {
  margin-bottom: 12px; border-radius: 16px;
  filter: drop-shadow(0 0 40px rgba(249, 115, 22, 0.2));
}
#hero h1 { font-size: 48px; font-weight: 800; letter-spacing: -1.5px; margin-bottom: 0; }

/* 3-column hero trio */
.hero-trio {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 20px;
  align-items: stretch;
  margin-top: 8px;
}
.hero-center {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding-top: 8px;
}
.hero-sub {
  font-size: 17px; color: var(--text2); max-width: 400px;
  margin: 0 auto 20px;
}

.btn-copy {
  background: var(--bg3); border: 1px solid var(--border2);
  color: var(--text2); font-size: 12px; font-weight: 500;
  padding: 4px 10px; border-radius: 4px; cursor: pointer;
  font-family: var(--font); transition: all 0.2s;
}
.btn-copy:hover { background: var(--border); color: var(--text); }

.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 24px;
}
.stat { text-align: center; }
.stat-val { display: block; font-size: 22px; font-weight: 700; font-family: var(--mono); }
.stat-label { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-divider { width: 1px; height: 28px; background: var(--border); }

.hero-cta {
  display: flex; gap: 12px; justify-content: center;
  margin-top: 16px;
}

/* ── Section Tags ─────────────────────────────────── */
.section-tag {
  display: inline-block; font-size: 12px; font-weight: 600;
  color: var(--accent); text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 12px;
}
#whitepaper h2 {
  font-size: 36px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 48px;
}

/* ── Phase Cards (inside hero trio) ────────────────── */
.phase-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: border-color 0.3s; text-align: left;
}
.phase-card:hover { border-color: var(--border2); }

.phase-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--accent); background: var(--accent-dim);
  padding: 4px 10px; border-radius: 4px; margin-bottom: 12px;
}
.phase-badge-alt { color: var(--blue); background: rgba(59, 130, 246, 0.1); }

.phase-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.phase-card p { color: var(--text2); font-size: 13px; margin-bottom: 14px; }
.phase-list { list-style: none; }
.phase-list li {
  position: relative; padding-left: 16px; margin-bottom: 5px;
  font-size: 13px; color: var(--text2);
}
.phase-list li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}

/* Milestone pills */
.milestones {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px;
}
.ms {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; font-family: var(--mono);
  color: var(--text2);
  background: var(--bg3); border: 1px solid var(--border);
  padding: 3px 10px; border-radius: 20px;
}
.ms-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--blue); flex-shrink: 0;
}
.ms-more {
  font-size: 11px; font-weight: 400; color: var(--text3);
  border-style: dashed;
}

/* ── Live Feed (centered below hero) ──────────────── */
#feed { padding: 48px 0 80px; background: var(--bg2); }

.feed-section {
  max-width: 720px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.feed-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--border);
}
.feed-header h3 { font-size: 15px; font-weight: 600; }

.feed-filters { display: flex; gap: 6px; }
.feed-tab {
  padding: 5px 12px; border-radius: var(--radius);
  background: transparent; border: 1px solid var(--border);
  color: var(--text3); font-size: 12px; font-weight: 500;
  cursor: pointer; font-family: var(--font); transition: all 0.2s;
}
.feed-tab:hover { border-color: var(--border2); color: var(--text2); }
.feed-tab.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }

.feed-container {
  max-height: 460px; overflow-y: auto;
}
.feed-empty {
  padding: 60px 20px; text-align: center;
  color: var(--text3); font-size: 14px;
}

.feed-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  animation: feed-in 0.3s ease-out;
}
.feed-item:hover { background: rgba(255, 255, 255, 0.02); }
.feed-item:last-child { border-bottom: none; }

.feed-type {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; padding: 3px 8px; border-radius: 4px;
  flex-shrink: 0; width: 64px; text-align: center;
}
.feed-type.airdrop { background: rgba(34, 197, 94, 0.1); color: var(--green); }
.feed-type.liquidity { background: rgba(59, 130, 246, 0.1); color: var(--blue); }
.feed-type.other { background: rgba(161, 161, 170, 0.1); color: var(--text3); }

.feed-details { flex: 1; min-width: 0; }
.feed-amount { font-weight: 600; font-family: var(--mono); font-size: 14px; }
.feed-addr { color: var(--text3); font-size: 12px; font-family: var(--mono); }
.feed-time { color: var(--text3); font-size: 12px; flex-shrink: 0; }
.feed-link {
  color: var(--text3); font-size: 12px; flex-shrink: 0;
  transition: color 0.2s;
}
.feed-link:hover { color: var(--accent); }

@keyframes feed-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Whitepaper ───────────────────────────────────── */
#whitepaper { padding: 100px 0; background: var(--bg2); }
.paper {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 48px;
}
.paper-section { margin-bottom: 40px; }
.paper-section:last-child { margin-bottom: 0; }
.paper-section h3 {
  font-size: 20px; font-weight: 600; margin-bottom: 16px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.paper-section p { color: var(--text2); font-size: 15px; margin-bottom: 12px; }
.paper-section ol, .paper-section ul {
  color: var(--text2); font-size: 15px;
  padding-left: 24px; margin-bottom: 12px;
}
.paper-section li { margin-bottom: 6px; }
.paper-section code {
  font-family: var(--mono); font-size: 13px;
  background: var(--bg3); padding: 2px 6px;
  border-radius: 3px; color: var(--accent2);
}

blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px; margin: 16px 0;
  background: var(--accent-dim); border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text2); font-size: 15px; font-style: italic;
}
blockquote cite {
  display: block; margin-top: 8px; font-style: normal;
  font-size: 13px; color: var(--text3);
}

.paper-table {
  width: 100%; border-collapse: collapse; margin: 16px 0;
  font-size: 14px;
}
.paper-table th, .paper-table td {
  text-align: left; padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.paper-table th {
  font-weight: 600; color: var(--text3);
  text-transform: uppercase; font-size: 11px; letter-spacing: 0.5px;
}
.paper-table td { color: var(--text2); }
.paper-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

/* ── Footer ───────────────────────────────────────── */
#footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.footer-left { display: flex; align-items: center; gap: 10px; }
.footer-left img { border-radius: 4px; }
.footer-brand { font-weight: 600; font-size: 14px; }
.footer-copy { color: var(--text3); font-size: 13px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text3); font-size: 13px; }
.footer-links a:hover { color: var(--text); }

/* ── Scrollbar ────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text3); }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 960px) {
  .hero-trio {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hero-center { order: -1; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-ca { display: none; }
  #hero h1 { font-size: 32px; }
  #hero { padding: 90px 0 0; }
  .hero-sub { font-size: 15px; }
  .hero-stats { flex-direction: column; gap: 10px; }
  .stat-divider { width: 40px; height: 1px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .paper { padding: 24px; }
  .stat-val { font-size: 20px; }
  .feed-item { flex-wrap: wrap; gap: 8px; }
  .feed-header { flex-direction: column; gap: 8px; align-items: flex-start; }
  .feed-section { max-width: 100%; }
}
