/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #0A0A0A;
  --black-light: #0D0D0D;
  --white: #F5F5F5;
  --dark-grey: #2A2A2A;
  --grey: #6B7280;
  --grey-light: #8B9098;
  --blue: #7CB9E8;
  --blue-dark: #5A9AC8;
  --red: #E63946;
  --green: #2ECC71;
  --amber: #F4A261;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 48px;
  width: auto;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--grey);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue);
}

.nav-btn {
  padding: 8px 20px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  color: var(--blue) !important;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background: rgba(124, 185, 232, 0.1);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--black);
  padding-top: 80px;
}

#globe-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Headline cards on globe */
.headline-cards {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.headline-card {
  position: absolute;
  background: rgba(42, 42, 42, 0.9);
  border: 1px solid rgba(107, 114, 128, 0.3);
  border-left: 3px solid var(--red);
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
  border-radius: 4px;
  opacity: 0;
  backdrop-filter: blur(4px);
  transition: opacity 0.5s ease, border-color 0.2s ease;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  font-family: 'JetBrains Mono', monospace;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.headline-card:hover {
  background: rgba(60, 60, 60, 0.95);
  border-color: var(--blue);
  opacity: 1 !important;
}

/* Loading indicator for live news */
.loading-news {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--blue);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid var(--blue);
  border-radius: 4px;
  animation: pulse 1.5s ease-in-out infinite;
}

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

/* Live badge */
.live-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(230, 57, 70, 0.2);
  border: 1px solid var(--red);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  z-index: 1001;
  z-index: 100;
}

.live-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: blink 1s ease-in-out infinite;
}

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

/* Hero Content - LEFT ALIGNED */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: left;
  max-width: 600px;
  padding: 0 24px 0 60px;
  pointer-events: auto;
}

.hero-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.title-line {
  display: block;
}

.title-line.accent {
  color: var(--blue);
}

.hero-subtitle {
  font-size: 16px;
  color: var(--grey-light);
  max-width: 400px;
  margin: 0 0 32px 0;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  justify-content: flex-start;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-family: 'JetBrains Mono', monospace;
}

.btn-primary {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
}

.btn-primary:hover {
  background: rgba(124, 185, 232, 0.1);
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}

/* ===== Comparison Section ===== */
.comparison-section {
  background: var(--black-light);
}

.comparison-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 48px;
}

.trad-label {
  font-size: 18px;
  font-weight: 400;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.vs {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.2);
}

.bs-label {
  font-size: 18px;
  font-weight: 800;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.comp-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comp-card {
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.comp-card.trad {
  background: rgba(42, 42, 42, 0.4);
  border: 1px solid var(--dark-grey);
}

.comp-card.trad h3 {
  color: var(--grey);
  font-size: 14px;
  margin-bottom: 4px;
  font-weight: 600;
}

.comp-card.trad p {
  color: #555;
  font-size: 12px;
  margin-bottom: 12px;
}

.comp-card.bs {
  background: rgba(124, 185, 232, 0.08);
  border: 1px solid rgba(124, 185, 232, 0.3);
}

.comp-card.bs h3 {
  color: var(--blue);
  font-size: 14px;
  margin-bottom: 4px;
  font-weight: 600;
}

.comp-card.bs p {
  color: rgba(245, 245, 245, 0.8);
  font-size: 12px;
  margin-bottom: 12px;
}

/* Visualization Elements */
.viz-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
}

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

.dot.grey {
  background: var(--grey);
  opacity: 0.5;
}

.dot.blue {
  background: var(--blue);
  box-shadow: 0 0 6px rgba(124, 185, 232, 0.6);
}

.viz-people {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.person {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.person.grey {
  background: var(--grey);
  opacity: 0.5;
}

.person.blue {
  background: var(--blue);
}

.more {
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
}

.viz-clock {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin: 0 auto;
  position: relative;
}

.viz-clock.slow {
  border: 2px solid var(--grey);
  opacity: 0.5;
}

.viz-clock.slow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 7px;
  background: var(--grey);
  transform-origin: bottom center;
  animation: spin-slow 8s linear infinite;
}

.viz-clock.fast {
  border: 2px solid var(--blue);
  box-shadow: 0 0 8px rgba(124, 185, 232, 0.3);
}

.viz-clock.fast::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 7px;
  background: var(--blue);
  transform-origin: bottom center;
  animation: spin-fast 2s linear infinite;
}

@keyframes spin-slow {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(360deg); }
}

@keyframes spin-fast {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(360deg); }
}

/* ===== Footer ===== */
.footer {
  background: var(--black);
  padding: 60px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.footer-logo-img {
  height: 56px;
  width: auto;
}

.footer-tagline {
  color: var(--grey);
  font-size: 13px;
  margin-bottom: 16px;
}

.copyright {
  font-size: 12px;
  color: var(--dark-grey);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  
  .comp-col {
    flex-direction: row;
  }
  
  .hero-content {
    padding-left: 24px;
  }
}

@media (max-width: 768px) {
  .hero-cta {
    flex-direction: column;
  }
  
  .comp-col {
    flex-direction: column;
  }
  
  .comparison-header {
    flex-direction: column;
    gap: 8px;
  }
  
  .trad-label, .bs-label {
    font-size: 14px;
  }
  
  .headline-card {
    display: none;
  }
  
  .hero-content {
    max-width: 100%;
  }
}
