/* =======================
FILE: styles.css
v4: Adds prototype screen + prototype device mock
(Works with index.html + features.html + pricing.html)
======================= */

:root{
  --bg:#0f1115;
  --surface:#151924;
  --surface2:#10131b;
  --text:#f1f4ff;
  --muted:#b4bdd8;
  --faint:#7c86aa;
  --line:rgba(255,255,255,.10);

  --accent:#6d5cff;
  --accent2:#2bd3c6;

  --good:#47ff88;
  --warn:#ffca5c;

  --shadow:0 16px 34px rgba(0,0,0,.35);
  --r:14px;
  --r2:18px;

  --max:1200px;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:var(--sans);
  background:var(--bg);
  color:var(--text);
}

a{ color:inherit; text-decoration:none; }
.wrap{ max-width:var(--max); margin:0 auto; padding:0 24px; }

/* strict rhythm */
.section{ padding:44px 0; }
.sectionSpacer{ height:14px; }

/* Topbar */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:#0c0e12;
  border-bottom:1px solid var(--line);
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 0;
}

/* Brand */
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:240px;
}
.logo{
  width:30px; height:30px; border-radius:8px;
  background:linear-gradient(135deg, var(--accent), var(--accent2));
  border:1px solid rgba(255,255,255,.14);
}
.brandText{ display:flex; flex-direction:column; line-height:1.1; }
.brandName{ font-weight:900; letter-spacing:.2px; font-size:15px; }
.brandTag{ font-size:12px; color:var(--muted); margin-top:2px; font-weight:650; }

/* Nav */
.nav{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  font-weight:650;
  font-size:14px;
  white-space:nowrap;
}
.nav a{
  padding:10px 10px;
  border-radius:10px;
}
.nav a:hover{
  background:rgba(255,255,255,.04);
  color:var(--text);
}
.isCurrent{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
}

/* CTAs */
.navCta{ display:flex; align-items:center; gap:10px; }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:11px 14px;
  border-radius:12px;
  border:1px solid var(--line);
  background:transparent;
  color:var(--text);
  font-weight:800;
  letter-spacing:.2px;
  cursor:pointer;
  transition:background .12s ease, transform .12s ease, border-color .12s ease;
}
.btn:hover{
  background:rgba(255,255,255,.05);
  transform:translateY(-1px);
  border-color:rgba(255,255,255,.16);
}
.btn.primary{
  border-color:transparent;
  background:linear-gradient(135deg, var(--accent), var(--accent2));
  color:#0b0e12;
}
.btn.ghost{ background:rgba(255,255,255,.02); }

/* Typography */
h1{
  margin:10px 0 10px;
  font-size:40px;
  line-height:1.08;
  letter-spacing:-.7px;
}
h2{ margin:0; font-size:28px; letter-spacing:-.3px; }
h3{ margin:0 0 10px; font-size:16px; letter-spacing:-.1px; }
p{ margin:0; }
.lead{ color:var(--muted); font-size:16px; line-height:1.65; max-width:78ch; }
.eyebrow{ color:var(--muted); font-weight:800; font-size:13px; letter-spacing:.2px; }
.mutedText{ color:var(--muted); line-height:1.6; }

/* Even grid utilities */
.grid1{ display:grid; grid-template-columns: 1fr; gap:12px; }
.grid2{ display:grid; grid-template-columns: repeat(2, 1fr); gap:14px; }
.grid3{ display:grid; grid-template-columns: repeat(3, 1fr); gap:14px; }

.row{ display:flex; gap:10px; flex-wrap:wrap; margin-top:14px; }

/* Blocks */
.block{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--r2);
  box-shadow:var(--shadow);
  padding:16px;
}

/* Hero */
.hero{ padding:44px 0 18px; }
.kpiGrid{ margin-top:16px; }

/* Mini blocks force evenness */
.miniBlock{
  background:rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.10);
  border-radius:var(--r);
  padding:12px;
  min-height:74px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.miniBlock b{ font-size:14px; }
.miniBlock span{ margin-top:6px; color:var(--muted); font-size:13px; }

/* Section head */
.sectionHead{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:18px;
  margin-bottom:14px;
}
.headRow{ align-items:center; }
.copyTools{ display:flex; align-items:center; gap:10px; }
.copyMsg{ color:var(--muted); font-size:13px; }

/* Lists */
.list{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:8px;
}
.list li{
  color:var(--muted);
  font-size:13px;
  padding-left:16px;
  position:relative;
}
.list li::before{
  content:"•";
  position:absolute;
  left:0; top:0;
  color:rgba(241,244,255,.72);
}

/* Dashboard blocks */
.dashHeader{ display:grid; gap:8px; margin-bottom:12px; }
.dashTitle{ font-weight:950; letter-spacing:-.2px; }
.dashMeta{ color:var(--muted); font-size:13px; }
.dashBadges{ display:flex; gap:8px; flex-wrap:wrap; }

.badge{
  font-family:var(--mono);
  font-size:11px;
  border:1px solid rgba(255,255,255,.14);
  color:rgba(241,244,255,.9);
  border-radius:999px;
  padding:4px 8px;
  background:rgba(255,255,255,.03);
}

.stat{
  background:rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.10);
  border-radius:var(--r);
  padding:12px;
  min-height:96px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.stat .k{ color:var(--muted); font-size:12px; font-weight:850; }
.stat .v{ margin-top:8px; font-family:var(--mono); font-weight:950; font-size:16px; }
.stat .v span{ color:rgba(241,244,255,.72); font-weight:850; }
.stat .v em{ font-style:normal; color:var(--warn); font-weight:950; }
.stat .t{ margin-top:6px; color:var(--muted); font-size:12px; }

.dashFooter{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top:12px;
}
.liveRow{ display:flex; align-items:center; gap:10px; color:var(--muted); font-size:13px; }
.liveDot{
  width:8px; height:8px; border-radius:50%;
  background:var(--good);
  box-shadow:0 0 0 3px rgba(71,255,136,.12);
}
.chipRow{ display:flex; gap:8px; flex-wrap:wrap; }
.chip{
  font-size:12px;
  font-weight:900;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.03);
  color:rgba(241,244,255,.88);
  cursor:pointer;
}
.chip:hover{ background:rgba(255,255,255,.06); }

.note{
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,.10);
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
}

/* Prototype “screen” */
.protoScreen{
  background:rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.10);
  border-radius:var(--r);
  padding:12px;
  display:grid;
  gap:10px;
}
.protoTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.protoFrame{
  border:1px solid rgba(255,255,255,.10);
  border-radius:var(--r);
  background:rgba(255,255,255,.02);
  height:210px;
  position:relative;
  overflow:hidden;
}
.protoFrame::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(135deg, rgba(109,92,255,.20), transparent 60%),
    linear-gradient(225deg, rgba(43,211,198,.14), transparent 55%);
}
.protoOverlay{
  position:absolute;
  inset:12px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.protoPill{
  align-self:flex-start;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.20);
  color:rgba(241,244,255,.90);
  font-size:12px;
  font-weight:850;
}
.protoBottom{ display:flex; gap:8px; flex-wrap:wrap; }

/* Timeline */
.timeline{
  display:grid;
  gap:10px;
}
.timeRow{
  background:rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.10);
  border-radius:var(--r);
  padding:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:52px;
}
.timeRow b{ font-size:13px; }
.timeRow span{ color:var(--muted); font-size:13px; text-align:right; }

/* Prototype device mock */
.protoDevice{
  display:grid;
  grid-template-columns: 220px 1fr;
  gap:14px;
  align-items:start;
}
.deviceBody{
  width:220px;
  height:220px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.18);
  position:relative;
  box-shadow: var(--shadow);
}
.deviceBody::before{
  content:"";
  position:absolute;
  inset:10px;
  border-radius:18px;
  border:1px dashed rgba(255,255,255,.10);
}
.deviceCam{
  width:54px; height:54px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
  position:absolute;
  top:18px; left:18px;
}
.deviceCam::after{
  content:"";
  width:20px; height:20px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.25);
  position:absolute;
  top:50%; left:50%;
  transform:translate(-50%,-50%);
}
.deviceLed{
  width:12px; height:12px;
  border-radius:50%;
  background:rgba(71,255,136,.85);
  box-shadow:0 0 0 4px rgba(71,255,136,.12);
  position:absolute;
  top:24px; right:24px;
}
.deviceLabel{
  position:absolute;
  left:18px; right:18px; bottom:18px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.20);
  font-weight:900;
  text-align:center;
}
.deviceCallouts{ display:grid; gap:12px; }

/* Features cards */
.feat{
  background:rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.10);
  border-radius:var(--r);
  padding:12px;
  min-height:78px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.feat b{ display:block; margin-bottom:6px; font-size:14px; }
.feat span{ display:block; color:var(--muted); font-size:13px; line-height:1.45; }

/* Copy block */
.featureText{
  margin:14px 0 0;
  padding:14px;
  border-radius:var(--r2);
  border:1px solid var(--line);
  background:var(--surface2);
  color:rgba(241,244,255,.92);
  overflow:auto;
  font-family:var(--mono);
  font-size:12.5px;
  line-height:1.6;
  white-space:pre-wrap;
}

/* Forms */
.form{
  display:flex;
  flex-direction:column;
  gap:10px;
}
input{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.18);
  color:var(--text);
  outline:none;
}
input::placeholder{ color:rgba(180,189,216,.7); }
.formMsg{ color:var(--muted); font-size:13px; min-height:18px; }
.fine{ color:var(--faint); font-size:13px; margin-top:4px; }
.sr{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); border:0;
}

/* Footer grid */
.footer{
  border-top:1px solid var(--line);
  padding:26px 0 44px;
  margin-top:10px;
  background:#0c0e12;
}
.footerGrid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
}
.footerBlock{ min-height:170px; }
.footerBrand{ display:flex; gap:12px; align-items:center; margin-bottom:10px; }
.footerLinks a{ color:var(--muted); padding:6px 0; }
.footerLinks a:hover{ color:var(--text); }

/* Minimal responsive */
@media (max-width: 1020px){
  .grid2{ grid-template-columns: 1fr; }
  .grid3{ grid-template-columns: 1fr; }
  .footerGrid{ grid-template-columns: 1fr 1fr; }
  .nav{ display:none; }
  .protoDevice{ grid-template-columns: 1fr; }
  .deviceBody{ width:100%; max-width:320px; }
}
