/* ── variables.css ─────────── */
:root {
  /* Colors */
  --color-bg: #080808;
  --color-bg-elevated: #0f0f0f;
  --color-surface: #161616;
  --color-border: #2a2a2a;
  --color-text: #f5f5f5;
  --color-text-muted: #888888;
  --color-red: #3B82F6;
  --color-red-dark: #2563EB;
  --color-red-glow: rgba(59, 130, 246, 0.4);
  --color-red-soft: rgba(59, 130, 246, 0.15);

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-mono: 'Space Mono', monospace;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 10rem;

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── base.css ─────────── */
*, ::after, ::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
}

a {
  color: inherit;
  text-decoration: none;
}

.red {
  color: var(--color-red);
}

.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.section-marker {
  font-family: var(--font-display);
  font-size: .75rem;
  color: var(--color-red);
  letter-spacing: .1em;
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -.02em;
  margin-bottom: var(--space-xl);
}

::selection {
  background: var(--color-red);
  color: var(--color-bg);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-red-dark);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-red);
}

/* ── header.css ─────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(to bottom, var(--color-bg), transparent);
  backdrop-filter: blur(10px);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -.02em;
}

.logo-dot {
  width: 10px;
  height: 10px;
  background: var(--color-red);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 20px var(--color-red-glow);
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 20px var(--color-red-glow);
  }
  50% {
    transform: scale(1.3);
    box-shadow: 0 0 30px var(--color-red-glow);
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  font-size: .875rem;
}

.nav a {
  color: var(--color-text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav a:hover {
  color: var(--color-red);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-red);
  transition: width var(--transition);
}

.nav a:hover::after {
  width: 100%;
}

.nav a.nav-cta {
  color: var(--color-text);
  border: 1px solid var(--color-red);
  padding: 6px 14px;
  letter-spacing: .05em;
}

.nav a.nav-cta:hover {
  color: var(--color-bg);
  background: var(--color-red);
  box-shadow: 0 0 20px var(--color-red-glow);
}

.nav a.nav-cta::after {
  display: none;
}

/* ── hero.css ─────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  padding: var(--space-3xl) var(--space-lg);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  left: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, var(--color-red-soft) 0, transparent 70%);
  filter: blur(100px);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: -10%;
  width: 40%;
  height: 40%;
  background: radial-gradient(circle, var(--color-red-soft) 0, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--color-red);
  margin-bottom: var(--space-lg);
  animation: fadeInUp .8s ease-out;
}

.tag-line {
  width: 40px;
  height: 2px;
  background: var(--color-red);
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: -.03em;
  margin-bottom: var(--space-lg);
  animation: fadeInUp .8s ease-out .1s both;
}

.title-accent {
  color: var(--color-red);
  display: inline-block;
  position: relative;
  text-shadow: 0 0 60px var(--color-red-glow);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 500px;
  margin-bottom: var(--space-xl);
  animation: fadeInUp .8s ease-out .2s both;
}

.hero-description strong {
  color: var(--color-text);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-mono);
  font-size: .875rem;
  font-weight: 700;
  border-radius: 0;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: .05em;
  animation: fadeInUp .8s ease-out .3s both;
}

.btn-primary {
  background: var(--color-red);
  color: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transition: left .5s;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px var(--color-red-glow);
}

.btn-primary:hover::before {
  left: 100%;
}

/* Hero visual */

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 1s ease-out .5s both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.visual-circle {
  position: absolute;
  width: 400px;
  height: 400px;
  border: 1px solid var(--color-red);
  border-radius: 50%;
  animation: rotate 20s linear infinite;
  opacity: .3;
}

.visual-circle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 12px;
  height: 12px;
  background: var(--color-red);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px var(--color-red-glow);
}

.visual-circle-2 {
  width: 300px;
  height: 300px;
  animation-direction: reverse;
  animation-duration: 15s;
  border-color: var(--color-border);
}

.visual-circle-2::before {
  background: var(--color-text-muted);
  width: 6px;
  height: 6px;
  box-shadow: none;
}

@keyframes rotate {
  from { transform: rotate(0); }
  to   { transform: rotate(360deg); }
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 16px;
  background: var(--color-bg-elevated);
  border: 2px solid var(--color-border);
}

.grid-item {
  width: 55px;
  height: 55px;
  background: var(--color-surface);
  transition: all var(--transition);
}

.grid-item.dead {
  background: var(--color-surface);
  position: relative;
}

.grid-item.dead::after {
  content: '×';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-red);
  opacity: .3;
  font-size: 1.5rem;
}

.grid-item.active {
  background: var(--color-red);
  box-shadow: 0 0 40px var(--color-red-glow);
}

.visual-label {
  position: absolute;
  bottom: -50px;
  font-size: .75rem;
  color: var(--color-text-muted);
  letter-spacing: .15em;
  text-transform: uppercase;
}

/* ── manifesto.css ─────────── */
.manifesto {
  padding: var(--space-2xl) var(--space-lg);
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}

.manifesto-text .strike {
  color: var(--color-text-muted);
  text-decoration: line-through;
  text-decoration-color: var(--color-red);
  text-decoration-thickness: 3px;
}

.manifesto-text .highlight {
  color: var(--color-red);
  text-shadow: 0 0 40px var(--color-red-glow);
}

/* ── problem.css ─────────── */
.problem {
  padding: var(--space-3xl) var(--space-lg);
  position: relative;
}

.problem-content {
  max-width: 900px;
}

.problem-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--color-red);
  line-height: 1;
  text-shadow: 0 0 30px var(--color-red-glow);
}

.stat-label {
  font-size: .875rem;
  color: var(--color-text-muted);
}

.problem-text {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  max-width: 700px;
}

.problem-text strong.red {
  text-shadow: 0 0 20px var(--color-red-glow);
}

.problem-text.accent {
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.5rem;
  margin-top: var(--space-lg);
}

/* ── approach.css ─────────── */
.approach {
  padding: var(--space-3xl) var(--space-lg);
  background: var(--color-bg-elevated);
}

.approach-intro {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  margin-top: calc(var(--space-xl) * -.5);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.approach-card {
  padding: var(--space-xl);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  position: relative;
}

.approach-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-border);
  transition: background var(--transition);
}

.approach-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-red);
}

.approach-card:hover::before {
  background: var(--color-red);
}

.approach-card.featured {
  border-color: var(--color-red);
  background: var(--color-red-soft);
}

.approach-card.featured::before {
  background: var(--color-red);
}

.card-number {
  font-family: var(--font-display);
  font-size: .75rem;
  color: var(--color-red);
  letter-spacing: .1em;
  margin-bottom: var(--space-lg);
}

.approach-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  letter-spacing: -.01em;
}

.approach-card p {
  font-size: .9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ── vision.css ─────────── */
.vision {
  position: relative;
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
  overflow: hidden;
}

.vision-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--color-red-soft) 0, transparent 50%);
  transform: translate(-50%, -50%);
  filter: blur(60px);
  pointer-events: none;
}

.vision-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.vision-quote {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  font-style: normal;
  margin-bottom: var(--space-xl);
  position: relative;
  color: var(--color-text);
}

.vision-quote::before {
  content: '"';
  color: var(--color-red);
  font-size: 6rem;
  position: absolute;
  top: -50px;
  left: -30px;
  font-family: Georgia, serif;
  opacity: .5;
}

.vision-text {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.vision-text em {
  color: var(--color-red);
  font-style: normal;
  font-weight: 700;
}

/* ── closing.css ─────────── */
.closing {
  padding: var(--space-3xl) var(--space-lg);
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
}

.closing-content {
  max-width: 700px;
}

.closing-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: -.03em;
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.closing-title .red {
  text-shadow: 0 0 60px var(--color-red-glow);
}

.closing-text {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.closing-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: .875rem;
  color: var(--color-text-muted);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--color-red);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}

.closing a.nav-cta {
  display: inline-block;
  color: var(--color-text);
  border: 1px solid var(--color-red);
  padding: 6px 14px;
  font-size: .875rem;
  letter-spacing: .05em;
  transition: all var(--transition);
}

.closing a.nav-cta:hover {
  color: var(--color-bg);
  background: var(--color-red);
  box-shadow: 0 0 20px var(--color-red-glow);
}

/* ── footer.css ─────────── */
.footer {
  padding: var(--space-xl) var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
  font-size: .875rem;
}

.footer-links a {
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-red);
}

.footer-copy {
  font-size: .8125rem;
  color: var(--color-text-muted);
}

/* ── responsive.css ─────────── */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-2xl);
  }

  .hero-content {
    order: 1;
  }

  .hero-visual {
    order: 0;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-tag {
    justify-content: center;
  }

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

  .problem-stats {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  :root {
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
  }

  .header {
    padding: var(--space-sm);
  }

  .nav {
    gap: var(--space-md);
  }

  .visual-circle {
    width: 250px;
    height: 250px;
  }

  .visual-circle-2 {
    width: 180px;
    height: 180px;
  }

  .grid-item {
    width: 40px;
    height: 40px;
  }

  .manifesto-text {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
