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

:root {
  --bg: #07080f;
  --bg-card: #0d0f1a;
  --violet: #7c3aed;
  --violet-bright: #8b5cf6;
  --violet-dim: #4c1d95;
  --violet-glow: rgba(124, 58, 237, 0.15);
  --violet-glow-strong: rgba(124, 58, 237, 0.35);
  --text: #e8e4f0;
  --text-muted: #7a7891;
  --text-dim: #4a4863;
  --border: rgba(139, 92, 246, 0.12);
  --border-bright: rgba(139, 92, 246, 0.25);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Figtree', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--violet-dim); border-radius: 2px; }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 3rem;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 8, 15, 0.85);
  backdrop-filter: blur(20px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.nav-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 3rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 80%;
  height: 120%;
  background: radial-gradient(ellipse at center, var(--violet-glow) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet-bright);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.hero-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 420px;
  font-weight: 400;
}

/* Hero Visual — Monitoring Terminal */
.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 480px;
  margin: 0 auto;
}

.monitor-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.monitor-ring-1 {
  width: 100%;
  height: 100%;
  border-color: var(--border);
  animation: ring-pulse 4s ease-in-out infinite;
}

.monitor-ring-2 {
  width: 72%;
  height: 72%;
  border-color: var(--border-bright);
  animation: ring-pulse 4s ease-in-out infinite 0.5s;
}

.monitor-ring-3 {
  width: 44%;
  height: 44%;
  border-color: rgba(139, 92, 246, 0.4);
  animation: ring-pulse 4s ease-in-out infinite 1s;
}

@keyframes ring-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.monitor-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20%;
  height: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.monitor-core-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 30px var(--violet-glow-strong), 0 0 60px rgba(124, 58, 237, 0.2);
}

.pulse-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet-bright);
  animation: dot-expand 3s ease-out infinite;
}

.pulse-dot-2 { animation-delay: 1s; }
.pulse-dot-3 { animation-delay: 2s; }

@keyframes dot-expand {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(12); opacity: 0; }
}

/* Source streams */
.monitor-streams {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stream {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stream-label {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  width: 56px;
  font-family: 'Syne', sans-serif;
}

.stream-bar {
  height: 2px;
  background: linear-gradient(90deg, var(--violet) 0%, var(--violet-dim) 50%, transparent 100%);
  flex: 1;
  border-radius: 1px;
  position: relative;
}

.stream-bar::after {
  content: '';
  position: absolute;
  right: 0;
  top: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet-bright);
  animation: stream-blink 2s ease-in-out infinite;
}

.stream-2 .stream-bar::after { animation-delay: 0.5s; }
.stream-3 .stream-bar::after { animation-delay: 1s; }
.stream-4 .stream-bar::after { animation-delay: 1.5s; }

@keyframes stream-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.monitor-status {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: status-blink 2s ease-in-out infinite;
}

@keyframes status-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.status-text {
  font-size: 0.6rem;
  color: var(--text-dim);
  font-family: 'Syne', sans-serif;
  letter-spacing: 0.05em;
}

/* ===== MANIFESTO ===== */
.manifesto {
  padding: 8rem 3rem;
  background: linear-gradient(180deg, var(--bg) 0%, #0a0b15 100%);
  position: relative;
}

.manifesto::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet-dim), transparent);
}

.manifesto-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.manifesto-quote {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  font-style: normal;
}

.manifesto-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== FEATURES ===== */
.features {
  padding: 6rem 3rem 8rem;
  background: #0a0b15;
}

.features-header {
  max-width: 1280px;
  margin: 0 auto 4rem;
}

.features-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.features-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 2.25rem;
  transition: border-color 0.3s ease;
}

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

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--violet-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--violet-bright);
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ===== HOW ===== */
.how {
  padding: 8rem 3rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.how-header {
  max-width: 1280px;
  margin: 0 auto 4rem;
}

.how-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.how-steps {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.how-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.how-step:last-child {
  border-bottom: none;
}

.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--violet-bright);
  padding-top: 0.25rem;
}

.step-content h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.step-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 480px;
}

/* ===== VISION ===== */
.vision {
  padding: 8rem 3rem;
  background: #0a0b15;
  border-top: 1px solid var(--border);
}

.vision-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.vision-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet-bright);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.vision-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.vision-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ===== FOOTER ===== */
.footer {
  padding: 3rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  max-width: 280px;
}

.footer-meta p {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-style: italic;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav { padding: 1.25rem 1.5rem; }
  
  .hero {
    padding: 6rem 1.5rem 4rem;
    min-height: auto;
  }

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

  .hero-visual {
    max-width: 320px;
  }

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

  .how-step {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .manifesto, .features, .how, .vision {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .footer-desc {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 2.5rem;
  }
}
