:root{
  --bg:#0b1020;
  --bg2:#111833;
  --card:rgba(255,255,255,0.08);
  --card-border:rgba(255,255,255,0.14);
  --text:#eef3ff;
  --muted:#b7c1de;
  --accent:#7c5cff;
  --accent-2:#00d4ff;
  --ok:#21c77a;
  --warn:#ffb020;
  --danger:#ff5d73;
  --shadow:0 18px 50px rgba(0,0,0,0.35);
  --radius:22px;
  --radius-sm:14px;
  --max:1200px;
}

*{
  box-sizing:border-box;
}

html,
body{
  margin:0;
  padding:0;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(124,92,255,0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(0,212,255,0.16), transparent 26%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  min-height:100%;
}

a{
  color:inherit;
  text-decoration:none;
}

code{
  padding:2px 8px;
  border-radius:10px;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.1);
  font-size:.95em;
}

.container{
  width:min(calc(100% - 32px), var(--max));
  margin:0 auto;
}

.topbar{
  position:sticky;
  top:0;
  z-index:20;
  backdrop-filter:blur(14px);
  background:rgba(9,13,28,0.58);
  border-bottom:1px solid rgba(255,255,255,0.08);
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:72px;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  font-weight:800;
  letter-spacing:.2px;
}

.brand-badge{
  width:44px;
  height:44px;
  border-radius:14px;
  display:grid;
  place-items:center;
  font-size:18px;
  font-weight:900;
  color:#fff;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  box-shadow:0 10px 25px rgba(124,92,255,0.4);
}

.brand small{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-weight:600;
  margin-top:2px;
}

.nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.nav a{
  padding:10px 14px;
  border-radius:999px;
  color:var(--muted);
  transition:.2s ease;
}

.nav a:hover{
  background:rgba(255,255,255,0.08);
  color:var(--text);
}

.hero{
  padding:64px 0 28px;
}

.hero-grid{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:24px;
  align-items:stretch;
}

.panel{
  background:var(--card);
  border:1px solid var(--card-border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.hero-panel{
  padding:34px;
  position:relative;
  overflow:hidden;
}

.hero-panel::before{
  content:"";
  position:absolute;
  inset:auto -80px -80px auto;
  width:220px;
  height:220px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(124,92,255,.35), transparent 68%);
  pointer-events:none;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.10);
  color:#d8e2ff;
  font-size:13px;
  font-weight:700;
  margin-bottom:18px;
}

h1{
  margin:0 0 14px;
  font-size:clamp(34px, 5vw, 60px);
  line-height:1.02;
  letter-spacing:-1.6px;
}

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

.cta-row{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:26px;
}

.cta-row-reset{
  margin-top:0;
}

.btn{
  appearance:none;
  border:0;
  cursor:pointer;
  border-radius:16px;
  padding:14px 18px;
  font-size:15px;
  font-weight:800;
  transition:transform .16s ease, opacity .16s ease, background .16s ease;
}

.btn:hover{
  transform:translateY(-1px);
}

.btn:active{
  transform:translateY(0);
}

.btn-primary{
  color:#fff;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  box-shadow:0 12px 30px rgba(124,92,255,0.35);
}

.btn-secondary{
  color:var(--text);
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.12);
}

.hero-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-top:26px;
}

.stat{
  padding:16px;
  border-radius:18px;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.09);
}

.stat strong{
  display:block;
  font-size:24px;
  line-height:1.1;
  margin-bottom:6px;
}

.stat span{
  color:var(--muted);
  font-size:13px;
}

.preview{
  padding:24px;
  display:flex;
  flex-direction:column;
  gap:16px;
}

.preview-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.preview-title{
  font-size:18px;
  font-weight:800;
}

.status{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#dff7ea;
  background:rgba(33,199,122,0.12);
  border:1px solid rgba(33,199,122,0.24);
  padding:8px 12px;
  border-radius:999px;
  font-size:13px;
  font-weight:700;
}

.status-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--ok);
  box-shadow:0 0 0 6px rgba(33,199,122,0.15);
}

.camera-box{
  min-height:300px;
  border-radius:20px;
  border:1px dashed rgba(255,255,255,0.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    radial-gradient(circle at center, rgba(0,212,255,.08), transparent 40%);
  display:grid;
  place-items:center;
  text-align:center;
  padding:24px;
}

.camera-box strong{
  display:block;
  font-size:22px;
  margin-bottom:8px;
}

.camera-box p{
  margin:0;
  color:var(--muted);
  line-height:1.6;
}

.status-list{
  display:grid;
  gap:10px;
}

.status-item{
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding:12px 14px;
  border-radius:16px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.08);
}

.status-item span{
  color:var(--muted);
  font-size:14px;
}

.status-item strong{
  font-size:14px;
  text-align:right;
  word-break:break-word;
}

.section{
  padding:20px 0 8px;
}

.section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}

.section-head h2{
  margin:0;
  font-size:28px;
  letter-spacing:-0.5px;
}

.section-head p{
  margin:6px 0 0;
  color:var(--muted);
  max-width:760px;
  line-height:1.6;
}

.grid-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.feature-card{
  padding:22px;
}

.feature-icon{
  width:52px;
  height:52px;
  border-radius:16px;
  display:grid;
  place-items:center;
  font-size:24px;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.12);
  margin-bottom:16px;
}

.feature-card h3{
  margin:0 0 10px;
  font-size:20px;
}

.feature-card p{
  margin:0;
  color:var(--muted);
  line-height:1.65;
}

.workflow{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}

.step{
  padding:22px;
  position:relative;
}

.step-num{
  width:38px;
  height:38px;
  border-radius:12px;
  display:grid;
  place-items:center;
  font-weight:900;
  margin-bottom:14px;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
}

.step h3{
  margin:0 0 8px;
  font-size:18px;
}

.step p{
  margin:0;
  color:var(--muted);
  line-height:1.6;
  font-size:15px;
}

.cta-panel{
  margin:28px 0 54px;
  padding:28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}

.cta-panel h3{
  margin:0 0 8px;
  font-size:26px;
}

.cta-panel p{
  margin:0;
  color:var(--muted);
  line-height:1.6;
  max-width:700px;
}

.log-panel{
  padding:24px;
  margin:8px 0 54px;
}

.log-head{
  margin-bottom:14px;
}

.log-output{
  min-height:120px;
  padding:16px;
  border-radius:18px;
  background:rgba(0,0,0,0.24);
  border:1px solid rgba(255,255,255,0.08);
  color:#d9e5ff;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  font-size:13px;
  line-height:1.6;
  white-space:pre-wrap;
  word-break:break-word;
}

footer{
  padding:0 0 44px;
  color:var(--muted);
  font-size:14px;
}

.footer-line{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  border-top:1px solid rgba(255,255,255,0.08);
  padding-top:20px;
}

@media (max-width: 980px){
  .hero-grid,
  .grid-3,
  .workflow{
    grid-template-columns:1fr;
  }

  .hero-stats{
    grid-template-columns:1fr;
  }

  .hero{
    padding-top:32px;
  }

  .hero-panel,
  .preview{
    padding:22px;
  }

  h1{
    letter-spacing:-1px;
  }

  .status-item{
    flex-direction:column;
    align-items:flex-start;
  }

  .status-item strong{
    text-align:left;
  }
}

@media (max-width: 640px){
  .topbar-inner{
    min-height:64px;
  }

  .nav{
    display:none;
  }

  .btn{
    width:100%;
  }

  .cta-row{
    flex-direction:column;
  }
}