:root {
  --bg: #090d16;
  --panel: #111827;
  --panel-2: #0f1624;
  --border: #1f2937;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --accent: #6366f1;
  --accent-2: #10b981;
  --danger: #ef4444;
  --warn: #f59e0b;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, sans-serif; line-height: 1.55; }
code, pre { font-family: 'JetBrains Mono', monospace; }
a { color: #a5b4fc; text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }

/* Header */
.topbar { position: sticky; top: 0; z-index: 30; backdrop-filter: blur(12px); background: rgba(9, 13, 22, 0.85); border-bottom: 1px solid var(--border); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { text-decoration: none; }
.logo-mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 15px; }
.brand-text em { font-style: normal; color: var(--accent-2); }
.brand-text small { font-size: 11px; color: var(--muted); }

.nav-links { display: flex; gap: 18px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav-links a.active, .nav-links a:hover { color: var(--text); text-decoration: none; }
.auth-area { display: flex; align-items: center; gap: 10px; }

/* Buttons */
.btn { border: 1px solid transparent; border-radius: 10px; padding: 9px 15px; font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: 0.15s; font-family: inherit; }
.btn-primary { background: linear-gradient(135deg, #6366f1, #4f46e5); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); text-decoration: none; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: #374151; background: rgba(255,255,255,0.03); text-decoration: none; }
.btn-danger { background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.35); color: #fca5a5; }
.btn-sm { padding: 6px 11px; font-size: 12px; border-radius: 8px; }
.btn.full { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Hero */
.hero { padding: 54px 20px 32px; }
.center-hero { text-align: center; }
.pill { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #a5b4fc; background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.28); margin-bottom: 16px; }
h1 { font-size: clamp(28px, 4.4vw, 46px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 14px; }
h1 span { background: linear-gradient(90deg, #818cf8, #34d399); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.lead { font-size: 16px; color: var(--muted); max-width: 700px; margin: 0 0 26px; }
.center-hero .lead { margin-left: auto; margin-right: auto; }

/* Cards & Grids */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.section { padding: 34px 20px; }
.sec-title { text-align: center; font-size: 26px; margin: 0 0 8px; }

.suite-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; text-align: left; margin-top: 28px; }
.product-card { display: flex; flex-direction: column; }
.product-card h2 { margin: 10px 0 8px; font-size: 22px; }
.card-actions { margin-top: auto; padding-top: 16px; }
.card-badge { display: inline-block; align-self: flex-start; font-family: 'JetBrains Mono', monospace; font-size: 12px; padding: 4px 10px; border-radius: 8px; }
.badge-emerald { background: rgba(16,185,129,0.14); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.3); }
.badge-indigo { background: rgba(99,102,241,0.14); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.3); }

.feat-list { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; font-size: 14px; color: #d1d5db; }
.feat-list li::before { content: "✓ "; color: var(--accent-2); font-weight: 700; }

/* Tool Box */
.tool-box { background: linear-gradient(180deg, #111827, #0d1320); border-color: #293548; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input { flex: 1; min-width: 220px; }
input, select, textarea { background: #0a0f1a; border: 1px solid #283548; color: var(--text); border-radius: 10px; padding: 11px 14px; font-size: 14px; font-family: inherit; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
.tool-out { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }

/* Dashboard */
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.dash-head h2 { margin: 0 0 4px; font-size: 22px; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.full-span { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.field label { font-size: 12px; font-weight: 600; color: #d1d5db; }
.form-actions { grid-column: 1 / -1; display: flex; gap: 10px; }

.stack { display: grid; gap: 12px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }

.item-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.item-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.item-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; background: #1f2937; color: #d1d5db; }
.tag-ok { background: rgba(16,185,129,0.16); color: #6ee7b7; }
.tag-warn { background: rgba(245,158,11,0.16); color: #fcd34d; }
.tag-bad { background: rgba(239,68,68,0.16); color: #fca5a5; }

/* Diff & Audit */
.price-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chip { font-family: 'JetBrains Mono', monospace; font-size: 12px; background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.3); color: #c7d2fe; padding: 4px 9px; border-radius: 8px; }

.diff-box { background: #0a0f1a; border: 1px solid var(--border); border-radius: 10px; padding: 12px; font-family: 'JetBrains Mono', monospace; font-size: 12px; max-height: 240px; overflow: auto; }
.diff-add { color: #6ee7b7; }
.diff-rem { color: #fca5a5; }
.ai-box { background: rgba(99,102,241,0.1); border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 8px; font-size: 13px; margin: 10px 0; }

.report-hero { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.score-ring { width: 92px; height: 92px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 5px solid var(--accent); flex-shrink: 0; }
.score-ring strong { font-size: 28px; line-height: 1; }
.score-ring span { font-size: 11px; color: var(--muted); }
.score-ring.good { border-color: var(--accent-2); color: #6ee7b7; }
.score-ring.warn { border-color: var(--warn); color: #fcd34d; }
.score-ring.bad { border-color: var(--danger); color: #fca5a5; }

.check-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--border); }
.check-row.pass { border-left: 3px solid var(--accent-2); }
.check-row.warn { border-left: 3px solid var(--warn); }
.check-row.fail { border-left: 3px solid var(--danger); }
.pts { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600; white-space: nowrap; }
.fix-tip { font-size: 12px; color: #fcd34d; margin-top: 4px; }

.bot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.bot-item { padding: 10px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.bot-item.ok .tag { background: rgba(16,185,129,0.16); color: #6ee7b7; }
.bot-item.blocked .tag { background: rgba(239,68,68,0.16); color: #fca5a5; }

.code-box { background: #0a0f1a; border: 1px solid var(--border); border-radius: 10px; padding: 14px; font-size: 12px; overflow-x: auto; white-space: pre-wrap; color: #cbd5e1; }

.sov-row { display: grid; grid-template-columns: 120px 1fr 56px; align-items: center; gap: 10px; font-size: 13px; margin: 6px 0; }
.sov-bar-wrap { height: 10px; background: #1f2937; border-radius: 999px; overflow: hidden; }
.sov-bar { height: 100%; background: var(--accent); border-radius: 999px; }
.sov-bar.brand { background: var(--accent-2); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 22px; }
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(99,102,241,0.35); }
.pop-tag { position: absolute; top: -11px; right: 16px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.price { font-size: 34px; font-weight: 800; margin: 8px 0; }
.price span { font-size: 14px; color: var(--muted); font-weight: 500; }
.price-card .btn { margin-top: auto; }

/* Modal & Toast */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.7); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal-card { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 24px; width: 100%; max-width: 400px; position: relative; }
.modal-close { position: absolute; right: 14px; top: 12px; background: none; border: none; color: var(--muted); font-size: 22px; cursor: pointer; }
.err { background: rgba(239,68,68,0.14); border: 1px solid rgba(239,68,68,0.35); color: #fca5a5; padding: 9px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 10px; }
.toast { position: fixed; bottom: 20px; right: 20px; background: #1e293b; border: 1px solid var(--accent); color: #fff; padding: 12px 16px; border-radius: 10px; font-size: 13px; z-index: 60; box-shadow: 0 10px 30px rgba(0,0,0,0.4); }

/* Footer & Legal */
.footer { border-top: 1px solid var(--border); margin-top: 56px; padding: 28px 0; }
.footer-in { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.legal-card { max-width: 780px; margin: 0 auto; }
.legal-body h3 { margin-top: 20px; }

@media (max-width: 680px) {
  .nav-links { display: none; }
  .hero { padding-top: 32px; }
}
