/* ─── Tokens ─── */
:root {
  --bg: #060811;
  --bg-surface: #0B0F1A;
  --bg-elevated: #111827;
  --fg: #E8EDF4;
  --fg-muted: #8A94A8;
  --fg-dim: #4A5568;
  --accent: #00F5D4;
  --accent-dim: rgba(0, 245, 212, 0.12);
  --accent-glow: rgba(0, 245, 212, 0.25);
  --warning: #FF6B35;
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 10px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ─── Noise overlay ─── */
.noise-overlay {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 999;
  opacity: 0.6;
}

/* ─── Typography ─── */
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.1; }

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 8rem 7vw 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 70%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(0, 245, 212, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner { display: flex; flex-direction: column; gap: 1.75rem; }

.hero-label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
  border: 1px solid var(--fg-dim);
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  width: fit-content;
}

.hero-headline {
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  color: var(--fg);
  letter-spacing: -0.03em;
}

.hero-headline .line-1 {
  display: block;
  color: var(--fg-muted);
  font-weight: 400;
  font-size: 0.55em;
}

.hero-headline .line-2 { color: var(--fg); }

.hero-sub {
  color: var(--fg-muted);
  font-size: 1.05rem;
  max-width: 46ch;
  line-height: 1.7;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  border: 1px solid rgba(0, 245, 212, 0.25);
  background: rgba(0, 245, 212, 0.05);
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
}

/* ─── Hero visual: signal rings + card stack ─── */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 520px;
}

.signal-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 245, 212, 0.15);
}
.ring-1 { width: 320px; height: 320px; animation: pulse 4s ease-in-out infinite; }
.ring-2 { width: 420px; height: 420px; animation: pulse 4s ease-in-out 1s infinite; }
.ring-3 { width: 520px; height: 520px; animation: pulse 4s ease-in-out 2s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.08; transform: scale(1.04); }
}

.card-stack { position: relative; width: 240px; height: 340px; }
.mock-card {
  position: absolute;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.3s;
}
.card-back {
  width: 220px; height: 312px;
  background: linear-gradient(135deg, #0D1B2A, #1A2844);
  top: 28px; left: 20px;
  z-index: 1;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
.card-mid {
  width: 225px; height: 318px;
  background: linear-gradient(135deg, #111C2E, #1E3048);
  top: 14px; left: 10px;
  z-index: 2;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
.card-front {
  width: 230px; height: 322px;
  background: linear-gradient(160deg, #0A1525 0%, #0D1E30 50%, #0A1525 100%);
  top: 0; left: 0;
  z-index: 3;
  box-shadow:
    0 0 0 1px rgba(0,245,212,0.15),
    0 0 40px rgba(0,245,212,0.1),
    0 20px 60px rgba(0,0,0,0.8);
  overflow: hidden;
}

.card-glow {
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at 30% 30%, rgba(255, 107, 53, 0.15), transparent 50%);
  pointer-events: none;
}

.card-inner { padding: 14px; height: 100%; display: flex; flex-direction: column; gap: 4px; position: relative; }
.card-faction {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #FF6B35;
  font-weight: 600;
}
.card-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
}
.card-art {
  flex: 1;
  background: linear-gradient(135deg, #0D1B2A, #1A2844);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-art::after {
  content: '';
  width: 40px; height: 40px;
  border: 2px solid rgba(255,107,53,0.4);
  border-radius: 50%;
  background: rgba(255,107,53,0.08);
}
.card-type {
  font-size: 0.62rem;
  color: var(--fg-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.card-stats {
  display: flex;
  gap: 6px;
}
.stat {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--accent-dim);
}
.stat.sig { color: var(--accent); }
.stat.atk { color: #FF6B35; }
.stat.hp { color: #B06EFF; }
.card-ability {
  font-size: 0.65rem;
  color: var(--fg-muted);
  line-height: 1.4;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 6px;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--fg-dim);
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ─── PILLARS ─── */
.pillars {
  padding: 8rem 7vw;
  background: var(--bg-surface);
}

.pillars-header {
  margin-bottom: 4rem;
}
.pillars-header h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: -0.02em;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.pillar {
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
  transition: border-color 0.2s, transform 0.2s;
}
.pillar:hover {
  border-color: rgba(0, 245, 212, 0.2);
  transform: translateY(-4px);
}
.pillar-icon {
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.pillar h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.pillar p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ─── FACTIONS ─── */
.factions {
  padding: 8rem 7vw;
  background: var(--bg);
}

.factions-header {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 5rem;
}
.factions-header p { color: var(--fg-muted); margin-top: 1rem; }
.factions-header h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: -0.02em;
}

.factions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.faction-card {
  padding: 2rem 1.75rem;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.faction-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--fc);
}
.faction-card:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-4px);
}

.faction-glyph {
  width: 48px; height: 48px;
  color: var(--fc);
  margin-bottom: 1.25rem;
}

.faction-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}
.faction-archetype {
  font-size: 0.72rem;
  color: var(--fc);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 600;
}
.faction-card > p {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ─── DUAL LAYER ─── */
.dual-layer {
  padding: 8rem 7vw;
  background: var(--bg-surface);
}

.dl-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.dl-copy h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.dl-copy > p {
  color: var(--fg-muted);
  margin-bottom: 2.5rem;
  font-size: 1rem;
  line-height: 1.7;
}

.dl-layers { display: flex; gap: 1.5rem; margin-bottom: 2rem; }
.dl-layer { flex: 1; }
.layer-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}
.layer-fungible { background: rgba(0,245,212,0.15); color: var(--accent); }
.layer-nft { background: rgba(176,110,255,0.15); color: #B06EFF; }
.layer-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.dl-layer p { font-size: 0.82rem; color: var(--fg-muted); line-height: 1.6; }
.dl-divider {
  width: 1px;
  background: rgba(255,255,255,0.08);
  margin: 0 0.5rem;
  align-self: stretch;
}

.dl-features { display: flex; flex-direction: column; gap: 0.75rem; }
.dl-feat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--fg-muted);
}

/* ─── Ownership diagram visual ─── */
.ownership-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.diagram-card {
  width: 220px;
  padding: 1.25rem;
  background: linear-gradient(135deg, #0D1B2A, #0A1525);
  border: 1px solid rgba(255,107,53,0.3);
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(255,107,53,0.1);
}
.diagram-card .d-faction { font-size: 0.6rem; color: #FF6B35; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 600; }
.diagram-card .d-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--fg); margin: 0.25rem 0; }
.diagram-card .d-line { height: 1px; background: rgba(255,255,255,0.08); margin: 0.75rem 0; }
.diagram-card .d-supply { font-size: 0.72rem; color: var(--fg-muted); margin-bottom: 0.75rem; }
.diagram-card .d-editions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.ed-tag {
  font-size: 0.58rem;
  padding: 0.2rem 0.5rem;
  border-radius: 99px;
  font-weight: 600;
}
.ed-altart { background: rgba(0,245,212,0.15); color: var(--accent); }
.ed-animated { background: rgba(176,110,255,0.15); color: #B06EFF; }
.ed-serial { background: rgba(255,210,63,0.15); color: #FFD23F; }

.diagram-arrow {
  font-size: 1.5rem;
  color: var(--fg-dim);
}

.diagram-layers { width: 100%; display: flex; flex-direction: column; gap: 1rem; }
.diagram-layer {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  border: 1px solid;
}
.dl-token { border-color: rgba(0,245,212,0.2); background: rgba(0,245,212,0.05); }
.dl-nft { border-color: rgba(176,110,255,0.2); background: rgba(176,110,255,0.05); }
.layer-type { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; margin-bottom: 0.25rem; }
.dl-token .layer-type { color: var(--accent); }
.dl-nft .layer-type { color: #B06EFF; }
.layer-info { font-size: 0.75rem; color: var(--fg-muted); }

/* ─── CLOSING ─── */
.closing {
  padding: 8rem 7vw 10rem;
  background: var(--bg);
  text-align: center;
}
.closing-inner { max-width: 65ch; margin: 0 auto; }
.closing h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
  line-height: 1.15;
}
.closing p {
  color: var(--fg-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 3rem;
}

.closing-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.meta-item { text-align: center; }
.meta-value {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.meta-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.meta-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.08);
}

/* ─── FOOTER ─── */
.footer {
  padding: 2.5rem 7vw;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface);
}
.footer-brand { display: flex; flex-direction: column; gap: 0.25rem; }
.footer-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}
.footer-tagline { font-size: 0.75rem; color: var(--fg-dim); }
.footer-legal { font-size: 0.72rem; color: var(--fg-dim); }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 5rem; }
  .hero-visual { display: none; }
  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .factions-grid { grid-template-columns: 1fr 1fr; }
  .dl-inner { grid-template-columns: 1fr; }
  .dl-visual { display: none; }
}
@media (max-width: 600px) {
  .hero { padding: 4rem 6vw; }
  .pillars-grid { grid-template-columns: 1fr; }
  .factions-grid { grid-template-columns: 1fr; }
  .closing-meta { gap: 1.5rem; }
  .meta-value { font-size: 2rem; }
  .footer { flex-direction: column; gap: 1rem; text-align: center; }
}