:root {
  --bg: #070d19;
  --surface: #0f172a;
  --surface-2: #162238;
  --border: #233352;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --radius: 14px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  background: radial-gradient(circle at 18% 0%, #0e1d36 0%, var(--bg) 55%);
  color: var(--text);
  line-height: 1.55;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Topbar */
header.topbar {
  border-bottom: 1px solid var(--border);
  background: rgba(7, 13, 25, 0.88);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 40;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-badge {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(16, 185, 129, 0.14); color: var(--green); border: 1px solid rgba(16, 185, 129, 0.35);
}
nav.nav-links { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-size: 0.92rem; }
nav.nav-links a { color: var(--muted); font-weight: 500; }
nav.nav-links a.active, nav.nav-links a:hover { color: #fff; text-decoration: none; }

/* Hero */
.hero { padding: 42px 0 26px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 6px 13px; border-radius: 999px;
  background: rgba(56, 189, 248, 0.12); color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.35);
}
.pill.alert { background: rgba(239, 68, 68, 0.14); color: #fca5a5; border-color: rgba(239, 68, 68, 0.4); }
h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); line-height: 1.16; margin: 14px 0 12px; color: #fff; letter-spacing: -0.02em; }
.hero p.lead { color: var(--muted); font-size: 1.06rem; max-width: 780px; margin: 0 0 20px; }

.trust-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.trust-chip {
  font-size: 0.84rem; color: #cbd5e1;
  background: var(--surface); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 10px;
}

/* Panels & Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Form Elements */
textarea, input[type="text"], input[type="email"], input[type="datetime-local"], select {
  width: 100%;
  background: #080f1e;
  color: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 0.92rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
input[type="text"], input[type="email"], input[type="datetime-local"], select {
  font-family: inherit;
}
textarea:focus, input:focus, select:focus { outline: 2px solid rgba(56, 189, 248, 0.45); border-color: var(--accent); }
label.field-label { display: block; font-size: 0.83rem; font-weight: 600; color: #cbd5e1; margin-bottom: 6px; }

/* Dropzone */
.dropzone {
  border: 1.5px dashed #334e7c;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  background: rgba(15, 23, 42, 0.55);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 14px;
}
.dropzone.dragover, .dropzone:hover { border-color: var(--accent); background: rgba(56, 189, 248, 0.08); }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: none; border-radius: 10px; cursor: pointer;
  font-weight: 700; font-size: 0.92rem; padding: 11px 18px;
  transition: transform 0.1s, opacity 0.15s;
}
.btn:hover { opacity: 0.94; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, #10b981, #0ea5e9); color: #04131c; }
.btn-secondary { background: var(--surface-2); color: #e2e8f0; border: 1px solid var(--border); }
.btn-amber { background: linear-gradient(135deg, #f59e0b, #ea580c); color: #160900; }
.btn-sm { padding: 7px 12px; font-size: 0.82rem; border-radius: 8px; }

/* Status Verdict Banner */
.verdict-banner {
  border-radius: 12px; padding: 18px 20px; margin-bottom: 18px;
  border: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px;
}
.verdict-red { background: rgba(239, 68, 68, 0.14); border-color: rgba(239, 68, 68, 0.55); }
.verdict-amber { background: rgba(245, 158, 11, 0.14); border-color: rgba(245, 158, 11, 0.55); }
.verdict-green { background: rgba(16, 185, 129, 0.13); border-color: rgba(16, 185, 129, 0.5); }

.kpi-box {
  background: #0a1222; border: 1px solid var(--border); border-radius: 11px; padding: 14px;
}
.kpi-label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.kpi-val { font-size: 1.55rem; font-weight: 800; color: #fff; margin-top: 4px; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.badge {
  display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 0.75rem; font-weight: 700;
}
.b-red { background: rgba(239, 68, 68, 0.2); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.45); }
.b-amber { background: rgba(245, 158, 11, 0.2); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.45); }
.b-green { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.45); }
.b-cyan { background: rgba(56, 189, 248, 0.16); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.4); }

/* Tabs & Code Preview */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tab-btn {
  padding: 8px 14px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--muted); cursor: pointer; font-weight: 600; font-size: 0.86rem;
}
.tab-btn.active { background: rgba(56, 189, 248, 0.18); color: #fff; border-color: var(--accent); }
pre.code-box {
  background: #060b14; border: 1px solid var(--border); border-radius: 10px;
  padding: 14px; overflow-x: auto; font-size: 0.82rem; color: #cbd5e1; max-height: 360px; white-space: pre-wrap;
}

/* Pro Upgrade & Funnel Box */
.pro-box {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.12), rgba(14, 165, 233, 0.1));
  border: 1.5px solid rgba(16, 185, 129, 0.45);
  border-radius: 16px;
  padding: 26px;
  margin: 26px 0;
}
.apify-bridge {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px; padding: 16px 18px; margin-top: 16px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 48px; padding: 26px 0 40px; color: var(--muted); font-size: 0.84rem;
}
.footer-flex { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
