:root {
  --bg: #080b12;
  --panel: #10151f;
  --panel-soft: #151b27;
  --text: #f7f8fb;
  --muted: #9ba6b7;
  --line: rgba(255, 255, 255, 0.1);
  --lime: #c8ff5a;
  --violet: #8b7dff;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 75% 35%, rgba(91, 70, 200, 0.2), transparent 28rem),
    radial-gradient(circle at 15% 5%, rgba(200, 255, 90, 0.07), transparent 24rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }
a:focus-visible,
button:focus-visible { outline: 3px solid rgba(200, 255, 90, .72); outline-offset: 3px; }
button:disabled { cursor: wait; opacity: .7; }

main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

nav {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px 9px 9px 2px;
  color: #10130b;
  background: var(--lime);
  font-weight: 900;
}

.nav-link {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.nav-link:hover { color: var(--text); }

.hero {
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  gap: clamp(42px, 7vw, 100px);
  align-items: center;
  padding: 70px 0 60px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 28px;
  height: 1px;
  background: var(--lime);
}

h1 {
  margin: 0;
  font-size: clamp(48px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

h1 em {
  color: transparent;
  background: linear-gradient(100deg, var(--lime), #90ffd6 45%, #b0a6ff);
  background-clip: text;
  -webkit-background-clip: text;
  font-style: normal;
}

.intro {
  max-width: 560px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.intro-link {
  color: #dce8f7;
  text-decoration-color: rgba(200, 255, 90, .6);
  text-underline-offset: 4px;
}
.intro-link:hover { color: var(--lime); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-button,
.secondary-button,
.launch-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 21px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.primary-button {
  color: #0c1006;
  background: var(--lime);
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.primary-button:hover,
.secondary-button:hover,
.launch-button:hover { transform: translateY(-2px); }

.secondary-button:hover { background: rgba(255, 255, 255, 0.07); }

.privacy-note {
  margin: 20px 0 0;
  color: #778396;
  font-size: 12px;
}

.privacy-note span { color: #60d394; }
.privacy-note a {
  color: #b6c3d5;
  text-underline-offset: 3px;
}
.privacy-note a:hover { color: var(--lime); }

.demo-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  background: rgba(15, 20, 30, 0.92);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.38);
}

.demo-toolbar {
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.demo-toolbar {
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.demo-toolbar p {
  margin: 0;
  color: #8c98aa;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.window-controls { display: flex; gap: 6px; }
.window-controls span { width: 7px; height: 7px; border-radius: 50%; background: #394254; }

.live-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8e99aa;
  font-size: 11px;
}

.live-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #667184;
  box-shadow: none;
}

.live-status.is-checking i {
  background: #ffd166;
  box-shadow: 0 0 12px rgba(255, 209, 102, .65);
}

.live-status.is-ready i {
  background: #6fe0a2;
  box-shadow: 0 0 12px #6fe0a2;
}

.live-status.is-error i {
  background: #ff7f86;
  box-shadow: 0 0 12px rgba(255, 127, 134, .55);
}

.camera-stage {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #0b0f17;
}

.camera-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 65%, rgba(5, 8, 13, .52));
}

#camera-preview {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transform: scaleX(-1);
}

.camera-placeholder {
  max-width: 330px;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 32px;
  color: #c4ccda;
  text-align: center;
}

.camera-placeholder strong { font-size: 17px; }
.camera-placeholder span { color: #7f8a9d; font-size: 13px; line-height: 1.55; }

.camera-glyph {
  position: relative;
  width: 62px;
  height: 46px;
  margin-bottom: 8px;
  border: 1px solid rgba(200, 255, 90, .45);
  border-radius: 13px;
  background: rgba(200, 255, 90, .08);
}

.camera-glyph::after {
  content: "";
  position: absolute;
  top: 12px;
  right: -15px;
  border: 10px solid transparent;
  border-right: 0;
  border-left-color: rgba(200, 255, 90, .55);
}

.camera-glyph i {
  position: absolute;
  inset: 14px auto auto 24px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--lime);
  border-radius: 50%;
}

.local-badge {
  position: absolute;
  z-index: 2;
  left: 16px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  color: #c9d2e0;
  background: rgba(8, 11, 18, .75);
  backdrop-filter: blur(8px);
  font-size: 10px;
  font-weight: 700;
}

.local-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6fe0a2;
}

.checker-panel {
  display: grid;
  gap: 20px;
  padding: 24px;
  border-top: 1px solid var(--line);
}

.checker-kicker {
  margin: 0 0 8px;
  color: var(--lime);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.checker-heading h2 { margin: 0; font-size: 22px; }
.checker-heading > p:last-child {
  margin: 9px 0 0;
  color: #9aa5b7;
  font-size: 13px;
  line-height: 1.55;
}

.checker-heading > p.is-error { color: #ffabb0; }
.checker-heading > p.is-ready { color: #9de4bd; }

.camera-details {
  display: grid;
  grid-template-columns: 1.4fr 1fr .8fr;
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}

.camera-details div { min-width: 0; padding: 12px; background: var(--panel); }
.camera-details dt {
  margin-bottom: 5px;
  color: #748095;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.camera-details dd {
  overflow: hidden;
  margin: 0;
  color: #dce3ee;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checker-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.checker-actions .primary-button,
.checker-actions .secondary-button { width: 100%; }

.launch-button {
  grid-column: 1 / -1;
  color: #0b0f08;
  background: linear-gradient(100deg, var(--lime), #91ffd5);
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-strip article {
  display: flex;
  gap: 17px;
  padding: 30px 28px;
}

.feature-strip article + article { border-left: 1px solid var(--line); }
.feature-strip article > span { color: var(--lime); font: 700 11px/1.5 ui-monospace, monospace; }
.feature-strip h2 { margin: 0 0 7px; font-size: 14px; }
.feature-strip p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.safety-note {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) 1.3fr;
  gap: 56px;
  align-items: center;
  padding: 44px 28px;
  border-bottom: 1px solid var(--line);
}

.safety-note .eyebrow { margin-bottom: 10px; }
.safety-note h2 { margin: 0; font-size: clamp(22px, 3vw, 34px); }
.safety-note > p { margin: 0; color: #a5afbd; line-height: 1.75; }
.safety-note a { color: #d7e3f3; text-underline-offset: 3px; }
.safety-note a:hover { color: var(--lime); }

footer {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8893a5;
  font-size: 11px;
}

footer a { color: #aab4c2; text-decoration: none; }
footer a:hover { color: var(--lime); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 58px; }
  .hero-copy { min-width: 0; max-width: 680px; }
  .demo-card { max-width: 680px; width: 100%; }
}

@media (max-width: 620px) {
  main, footer { width: min(100% - 28px, 1180px); }
  nav { height: 68px; }
  .hero { gap: 42px; padding: 48px 0; }
  h1 { font-size: clamp(32px, 10vw, 44px); }
  .intro { font-size: 16px; }
  .actions { flex-direction: column; }
  .primary-button, .secondary-button { width: 100%; }
  .camera-stage, #camera-preview { min-height: 240px; height: 240px; }
  .checker-panel { padding: 20px; }
  .camera-details { grid-template-columns: 1fr; }
  .checker-actions { grid-template-columns: 1fr; }
  .launch-button { grid-column: auto; }
  .safety-note { grid-template-columns: 1fr; gap: 20px; padding: 36px 0; }
  .feature-strip { grid-template-columns: 1fr; }
  .feature-strip article + article { border-left: 0; border-top: 1px solid var(--line); }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 5px; }
  footer p { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .primary-button, .secondary-button, .launch-button { transition: none; }
}
