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

:root {
  --bg: #090910;
  --bg-2: #0e0e1a;
  --bg-card: #12121f;
  --orange: #ff7a2f;
  --orange-dim: rgba(255, 122, 47, 0.12);
  --blue: #1a8fff;
  --blue-dim: rgba(26, 143, 255, 0.1);
  --text: #f0f0f8;
  --text-muted: #7a7a96;
  --text-dim: #4a4a66;
  --border: rgba(255,255,255,0.07);
  --radius: 14px;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

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

/* === HEADER === */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(9, 9, 16, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.3px;
  text-decoration: none;
}
.header-nav {
  display: flex;
  gap: 32px;
}
.header-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--text); }

/* === HERO === */
.hero {
  position: relative;
  padding: 160px 40px 100px;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,122,47,0.18) 0%, transparent 70%);
  top: -100px; right: -50px;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(26,143,255,0.12) 0%, transparent 70%);
  bottom: 0; left: 20%;
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 80%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-dim);
  border: 1px solid rgba(255,122,47,0.2);
  border-radius: 100px;
  padding: 6px 14px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  width: fit-content;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
h1 {
  font-family: var(--font-head);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--text);
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 480px;
}
/* Hero Visual */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.phone-frame {
  position: relative;
  width: 280px;
  background: #181828;
  border-radius: 40px;
  padding: 14px;
  border: 1.5px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 60px rgba(255,122,47,0.15), 0 40px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
}
.phone-notch {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 28px;
  background: #181828;
  border-radius: 0 0 20px 20px;
  z-index: 2;
}
.screen {
  background: #0a0a14;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 9/19;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detection-overlay {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #0d1226 0%, #111830 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.detection-box {
  position: absolute;
  top: 35%; left: 10%; right: 10%;
  border: 2px solid var(--orange);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 122, 47, 0.08);
  animation: boxGlow 2s ease-in-out infinite alternate;
}
@keyframes boxGlow {
  from { box-shadow: 0 0 0px rgba(255,122,47,0.4); }
  to { box-shadow: 0 0 20px rgba(255,122,47,0.3), inset 0 0 15px rgba(255,122,47,0.05); }
}
.detection-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  color: var(--orange);
}
.detection-icon { color: var(--orange); }
.confidence {
  font-family: var(--font-head);
  font-size: 9px;
  color: var(--orange);
  opacity: 0.7;
  margin-top: 2px;
  padding-left: 18px;
}
.detection-line {
  position: absolute;
  border: 1px solid rgba(255,122,47,0.15);
}
.detection-line-1 {
  top: 35%; bottom: 55%;
  left: 10%; width: 1px;
}
.detection-line-2 {
  top: 45%; bottom: 45%;
  left: 90%; width: 1px;
}
.camera-ui {
  position: absolute;
  bottom: 16px; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 14px;
  font-family: var(--font-head);
  font-size: 9px;
  color: rgba(255,255,255,0.4);
}
.ui-tag {
  background: rgba(255,122,47,0.15);
  color: var(--orange);
  border-radius: 4px;
  padding: 2px 6px;
  font-weight: 700;
}
.visual-label {
  font-family: var(--font-head);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
/* Hero Stats */
.hero-stats {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 60px auto 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.stat {
  flex: 1;
  padding: 28px 36px;
  text-align: center;
}
.stat-value {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* === HOW === */
.how {
  padding: 120px 40px;
  background: var(--bg-2);
}
.section-header {
  max-width: 1200px;
  margin: 0 auto 72px;
}
.section-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text);
  max-width: 560px;
}
.how-steps {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.step {
  padding: 40px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s;
}
.step:hover { border-color: rgba(255,122,47,0.25); }
.step-num {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 1px;
  margin-bottom: 20px;
  opacity: 0.7;
}
.step h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}
.step p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}
.how-annotation {
  max-width: 1200px;
  margin: 40px auto 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  background: var(--blue-dim);
  border: 1px solid rgba(26,143,255,0.15);
  border-radius: 10px;
  font-size: 13px;
  color: rgba(240,240,248,0.6);
}

/* === FEATURES === */
.features {
  padding: 120px 40px;
  background: var(--bg);
}
.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s;
}
.feature-card:hover {
  border-color: rgba(255,122,47,0.2);
  transform: translateY(-2px);
}
.feature-icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-dim);
  border: 1px solid rgba(255,122,47,0.15);
  border-radius: 12px;
  color: var(--orange);
  margin-bottom: 20px;
}
.feature-card h3 {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* === SIGNAL === */
.signal {
  position: relative;
  padding: 120px 40px;
  background: var(--bg-2);
  overflow: hidden;
}
.signal-bg { position: absolute; inset: 0; z-index: 0; }
.signal-orb {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,122,47,0.06) 0%, transparent 65%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(60px);
}
.signal-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.signal-icon {
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
}
.signal-content h2 {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 28px;
  line-height: 1.1;
}
.signal-content p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* === CLOSING === */
.closing {
  padding: 140px 40px 120px;
  background: var(--bg);
}
.closing-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.closing h2 {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 700;
  letter-spacing: -1.5px;
  color: var(--text);
  margin-bottom: 28px;
  line-height: 1.1;
}
.closing p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 56px;
}
.closing-stat {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.c-stat-num {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: -1px;
}
.c-stat-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* === FOOTER === */
.site-footer {
  padding: 48px 40px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .how-steps { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { flex-direction: column; }
  .stat-divider { width: 80%; height: 1px; }
  .site-header { padding: 0 20px; }
  .hero, .how, .features, .signal, .closing { padding: 80px 20px; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .header-nav { display: none; }
  h1 { font-size: 40px; letter-spacing: -1px; }
}