/* Pixel Bianco — shared site styles. Self-contained: system fonts, no CDNs. */

:root {
  --bg: #0b1020;
  --bg-soft: #101731;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-solid: #151d3a;
  --border: rgba(255, 255, 255, 0.09);
  --text: #eef1f8;
  --muted: #9aa5c0;
  --accent: #3b82f6;
  --accent-2: #1d4ed8;
  --green: #22c55e;
  --red: #ef4444;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(59, 130, 246, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(29, 78, 216, 0.14), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---- Header ---- */
header.site {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(11, 16, 32, 0.75);
  border-bottom: 1px solid var(--border);
}
header.site .wrap {
  display: flex; align-items: center; gap: 28px; height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand svg { display: block; }
nav.main { margin-left: auto; display: flex; gap: 22px; align-items: center; }
nav.main a { color: var(--muted); font-size: 14.5px; }
nav.main a:hover { color: var(--text); text-decoration: none; }
nav.main a.cta {
  color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 8px 18px; border-radius: 999px; font-weight: 600;
}

/* ---- Hero ---- */
.hero { padding: 96px 0 72px; text-align: center; }
.hero .badge {
  display: inline-block; font-size: 13px; color: var(--accent);
  border: 1px solid rgba(59, 130, 246, 0.35); border-radius: 999px;
  padding: 5px 14px; margin-bottom: 22px; background: rgba(59, 130, 246, 0.08);
}
.hero h1 {
  font-size: clamp(34px, 6vw, 58px); line-height: 1.12; font-weight: 800;
  letter-spacing: -0.02em;
}
.hero h1 .grad {
  background: linear-gradient(135deg, #7db2ff, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub {
  margin: 20px auto 0; max-width: 640px; color: var(--muted); font-size: 18px;
}
.hero .actions { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 12px 26px; border-radius: 12px; font-weight: 600;
  font-size: 15.5px; border: 1px solid transparent; cursor: pointer;
}
.btn.primary { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.btn.primary:hover { filter: brightness(1.1); text-decoration: none; }
.btn.ghost { color: var(--text); border-color: var(--border); background: var(--surface); }
.btn.ghost:hover { border-color: var(--accent); text-decoration: none; }
.btn.small { padding: 7px 14px; font-size: 13.5px; border-radius: 9px; }
.btn.danger { color: #fff; background: var(--red); }
.btn[disabled] { opacity: 0.5; cursor: default; }

/* ---- Feature grid ---- */
section.features { padding: 30px 0 80px; }
.grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
}
.card .ico {
  width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; margin-bottom: 16px; font-size: 20px;
  background: linear-gradient(135deg, rgba(59,130,246,.25), rgba(29,78,216,.25));
  border: 1px solid rgba(59,130,246,.3);
}
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }

/* ---- Steps ---- */
section.how { padding: 10px 0 90px; }
.how h2, .features h2 { text-align: center; font-size: 30px; margin-bottom: 34px; letter-spacing: -0.01em; }
.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.step { border-left: 3px solid var(--accent); padding: 6px 0 6px 18px; }
.step b { display: block; margin-bottom: 6px; }
.step span { color: var(--muted); font-size: 14.5px; }

/* ---- Footer ---- */
footer.site {
  border-top: 1px solid var(--border); padding: 30px 0 40px; color: var(--muted);
  font-size: 13.5px; text-align: center;
}

/* ---- App pages (client/admin) ---- */
.page { padding: 46px 0 80px; }
.page h1 { font-size: 26px; margin-bottom: 6px; }
.page p.lead { color: var(--muted); margin-bottom: 28px; }

.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; margin-bottom: 20px;
}
.panel h2 { font-size: 17px; margin-bottom: 14px; }

.auth-box { max-width: 420px; margin: 40px auto; }
.tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.tabs button {
  flex: 1; padding: 9px 0; border-radius: 10px; border: 1px solid var(--border);
  background: transparent; color: var(--muted); font-weight: 600; cursor: pointer;
}
.tabs button.on { background: var(--surface); color: var(--text); border-color: var(--accent); }

label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 5px; }
input[type=text], input[type=email], input[type=password], input[type=number] {
  width: 100%; padding: 11px 14px; border-radius: 10px; font-size: 15px;
  border: 1px solid var(--border); background: rgba(0,0,0,0.25); color: var(--text);
}
input:focus { outline: none; border-color: var(--accent); }
.check { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--muted); font-size: 14px; }

.msg { margin-top: 14px; font-size: 14px; color: var(--muted); min-height: 20px; }
.msg.err { color: var(--red); }
.msg.ok { color: var(--green); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; }
tr:last-child td { border-bottom: none; }
.scroll { overflow-x: auto; }

.pill {
  display: inline-block; padding: 2px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
}
.pill.on { background: rgba(34,197,94,.15); color: var(--green); border: 1px solid rgba(34,197,94,.35); }
.pill.off { background: rgba(239,68,68,.13); color: var(--red); border: 1px solid rgba(239,68,68,.35); }
.pill.wait { background: rgba(154,165,192,.12); color: var(--muted); border: 1px solid var(--border); }

.row { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.row > div { flex: 1; min-width: 180px; }
.topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 10px; }
.hidden { display: none !important; }
code.link { background: rgba(0,0,0,.3); padding: 3px 8px; border-radius: 7px; font-size: 12.5px; word-break: break-all; }
