/* Mersek Cyber — site styles. No frameworks, no third-party requests. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-var-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #060a13;
  --bg-2: #0a1120;
  --surface: rgba(17, 27, 46, 0.55);
  --surface-solid: #0f1828;
  --border: rgba(148, 178, 214, 0.14);
  --border-strong: rgba(148, 178, 214, 0.26);
  --text: #e8eef7;
  --muted: #a3b1c6;
  --faint: #7f8ea5;
  --accent: #2ee6d6;
  --accent-2: #22b8f0;
  --accent-ink: #03161a;
  --accent-soft: rgba(46, 230, 214, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1160px;
  --header-h: 68px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  font-feature-settings: "cv11", "ss01";
}

/* Background: subtle grid + glow, fixed behind content */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 178, 214, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 178, 214, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 85%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 85%);
}
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(800px 480px at 78% -8%, rgba(34, 184, 240, 0.16), transparent 60%),
    radial-gradient(700px 420px at 8% 12%, rgba(46, 230, 214, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #7ff3e8; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.75rem; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
strong { color: #fff; font-weight: 650; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 650;
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(6, 10, 19, 0.6);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
          backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); background: rgba(6, 10, 19, 0.82); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand svg { width: 30px; height: 30px; }
.brand-word { font-weight: 800; letter-spacing: 0.22em; font-size: 1.02rem; }
.brand-word span { color: var(--muted); font-weight: 500; letter-spacing: 0.14em; margin-left: 0.1rem; font-size: 0.78rem; }

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--text); background: rgba(148, 178, 214, 0.08); }
.nav .btn { margin-left: 0.5rem; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
  width: 44px; height: 44px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1080px) {
  .js .menu-toggle { display: inline-flex; }
  .js .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem 1.25rem 1.5rem;
    background: #070c17;
    box-shadow: 0 24px 40px -12px rgba(0, 0, 0, 0.7);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .js .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .js .nav a:not(.btn) { padding: 0.85rem 0.75rem; font-size: 1.05rem; }
  .js .nav .btn { margin: 0.5rem 0 0; justify-content: center; }
  .no-js .header-inner { height: auto; flex-wrap: wrap; padding: 0.75rem 0; }
  .no-js .site-header { height: auto; position: relative; }
  .no-js .nav { flex-wrap: wrap; }
  .brand-word span { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #5ff0e4);
  color: var(--accent-ink);
  box-shadow: 0 0 0 0 rgba(46, 230, 214, 0), 0 8px 24px -8px rgba(46, 230, 214, 0.55);
}
.btn-primary:hover { color: var(--accent-ink); transform: translateY(-1px); box-shadow: 0 0 0 4px rgba(46, 230, 214, 0.15), 0 12px 30px -8px rgba(46, 230, 214, 0.6); }
.btn-ghost { background: rgba(148, 178, 214, 0.06); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { color: var(--text); border-color: rgba(46, 230, 214, 0.5); background: var(--accent-soft); }
.btn-sm { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.92rem; }
.btn-lg { min-height: 52px; padding: 0.9rem 1.5rem; font-size: 1.04rem; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-weight: 600; text-decoration: none;
}
.text-link svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(3.25rem, 6.5vw, 5.25rem) 0; }
.section-head { max-width: 720px; margin-bottom: 2.75rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.7; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); }
.muted { color: var(--muted); }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border-strong), transparent); border: 0; margin: 0; }

/* Glass card */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(22, 34, 56, 0.62), rgba(12, 20, 35, 0.55));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(46, 230, 214, 0.35), transparent 35%, transparent 70%, rgba(34, 184, 240, 0.2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.55;
}

/* ---------- Hero ---------- */
.hero { padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3.5rem, 7vw, 5.5rem); overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.7; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: 1.1rem; }
.hero h1 .accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero .sub { font-size: clamp(1.15rem, 1.8vw, 1.35rem); color: #d3dceb; font-weight: 550; margin-bottom: 1rem; letter-spacing: -0.01em; }
.hero .lead { max-width: 600px; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.4rem; margin-top: 2rem; }
.hero-ctas .text-link { color: var(--muted); font-weight: 500; }
.hero-ctas .text-link:hover { color: var(--text); }

.status-card { padding: 1.4rem; font-family: var(--mono); font-size: 0.86rem; }
.status-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border); }
.status-dots { display: flex; gap: 6px; }
.status-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(148, 178, 214, 0.25); }
.status-dots i:first-child { background: rgba(46, 230, 214, 0.75); }
.status-title { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.status-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.status-list li {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: rgba(6, 10, 19, 0.5);
  border: 1px solid rgba(148, 178, 214, 0.08);
  color: #d6dfec;
  font-family: var(--font);
  font-size: 0.95rem;
}
.status-list .tick {
  flex: none; width: 22px; height: 22px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
}
.status-list .tick svg { width: 14px; height: 14px; }
.status-list .ctl { flex: 1; }
.status-list .idx { color: var(--faint); font-family: var(--mono); font-size: 0.75rem; }
.status-foot { margin-top: 1rem; color: var(--faint); font-size: 0.76rem; line-height: 1.5; }

/* ---------- Problem ---------- */
.problem-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.problem-grid .big { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.3; font-weight: 650; letter-spacing: -0.02em; color: #fff; }
.problem-body p { color: var(--muted); font-size: 1.1rem; }
.problem-body p.good { color: var(--text); border-left: 2px solid var(--accent); padding-left: 1.1rem; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.service-card { display: flex; flex-direction: column; gap: 0.25rem; transition: transform 0.25s ease, border-color 0.25s ease; }
.service-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid rgba(46, 230, 214, 0.25);
  margin-bottom: 1rem;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card p { color: var(--muted); }
.service-card .note { font-size: 0.92rem; color: var(--faint); }
.service-meta { margin-top: auto; padding-top: 1.1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; border-top: 1px solid var(--border); }
.pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.82rem; font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(46, 230, 214, 0.25);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  margin: 0.4rem 0 0.6rem;
  width: fit-content;
}
.pill svg { width: 14px; height: 14px; flex: none; }

/* Card stretched link */
.service-card h3 a { color: inherit; text-decoration: none; }
.service-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.service-card .service-meta a { position: relative; z-index: 1; }
.service-card h3 a:focus-visible { outline: none; }
.service-card:has(h3 a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Law firms ---------- */
.law {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.75rem, 4vw, 3rem);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(46, 230, 214, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(22, 34, 56, 0.7), rgba(12, 20, 35, 0.6));
}
.law p { color: var(--muted); }
.law p strong { color: var(--text); }
.facts { display: grid; gap: 0.85rem; align-content: start; }
.fact { padding: 1.1rem 1.2rem; border-radius: var(--radius-sm); background: rgba(6, 10, 19, 0.55); border: 1px solid var(--border); }
.fact .k { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 0.35rem; }
.fact .v { font-weight: 650; color: #fff; font-size: 1.05rem; line-height: 1.35; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 27px; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46, 230, 214, 0.45), transparent);
}
.step { position: relative; text-align: left; }
.step-num {
  position: relative;
  width: 54px; height: 54px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 600; color: var(--accent);
  background: var(--surface-solid);
  border: 1px solid rgba(46, 230, 214, 0.35);
  box-shadow: 0 0 0 6px var(--bg), 0 0 24px -4px rgba(46, 230, 214, 0.35);
  margin-bottom: 1.1rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.step p { color: var(--muted); font-size: 0.98rem; margin: 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.profile { text-align: left; }
.monogram {
  width: 84px; height: 84px; border-radius: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.6rem; letter-spacing: 0.04em;
  color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  margin-bottom: 1.1rem;
}
.profile h3 { margin-bottom: 0.15rem; }
.profile .role { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.25rem; }
.cred-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.cred-list li { display: flex; gap: 0.7rem; align-items: flex-start; color: #d6dfec; font-size: 0.95rem; line-height: 1.5; }
.cred-list svg { flex: none; width: 18px; height: 18px; color: var(--accent); margin-top: 2px; }
.about-body p { color: var(--muted); font-size: 1.08rem; }
.about-body p.about-lead { color: var(--text); font-size: 1.15rem; }
.promise { margin-top: 1.5rem; display: flex; gap: 0.85rem; align-items: flex-start; padding: 1.1rem 1.25rem; border-radius: var(--radius-sm); background: var(--accent-soft); border: 1px solid rgba(46, 230, 214, 0.25); }
.promise svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 3px; }
.promise p { margin: 0; color: var(--text) !important; font-size: 1rem !important; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0.75rem; max-width: 860px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(17, 27, 46, 0.45);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.faq-item[open] { border-color: rgba(46, 230, 214, 0.35); background: rgba(17, 27, 46, 0.7); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border-radius: var(--radius-sm);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq-item .answer { padding: 0 1.25rem 1.2rem; color: var(--muted); }
.faq-item .answer p:last-child { margin: 0; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); padding: clamp(1.75rem, 4vw, 3rem); }
.contact-intro p { color: var(--muted); }
.contact-intro .btn { margin: 0.75rem 0 1.5rem; }
.contact-email { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.1rem; border-radius: var(--radius-sm); background: rgba(6, 10, 19, 0.55); border: 1px solid var(--border); }
.contact-email svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.contact-email .k { display: block; font-size: 0.8rem; color: var(--faint); font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.contact-email a { font-weight: 600; font-size: 1.05rem; }

.form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.92rem; font-weight: 600; color: #d6dfec; }
.field .opt { color: var(--faint); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: rgba(6, 10, 19, 0.7);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  min-height: 46px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
.field select option { background: var(--surface-solid); color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46, 230, 214, 0.2); }
.form-note { font-size: 0.88rem; color: var(--faint); margin: 0; }
.form-status { font-size: 0.95rem; color: var(--accent); min-height: 1.5em; margin: 0; }

/* ---------- Service detail pages ---------- */
.page-hero { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem); }
.breadcrumb { font-size: 0.9rem; color: var(--faint); margin-bottom: 1.5rem; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--faint); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); max-width: 860px; }
.page-hero .service-icon { width: 56px; height: 56px; }
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; padding-bottom: clamp(4rem, 8vw, 6rem); }
.detail-main { display: grid; gap: 1.25rem; }
.detail-main h2 { font-size: 1.4rem; display: flex; align-items: center; gap: 0.7rem; }
.detail-main h2 .n { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); font-weight: 500; letter-spacing: 0.08em; }
.detail-main p, .detail-main li { color: var(--muted); }
.detail-main p:last-child, .detail-main ul:last-child, .detail-main ol:last-child { margin-bottom: 0; }
.check-list { list-style: none; padding: 0; display: grid; gap: 0.7rem; }
.check-list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.check-list svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }
.num-list { list-style: none; padding: 0; counter-reset: n; display: grid; gap: 0.85rem; }
.num-list li { counter-increment: n; display: flex; gap: 0.85rem; align-items: flex-start; }
.num-list li::before {
  content: counter(n);
  flex: none; width: 28px; height: 28px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 0.82rem; font-weight: 600;
  color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(46, 230, 214, 0.3);
}
.aside { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1rem; }
.aside h2 { font-size: 1.15rem; }
.aside .price-text { color: var(--muted); font-size: 0.98rem; }
.aside .btn { width: 100%; justify-content: center; }
.other-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.25rem; }
.other-links a { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--border); font-weight: 500; }
.other-links li:last-child a { border-bottom: 0; }
.other-links a:hover { color: var(--text); }
.other-links svg { width: 16px; height: 16px; color: var(--accent); }
.callout { padding: 1rem 1.15rem; border-radius: var(--radius-sm); background: rgba(34, 184, 240, 0.08); border: 1px solid rgba(34, 184, 240, 0.28); color: #d6e9f5 !important; }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 780px; padding-bottom: clamp(4rem, 8vw, 6rem); }
.prose h2 { font-size: 1.45rem; margin-top: 2.5rem; padding-top: 0.5rem; }
.prose h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.prose p, .prose li { color: var(--muted); }
.prose li { margin-bottom: 0.4rem; }
.prose strong { color: var(--text); }
.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 560px; }
.prose th, .prose td { text-align: left; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--muted); }
.prose th { color: var(--text); background: rgba(17, 27, 46, 0.7); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 5rem 0; }
.notfound .code { font-family: var(--mono); font-size: clamp(4rem, 14vw, 8rem); font-weight: 700; line-height: 1; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 1rem; }
.notfound .btns { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 3rem 0 2.5rem; background: rgba(6, 10, 19, 0.6); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-grid p { color: var(--muted); font-size: 0.95rem; margin: 0.75rem 0 0; max-width: 340px; }
.footer-grid h2 { font-size: 0.8rem; font-family: var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); font-weight: 500; margin-bottom: 0.9rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.footer-grid ul a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.footer-grid ul a:hover { color: var(--text); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: var(--faint); font-size: 0.88rem; }
.footer-bottom a { color: var(--muted); }

/* ---------- Reveal animation (only when JS runs and motion is allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .reveal-d1 { transition-delay: 0.08s; }
  .js .reveal-d2 { transition-delay: 0.16s; }
  .js .reveal-d3 { transition-delay: 0.24s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid, .problem-grid, .about-grid, .law, .contact, .detail-grid { grid-template-columns: 1fr; }
  .aside { position: static; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .steps::before { display: none; }
  .hero-visual { max-width: 520px; }
}
@media (max-width: 680px) {
  body { font-size: 1rem; }
  .services-grid, .steps, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .card { padding: 1.35rem; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .service-meta { flex-direction: column; align-items: flex-start; }
}

@media print {
  .site-header, .bg-grid, .bg-glow, .hero-canvas, .site-footer, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
.page-hero .service-icon { display: flex; margin-bottom: 1.25rem; }

/* =====================================================================
   v3: expandable controls, threat explorer, pricing
   ===================================================================== */

/* Hero card: expandable controls */
.status-list li { display: block; padding: 0; }
.ctl-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 0.85rem; border-radius: 10px;
}
.ctl-item summary::-webkit-details-marker { display: none; }
.ctl-item summary:hover { background: rgba(46, 230, 214, 0.05); }
.ctl-item .chev { width: 8px; height: 8px; border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: rotate(45deg) translateY(-2px); transition: transform 0.2s ease; flex: none; margin-left: 0.25rem; }
.ctl-item[open] .chev { transform: rotate(-135deg) translateY(-2px); border-color: var(--accent); }
.ctl-item[open] summary { color: #fff; }
.ctl-text { margin: 0; padding: 0 0.85rem 0.85rem 3.05rem; font-size: 0.9rem; line-height: 1.55; color: var(--muted); }

/* Steps with icons */
.step-num { flex-direction: column; gap: 0; width: 58px; height: 58px; }
.step-num svg { width: 22px; height: 22px; }
.step-n { font-size: 0.62rem; letter-spacing: 0.08em; color: var(--faint); margin-top: 1px; line-height: 1; }
.steps::before { top: 29px; }
@media (prefers-reduced-motion: no-preference) {
  .js .steps::before { transform: scaleX(0); transform-origin: left; transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s; }
  .js .steps.is-visible::before { transform: scaleX(1); }
}

/* ---------- Threat explorer ---------- */
.tx { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.tx-stage { position: relative; width: 100%; max-width: 480px; aspect-ratio: 1 / 1; margin-inline: auto; }
.tx-art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tx-centre-label { position: absolute; left: 50%; top: 68.5%; transform: translateX(-50%); margin: 0; font-weight: 700; font-size: 0.95rem; white-space: nowrap; color: #fff; }
.tx-nodes { position: absolute; inset: 0; }
.tx-node {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
  color: var(--muted); font: inherit; width: 120px;
}
.tx-n1 { left: 50%; top: 12.5%; }
.tx-n2 { left: 82.5%; top: 31.25%; }
.tx-n3 { left: 82.5%; top: 68.75%; }
.tx-n4 { left: 50%; top: 87.5%; }
.tx-n5 { left: 17.5%; top: 68.75%; }
.tx-n6 { left: 17.5%; top: 31.25%; }
.tx-dot {
  width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #0f1828; border: 1px solid var(--border-strong); color: #c9d4e4;
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.8);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
.tx-dot svg { width: 24px; height: 24px; }
.tx-label { font-size: 0.8rem; font-weight: 600; line-height: 1.25; text-align: center; }
.tx-node:hover .tx-dot { border-color: rgba(46, 230, 214, 0.6); color: #fff; transform: scale(1.05); }
.tx-node:hover { color: var(--text); }
.tx-node.is-active .tx-dot { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: var(--accent-ink); box-shadow: 0 0 0 6px rgba(46, 230, 214, 0.15), 0 0 30px rgba(46, 230, 214, 0.45); }
.tx-node.is-active { color: #fff; }
.tx-node:focus-visible { outline: none; }
.tx-node:focus-visible .tx-dot { outline: 2px solid var(--accent); outline-offset: 4px; }
.tx-line { transition: stroke-opacity 0.25s ease; }
.tx-line.is-active { stroke-opacity: 0.9; stroke-width: 2; }

.tx-side { display: grid; gap: 1rem; }
.tx-panel {
  padding: 1.6rem; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(22, 34, 56, 0.75), rgba(12, 20, 35, 0.6));
  border: 1px solid var(--border);
}
.tx-panel + .tx-panel { margin-top: 1rem; }
.tx-ready .tx-panel + .tx-panel { margin-top: 0; }
.js .tx-panel[data-hidden] { display: none; }
.tx-panel[hidden] { display: none; }
.tx-panel:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.tx-count { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.5rem; }
.tx-title { display: flex; align-items: center; gap: 0.7rem; font-size: 1.45rem; margin: 0 0 1rem; }
.tx-title-icon { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(46, 230, 214, 0.25); flex: none; }
.tx-title-icon svg { width: 20px; height: 20px; }
.tx-facts { margin: 0 0 1.25rem; display: grid; gap: 0.9rem; }
.tx-facts dt { font-size: 0.78rem; font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.2rem; display: flex; align-items: center; gap: 0.4rem; }
.tx-facts dd { margin: 0; color: #d6dfec; line-height: 1.55; }
.tx-stop { padding: 0.85rem 1rem; border-radius: var(--radius-sm); background: var(--accent-soft); border: 1px solid rgba(46, 230, 214, 0.25); }
.tx-stop dt { color: var(--accent); }
.tx-stop dt svg { width: 15px; height: 15px; }
.tx-stop dd { color: #fff; }
.tx-link svg { width: 16px; height: 16px; }
.tx-controls { display: none; align-items: center; justify-content: space-between; gap: 1rem; }
.tx-ready .tx-controls { display: flex; }
.tx-step { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-strong); background: rgba(148, 178, 214, 0.06); color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.tx-step:hover { border-color: rgba(46, 230, 214, 0.5); background: var(--accent-soft); }
.tx-step svg { width: 20px; height: 20px; }
.tx-dots { display: flex; gap: 0.45rem; }
.tx-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(148, 178, 214, 0.3); transition: background 0.2s ease, width 0.2s ease; }
.tx-dots i.is-active { background: var(--accent); width: 22px; border-radius: 4px; }

@media (prefers-reduced-motion: no-preference) {
  .tx-ring-outer { transform-origin: 200px 200px; animation: tx-spin 60s linear infinite; }
  .tx-line.is-active { animation: tx-flow 1.2s linear infinite; }
  .tx-hit .tx-pulse { animation: tx-pulse 0.9s ease-out; }
  .tx-panel:not([hidden]) { animation: tx-in 0.35s ease; }
}
@keyframes tx-spin { to { transform: rotate(360deg); } }
@keyframes tx-flow { to { stroke-dashoffset: 20; } }
@keyframes tx-pulse { 0% { stroke-opacity: 0.8; transform: scale(1); } 100% { stroke-opacity: 0; transform: scale(1.5); } }
.tx-pulse { transform-origin: 200px 200px; }
@keyframes tx-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .tx { grid-template-columns: 1fr; }
  .tx-stage { max-width: 420px; }
}
@media (max-width: 560px) {
  .tx-node { width: 64px; }
  .tx-label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .tx-dot { width: 50px; height: 50px; }
  .tx-centre-label { top: 66%; font-size: 0.8rem; }
  .tx-panel { padding: 1.25rem; }
  .tx-title { font-size: 1.25rem; }
}

/* Card price */
.card-price { display: inline-flex; align-items: baseline; gap: 0.5rem; font-weight: 700; font-size: 1.1rem; color: #fff; }
.cp-label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); font-weight: 500; }

/* Pricing section */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.price-tile {
  position: relative; display: grid; gap: 0.35rem; align-content: start;
  padding: 1.4rem; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(22, 34, 56, 0.7), rgba(12, 20, 35, 0.55));
  border: 1px solid var(--border); color: var(--text); text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.price-tile::after { content: ""; position: absolute; left: 1.4rem; right: 1.4rem; top: 0; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); border-radius: 2px; }
.price-tile:hover { color: var(--text); border-color: rgba(46, 230, 214, 0.45); transform: translateY(-2px); }
.pt-name { font-weight: 600; color: var(--muted); font-size: 0.95rem; }
.pt-price { font-size: 1.6rem; font-weight: 750; letter-spacing: -0.02em; line-height: 1.2; }
.pt-detail { font-size: 0.88rem; color: var(--faint); }
.pt-more { margin-top: 0.6rem; color: var(--accent); font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.3rem; }
.pt-more svg { width: 15px; height: 15px; }
.price-notes { margin-top: 1.5rem; display: grid; gap: 0.6rem; max-width: 860px; }
.price-notes p { display: flex; gap: 0.65rem; align-items: flex-start; margin: 0; color: var(--muted); font-size: 0.95rem; }
.price-notes svg { flex: none; width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
@media (max-width: 1000px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .price-grid { grid-template-columns: 1fr; } }

/* Service page price */
.hero-price { margin: 1rem 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem; font-weight: 700; font-size: 1.2rem; }
.hero-price a { font-size: 0.92rem; font-weight: 600; }
.price-big { font-size: 1.7rem; font-weight: 750; letter-spacing: -0.02em; margin: 0 0 0.75rem; color: #fff; }
.table-plain { border: 0; margin: 0 0 1rem; overflow: visible; }
.price-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.price-table th, .price-table td { padding: 0.55rem 0; border-bottom: 1px solid var(--border); vertical-align: top; text-align: left; }
.price-table th { color: var(--muted); font-weight: 500; padding-right: 0.75rem; }
.price-table td { color: var(--text); font-weight: 650; text-align: right; white-space: nowrap; }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 0; }
.price-card .price-text { font-size: 0.9rem; }

/* Five controls list (Cyber Essentials page) */
.controls { list-style: none; padding: 0; margin: 0.5rem 0 0; display: grid; gap: 0.6rem; counter-reset: c; }
.control { counter-increment: c; position: relative; display: grid; grid-template-columns: 38px 1fr; column-gap: 0.9rem; row-gap: 0.1rem; padding: 0.85rem 2.5rem 0.85rem 0.9rem; border-radius: var(--radius-sm); background: rgba(6, 10, 19, 0.55); border: 1px solid var(--border); }
.control::after { content: "0" counter(c); position: absolute; top: 0.8rem; right: 0.9rem; font-family: var(--mono); font-size: 0.72rem; color: var(--faint); }
.control-icon { grid-row: 1 / span 2; width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(46, 230, 214, 0.25); }
.control-icon svg { width: 20px; height: 20px; }
.control-name { grid-column: 2; font-weight: 650; color: var(--text); font-size: 0.98rem; }
.detail-main .control-mean { grid-column: 2; color: var(--muted); font-size: 0.88rem; line-height: 1.45; }

/* IASME fee box */
.fee-box { margin-top: 0.5rem; padding: 1.1rem 1.2rem; border-radius: var(--radius-sm); background: rgba(6, 10, 19, 0.55); border: 1px solid var(--border); }
.fee-box h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.funding { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0 !important; font-size: 0.9rem; }
.funding svg { flex: none; width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }

@media (min-width: 1001px) and (max-width: 1080px) { .nav a:not(.btn) { padding: 0.5rem 0.55rem; } }

/* ===================== v4 ===================== */
/* FAQ centred */
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head-center .eyebrow { justify-content: center; }
.section-head-center .eyebrow::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.7; }
#faq .faq-list { margin-left: auto; margin-right: auto; width: 100%; }

/* Threat panel: outcome, not how-to */
.tx-close { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 1.1rem; padding: 0.8rem 1rem; border-radius: var(--radius-sm); background: var(--accent-soft); border: 1px solid rgba(46, 230, 214, 0.25); color: #fff; font-weight: 600; }
.tx-close svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.tx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.1rem; }
.tx-actions .btn svg { width: 17px; height: 17px; }
.tx-link { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.tx-link:hover { text-decoration: underline; }

/* Background: faint hex grid echoing the M logo, slow scan, drifting glows */
.bg-grid {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66 0 50V16L28 0l28 16v34L28 66Zm0 0v34' fill='none' stroke='%232ee6d6' stroke-opacity='.075' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 100px;
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 0%, #000 25%, transparent 80%);
          mask-image: radial-gradient(ellipse 85% 65% at 50% 0%, #000 25%, transparent 80%);
}
.bg-grid::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 38vh;
  background: linear-gradient(180deg, transparent, rgba(46, 230, 214, 0.05) 50%, transparent);
  opacity: 0; transform: translateY(-40vh); will-change: transform;
}
.bg-glow::before, .bg-glow::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  width: 46vmax; height: 46vmax; filter: blur(10px);
}
.bg-glow::before { right: -12vmax; top: 35vh; background: radial-gradient(circle, rgba(34, 184, 240, 0.07), transparent 65%); }
.bg-glow::after { left: -14vmax; top: 75vh; background: radial-gradient(circle, rgba(46, 230, 214, 0.05), transparent 65%); }
@media (prefers-reduced-motion: no-preference) {
  .bg-grid::after { opacity: 1; animation: bg-scan 16s linear infinite; }
  .bg-glow::before { animation: bg-drift 28s ease-in-out infinite alternate; }
  .bg-glow::after { animation: bg-drift 34s ease-in-out infinite alternate-reverse; }
}
@keyframes bg-scan { from { transform: translateY(-40vh); } to { transform: translateY(110vh); } }
@keyframes bg-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-6vmax, -8vh, 0); } }
.bg-glow, .bg-grid { overflow: hidden; }

/* v4.1: seamless background. The base colour is one flat tone everywhere, and every
   fixed layer fades to transparent before its own edge, so nothing can cut off. */
html { background-color: var(--bg); }
body { background: transparent; }
.bg-glow {
  background:
    radial-gradient(800px 480px at 78% -8%, rgba(34, 184, 240, 0.16), transparent 60%),
    radial-gradient(700px 420px at 8% 12%, rgba(46, 230, 214, 0.10), transparent 60%);
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
}
.bg-glow::before { top: 20vh; }
.bg-glow::after { top: 45vh; }
.bg-grid::after { background: linear-gradient(180deg, transparent, rgba(46, 230, 214, 0.045) 50%, transparent); }

.field-hint { display: block; margin-top: 0.35rem; font-size: 0.88rem; color: var(--muted); }
