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

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

:root {
  --red: #e63946;
  --black: #030303;
  --dark: #0a0a0a;
  --gray: #888;
  --light: #ccc;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: white;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: #222; border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* NAVBAR */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255,255,255,0);
}
nav.scrolled {
  background: rgba(8,8,8,0.85);
  backdrop-filter: blur(20px);
  border-bottom-color: rgba(255,255,255,0.05);
}
.nav-logo img { height: 28px; max-width: 160px; width: auto; opacity: 0.85; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  color: #999; text-decoration: none; font-size: 0.875rem;
  letter-spacing: 0.05em; transition: color 0.2s; position: relative;
}
.nav-links a:hover { color: white; }
.nav-links a .underline {
  position: absolute; bottom: -2px; left: 0; width: 0; height: 1px;
  background: var(--red); transition: width 0.3s ease;
  box-shadow: 0 0 6px rgba(230,57,70,0.8);
}
.nav-links a:hover .underline { width: 100%; }
.nav-cta {
  background: var(--red) !important; color: #ffffff !important; padding: 0.5rem 1.25rem;
  border-radius: 6px; font-size: 0.875rem; font-weight: 600;
  text-decoration: none; transition: all 0.2s;
  opacity: 1 !important;
}
.nav-cta:hover { background: #c1121f; box-shadow: 0 0 20px rgba(230,57,70,0.4); }

/* HAMBURGER */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: white; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none; position: fixed; top: 70px; right: 1.5rem;
  flex-direction: column; align-items: flex-end; gap: 0.5rem; z-index: 99;
  opacity: 0; transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.3s ease;
  pointer-events: none;
}
.mobile-menu.open { opacity: 1; transform: translateY(0); pointer-events: all; }
.mobile-menu a {
  font-size: 1.2rem; font-weight: 700; color: rgba(255,255,255,0.55);
  text-decoration: none; transition: color 0.2s;
}
.mobile-menu a:hover { color: white; }
.overlay {
  display: none; position: fixed; inset: 0; z-index: 98;
  background: rgba(0,0,0,0); pointer-events: none;
}
.overlay.open { display: block; pointer-events: all; }

/* INTRO */
.intro {
  position: fixed; inset: 0; z-index: 200;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  transition: opacity 0.7s ease;
}
.intro.hidden { opacity: 0; pointer-events: none; }
.intro-logo { margin-bottom: 2rem; opacity: 0; transform: translateY(20px); transition: all 0.8s ease; }
.intro-logo.show { opacity: 1; transform: translateY(0); }
.intro-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3rem, 10vw, 7rem); font-weight: 800;
  letter-spacing: -0.02em; color: white; min-height: 1.1em;
}
.intro-cursor {
  display: inline-block; width: 3px; height: 0.8em;
  background: var(--red); margin-left: 4px; vertical-align: middle;
  animation: blink 1s step-end infinite;
}
.intro-tagline {
  margin-top: 1.5rem; font-size: clamp(0.75rem, 2vw, 0.9rem);
  color: #666; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0; transform: translateY(10px); transition: all 0.6s ease;
}
.intro-tagline.show { opacity: 1; transform: translateY(0); }
.intro-bar {
  position: absolute; bottom: 0; left: 0; height: 2px;
  background: var(--red); width: 0;
  box-shadow: 0 0 10px rgba(230,57,70,0.8);
  transition: width 1s ease;
}

/* BACKGROUND */
.bg-galaxy { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.mobile-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url('/particles-mobile.png');
  background-size: cover; background-position: center;
  opacity: 0.4; mix-blend-mode: screen;
}

/* SCAN LINE */
.scan-line {
  position: fixed; left: 0; right: 0; height: 1px; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(230,57,70,0.3), transparent);
  animation: scanLine 8s linear infinite;
}

/* SECTIONS */
main { position: relative; z-index: 1; }

section { position: relative; z-index: 1; padding: 120px 1.5rem; }

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

/* HERO */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 0 1.5rem; overflow: hidden;
}
.hero-inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 2; }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.hero-radial {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(230,57,70,0.06) 0%, transparent 70%);
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(230,57,70,0.1); border: 1px solid rgba(230,57,70,0.2);
  border-radius: 100px; padding: 0.375rem 1rem; margin-bottom: 2rem;
  opacity: 0; transform: translateY(20px); transition: all 0.8s ease 0.2s;
}
.hero-pill.show { opacity: 1; transform: translateY(0); }
.hero-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 8px rgba(230,57,70,0.8); animation: pulse 2s ease-in-out infinite;
}
.hero-pill span { font-size: 0.8rem; color: var(--red); letter-spacing: 0.1em; font-weight: 600; }
.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 7vw, 5.5rem); font-weight: 800;
  line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 0.5rem;
  opacity: 0; transform: translateY(30px); transition: all 0.9s ease 0.4s;
}
.hero h1.show { opacity: 1; transform: translateY(0); }
.hero-accent {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 7vw, 5.5rem); font-weight: 800;
  line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 2rem;
  color: var(--red); text-shadow: 0 0 60px rgba(230,57,70,0.4);
  opacity: 0; transform: translateY(30px); transition: all 0.9s ease 0.6s;
}
.hero-accent.show { opacity: 1; transform: translateY(0); }
.hero-btns {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  opacity: 0; transform: translateY(20px); transition: all 0.8s ease 0.8s;
}
.hero-btns.show { opacity: 1; transform: translateY(0); }
.btn-primary {
  background: var(--red); color: white; padding: 1rem 2rem;
  border-radius: 8px; font-size: 1rem; font-weight: 700;
  text-decoration: none; transition: all 0.2s;
}
.btn-primary:hover { background: #c1121f; box-shadow: 0 0 30px rgba(230,57,70,0.5); transform: translateY(-2px); }
.btn-secondary {
  background: transparent; color: white; padding: 1rem 2rem;
  border-radius: 8px; font-size: 1rem; font-weight: 600;
  text-decoration: none; border: 1px solid rgba(255,255,255,0.15); transition: all 0.2s;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.05); }

/* SECTION LABELS */
.section-label {
  font-size: 0.8rem; color: var(--red); letter-spacing: 0.2em;
  text-transform: uppercase; font-weight: 600; margin-bottom: 1rem;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800;
  line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1rem;
}
.section-desc { font-size: 1rem; color: var(--gray); line-height: 1.7; max-width: 600px; margin: 0 auto; }

/* PROBLEM */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem;
  margin-top: 3rem;
}
.stat-card {
  text-align: center; padding: 2.5rem 2rem;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px; position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 20%; right: 20%;
  height: 1px; background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3rem, 7vw, 5rem); font-weight: 800;
  color: var(--red); line-height: 1; margin-bottom: 0.75rem;
  text-shadow: 0 0 40px rgba(230,57,70,0.3);
}
.stat-label { font-size: 1.1rem; color: white; font-weight: 600; margin-bottom: 0.5rem; }
.stat-sub { font-size: 0.875rem; color: #555; }

/* AGENTS */
.agents-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem;
  margin-top: 3rem;
}
.agent-card {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-right: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  border-left: 3px solid rgba(255,255,255,0.06);
  border-radius: 12px; padding: 1.75rem;
  transition: all 0.25s ease;
}
.agent-card:hover {
  transform: translateY(-4px);
}
.agent-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.agent-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.agent-name { font-weight: 700; font-size: 1rem; color: white; }
.agent-saving { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; }
.agent-desc { font-size: 0.875rem; color: #aaa; line-height: 1.6; }

/* RESULTS */
.results-section {
  background: linear-gradient(180deg, transparent, rgba(230,57,70,0.03) 50%, transparent);
}
.metrics-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px; background: rgba(255,255,255,0.06);
  border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,0.06);
  margin-top: 3rem;
}
.metric-card { background: #0a0a0a; padding: 3rem 2rem; text-align: center; }
.metric-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800;
  line-height: 1; margin-bottom: 0.75rem;
}
.metric-label { font-size: 0.9rem; color: #666; }

/* CTA */
.cta-box {
  text-align: center; padding: 4rem 3rem;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(230,57,70,0.2);
  border-radius: 24px; position: relative; overflow: hidden; max-width: 800px; margin: 0 auto;
}
.cta-glow {
  position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
  width: 400px; height: 400px; pointer-events: none;
  background: radial-gradient(circle, rgba(230,57,70,0.1) 0%, transparent 70%);
}
.cta-box h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 800;
  line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1.5rem;
}
.cta-box p { font-size: 1.1rem; color: var(--gray); line-height: 1.7; margin-bottom: 2.5rem; }
.cta-note { font-size: 0.8rem; color: #444; letter-spacing: 0.05em; margin-top: 1.25rem; }

/* FOOTER */
footer {
  position: relative; z-index: 1;
  padding: 3rem 1.5rem;
}
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 2rem; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 2rem; }
.footer-brand img { height: 32px; opacity: 0.7; margin-bottom: 1rem; }
.footer-tagline { font-size: 0.8rem; color: rgba(255,255,255,0.2); }
.footer-social p { font-size: 0.75rem; color: #333; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-social a { display: block; font-size: 0.875rem; color: #555; text-decoration: none; margin-bottom: 0.75rem; transition: color 0.2s; }
.footer-social a:hover { color: var(--red); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.04); padding-top: 1.5rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.footer-copy { font-size: 0.8rem; color: #333; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.8rem; color: #333; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: #666; }

/* ANIMATIONS */
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
@keyframes scanLine { 0%{transform:translateY(-100%);opacity:0} 50%{opacity:1} 100%{transform:translateY(100vh);opacity:0} }
@keyframes pulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.5);opacity:0.7} }

/* FADE IN */
.fade-up { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.fade-up.show { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .mobile-bg { display: block; }
  .bg-galaxy { display: none; }
  section { padding: 80px 1rem; }
  .hero { padding: 0 1rem; }
}
@media (min-width: 769px) {
  .mobile-bg { display: none; }
}
