/* WakeCore landing — minimalist dark theme */
:root {
  --bg:        #0b0e1f;
  --bg-elev:   #161a36;
  --bg-input:  #0c1024;
  --border:    #2a3157;
  --border-2:  #3f4a82;
  --accent:    #7cf3d4;
  --accent2:   #ffd093;
  --accent3:   #a39bff;
  --good:      #6ddf7b;
  --bad:       #ff7e7e;
  --muted:     #7c87a8;
  --text:      #ecf0fb;
  --text-strong: #ffffff;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background:
    radial-gradient(1400px 700px at 18% -10%, rgba(124,243,212,0.07), transparent 60%),
    radial-gradient(1100px 600px at 110% 8%, rgba(163,155,255,0.08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, kbd { font-family: ui-monospace, "SF Mono", Consolas, monospace; }
.muted { color: var(--muted); font-size: 14px; }

/* ─── topbar ──────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  backdrop-filter: blur(12px);
  background: rgba(11,14,31,0.7);
  border-bottom: 1px solid var(--border);
}
.brand a {
  font-size: 22px; font-weight: 700; letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.topbar nav { display: flex; gap: 22px; }
.topbar nav a {
  color: var(--text); font-size: 14px; font-weight: 500;
  padding: 6px 10px; border-radius: 6px;
}
.topbar nav a:hover { background: var(--bg-elev); text-decoration: none; }

/* ─── main / hero ─────────────────────────────────────── */
main { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.hero {
  padding: 100px 0 60px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800; line-height: 1.1; margin: 0 0 26px;
  letter-spacing: -0.03em;
}
.grad {
  background: linear-gradient(135deg, var(--accent), var(--accent2), var(--accent3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead {
  color: var(--text); opacity: 0.85;
  max-width: 580px; margin: 0 auto 36px;
  font-size: 18px;
}
.cta-row {
  display: flex; flex-wrap: wrap; gap: 18px;
  justify-content: center; align-items: center;
  margin-bottom: 28px;
}
.install {
  display: inline-block;
  font-size: 15px;
  padding: 12px 18px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 9px; color: var(--accent);
  cursor: pointer;
  transition: border-color 120ms ease;
}
.install:hover { border-color: var(--accent); }
.badges { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.badges a {
  font-size: 13px; color: var(--muted);
  padding: 6px 12px; border-radius: 99px; background: var(--bg-elev);
  border: 1px solid var(--border);
}
.badges a:hover { color: var(--accent); border-color: var(--border-2); text-decoration: none; }

/* ─── generic section ────────────────────────────────── */
.section { padding: 70px 0 30px; border-top: 1px solid var(--border); }
.section h2 {
  font-size: 32px; font-weight: 700; letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.section-sub {
  color: var(--muted); margin: 0 0 38px; max-width: 700px;
}

/* ─── buttons ────────────────────────────────────────── */
.btn {
  display: inline-block; padding: 11px 20px;
  border-radius: 9px; font-weight: 600; font-size: 14px;
  border: 0; cursor: pointer;
  font-family: inherit;
  transition: transform 80ms ease, opacity 120ms ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn.primary { background: var(--accent); color: #08151c; }
.btn.big { padding: 14px 28px; font-size: 16px; width: 100%; max-width: 320px; }
.btn.stop { background: var(--bad); color: white; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ─── demo panels ────────────────────────────────────── */
.demo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
@media (max-width: 720px) { .demo { grid-template-columns: 1fr; } }
.demo-panel {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 20px;
}
.demo-panel.full { grid-column: 1 / -1; }
.demo-panel h3 {
  margin: 0 0 14px;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); font-weight: 700;
}
.hotword-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.hotword-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 7px; cursor: pointer;
  border: 1px solid transparent;
}
.hotword-item:hover { background: rgba(255,255,255,0.05); }
.hotword-item input { accent-color: var(--accent); transform: scale(1.1); }
.hotword-item .lbl { font-weight: 500; }
.hotword-item .desc { color: var(--muted); font-size: 11px; margin-left: auto; }

.row { display: flex; align-items: center; gap: 14px; }
input[type="range"] { accent-color: var(--accent); flex: 1; }
.sens-val {
  font-family: ui-monospace, monospace;
  color: var(--accent); font-weight: 700;
  font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right;
}
.hint { color: var(--muted); font-size: 11px; margin: 8px 0 0; }

.status {
  font-size: 12px; color: var(--muted);
  margin-top: 14px; min-height: 18px;
}
.status.err { color: var(--bad); }
.status.ok  { color: var(--good); }

.meter {
  margin-top: 14px;
  height: 10px; background: var(--bg-input);
  border-radius: 6px; overflow: hidden; border: 1px solid var(--border);
}
.meter-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--good), var(--accent2), var(--bad));
  transition: width 80ms linear;
}

.log {
  max-height: 280px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 6px;
}
.log .entry {
  display: grid; grid-template-columns: 100px 1fr;
  gap: 12px; padding: 10px 14px;
  border-radius: 8px; background: var(--bg-input);
  font-family: ui-monospace, monospace; font-size: 13px;
  border-left: 3px solid var(--accent);
  transition: background 0.5s, transform 0.3s;
}
.log .entry.flash {
  background: var(--accent); color: #08151c;
  border-left-color: var(--accent2);
  transform: translateX(2px);
}
.log .entry .t { color: var(--muted); }
.log .entry.flash .t { color: #08151c; opacity: 0.8; }
.log .entry b { color: var(--accent); }
.log .entry.flash b { color: #08151c; }
.log .empty {
  color: var(--muted); padding: 12px;
  font-style: italic; font-size: 13px; text-align: center;
}

.badge {
  display: inline-block; padding: 2px 9px; border-radius: 99px;
  font-size: 11px; font-weight: 700;
  background: var(--bg-input); border: 1px solid var(--border);
  color: var(--text);
  font-variant-numeric: tabular-nums; min-width: 28px; text-align: center;
}

/* ── live generator panel ────────────────────────────────────────── */
.live-gen { border-left: 3px solid var(--accent3); }
.live-gen h3 { color: var(--accent3); }
.live-help {
  color: var(--muted); font-size: 13px; line-height: 1.55;
  margin: 0 0 14px;
}
#liveForm {
  display: flex; gap: 10px; margin: 0 0 12px;
}
#liveForm input {
  flex: 1; min-width: 0;
  background: var(--bg-input); color: var(--text);
  border: 1.5px solid var(--border); border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px; font-family: inherit;
  transition: border-color 120ms ease;
}
#liveForm input::placeholder { color: var(--muted); }
#liveForm input:focus {
  border-color: var(--accent3); outline: none;
}
#liveForm button {
  flex-shrink: 0; padding: 12px 22px;
}
.live-result {
  font-size: 13px; line-height: 1.5;
  padding: 12px 14px; border-radius: 8px;
  background: var(--bg-input); border: 1px solid var(--border);
  min-height: 22px;
  color: var(--muted);
}
.live-result.ok  { border-color: var(--good); color: var(--text); }
.live-result.err { border-color: var(--bad);  color: var(--bad); }
.live-result b { color: var(--accent3); }
@media (max-width: 540px) {
  #liveForm { flex-direction: column; }
  #liveForm button { width: 100%; }
}

/* ─── cards / grid ──────────────────────────────────── */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
.card {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px;
}
.card h3 { margin: 0 0 10px; font-size: 18px; }
.card p  { margin: 0 0 10px; }
.card code {
  background: var(--bg-input); border: 1px solid var(--border);
  padding: 1px 6px; border-radius: 5px; font-size: 13px;
}

/* ─── footer ────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  margin-top: 60px; padding: 30px 22px;
  text-align: center; color: var(--muted); font-size: 13px;
}
