:root {
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --bg-card: #151515;
  --fg: #e0e0e0;
  --fg-muted: #666666;
  --fg-dim: #444444;
  --accent: #ff003c;
  --accent-glow: rgba(255, 0, 60, 0.3);
  --accent-alt: #00ff88;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
  --sans: 'Space Grotesk', 'Helvetica Neue', sans-serif;
  --radius: 2px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Scanline overlay */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
}

.noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.015;
  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");
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,0,60,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(0,255,136,0.04) 0%, transparent 60%),
    var(--bg);
}

.hero-inner {
  max-width: 800px;
}

.error-code {
  font-family: var(--mono);
  font-size: clamp(6rem, 20vw, 14rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 40px var(--accent-glow), 0 0 80px rgba(255,0,60,0.15);
  margin-bottom: -0.1em;
  letter-spacing: -0.05em;
}

.glitch {
  position: relative;
  display: inline-block;
  animation: glitch-skew 4s infinite linear alternate-reverse;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  color: var(--accent);
  animation: glitch-1 3s infinite linear alternate-reverse;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
  transform: translate(-2px);
}

.glitch::after {
  color: var(--accent-alt);
  animation: glitch-2 2s infinite linear alternate-reverse;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
  transform: translate(2px);
}

@keyframes glitch-1 {
  0%, 90% { transform: translate(0); }
  91% { transform: translate(-3px, 1px); }
  93% { transform: translate(2px, -1px); }
  95% { transform: translate(-1px); }
  100% { transform: translate(0); }
}

@keyframes glitch-2 {
  0%, 88% { transform: translate(0); }
  89% { transform: translate(3px, -1px); }
  92% { transform: translate(-2px, 1px); }
  96% { transform: translate(1px); }
  100% { transform: translate(0); }
}

@keyframes glitch-skew {
  0%, 95% { transform: skew(0deg); }
  96% { transform: skew(1deg); }
  98% { transform: skew(-0.5deg); }
  100% { transform: skew(0deg); }
}

.hero-title {
  font-family: var(--sans);
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--fg);
  margin-top: -0.2em;
  line-height: 1;
}

.dash {
  color: var(--accent);
}

.hero-sub {
  font-family: var(--mono);
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  color: var(--fg-muted);
  margin-top: 1.5rem;
  letter-spacing: 0.05em;
}

.hero-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.tag-sep {
  color: var(--accent);
}

.location {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--fg-dim);
  margin-top: 3rem;
  opacity: 0.6;
}

/* MANIFESTO */
.manifesto {
  padding: 6rem 2rem;
  background: var(--bg);
  border-top: 1px solid rgba(255,0,60,0.15);
}

.manifesto-inner {
  max-width: 700px;
  margin: 0 auto;
}

.manifesto-label,
.features-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.manifesto-text {
  font-family: var(--sans);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  line-height: 1.8;
  color: var(--fg);
  border: none;
  padding: 0;
}

.manifesto-text strong {
  color: var(--accent);
  font-size: 1.5em;
}

/* FEATURES */
.features {
  padding: 6rem 2rem;
  background: var(--bg-elevated);
}

.features-inner {
  max-width: 1000px;
  margin: 0 auto;
}

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

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 2rem;
  position: relative;
  transition: border-color 0.3s;
}

.feature-card:hover {
  border-color: rgba(255,0,60,0.3);
}

.feature-index {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

.feature-card h3 {
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--fg);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* CLOSING - Terminal */
.closing {
  padding: 6rem 2rem;
  background: var(--bg);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.closing-inner {
  max-width: 600px;
  margin: 0 auto;
}

.terminal-block {
  background: #0d0d0d;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--fg-dim);
  margin-left: 8px;
}

.terminal-body {
  padding: 1.5rem;
}

.terminal-line {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.terminal-line .prompt {
  color: var(--accent-alt);
  margin-right: 0.5rem;
}

.terminal-line.response {
  color: var(--accent);
  padding-left: 1.5rem;
}

.terminal-line.response.success {
  color: var(--accent-alt);
}

.terminal-line.cursor {
  margin-bottom: 0;
}

.blink {
  animation: blink 1s step-end infinite;
}

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

/* FOOTER */
.site-footer {
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
  background: var(--bg);
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
}

.footer-brand {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--fg-dim);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.footer-copy {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--fg-dim);
  opacity: 0.5;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .hero {
    padding: 1.5rem;
  }
  .hero-tag {
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .manifesto {
    padding: 4rem 1.5rem;
  }
  .features {
    padding: 4rem 1.5rem;
  }
  .closing {
    padding: 4rem 1.5rem;
  }
  .feature-card {
    padding: 1.5rem;
  }
}