@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
  --bg-dark: #050505;
  --bg-surface: #111111;
  --bg-glass: rgba(15, 15, 15, 0.85);
  --accent-red: #9e0000; 
  --accent-red-glow: rgba(158, 0, 0, 0.4);
  --accent-silver: #A0AAB5;
  --text-main: #FFFFFF;
  --text-muted: #777777;
  --border-color: rgba(255, 255, 255, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

/* Background Noise Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3 { font-weight: 800; letter-spacing: -1.5px; }
h1 { font-size: 4.5rem; line-height: 1.05; margin-bottom: 1.5rem; text-transform: uppercase; }
h2 { font-size: 2.5rem; margin-bottom: 1.5rem; color: var(--text-main); }
h3 { font-size: 1.4rem; margin-bottom: 1rem; color: var(--accent-silver); text-transform: uppercase; letter-spacing: 2px;}
p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 1.5rem; }

/* The Bleed Line */
.bleed-line {
  border-left: 1px solid var(--accent-red);
  padding-left: 2.5rem;
  margin-left: 1rem;
}

/* Glitch Effect */
.glitch-hover { position: relative; display: inline-block; }
.glitch-hover:hover { animation: glitch-skew 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite; }
.glitch-hover:hover::before, .glitch-hover:hover::after {
  content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}
.glitch-hover:hover::before {
  left: 2px; text-shadow: -2px 0 var(--accent-red); clip: rect(44px, 450px, 56px, 0); animation: glitch-anim 5s infinite linear alternate-reverse;
}
.glitch-hover:hover::after {
  left: -2px; text-shadow: -2px 0 #00ffff; clip: rect(44px, 450px, 56px, 0); animation: glitch-anim2 5s infinite linear alternate-reverse;
}
@keyframes glitch-anim {
  0% { clip: rect(10px, 9999px, 86px, 0); }
  20% { clip: rect(61px, 9999px, 14px, 0); }
  40% { clip: rect(25px, 9999px, 93px, 0); }
  60% { clip: rect(82px, 9999px, 7px, 0); }
  80% { clip: rect(40px, 9999px, 55px, 0); }
  100% { clip: rect(11px, 9999px, 68px, 0); }
}
@keyframes glitch-anim2 {
  0% { clip: rect(65px, 9999px, 100px, 0); }
  20% { clip: rect(3px, 9999px, 44px, 0); }
  40% { clip: rect(85px, 9999px, 2px, 0); }
  60% { clip: rect(14px, 9999px, 77px, 0); }
  80% { clip: rect(55px, 9999px, 25px, 0); }
  100% { clip: rect(98px, 9999px, 60px, 0); }
}
@keyframes glitch-skew {
  0% { transform: skew(0deg); } 20% { transform: skew(-2deg); } 40% { transform: skew(2deg); }
  60% { transform: skew(-1deg); } 80% { transform: skew(1deg); } 100% { transform: skew(0deg); }
}

/* Utilities */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.text-accent { color: var(--accent-red); }
.text-silver { color: var(--accent-silver); }
.text-white { color: #fff; }
.text-center { text-align: center; }

/* Buttons */
.btn {
  display: inline-block; padding: 1.2rem 3rem; font-weight: 800; text-decoration: none; text-transform: uppercase;
  letter-spacing: 2px; border-radius: 0px; transition: all 0.2s ease; cursor: pointer; border: 1px solid transparent;
  font-family: 'JetBrains Mono', monospace; font-size: 0.95rem; text-align: center;
}
.btn-primary { background: var(--accent-red); color: #fff; border-color: var(--accent-red); }
.btn-primary:hover { background: transparent; color: var(--accent-red); box-shadow: 0 0 20px var(--accent-red-glow); }
.btn-outline { background: transparent; color: var(--text-main); border: 1px solid var(--text-muted); }
.btn-outline:hover { background: #fff; color: #000; }

/* Sticky Header */
#sticky-header {
  position: fixed; top: -100px; left: 0; width: 100%; background: rgba(10, 10, 10, 0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--accent-red); display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 2rem; z-index: 1000; transition: top 0.4s ease;
}
#sticky-header.visible { top: 0; }
#sticky-header span { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: #fff; letter-spacing: 1px;}
.btn-sticky {
  background: var(--accent-red); color: #fff; padding: 0.8rem 2rem; font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem; font-weight: bold; text-transform: uppercase; text-decoration: none; transition: 0.2s;
}
.btn-sticky:hover { background: #fff; color: #000; }

/* Glassmorphism */
.glass-panel { background: var(--bg-glass); backdrop-filter: blur(8px); border: 1px solid var(--border-color); padding: 3rem; }

/* Hero Section */
.hero {
  min-height: 100vh; display: flex; align-items: center; position: relative;
  background: 
      linear-gradient(to right, rgba(5,5,5,0.85) 35%, rgba(5,5,5,0.3)),
      repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(158, 0, 0, 0.05) 2px, rgba(158, 0, 0, 0.05) 4px),
      url('assets/gladiator.png');
  background-size: cover; background-position: center; background-attachment: fixed;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-subtitle { font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: 4px; font-size: 0.9rem; color: var(--accent-red); margin-bottom: 1.5rem; display: block; }

/* Trauma Kit Section */
.trauma-section { padding: 8rem 0; background: var(--bg-surface); border-top: 1px solid var(--border-color); }
.trauma-list { list-style: none; margin-top: 3rem; }
.trauma-item { background: var(--bg-dark); border-left: 2px solid var(--border-color); padding: 2rem; margin-bottom: 1.5rem; transition: border-color 0.3s ease; }
.trauma-item:hover { border-left-color: var(--accent-red); }
.symptom { font-size: 1.3rem; color: #fff; font-weight: 600; margin-bottom: 0.5rem; }
.symptom::before { content: "SYMPTOM: "; color: var(--text-muted); font-size: 0.8rem; font-family: 'JetBrains Mono', monospace; letter-spacing: 1px; }
.antidote { color: var(--accent-silver); font-style: italic; }
.antidote::before { content: "ANTIDOTE: "; color: var(--accent-red); font-style: normal; font-size: 0.8rem; font-family: 'JetBrains Mono', monospace; letter-spacing: 1px; }

/* Lead Magnet Section */
.lead-section { padding: 4rem 0; background: var(--bg-dark); border-top: 1px solid var(--border-color); }
.lead-box { max-width: 600px; margin: 0 auto; text-align: center; }
.lead-form { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.lead-form input { padding: 1rem; background: rgba(0,0,0,0.5); border: 1px solid var(--border-color); color: #fff; border-radius: 0; font-size: 1rem; flex: 1; min-width: 250px; }
.lead-form input:focus { outline: none; border-color: var(--accent-red); }

/* Emergency Protocol Preview */
.emergency-preview { padding: 4rem 0; background: var(--bg-dark); border-top: 1px solid var(--border-color); }
.emergency-box { border: 2px solid var(--accent-red); padding: 2.5rem; background: rgba(158, 0, 0, 0.05); max-width: 800px; margin: 0 auto; }
.emergency-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--accent-red); letter-spacing: 2px; text-transform: uppercase; display: block; margin-bottom: 1rem;}
.emergency-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.step { background: rgba(0,0,0,0.5); padding: 1.2rem; border-left: 2px solid var(--accent-red); font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: var(--text-main); }

/* Social Proof Section */
.proof-section { padding: 8rem 0; background: var(--bg-surface); border-top: 1px solid var(--border-color); }
.testimonial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 4rem; }
.testimonial-card { border: 1px solid var(--border-color); padding: 2.5rem; background: rgba(255,255,255,0.02); }
.testimonial-rating { color: var(--accent-red); font-size: 1.2rem; letter-spacing: 4px; margin-bottom: 1rem; }
.testimonial-text { font-size: 1.15rem; color: #ddd; font-style: italic; margin-bottom: 1.5rem; }
.testimonial-author { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: var(--accent-red); text-transform: uppercase; }

/* Volumes Section */
.architecture-section { padding: 8rem 0; background: var(--bg-dark); border-top: 1px solid var(--border-color); }
.volumes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 4rem; }
.bundle-image { max-width: 100%; height: auto; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 30px 60px rgba(0,0,0,0.9); }

/* Pricing Section */
.pricing-section { padding: 8rem 0; background: var(--bg-surface); text-align: center; border-top: 1px solid var(--accent-red); }
.price-box { max-width: 600px; margin: 0 auto; text-align: left; }
.scarcity-bar-container { background: rgba(0,0,0,0.5); border: 1px solid var(--border-color); margin-bottom: 2rem; padding: 10px; position: relative;}
.scarcity-fill { background: var(--accent-red); height: 4px; width: 75%; margin-bottom: 10px; }
.scarcity-text { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: var(--text-main); text-transform: uppercase; letter-spacing: 1px;}
.price-header { display: flex; align-items: baseline; gap: 1rem; margin: 2rem 0; border-bottom: 1px solid var(--border-color); padding-bottom: 2rem; }
.price-strike { font-size: 2rem; color: var(--text-muted); text-decoration: line-through; }
.price-amount { font-size: 5.5rem; font-weight: 800; color: #fff; line-height: 1; }
.price-includes { list-style: none; margin-bottom: 3rem; }
.price-includes li { margin-bottom: 1rem; color: var(--text-main); display: flex; align-items: center; gap: 10px; }
.price-includes li::before { content: "✓"; color: var(--accent-red); font-weight: bold; }

/* FAQ Section */
.faq-section { padding: 6rem 0; background: var(--bg-dark); border-top: 1px solid var(--border-color); }
.faq-grid { display: grid; gap: 2rem; max-width: 800px; margin: 4rem auto 0; }
.faq-item { background: rgba(255,255,255,0.02); padding: 2rem; border-left: 2px solid var(--accent-red); }
.faq-q { font-size: 1.2rem; font-weight: bold; color: #fff; margin-bottom: 0.5rem; }
.faq-a { color: var(--text-muted); margin-bottom: 0;}

/* Exit Popup */
.exit-popup-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.9);
  backdrop-filter: blur(5px); z-index: 99999; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.exit-popup-overlay.active { opacity: 1; pointer-events: auto; }
.exit-popup {
  background: var(--bg-surface); border: 2px solid var(--accent-red); padding: 3rem; max-width: 500px; text-align: center;
}
.exit-popup h2 { font-size: 2rem; margin-bottom: 1rem; }
.exit-popup p { margin-bottom: 2rem; }
.close-popup { position: absolute; top: 20px; right: 20px; color: #fff; cursor: pointer; font-size: 1.5rem; }
.btn-exit-no { background: transparent; border: none; color: var(--text-muted); font-size: 0.8rem; cursor: pointer; margin-top: 1.5rem; text-decoration: underline; font-family: 'Inter', sans-serif; display: block; width: 100%; text-align: center;}
.btn-exit-no:hover { color: #fff; }

/* Image Integration Layouts */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.story-image { max-width: 100%; border-radius: 4px; border: 1px solid var(--border-color); filter: grayscale(50%) contrast(110%); transition: filter 0.3s ease; box-shadow: 0 10px 30px rgba(0,0,0,0.8); }
.story-image:hover { filter: grayscale(0%) contrast(100%); border-color: var(--accent-red); }

/* Animations */
.reveal { opacity: 0; transform: translateY(20px); transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 900px) {
  h1 { font-size: 3rem; }
  .testimonial-grid, .volumes-grid, .emergency-steps, .split-layout { grid-template-columns: 1fr; }
  .price-header { flex-direction: column; }
  #sticky-header { display: none; }
}
