/* === TOKENS === */
:root {
  --bg: #080D16;
  --bg2: #0D1420;
  --surface: #111B27;
  --border: rgba(255,255,255,0.06);
  --fg: #E8EDF3;
  --fg2: #8A99AA;
  --fg3: #4A5568;
  --cyan: #00D9FF;
  --cyan-dim: rgba(0,217,255,0.12);
  --red: #FF6B6B;
  --red-dim: rgba(255,107,107,0.12);
  --amber: #F59E0B;
  --green: #10B981;
}

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

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(0,217,255,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 30% 80%, rgba(0,217,255,0.03) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  max-width: 680px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Lens animation */
.lens-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lens-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0,217,255,0.2);
  animation: lens-pulse 3s ease-in-out infinite;
}
.lens-ring-1 { width: 80px; height: 80px; animation-delay: 0s; }
.lens-ring-2 { width: 100px; height: 100px; animation-delay: 0.4s; border-color: rgba(0,217,255,0.1); }
.lens-ring-3 { width: 120px; height: 120px; animation-delay: 0.8s; border-color: rgba(0,217,255,0.05); }
.lens-core { position: relative; z-index: 1; }
@keyframes lens-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.6; }
}

.hero-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(52px, 8vw, 88px);
  font-weight: 700;
  letter-spacing: -3px;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 16px;
}
.hero-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 32px;
  letter-spacing: -0.5px;
}
.hero-desc {
  font-size: 17px;
  color: var(--fg2);
  max-width: 520px;
  margin-bottom: 48px;
  line-height: 1.7;
}

/* Code window */
.code-window {
  width: 100%;
  max-width: 540px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,217,255,0.08);
}
.code-window-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #FF5F57; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #28C840; }
.code-window-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--fg3);
  margin-left: 8px;
  letter-spacing: 0.05em;
}
.code-window-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.alert-line { display: flex; align-items: center; gap: 12px; }
.alert-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}
.badge-high { background: var(--red-dim); color: var(--red); border: 1px solid rgba(255,107,107,0.2); }
.badge-med { background: rgba(245,158,11,0.12); color: var(--amber); border: 1px solid rgba(245,158,11,0.2); }
.badge-low { background: rgba(16,185,129,0.10); color: var(--green); border: 1px solid rgba(16,185,129,0.15); }
.alert-msg { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--fg2); }
.code-highlight { color: var(--fg); }

/* === SECTION SHARED === */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0.7;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 16px;
}
section .section-title em { font-style: normal; color: var(--cyan); }

/* === HOW === */
.how { padding: 100px 24px; background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.how-inner { max-width: 800px; margin: 0 auto; }
.steps { display: flex; align-items: flex-start; gap: 0; margin-top: 56px; }
.step { flex: 1; padding: 0 32px; }
.step:first-child { padding-left: 0; }
.step:last-child { padding-right: 0; }
.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  opacity: 0.5;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.step h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
}
.step p { font-size: 14px; color: var(--fg2); line-height: 1.6; }
.step-divider { width: 1px; height: 80px; background: var(--border); flex-shrink: 0; margin-top: 4px; }

/* === FEATURES === */
.features { padding: 100px 24px; background: var(--bg); }
.features-inner { max-width: 900px; margin: 0 auto; }
.features-desc { font-size: 16px; color: var(--fg2); margin-bottom: 56px; max-width: 500px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.feature-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: rgba(0,217,255,0.2); }
.feature-icon { margin-bottom: 20px; }
.feature-card h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
}
.feature-card p { font-size: 14px; color: var(--fg2); line-height: 1.65; }

/* === WATCHING === */
.watching { padding: 100px 24px; background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.watching-inner { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.watching-text .section-title { margin-bottom: 20px; }
.watching-text p { font-size: 15px; color: var(--fg2); line-height: 1.75; margin-bottom: 16px; }

/* Orbit visual */
.orbit { position: relative; width: 240px; height: 240px; margin: 0 auto; display: flex; align-items: center; justify-content: center; }
.orbit-ring {
  position: absolute;
  border: 1px solid rgba(0,217,255,0.12);
  border-radius: 50%;
  width: 160px;
  height: 160px;
  animation: orbit-spin 12s linear infinite;
}
.orbit-center { position: relative; z-index: 1; }
.orbit-dot { position: absolute; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.orbit-dot-1 { top: 0; left: 50%; transform: translateX(-50%); animation: orbit-bob 4s ease-in-out infinite; }
.orbit-dot-2 { bottom: 10px; left: 5px; animation: orbit-bob 4s ease-in-out infinite 1s; }
.orbit-dot-3 { bottom: 10px; right: 5px; animation: orbit-bob 4s ease-in-out infinite 2s; }
@keyframes orbit-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes orbit-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* === CLOSING === */
.closing { padding: 120px 24px; background: var(--bg); text-align: center; position: relative; overflow: hidden; }
.closing::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(0,217,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.closing-inner { max-width: 560px; margin: 0 auto; position: relative; }
.closing h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -2px;
  color: var(--fg);
  margin-bottom: 20px;
  line-height: 1.1;
}
.closing p { font-size: 17px; color: var(--fg2); line-height: 1.7; margin-bottom: 32px; }
.closing-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 40px;
  font-size: 13px;
  color: var(--fg3);
}

/* === FOOTER === */
.footer { padding: 40px 24px; border-top: 1px solid var(--border); }
.footer-inner { max-width: 900px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.footer-mark { display: flex; align-items: center; gap: 8px; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--fg3); }
.footer-tagline { font-size: 12px; color: var(--fg3); }

/* === RESPONSIVE === */
@media (max-width: 640px) {
  .features-desc { margin-bottom: 32px; }
  .feature-grid { grid-template-columns: 1fr; }
  .watching-inner { grid-template-columns: 1fr; gap: 48px; }
  .watching-visual { display: none; }
  .steps { flex-direction: column; gap: 40px; }
  .step { padding: 0; }
  .step-divider { display: none; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}