/* rmthreat.com — ClickFix Blocker official site
   Brand language from extension/docs/design.md:
   Trust Blue #0572EC, Deep Ink #111827, Soft Grey #6B7280,
   soft shadows, 12px squircle cards, generous whitespace. */

:root {
  --blue: #0572EC;
  --blue-700: #0357b3;
  --ink: #111827;
  --grey: #6B7280;
  --line: #e5e7eb;
  --surface: #f9fafb;
  --white: #ffffff;
  --green: #059669;
  --yellow: #d97706;
  --red: #dc2626;
  --navy-1: #0b1f3a;
  --navy-2: #143a6b;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow: 0 10px 25px -5px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 24px 48px -12px rgba(16, 24, 40, 0.18);
  --maxw: 1080px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang TC", "Microsoft JhengHei", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { color: var(--grey); font-size: 15px; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--ink); text-decoration: none; }

/* Language dropdown */
.langsel { position: relative; }
.langsel-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--grey);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 11px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.langsel-trigger:hover { color: var(--ink); border-color: #d6dae0; }
.langsel-trigger .globe { opacity: 0.75; }
.langsel-trigger .chev { transition: transform 0.18s ease; opacity: 0.8; }
.langsel-trigger[aria-expanded="true"] { color: var(--ink); border-color: var(--blue); }
.langsel-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
.langsel-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 156px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 60;
  animation: lang-pop 0.16s ease-out both;
}
.langsel-menu[hidden] { display: none; }
.langsel-menu li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s ease;
}
.langsel-menu li:hover { background: var(--surface); }
.langsel-menu li.active { color: var(--blue); font-weight: 600; }
.langsel-menu li.active::after { content: "✓"; font-size: 13px; color: var(--blue); }
@keyframes lang-pop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.06s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(5, 114, 236, 0.5);
}
.btn-primary:hover { background: var(--blue-700); transform: translateY(-1px); }
.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--surface); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 120% at 80% 0%, #1a4a85 0%, var(--navy-1) 55%);
  color: #fff;
  padding: 96px 0 120px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 60% at 15% 20%, rgba(5, 114, 236, 0.35), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #bcd6f7;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 6px 12px;
  border-radius: 999px;
}
.hero h1 {
  font-size: 46px;
  line-height: 1.1;
  font-weight: 800;
  margin: 20px 0 16px;
  letter-spacing: -0.02em;
}
.hero p.lead {
  font-size: 19px;
  color: #cdd9ea;
  margin: 0 0 32px;
  max-width: 36ch;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note {
  margin-top: 20px;
  font-size: 13px;
  color: #9fb3cd;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- Trust bar ---------- */
.trustbar {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.trustbar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 28px 0;
  text-align: center;
}
.trustbar .stat { font-size: 24px; font-weight: 800; color: var(--ink); }
.trustbar .label { font-size: 13px; color: var(--grey); }

/* ---------- Sections ---------- */
section.block { padding: 88px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.section-head p { font-size: 17px; color: var(--grey); margin: 0; }

/* ---------- Feature cards ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card .ico {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(5, 114, 236, 0.1);
  color: var(--blue);
  margin-bottom: 16px;
}
.card h3 { font-size: 17px; margin: 0 0 8px; font-weight: 700; }
.card p { font-size: 14.5px; color: var(--grey); margin: 0; }

/* ---------- Showcase (screenshot gallery) ---------- */
.showcase { background: var(--surface); }
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.gallery figure { margin: 0; }
.shot-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.gallery figcaption {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  padding: 0 8px;
}

/* ---------- Click-to-zoom lightbox ---------- */
img.zoomable { cursor: zoom-in; }
.shot-img:has(img.zoomable) { cursor: zoom-in; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  background: rgba(8, 22, 43, 0.84);
  backdrop-filter: blur(2px);
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.shown { opacity: 1; }
.lightbox-img {
  /* width is set inline to 1.5× the clicked thumbnail (capped to the viewport);
     height stays auto so the aspect ratio is preserved. */
  max-width: 92vw;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  transform: scale(0.94);
  transition: transform 0.2s ease;
}
.lightbox.shown .lightbox-img { transform: scale(1); }
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.26); }
@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox-img { transition: none; }
}

/* ---------- Privacy band ---------- */
.privacy-band {
  background: linear-gradient(180deg, var(--navy-1), var(--navy-2));
  color: #fff;
}
.privacy-band .section-head h2 { color: #fff; }
.privacy-band .section-head p { color: #c5d4e8; }
.priv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.priv-item {
  display: flex;
  gap: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 22px;
}
.priv-item .check {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(5, 150, 105, 0.2);
  color: #34d399;
  display: grid;
  place-items: center;
}
.priv-item h4 { margin: 0 0 4px; font-size: 16px; }
.priv-item p { margin: 0; font-size: 14px; color: #b9c8de; }
.priv-cta { text-align: center; margin-top: 44px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 22px;
  margin-bottom: 14px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  padding: 18px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--grey); font-size: 15px; }

/* ---------- CTA ---------- */
.cta-final {
  text-align: center;
  background: radial-gradient(120% 140% at 50% 0%, #1a4a85, var(--navy-1));
  color: #fff;
  padding: 88px 0;
}
.cta-final h2 { font-size: 36px; font-weight: 800; margin: 0 0 14px; letter-spacing: -0.02em; }
.cta-final p { font-size: 18px; color: #cdd9ea; margin: 0 0 30px; }
.cta-final .cta-fine { margin-top: 18px; margin-bottom: 0; font-size: 13px; color: #9fb3cd; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #9aa5b5;
  padding: 56px 0 40px;
  font-size: 14px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand { max-width: 280px; }
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-brand p { margin: 0; color: #8a96a8; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h5 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}
.footer-col a { display: block; color: #9aa5b5; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  color: #6b7688;
}

/* ---------- Legal / policy pages ---------- */
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.legal .updated { color: var(--grey); font-size: 14px; margin-bottom: 8px; }
.legal h1 { font-size: 38px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; }
.legal .intro { font-size: 18px; color: var(--grey); margin: 0 0 12px; }
.legal h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 44px 0 14px;
  padding-top: 8px;
}
.legal h3 { font-size: 17px; font-weight: 700; margin: 28px 0 8px; }
.legal p, .legal li { font-size: 16px; color: #374151; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal .toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 28px 0 8px;
}
.legal .toc strong { display: block; margin-bottom: 10px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--grey); }
.legal .toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.legal .toc a { font-size: 15px; }
.legal .callout {
  border-left: 4px solid var(--blue);
  background: rgba(5, 114, 236, 0.05);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
}
.legal .callout.warn { border-left-color: var(--yellow); background: rgba(217, 119, 6, 0.06); }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14.5px;
}
.legal th, .legal td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
.legal th { background: var(--surface); font-weight: 600; }
.legal code {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 13.5px;
  font-family: "SF Mono", "JetBrains Mono", Menlo, monospace;
}
.legal .back { display: inline-block; margin-bottom: 24px; font-size: 14px; }
.legal .legal-foot { margin-top: 48px; }
.legal .legal-foot .back { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { padding: 64px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 36px; }
  .trustbar-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr; gap: 32px; max-width: 460px; margin: 0 auto; }
  .priv-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 14px; }
  .nav-links a.hide-sm { display: none; }
  .section-head h2 { font-size: 27px; }
  .legal .toc ol { columns: 1; }
}

@media (max-width: 520px) {
  .nav { height: auto; flex-wrap: wrap; gap: 10px; padding: 10px 0; }
  .langsel button { padding: 5px 9px; }
  .features { grid-template-columns: 1fr; }
}
