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

:root {
  --bg: #0d0e11;
  --surface: #161820;
  --surface2: #1e2028;
  --accent: #f59e0b;
  --accent-dim: rgba(245, 158, 11, 0.12);
  --text: #e8e9ed;
  --text-muted: #8b8fa3;
  --border: rgba(255,255,255,0.07);
  --danger: #ef4444;
  --success: #22c55e;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; font-weight: 700; }

/* === NAV === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 60px;
  display: flex;
  align-items: center;
  background: rgba(13, 14, 17, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.5px;
  color: var(--text);
}
.nav-tag {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* === SECTION LABEL === */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 60px;
  padding: 120px 40px 80px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-content { position: relative; }
.hero-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: inline-block;
}
.hero-headline {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -2px;
  margin-bottom: 28px;
  color: var(--text);
}
.hero-headline em {
  font-style: normal;
  color: var(--accent);
}
.hero-lede {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* === CAMERA WIDGET === */
.hero-visual { position: relative; }
.cam-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.cam-widget::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 20px 20px 0 0;
}
.cam-lens-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
  background: var(--surface2);
}
.cam-lens {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #3a3a4a, #0a0b10);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.8);
}
.cam-hud {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.6);
  border-radius: 100px;
  padding: 4px 10px;
}
.hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}
.hud-dot.live { background: var(--success); box-shadow: 0 0 6px var(--success); }
.hud-text {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.cam-info { text-align: center; margin-bottom: 20px; }
.cam-name {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.cam-meta {
  font-size: 12px;
  color: var(--text-muted);
}
.cam-alerts { display: flex; flex-direction: column; gap: 8px; }
.alert-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--surface2);
  border-radius: 8px;
  padding: 8px 12px;
}
.alert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}
.alert-dot.safe { background: var(--success); }
.alert-dot.warm { background: var(--accent); }

/* === CAPABILITIES === */
.capabilities {
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.capabilities .section-headline {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: var(--text);
  max-width: 640px;
  margin-bottom: 56px;
}
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.cap-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.2s;
}
.cap-card:hover { border-color: rgba(245, 158, 11, 0.2); }
.cap-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}
.cap-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.cap-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* === WHAT MATTERS === */
.whatmatters {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 40px;
}
.wm-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.wm-headline {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 20px;
}
.wm-body {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
}
.wm-facts { display: flex; flex-direction: column; gap: 28px; }
.fact {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
}
.fact-num {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
}
.fact-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* === VISION === */
.vision { padding: 120px 40px; }
.vision-inner { max-width: 1200px; margin: 0 auto; }
.vision-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.vision-statement {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: var(--text);
  max-width: 800px;
  margin-bottom: 40px;
}
.vision-body {
  max-width: 680px;
}
.vision-body p {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 40px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  display: block;
  margin-bottom: 8px;
}
.footer-desc {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 400px;
}
.footer-meta span {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 100px; }
  .hero-visual { display: none; }
  .cap-grid { grid-template-columns: 1fr; }
  .wm-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { flex-direction: column; gap: 24px; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero { padding: 80px 20px 60px; }
  .capabilities, .whatmatters, .vision { padding: 60px 20px; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { display: none; }
}