/* NajemAlert — landing page */
:root {
  --bg: #0f1115;
  --bg-alt: #151821;
  --surface: #1b1f2a;
  --surface-2: #232838;
  --border: #2c3242;
  --text: #e7e9ee;
  --muted: #9aa3b2;
  --accent: #4f7cff;
  --accent-2: #7c3aed;
  --green: #22c55e;
  --red: #ef4444;
  --amber: #f59e0b;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --maxw: 1080px;
  --grad: linear-gradient(135deg, var(--accent), var(--accent-2));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(1100px 520px at 80% -10%, rgba(124, 58, 237, 0.18), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(79, 124, 255, 0.14), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.4em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
.muted { color: var(--muted); }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border: 1px solid transparent; border-radius: 10px;
  font-weight: 600; font-size: 14px; cursor: pointer; padding: 10px 18px;
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(79, 124, 255, 0.3); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }

/* ── nav ── */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 22px;
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
  background: rgba(15, 17, 21, 0.7); backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-logo { width: 28px; height: 28px; border-radius: 7px; display: block; }
.brand-name { font-size: 15px; }
.nav-links { display: flex; gap: 20px; margin-left: auto; font-size: 14px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.lang-select {
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 10px; font-size: 13px; cursor: pointer;
}
.lang-select:focus { outline: none; border-color: var(--accent); }

/* ── hero ── */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
  max-width: var(--maxw); margin: 0 auto; padding: 64px 24px 72px;
}
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--accent);
  background: rgba(79, 124, 255, 0.12); padding: 5px 11px; border-radius: 999px; margin-bottom: 16px;
}
.hero h1 { font-size: clamp(32px, 5vw, 52px); }
.lede { font-size: 18px; color: var(--muted); max-width: 34ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 12px; }
.hero-note { font-size: 13px; color: var(--muted); }

/* hero mock */
.hero-art { display: flex; justify-content: center; }
.mock {
  width: 100%; max-width: 380px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px; transform: rotate(1.2deg);
}
.mock-head { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.mock-logo { width: 22px; height: 22px; border-radius: 5px; display: block; }
.mock-title { font-weight: 700; font-size: 13px; }
.mock-status { margin-left: auto; font-size: 11px; color: var(--green); }
.mock-row { padding: 10px 8px; border-radius: 9px; margin-bottom: 6px; background: var(--surface-2); border: 1px solid transparent; }
.mock-row.fresh { border-color: rgba(79, 124, 255, 0.5); }
.mock-row.dim { opacity: 0.65; }
.mock-line { display: flex; justify-content: space-between; font-size: 13px; }
.mock-line span { color: var(--accent); font-weight: 700; }
.mock-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.mb { font-size: 10px; background: #2a3040; color: var(--muted); padding: 2px 7px; border-radius: 999px; }
.mb-new { background: rgba(79, 124, 255, 0.2); color: #9db8ff; }
.mb-warn { background: rgba(245, 158, 11, 0.16); color: #fbbf24; }
.mb-ag { background: rgba(34, 197, 94, 0.14); color: #6ee7a3; }
.mock-move { font-size: 11px; color: var(--muted); margin-top: 7px; }

/* ── sections ── */
.section { max-width: var(--maxw); margin: 0 auto; padding: 72px 24px; }
.section-alt { background: var(--bg-alt); max-width: none; }
.section-alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section-title { font-size: clamp(26px, 3.4vw, 36px); text-align: center; }
.section-sub { text-align: center; color: var(--muted); max-width: 56ch; margin: 0 auto 40px; }

/* ── feature grid ── */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 20px; transition: transform 0.12s ease, border-color 0.12s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card-ico { font-size: 26px; margin-bottom: 12px; }
.card h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card p { font-size: 13.5px; color: var(--muted); margin: 0; }
.pro-tag, .free-tag { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.4px; }
.pro-tag { background: var(--grad); color: #fff; }
.free-tag { background: #2a3040; color: var(--muted); }

/* ── compare table ── */
.table-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.compare thead th { background: var(--surface-2); font-size: 13px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); }
.compare th:not(:first-child), .compare td:not(:first-child) { text-align: center; width: 130px; }
.compare tbody tr:last-child td { border-bottom: none; }
.compare .yes { color: var(--green); font-weight: 700; }
.compare .no { color: var(--muted); }
.compare tfoot .cta-cell { background: var(--surface-2); padding: 16px 18px; border-bottom: none; vertical-align: middle; }
.compare tfoot .cta-cell .btn { width: 100%; }
/* The "Add to Chrome" button sits on the surface-2 footer where a plain ghost
   border barely shows — give it a tinted fill so it reads as a real button. */
.compare tfoot .cta-cell .btn-ghost {
  background: rgba(79, 124, 255, 0.16);
  border-color: rgba(79, 124, 255, 0.55);
  color: #cdd9ff;
}
.compare tfoot .cta-cell .btn-ghost:hover { background: rgba(79, 124, 255, 0.26); border-color: var(--accent); }

/* ── pricing ── */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 22px; justify-content: center; }
.price-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px; }
.price-card.featured { border-color: var(--accent); box-shadow: var(--shadow); }
.price-flag { position: absolute; top: -12px; right: 22px; background: var(--grad); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.price-name { font-weight: 700; font-size: 15px; color: var(--muted); }
.price-amount { font-size: 40px; font-weight: 800; margin: 6px 0 18px; letter-spacing: -0.02em; }
.price-list { list-style: none; padding: 0; margin: 0 0 22px; }
.price-list li { font-size: 14px; padding: 7px 0 7px 26px; position: relative; color: var(--text); }
.price-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.price-fine { font-size: 11.5px; color: var(--muted); text-align: center; margin: 12px 0 0; }

/* ── manage license ── */
.manage-card { max-width: 520px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-size: 14px; font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.field input:focus { outline: none; border-color: var(--accent); }
.lic-result { margin-top: 16px; padding: 16px; border-radius: 10px; font-size: 14px; border: 1px solid var(--border); background: var(--bg); }
.lic-result.ok { border-color: rgba(34, 197, 94, 0.5); }
.lic-result.bad { border-color: rgba(239, 68, 68, 0.5); }
.lic-result h4 { margin: 0 0 8px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.lic-result .pill { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.lic-result .pill.ok { background: rgba(34, 197, 94, 0.16); color: #6ee7a3; }
.lic-result .pill.bad { background: rgba(239, 68, 68, 0.16); color: #fca5a5; }
.lic-result dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 10px 0 0; font-size: 13.5px; }
.lic-result dt { color: var(--muted); }
.lic-result dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.manage-hint { font-size: 13px; color: var(--muted); margin: 16px 0 0; }

/* ── install steps ── */
.install { text-align: center; }
.steps { list-style: none; counter-reset: s; padding: 0; max-width: 620px; margin: 0 auto 30px; text-align: left; }
.steps li { counter-increment: s; position: relative; padding: 14px 14px 14px 56px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; border-radius: 8px; }

/* ── faq ── */
.faq { max-width: 720px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 4px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); font-size: 14px; padding-bottom: 14px; margin: 0; }

/* ── footer ── */
.footer { max-width: var(--maxw); margin: 0 auto; padding: 40px 24px 60px; text-align: center; border-top: 1px solid var(--border); }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 8px; }
.footer .muted { font-size: 13px; margin: 4px 0; }
.footer a { color: var(--accent); }

/* ── responsive ── */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .hero-art { order: -1; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .lang-select { margin-left: auto; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
}
