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

:root {
  --bg-primary: #050508;
  --bg-secondary: #0a0a10;
  --bg-card: rgba(15, 15, 25, 0.6);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border-glass: rgba(255, 255, 255, 0.06);
  --fg-primary: #e8e6e3;
  --fg-secondary: #8a8694;
  --fg-muted: #5a566a;
  --accent-crimson: #dc143c;
  --accent-crimson-glow: rgba(220, 38, 38, 0.15);
  --accent-gold: #ffd700;
  --accent-gold-glow: rgba(255, 215, 0, 0.12);
  --accent-silver: #c0c0c0;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 120px 24px 80px;
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(5, 5, 8, 0.3) 0%,
    rgba(5, 5, 8, 0.6) 50%,
    rgba(5, 5, 8, 0.95) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--accent-crimson);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-crimson);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
  background: rgba(220, 38, 38, 0.08);
  animation: borderPulse 3s ease-in-out infinite;
}

@keyframes borderPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.3); }
  50% { box-shadow: 0 0 12px 2px rgba(220, 38, 38, 0.15); }
}

.hero-badge .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-crimson);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 2;
  margin-bottom: 28px;
}

.hero h1 .line-1 {
  display: block;
  color: var(--fg-primary);
}

.hero h1 .line-2 {
  display: block;
  background: linear-gradient(135deg, var(--accent-crimson), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--fg-secondary);
  max-width: 620px;
  line-height: 1.7;
  position: relative;
  z-index: 2;
  margin-bottom: 48px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent-crimson), #b91c1c);
  border: 1px solid rgba(220, 38, 38, 0.5);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.2);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(220, 38, 38, 0.35);
}

/* --- DIVIDER --- */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glass), rgba(220, 38, 38, 0.3), var(--border-glass), transparent);
  margin: 0;
}

/* --- LIVE FEED --- */
.live-feed {
  padding: 100px 24px;
  position: relative;
  background: var(--bg-secondary);
}

.live-feed .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.feed-header {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.feed-header .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.feed-header h2 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.feed-scroll {
  width: 100%;
  max-width: 800px;
  height: 420px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
}

.feed-scroll::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, rgba(10, 10, 16, 0.95), transparent);
  z-index: 2;
  pointer-events: none;
}

.feed-scroll::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(10, 10, 16, 0.95), transparent);
  z-index: 2;
  pointer-events: none;
}

.feed-entries {
  display: flex;
  flex-direction: column;
  animation: feedScroll 40s linear infinite;
}

@keyframes feedScroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.feed-entry {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-glass);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  transition: background 0.2s ease;
}

.feed-entry:hover {
  background: rgba(255, 255, 255, 0.02);
}

.feed-entry .feed-label {
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  flex-shrink: 0;
}

.feed-label.scanning {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.feed-label.signal {
  background: rgba(255, 215, 0, 0.1);
  color: var(--accent-gold);
  border: 1px solid rgba(255, 215, 0, 0.25);
}

.feed-label.alert {
  background: rgba(220, 38, 38, 0.12);
  color: var(--accent-crimson);
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.feed-entry .feed-coin {
  color: var(--fg-primary);
  font-weight: 500;
  min-width: 100px;
}

.feed-entry .feed-text {
  color: var(--fg-secondary);
  flex: 1;
}

.feed-entry .feed-meta {
  color: var(--fg-muted);
  font-size: 0.65rem;
  margin-left: auto;
  flex-shrink: 0;
}

.feed-entry .feed-confidence {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.confidence-bar {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.confidence-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-crimson), var(--accent-gold));
}

.confidence-val {
  color: var(--accent-gold);
  font-size: 0.65rem;
}

/* --- INTELLIGENCE STACK --- */
.features {
  padding: 120px 24px;
  position: relative;
}

.features .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 80px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-crimson);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 48px;
  max-width: 700px;
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border-glass);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  overflow: hidden;
}

.agent-card {
  padding: 40px 32px;
  background: var(--bg-secondary);
  transition: background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.agent-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--agent-color, var(--accent-gold)), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.agent-card:hover::before {
  opacity: 1;
}

.agent-card:hover {
  background: rgba(15, 15, 25, 0.95);
}

.agent-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  position: relative;
  animation: iconGlow 3s ease-in-out infinite;
}

.agent-icon.aurin {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.2), rgba(220, 38, 38, 0.05));
  color: var(--accent-crimson);
  border: 1px solid rgba(220, 38, 38, 0.3);
  --agent-color: var(--accent-crimson);
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.15);
  animation-delay: 0s;
}

.agent-icon.sophia {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
  color: var(--accent-gold);
  border: 1px solid rgba(255, 215, 0, 0.3);
  --agent-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.12);
  animation-delay: 0.5s;
}

.agent-icon.aegis {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
  --agent-color: #22c55e;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.12);
  animation-delay: 1s;
}

.agent-icon.saint {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
  --agent-color: #3b82f6;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.12);
  animation-delay: 1.5s;
}

.agent-icon.elohim {
  background: linear-gradient(135deg, rgba(192, 192, 192, 0.15), rgba(192, 192, 192, 0.05));
  color: var(--accent-silver);
  border: 1px solid rgba(192, 192, 192, 0.3);
  --agent-color: var(--accent-silver);
  box-shadow: 0 0 15px rgba(192, 192, 192, 0.1);
  animation-delay: 2s;
}

@keyframes iconGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

.agent-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--fg-primary);
}

.agent-card .agent-role {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  opacity: 0.85;
}

.agent-card p {
  font-size: 0.875rem;
  color: var(--fg-secondary);
  line-height: 1.65;
}

/* --- STATS SNAPSHOT --- */
.stats-snapshot {
  padding: 100px 24px;
  position: relative;
  background: var(--bg-primary);
}

.stats-snapshot .container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.stat-counter {
  text-align: center;
  padding: 32px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.stat-counter:hover {
  border-color: rgba(255, 215, 0, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.stat-value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--accent-gold);
  font-family: var(--font-mono);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-suffix {
  font-size: 0.9rem;
  color: var(--accent-gold);
  opacity: 0.7;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 8px;
}

.stats-disclaimer {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--fg-muted);
  margin-top: 32px;
  opacity: 0.6;
}

/* --- HOW IT WORKS --- */
.closing {
  padding: 120px 24px;
  text-align: center;
  position: relative;
}

.closing::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, var(--accent-gold-glow) 0%, transparent 60%);
  pointer-events: none;
}

.closing .container {
  position: relative;
  z-index: 1;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 60px;
  position: relative;
}

.step-card {
  padding: 32px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  position: relative;
  transition: all 0.3s ease;
}

.step-card:hover {
  border-color: rgba(255, 215, 0, 0.2);
  transform: translateY(-4px);
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-crimson), var(--accent-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 20px;
}

.step-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.step-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg-primary);
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.step-desc {
  font-size: 0.8rem;
  color: var(--fg-secondary);
  line-height: 1.6;
}

.step-connector {
  position: absolute;
  top: 50%;
  right: -20px;
  width: 8px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-gold), transparent);
}

.step-connector::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -3px;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid var(--accent-gold);
}

/* --- COMMUNITY --- */
.community {
  padding: 100px 24px;
  text-align: center;
  position: relative;
  background: var(--bg-secondary);
}

.community .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 600px;
}

.community h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.community p {
  font-size: 1rem;
  color: var(--fg-secondary);
  line-height: 1.7;
  max-width: 500px;
}

.community-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent-gold), #b8860b);
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #000;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
}

.community-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.25);
}

.community-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}

/* --- FOOTER --- */
footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border-glass);
  text-align: center;
  background: var(--bg-primary);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--fg-muted);
  opacity: 0.6;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .stats-snapshot .container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .step-connector {
    display: none;
  }

  .stats-snapshot .container {
    grid-template-columns: repeat(2, 1fr);
  }

  .feed-scroll {
    height: 320px;
  }

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

@media (max-width: 480px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stats-snapshot .container {
    grid-template-columns: 1fr;
  }

  .feed-entry {
    flex-wrap: wrap;
    gap: 8px;
  }

  .feed-entry .feed-meta {
    width: 100%;
    margin-left: 0;
    margin-top: 4px;
  }

  .hero {
    padding: 80px 20px 60px;
  }

  .footer-inner {
    flex-direction: column;
  }
}
