:root {
  --bg-deep: #0a0a0c;
  --bg-surface: #111115;
  --bg-card: #16161b;
  --fg-primary: #e8e6e3;
  --fg-secondary: #8a8780;
  --fg-muted: #5a5852;
  --accent: #c0392b;
  --accent-glow: #e74c3c;
  --accent-dim: #7b241c;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Crimson Pro', Georgia, serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-deep);
  overflow: hidden;
}

.hero-noise {
  position: absolute;
  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.03'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

.hero-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 2px,
    rgba(0, 0, 0, 0.15) 4px
  );
  pointer-events: none;
  z-index: 1;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, var(--bg-deep) 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  padding: 2rem;
}

.hero-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  color: var(--accent);
  margin-bottom: 2rem;
  text-transform: uppercase;
  animation: flicker 3s infinite;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 1.5rem;
  color: var(--fg-primary);
}

.hero h1 .glitch {
  color: var(--accent);
  position: relative;
  display: inline-block;
}

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

.hero h1 .glitch::before {
  animation: glitch-1 2.5s infinite;
  color: var(--accent-glow);
  z-index: -1;
}

.hero h1 .glitch::after {
  animation: glitch-2 3s infinite;
  color: var(--accent-dim);
  z-index: -2;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--fg-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-style: italic;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.meta-tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--fg-muted);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0.4rem 0.8rem;
}

.meta-divider {
  color: var(--fg-muted);
  opacity: 0.3;
}

/* ===== FEATURES ===== */
.features {
  padding: 6rem 2rem;
  background: var(--bg-surface);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.features-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.feature-card {
  background: var(--bg-card);
  padding: 3rem 2.5rem;
  border: 1px solid rgba(255,255,255,0.03);
  transition: border-color 0.3s ease;
}

.feature-card:hover {
  border-color: var(--accent-dim);
}

.feature-icon {
  font-size: 0.6rem;
  color: var(--accent);
  letter-spacing: 0.3em;
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

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

.feature-card p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--fg-secondary);
  line-height: 1.7;
}

/* ===== CONTENT SECTION ===== */
.content-section {
  padding: 8rem 2rem;
  background: var(--bg-deep);
}

.content-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.content-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: var(--fg-primary);
}

.content-body {
  font-size: 1.1rem;
  color: var(--fg-secondary);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.tv-frame {
  aspect-ratio: 4/3;
  background: #0d0d0f;
  border: 6px solid #1a1a1f;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(192, 57, 43, 0.08), inset 0 0 40px rgba(0,0,0,0.5);
}

.tv-static {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  animation: static-flicker 0.15s infinite;
}

.tv-text {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  position: relative;
  z-index: 1;
  animation: flicker 2s infinite;
}

/* ===== CLOSING ===== */
.closing {
  padding: 8rem 2rem;
  background: linear-gradient(180deg, var(--bg-deep) 0%, #0e0a0a 100%);
  text-align: center;
  border-top: 1px solid rgba(192, 57, 43, 0.1);
}

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

.closing-pretext {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--accent);
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.closing-subtext {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--fg-secondary);
  font-style: italic;
}

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

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

.footer-brand {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--fg-muted);
  font-style: italic;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.footer-copy {
  font-family: var(--font-display);
  font-size: 0.65rem;
  color: var(--fg-muted);
  opacity: 0.4;
  letter-spacing: 0.1em;
}

/* ===== ANIMATIONS ===== */
@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
  }
  20%, 24%, 55% {
    opacity: 0.4;
  }
}

@keyframes glitch-1 {
  0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
  20% { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 2px); }
  40% { clip-path: inset(60% 0 10% 0); transform: translate(3px, -1px); }
  60% { clip-path: inset(40% 0 30% 0); transform: translate(-2px, 1px); }
  80% { clip-path: inset(10% 0 70% 0); transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
  0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
  15% { clip-path: inset(70% 0 5% 0); transform: translate(2px, 1px); }
  35% { clip-path: inset(15% 0 55% 0); transform: translate(-3px, -1px); }
  55% { clip-path: inset(50% 0 20% 0); transform: translate(1px, 2px); }
  75% { clip-path: inset(5% 0 80% 0); transform: translate(-1px, -2px); }
}

@keyframes static-flicker {
  0% { opacity: 0.06; }
  50% { opacity: 0.1; }
  100% { opacity: 0.06; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .content-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .content-visual {
    order: -1;
  }

  .hero-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .meta-divider {
    display: none;
  }

  .feature-card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 1.5rem;
  }

  .closing {
    padding: 5rem 1.5rem;
  }

  .content-section {
    padding: 5rem 1.5rem;
  }
}