/* ===========================
   NOVENTIA.XYZ — Style
   ========================== */

/* --- Custom Properties --- */
:root {
  --bg: #050a0e;
  --bg-card: #0a1018;
  --bg-card-hover: #0e1520;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(0,229,199,0.15);
  --accent: #00e5c7;
  --accent-dim: rgba(0,229,199,0.12);
  --purple: #8b5cf6;
  --gold: #f0c040;
  --pink: #ec4899;
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-body: 'Outfit', sans-serif;
  --container: 1140px;
  --radius: 12px;
  --radius-sm: 8px;
  /* Token distribution colors */
  --tok-users: #00e5c7;
  --tok-foundation: #8b5cf6;
  --tok-team: #f0c040;
  --tok-investors: #ec4899;
  --tok-ecosystem: #3b82f6;
  --tok-liquidity: #64748b;
}

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

/* --- Grid background --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(255,255,255,0.02) 59px, rgba(255,255,255,0.02) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(255,255,255,0.02) 59px, rgba(255,255,255,0.02) 60px);
  pointer-events: none;
  z-index: 0;
}

/* --- Scan line --- */
.scan-line {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  opacity: 0.12;
  z-index: 9999;
  animation: scan 15s linear infinite;
  pointer-events: none;
}
@keyframes scan {
  0% { top: -1px; }
  100% { top: 100vh; }
}

/* --- Glow orbs --- */
.glow-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  will-change: transform;
}
.orb-teal {
  width: 500px;
  height: 500px;
  background: var(--accent);
  opacity: 0.04;
  top: 15%;
  left: -10%;
}
.orb-purple {
  width: 400px;
  height: 400px;
  background: var(--purple);
  opacity: 0.035;
  bottom: 20%;
  right: -5%;
}

/* --- Canvas layers --- */
#fx-network, #fx-rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  z-index: 1000;
  background: rgba(5,10,14,0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled {
  border-bottom-color: var(--accent-dim);
  background: rgba(5,10,14,0.92);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo-dot {
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--accent);
}

/* --- Buttons --- */
.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--bg);
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn-accent:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--bg);
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}
.btn-primary ion-icon {
  font-size: 18px;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --- Hamburger --- */
.nav-hamburger {
  display: none;
  width: 28px;
  height: 20px;
  position: relative;
  margin-left: auto;
}
.nav-hamburger span,
.nav-hamburger::before,
.nav-hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger::before { top: 0; }
.nav-hamburger span { top: 50%; transform: translateY(-50%); }
.nav-hamburger::after { bottom: 0; }
.nav-hamburger.active::before { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-hamburger.active span { opacity: 0; }
.nav-hamburger.active::after { bottom: auto; top: 50%; transform: translateY(-50%) rotate(-45deg); }

/* --- Mobile menu --- */
.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  height: calc(100vh - 64px);
  background: rgba(5,10,14,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-menu a {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text-dim);
  transition: color 0.2s;
}
.mobile-menu a:hover {
  color: var(--accent);
}
.mobile-menu .btn-accent {
  margin-top: 12px;
  font-size: 15px;
  padding: 12px 28px;
}

/* --- Sections --- */
.section {
  position: relative;
  z-index: 2;
  padding: 100px 0;
}
.section--alt {
  background: rgba(10,16,24,0.5);
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 40px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Reveal variants */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: none;
}

/* --- Accent util --- */
.accent { color: var(--accent); }

/* --- Hero title gradient flow --- */
.hero-title .accent {
  background: linear-gradient(90deg, var(--accent), #4ecdc4, var(--purple), var(--accent));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-flow 6s ease-in-out infinite;
}
@keyframes gradient-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* --- Card 3D tilt --- */
.card[data-tilt],
.problem-card[data-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
}

/* --- Shimmer on numbers --- */
.shimmer {
  position: relative;
  overflow: hidden;
}
.shimmer::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,229,199,0.15), transparent);
  animation: shimmer-pass 3s ease-in-out infinite;
}
@keyframes shimmer-pass {
  0% { left: -100%; }
  50%, 100% { left: 150%; }
}

/* --- Glow line on section enter --- */
.section-header .section-label::before {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.8s cubic-bezier(0.16,1,0.3,1) 0.2s;
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent);
}
.section-header .section-label {
  position: relative;
  display: inline-block;
}
.section-header .section-label.visible::before {
  width: 100%;
}

/* --- Featured card border glow animation --- */
.problem-card.featured {
  overflow: hidden;
}
.problem-card.featured::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: conic-gradient(from 0deg, var(--accent), var(--purple), var(--pink), var(--accent));
  border-radius: calc(var(--radius) + 2px);
  z-index: -1;
  opacity: 0.4;
  animation: border-rotate 4s linear infinite;
}
@keyframes border-rotate {
  100% { transform: rotate(360deg); }
}

/* --- Floating tag lines --- */
.hero-tag-line {
  animation: tag-line-pulse 2s ease-in-out infinite alternate;
}
.hero-tag-line:last-child {
  animation-delay: 1s;
}
@keyframes tag-line-pulse {
  0% { opacity: 0.2; width: 30px; }
  100% { opacity: 0.6; width: 50px; }
}

/* --- Button hover glow --- */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(0,229,199,0.25), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.btn-primary:hover::after {
  opacity: 1;
}

/* --- Card hover glow + lift --- */
.card {
  position: relative;
  transition: border-color 0.3s, transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0,229,199,0.06);
}

/* --- Scale phase hover --- */
.scale-phase {
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.scale-phase:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,229,199,0.08);
}

/* --- Metric counter pop --- */
.metric-item {
  transition: transform 0.3s;
}
.metric-item.counted {
  animation: counter-pop 0.4s cubic-bezier(0.16,1,0.3,1);
}
@keyframes counter-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* --- Link card icon float --- */
.link-card ion-icon {
  transition: transform 0.3s;
}
.link-card:hover ion-icon {
  animation: icon-float 1.5s ease-in-out infinite;
}
@keyframes icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* --- PoE component weight pulse --- */
.poe-weight {
  transition: transform 0.3s;
}
.poe-component:hover .poe-weight {
  animation: weight-pulse 0.6s ease-in-out;
}
@keyframes weight-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* --- Roadmap line draw --- */
.roadmap-timeline::before {
  transition: height 1.5s cubic-bezier(0.16,1,0.3,1) 0.3s;
}

/* --- Token supply glow --- */
.token-supply-num {
  text-shadow: 0 0 40px rgba(0,229,199,0.2);
}

/* --- Smooth nav link underline --- */
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 50%;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s, left 0.3s;
  border-radius: 2px;
}
.nav-links a:hover::after {
  width: 100%;
  left: 0;
}

/* ======== HERO ======== */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero-tag-line {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
}
.hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 56px;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-desc {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 500px;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Terminal block --- */
.terminal {
  background: #0c1117;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,229,199,0.04);
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-filename {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
}
.terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  min-height: 260px;
}
.terminal-line {
  white-space: pre;
}
/* Syntax colors */
.tk { color: var(--purple); }       /* key */
.ts { color: var(--accent); }       /* string */
.tn { color: var(--gold); }         /* number */
.tb { color: var(--pink); }         /* bool */
/* Blinking cursor */
.cursor {
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ======== THE PROBLEM ======== */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.3s, transform 0.3s;
}
.problem-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.problem-card.featured {
  position: relative;
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(0,229,199,0.04) 0%, var(--bg-card) 60%);
}
.problem-icon {
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--text-muted);
}
.problem-icon.accent {
  color: var(--accent);
}
.problem-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 10px;
}
.problem-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 16px;
}
.problem-verdict {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.problem-verdict span {
  color: var(--text-dim);
  font-weight: 700;
}
.problem-verdict.accent {
  color: var(--accent);
}
.problem-verdict.accent span {
  color: var(--accent);
}

/* ======== PoE PROTOCOL ======== */
.formula {
  text-align: center;
  margin-bottom: 48px;
}
.formula code {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(0,229,199,0.06);
  border: 1px solid rgba(0,229,199,0.15);
  border-radius: var(--radius);
  padding: 20px 36px;
  display: inline-block;
  text-shadow: 0 0 30px rgba(0,229,199,0.15);
  letter-spacing: 0.02em;
}
.poe-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.poe-component {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.3s;
}
.poe-component:hover {
  border-color: var(--border-hover);
}
.poe-weight {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}
.poe-component h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
}
.poe-component p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* PoE levels table */
.poe-levels {
  display: flex;
  gap: 2px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.poe-level {
  flex: 1;
  background: var(--bg-card);
  padding: 16px 12px;
  text-align: center;
  border: 1px solid var(--border);
  transition: background 0.3s;
}
.poe-level.highlight {
  background: rgba(0,229,199,0.08);
  border-color: var(--accent);
}
.poe-range {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}
.poe-level-name {
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ======== IDENTITY ROLES ======== */
.roles-track {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
}
.roles-line {
  position: absolute;
  top: 62px;
  left: 42px;
  right: 42px;
  height: 2px;
  background: var(--border);
}
.roles-line-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 1.5s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 0 12px rgba(0,229,199,0.3);
}
.role-item {
  text-align: center;
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 120px;
}
.role-img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 12px;
  border: 2px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.3s;
}
.role-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.role-item:hover .role-img {
  border-color: var(--accent);
}
.role-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 2px;
}
.role-poe {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 4px;
}
.role-desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* ======== NUTY TOKENOMICS ======== */
.token-supply {
  text-align: center;
  margin-bottom: 48px;
}
.token-supply-num {
  font-family: var(--font-mono);
  font-size: 56px;
  font-weight: 700;
  color: var(--accent);
  display: block;
  text-shadow: 0 0 40px rgba(0,229,199,0.15);
}
.token-supply-label {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
  display: block;
}

/* Token bar */
.token-bar-wrapper {
  margin-bottom: 48px;
}
.token-bar {
  display: flex;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  gap: 2px;
  margin-bottom: 24px;
}
.token-bar-segment {
  width: 0;
  transition: width 1.2s cubic-bezier(0.16,1,0.3,1);
  border-radius: 3px;
}
.token-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 24px;
}
.token-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}
.token-legend-item small {
  color: var(--text-muted);
  font-size: 11px;
}
.token-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Token info cards */
.token-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* --- Generic card --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s;
}
.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.card-icon {
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 14px;
}
.card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
}
.card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ======== NFT ECONOMY ======== */
.nft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.nft-price {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nft-price.sell { color: var(--gold); }
.nft-price.buy { color: var(--pink); }
.nft-price ion-icon { font-size: 14px; }

.nft-deflationary {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(236,72,153,0.06);
  border: 1px solid rgba(236,72,153,0.15);
  border-radius: var(--radius);
  padding: 20px 28px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}
.nft-burn-icon {
  font-size: 28px;
  color: var(--pink);
  flex-shrink: 0;
}
.nft-deflationary strong {
  color: var(--text);
}

/* ======== SCALING PATH ======== */
.scale-track {
  display: flex;
  gap: 2px;
}
.scale-phase {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 28px 20px;
  text-align: center;
  position: relative;
  transition: border-color 0.3s;
}
.scale-phase:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.scale-phase:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.scale-phase.active {
  border-color: var(--accent);
  background: rgba(0,229,199,0.04);
}
.scale-num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 12px;
}
.scale-phase.active .scale-num { opacity: 1; }
.scale-phase h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
}
.scale-phase p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.scale-target {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 2px;
}
.scale-mcap {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
}

/* ======== ROADMAP ======== */
.roadmap-timeline {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  padding-left: 32px;
}
.roadmap-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.rm-item {
  position: relative;
  padding-bottom: 36px;
}
.rm-item:last-child { padding-bottom: 0; }
.rm-dot {
  position: absolute;
  left: -32px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
  z-index: 2;
}
.rm-dot.done {
  background: var(--accent);
  border-color: var(--accent);
}
.rm-dot.active {
  border-color: var(--accent);
  background: var(--bg);
  box-shadow: 0 0 12px rgba(0,229,199,0.4);
}
.rm-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rm-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border-radius: 4px;
}
.rm-badge.done {
  background: rgba(0,229,199,0.12);
  color: var(--accent);
}
.rm-badge.active {
  background: rgba(0,229,199,0.15);
  color: var(--accent);
  animation: pulse-badge 2s ease-in-out infinite;
}
@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.rm-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 4px;
}
.rm-text {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ======== LEGAL ======== */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.legal-phase {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ======== KEY METRICS ======== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.metric-item {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
}
.metric-num {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  display: inline;
}
.metric-suffix {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.7;
}
.metric-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  margin-top: 8px;
  margin-bottom: 6px;
}
.metric-trigger {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* ======== LINKS ======== */
.links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
  transition: border-color 0.3s, transform 0.3s;
}
.link-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.link-card ion-icon {
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 14px;
}
.link-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}
.link-card p {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ======== FOOTER ======== */
.footer {
  position: relative;
  z-index: 2;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.footer-minimal {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
}
.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.footer-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-socials a {
  color: var(--text-muted);
  transition: color 0.25s;
  display: flex;
  align-items: center;
}
.footer-socials a:hover {
  color: var(--accent);
}
.footer-socials svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ======== GLITCH EFFECT ======== */
.glitch {
  position: relative;
  display: inline-block;
  cursor: default;
}
.glitch.glitching {
  animation: glitch-text 0.3s infinite;
}
@keyframes glitch-text {
  0% {
    text-shadow: 2px 0 var(--pink), -2px 0 var(--accent);
  }
  20% {
    text-shadow: -2px 0 var(--pink), 2px 0 var(--accent);
  }
  40% {
    text-shadow: 2px -1px var(--purple), -2px 1px var(--gold);
  }
  60% {
    text-shadow: -1px 2px var(--accent), 1px -2px var(--pink);
  }
  80% {
    text-shadow: 1px 0 var(--gold), -1px 0 var(--purple);
  }
  100% {
    text-shadow: -2px 1px var(--pink), 2px -1px var(--accent);
  }
}

/* ======== PAGE HERO (subpages) ======== */
.page-hero {
  position: relative;
  z-index: 2;
  padding: 140px 0 60px;
  text-align: center;
}
.page-hero .section-title {
  font-size: 48px;
  margin-bottom: 12px;
}
.page-hero .section-desc {
  max-width: 600px;
  margin: 0 auto;
}
.page-hero .page-version {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
}
.page-hero .btn-primary {
  margin-top: 20px;
}
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }

/* ======== STATUS BAR ======== */
.status-bar {
  position: relative;
  z-index: 2;
  padding: 8px 0;
  background: rgba(0,229,199,0.04);
  border-bottom: 1px solid var(--accent-dim);
  margin-top: 64px;
}
.status-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.status-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--accent-dim);
  color: var(--accent);
}
.status-metric {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.status-metric strong {
  color: var(--text);
}

/* ======== ANTI-GAMING ======== */
.antigaming-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.antigaming-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.3s;
}
.antigaming-card:hover {
  border-color: var(--border-hover);
}
.antigaming-card .ag-icon {
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 10px;
}
.antigaming-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
}
.antigaming-card p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ======== COMPARISON TABLE ======== */
.compare-table-wrapper {
  overflow-x: auto;
}
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}
.compare-table th,
.compare-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare-table thead th {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--bg-card);
}
.compare-table thead th:first-child {
  border-radius: var(--radius-sm) 0 0 0;
}
.compare-table thead th:last-child {
  border-radius: 0 var(--radius-sm) 0 0;
}
.compare-table thead th.highlight {
  color: var(--accent);
  background: rgba(0,229,199,0.06);
}
.compare-table tbody td {
  color: var(--text-dim);
}
.compare-table tbody td:first-child {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
}
.compare-table tbody td.highlight {
  color: var(--accent);
  font-weight: 700;
}
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

/* ======== PoE CALCULATOR ======== */
.poe-calc {
  max-width: 640px;
  margin: 0 auto;
  background: #0c1117;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.poe-calc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.poe-calc-header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.poe-calc-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
}
.poe-calc-body {
  padding: 28px;
}
.poe-slider-group {
  margin-bottom: 20px;
}
.poe-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.poe-slider-name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}
.poe-slider-value {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}
.poe-slider-weight {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.poe-calc input[type="range"] {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.poe-calc input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0,229,199,0.3);
}
.poe-calc input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0,229,199,0.3);
}
.poe-calc-result {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.poe-result-score {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  display: block;
  text-shadow: 0 0 30px rgba(0,229,199,0.15);
}
.poe-result-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.poe-result-role {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  margin-top: 8px;
}
.poe-result-bar {
  margin-top: 16px;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.poe-result-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.4s ease;
  width: 0;
}

/* ======== FAQ ACCORDION ======== */
.faq-list {
  max-width: 740px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child {
  border-top: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  transition: color 0.2s;
}
.faq-question:hover {
  color: var(--accent);
}
.faq-question .faq-icon {
  font-size: 20px;
  color: var(--text-muted);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-item.open .faq-question .faq-icon {
  transform: rotate(45deg);
  color: var(--accent);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1), padding 0.3s;
  padding: 0 0;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 0 20px;
}
.faq-answer p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ======== TRUST SIGNALS ======== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.trust-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: border-color 0.3s;
}
.trust-card:hover {
  border-color: var(--border-hover);
}
.trust-card ion-icon {
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 14px;
}
.trust-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
}
.trust-card p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ======== LEGAL DISCLAIMER BAR ======== */
.legal-disclaimer {
  position: relative;
  z-index: 2;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.legal-disclaimer p {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.legal-disclaimer a {
  color: var(--accent);
}
.legal-disclaimer a:hover {
  text-decoration: underline;
}

/* ======== LEGAL PAGE CONTENT ======== */
.legal-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.legal-content h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  margin: 40px 0 16px;
  color: var(--text);
}
.legal-content h2:first-child {
  margin-top: 0;
}
.legal-content p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 16px;
}
.legal-content ul {
  margin-bottom: 16px;
  padding-left: 20px;
}
.legal-content li {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 6px;
  list-style: disc;
}

/* ======== RESPONSIVE ======== */

/* 1024px */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-title { font-size: 44px; }
  .hero-desc { max-width: 100%; }
  .problem-grid { grid-template-columns: 1fr; }
  .poe-grid { grid-template-columns: 1fr; }
  .nft-grid { grid-template-columns: 1fr; }
  .legal-grid { grid-template-columns: 1fr; }
  .scale-track {
    flex-direction: column;
    gap: 12px;
  }
  .scale-phase,
  .scale-phase:first-child,
  .scale-phase:last-child {
    border-radius: var(--radius);
  }
  .links-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .token-info-grid { grid-template-columns: 1fr; }
  .formula code { font-size: 18px; padding: 16px 24px; }
  .token-legend { grid-template-columns: repeat(2, 1fr); }
  .antigaming-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .page-hero .section-title { font-size: 40px; }
}

/* 768px */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav .btn-accent { display: none; }
  .nav-hamburger { display: block; }

  .section { padding: 72px 0; }
  .section-title { font-size: 32px; }
  .section-desc { font-size: 15px; }

  .hero { min-height: auto; padding: 100px 0 60px; }
  .hero-title { font-size: 36px; }
  .hero-desc { font-size: 15px; }

  .roles-track {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
  }
  .roles-line { display: none; }
  .role-item { width: 100px; }
  .role-img { width: 64px; height: 64px; }

  .token-supply-num { font-size: 40px; }
  .token-legend { grid-template-columns: 1fr 1fr; }

  .poe-levels {
    flex-direction: column;
    gap: 4px;
  }

  .links-grid { grid-template-columns: 1fr 1fr; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }

  .footer-minimal {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .status-bar .container { gap: 12px; font-size: 11px; }
  .antigaming-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 100px 0 40px; }
  .page-hero .section-title { font-size: 32px; }
}

/* 480px */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 26px; }
  .hero-title { font-size: 30px; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons a { width: 100%; justify-content: center; }
  .formula code { font-size: 14px; padding: 14px 16px; }
  .token-supply-num { font-size: 32px; }
  .token-legend { grid-template-columns: 1fr; }
  .links-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric-num { font-size: 36px; }
  .scale-phase { padding: 20px 16px; }
  .role-item { width: 80px; }
  .role-img { width: 56px; height: 56px; }
  .role-name { font-size: 13px; }
  .poe-calc-body { padding: 20px; }
  .poe-result-score { font-size: 36px; }
  .faq-question { font-size: 14px; }
  .page-hero .section-title { font-size: 28px; }
}

/* --- Early-stage badge --- */
.early-badge {
  display: inline-block;
  border: 1px solid rgba(0,229,199,0.3);
  padding: 6px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  border-radius: 999px;
  margin-bottom: 20px;
}

/* --- Roadmap current-phase pulse --- */
.rm-current-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-top: 6px;
}
.rm-dot.active {
  position: relative;
}
.rm-dot.active::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.3;
  animation: rm-pulse 2s ease-in-out infinite;
}
@keyframes rm-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
  50% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}
.rm-item.planned { opacity: 0.4; }
.rm-item.planned .rm-planned-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- Disclaimer boxes --- */
.disclaimer-box {
  border-left: 3px solid var(--gold);
  background: rgba(240,192,64,0.05);
  padding: 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 32px;
}
.disclaimer-box strong {
  color: var(--text);
}

/* --- Scaling note --- */
.scaling-note {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-align: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* --- Footer status --- */
.footer-status {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .scan-line,
  #fx-network,
  #fx-rain,
  .glow-orbs { display: none; }
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale { opacity: 1; transform: none; transition: none; }
  .token-bar-segment { transition: none; }
  .roles-line-fill { transition: none; }
  .glitch.glitching { animation: none; }
  .cursor { animation: none; }
  .rm-badge.active { animation: none; }
  .poe-result-fill { transition: none; }
  .faq-answer { transition: none; }
  .hero-title .accent { animation: none; -webkit-text-fill-color: var(--accent); }
  .hero-tag-line { animation: none; }
  .shimmer::after { animation: none; display: none; }
  .problem-card.featured::before { animation: none; }
  .btn-primary::after { display: none; }
  .link-card:hover ion-icon { animation: none; }
}
