/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #0a0a0f;
  color: #e8e6e3;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  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)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3 {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #e8e6e3 30%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  margin-bottom: 1rem;
  color: #f5c211;
}

p {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  max-width: 70ch;
  color: #ccc9c4;
}

code, .mono {
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'JetBrains Mono', 'Consolas', monospace;
}

a {
  color: #3b82f6;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #60a5fa;
}

/* ========================================
   LAYOUT
   ======================================== */
section {
  padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 5vw, 4rem);
}

.container {
  max-width: 960px;
  margin: 0 auto;
}

/* ========================================
   UTILITIES
   ======================================== */
.mt-lg { margin-top: 1.5rem; }
.mt-md { margin-top: 1rem; }

/* ========================================
   ANIMATION — Scroll reveal
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.reveal-group > .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-group > .reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal-group > .reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal-group > .reveal:nth-child(5) { transition-delay: 0.4s; }

/* ========================================
   HERO
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(59, 130, 246, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 60%, rgba(245, 194, 17, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(168, 85, 247, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(3rem, 10vw, 8rem);
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #f5c211 0%, #ff6b6b 25%, #a855f7 50%, #3b82f6 75%, #22d3ee 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 8s ease infinite;
  position: relative;
  z-index: 1;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero .tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: #ccc9c4;
  margin-top: 1.5rem;
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.hero .tagline strong {
  color: #e8e6e3;
}

.hero .scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: #555;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.hero .scroll-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, #555, transparent);
  margin: 0.5rem auto 0;
}

/* ========================================
   SECTION DIVIDER
   ======================================== */
.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #f5c211, #3b82f6);
  border: none;
  margin-bottom: 2rem;
  border-radius: 2px;
}

.sovereignty .divider { background: linear-gradient(90deg, #ef4444, #f87171); }
.lockin .divider { background: linear-gradient(90deg, #7c3aed, #a855f7); }
.security .divider { background: linear-gradient(90deg, #ea580c, #fb923c); }
.alternative .divider { background: linear-gradient(90deg, #16a34a, #4ade80); }
.sources .divider { background: linear-gradient(90deg, #3b82f6, #22d3ee); }

/* ========================================
   PROBLEM SECTION
   ======================================== */
.problem {
  background: linear-gradient(180deg, #0a0a0f 0%, #100c18 100%);
  position: relative;
}

.problem::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(ellipse at 100% 30%, rgba(245, 194, 17, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.problem h2 {
  background: linear-gradient(135deg, #e8e6e3 30%, #fad025 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.stat-card {
  background: rgba(245, 194, 17, 0.04);
  border: 1px solid rgba(245, 194, 17, 0.12);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.3s, transform 0.3s;
}

.stat-card:hover {
  border-color: rgba(245, 194, 17, 0.45);
  transform: translateY(-2px);
}

.stat-card .number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fad025;
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-card .label {
  font-size: 0.9rem;
  color: #aaa;
}

/* ========================================
   CONTENT CARDS
   ======================================== */
.point-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.point {
  padding: 1.5rem;
  border-left: 3px solid #7c6ef6;
  background: rgba(124, 110, 246, 0.05);
  border-radius: 0 8px 8px 0;
  transition: background 0.3s;
}

.point:hover {
  background: rgba(124, 110, 246, 0.09);
}

.point strong {
  color: #e8e6e3;
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1.05rem;
}

.point p {
  font-size: 0.95rem;
  color: #b5b2ad;
}

/* ========================================
   SOVEREIGNTY SECTION
   ======================================== */
.sovereignty {
  background: linear-gradient(180deg, #100c18 0%, #0a0a0f 100%);
  position: relative;
}

.sovereignty::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(ellipse at 0% 50%, rgba(239, 68, 68, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.sovereignty h2 {
  background: linear-gradient(135deg, #e8e6e3 30%, #ef4444 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.law-callout {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  position: relative;
}

.law-callout::before {
  content: '\26A0';
  position: absolute;
  top: -12px;
  left: 16px;
  font-size: 1.2rem;
  background: #0a0a0f;
  padding: 0 0.5rem;
}

.law-callout .law-name {
  font-weight: 700;
  color: #f87171;
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'JetBrains Mono', 'Consolas', monospace;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
}

.law-callout p {
  font-size: 0.95rem;
  color: #b5b2ad;
}

/* ========================================
   LOCK-IN SECTION
   ======================================== */
.lockin {
  background: linear-gradient(180deg, #0a0a0f 0%, #0f1018 100%);
  position: relative;
}

.lockin::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(ellipse at 100% 50%, rgba(168, 85, 247, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.lockin h2 {
  background: linear-gradient(135deg, #e8e6e3 30%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.trap-visual {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 2.5rem 0;
  flex-wrap: wrap;
  justify-content: center;
}

.trap-step {
  text-align: center;
  padding: 1rem 1.5rem;
  flex: 1;
  min-width: 150px;
}

.trap-step .icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.trap-step .title {
  font-weight: 700;
  color: #e8e6e3;
  font-size: 0.95rem;
}

.trap-step .desc {
  font-size: 0.8rem;
  color: #999;
  margin-top: 0.3rem;
}

.trap-arrow {
  color: #a855f7;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* ========================================
   SECURITY SECTION
   ======================================== */
.security {
  background: linear-gradient(180deg, #0f1018 0%, #0a0a0f 100%);
  position: relative;
}

.security::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(ellipse at 0% 30%, rgba(251, 146, 60, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.security h2 {
  background: linear-gradient(135deg, #e8e6e3 30%, #fb923c 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.security .point {
  border-left-color: #fb923c;
  background: rgba(251, 146, 60, 0.04);
}

.security .point:hover {
  background: rgba(251, 146, 60, 0.08);
}

/* ========================================
   ALTERNATIVE SECTION
   ======================================== */
.alternative {
  background: linear-gradient(180deg, #0a0a0f 0%, #0a1210 100%);
  position: relative;
}

.alternative::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at 100% 50%, rgba(34, 197, 94, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.alternative h2 {
  background: linear-gradient(135deg, #e8e6e3 30%, #22c55e 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.alt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (max-width: 600px) {
  .alt-grid {
    grid-template-columns: 1fr;
  }
}

.alt-card {
  background: rgba(34, 197, 94, 0.04);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: 8px;
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s;
}

.alt-card:hover {
  border-color: rgba(34, 197, 94, 0.45);
  transform: translateY(-2px);
}

.alt-card h3 {
  margin-bottom: 0.75rem;
  color: #4ade80;
}

.alt-card p {
  font-size: 0.95rem;
  color: #b5b2ad;
}

/* ========================================
   SOURCES SECTION
   ======================================== */
.sources {
  background: linear-gradient(180deg, #0f0f18 0%, #0a0a0f 100%);
}

.source-list {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-top: 2rem;
  display: grid;
  gap: 0.6rem;
}

.source-list li {
  font-size: 0.85rem;
  color: #7a7874;
  line-height: 1.5;
}

.source-list li a {
  color: #9a9894;
  transition: color 0.2s;
}

.source-list li a:hover {
  color: #3b82f6;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #08080c;
}

footer .signoff {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 800;
  background: linear-gradient(135deg, #fad025, #22c55e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

footer .meta {
  font-size: 0.85rem;
  color: #777;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

footer .meta .mono {
  color: #666;
  font-size: 0.8rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 640px) {
  .trap-arrow {
    transform: rotate(90deg);
    padding: 0.5rem 0;
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
}
