/*
  RD Cyber Consultants — design system
  Base neutral: graphite ink (authoritative/technical). Single flat accent:
  steel-blue (no gradients outside the logo mark). No purple/blue AI-gradient
  cliché, no neon glows, no generic 3-equal-column feature rows.
*/

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0b0f14;
  --ink-2: #121821;
  --ink-3: #1b222c;
  --line-dark: #262e3a;
  --bone: #f5f6f8;
  --bone-2: #eaedf2;
  --paper: #ffffff;
  --line-light: #dde2ea;
  --text-on-dark: #c9d1dc;
  --heading-on-dark: #f2f4f7;
  --text-on-light: #3a4250;
  --heading-on-light: #0f1319;
  --muted: #7c8798;
  --muted-on-dark: #8792a3;

  --accent: #3e63a6;
  --accent-dark: #2c4877;
  --accent-light: #82a6df;
  --accent-soft: rgba(62, 99, 166, .10);
  --accent-soft-dark: rgba(130, 166, 223, .14);

  --success: #2f8f63;
  --success-rgb: 47, 143, 99;
  --success-soft: rgba(47, 143, 99, .12);
  --danger: #c25b52;
  --danger-soft: rgba(194, 91, 82, .12);
  --accent-light-rgb: 130, 166, 223;

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow-dark: 0 12px 32px -12px rgba(0,0,0,.55);
  --shadow-light: 0 12px 28px -14px rgba(15,19,25,.18);
  --ease: cubic-bezier(.22,.68,0,1);
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text-on-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--heading-on-light); line-height: 1.15; letter-spacing: -.01em; }
h1 { font-weight: 700; }
h2, h3, h4 { font-weight: 600; }

/* Any dark-background container gets dark-mode text automatically - no need
   to remember to co-apply .on-dark on every hero/CTA/card instance. */
:is(.on-dark, .hero, .page-hero, .cta-band, .card--dark, .section--dark) { color: var(--text-on-dark); }
:is(.on-dark, .hero, .page-hero, .cta-band, .card--dark, .section--dark) :is(h1, h2, h3, h4) { color: var(--heading-on-dark); }

p { max-width: 62ch; }
p.no-measure { max-width: none; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
@media (max-width: 720px) { section { padding: 56px 0; } }

.section--dark { background: var(--ink); }
.section--panel { background: var(--bone); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
}
:is(.on-dark, .hero, .page-hero, .cta-band, .card--dark, .section--dark) .eyebrow { color: var(--accent-light); }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }

.section-header { max-width: 640px; margin-bottom: 48px; }
.section-header h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); margin: 12px 0 14px; }
.section-header p { color: var(--muted); font-size: 1.05rem; }
:is(.on-dark, .hero, .page-hero, .cta-band, .card--dark, .section--dark) .section-header p { color: var(--muted-on-dark); }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: .95rem; padding: 14px 26px; border-radius: var(--radius-sm);
  transition: transform .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn--secondary { background: transparent; color: var(--heading-on-light); border: 1px solid var(--line-light); }
.btn--secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
:is(.on-dark, .hero, .page-hero, .cta-band, .card--dark, .section--dark) .btn--secondary { color: var(--heading-on-dark); border-color: var(--line-dark); }
:is(.on-dark, .hero, .page-hero, .cta-band, .card--dark, .section--dark) .btn--secondary:hover { border-color: var(--accent-light); color: var(--accent-light); }
.btn--sm { padding: 10px 18px; font-size: .875rem; }
.btn--block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,15,20,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 44px; height: 44px; object-fit: contain; }
.brand__text { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--heading-on-dark); letter-spacing: -.01em; }
.brand__accent { color: var(--accent-light); }

.nav { flex: 1; display: flex; justify-content: center; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: var(--radius-sm);
  font-size: .93rem; font-weight: 500; color: var(--text-on-dark);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--heading-on-dark); background: rgba(255,255,255,.05); }

.nav__has-dropdown { position: relative; }
/* Invisible bridge over the visual gap between the trigger and the dropdown -
   without it, the pointer "leaves" the hoverable area while moving down into
   the menu and the browser fires mouseleave before the dropdown is reached. */
.nav__has-dropdown::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: 320px; height: 10px;
}
.nav__dropdown-toggle svg { transition: transform .18s var(--ease); color: var(--muted-on-dark); }
.nav__has-dropdown:hover .nav__dropdown-toggle svg,
.nav__has-dropdown:focus-within .nav__dropdown-toggle svg { transform: rotate(180deg); }

.nav__dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  width: 320px; background: var(--ink-3); border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: 10px; box-shadow: var(--shadow-dark);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav__has-dropdown:hover .nav__dropdown,
.nav__has-dropdown:focus-within .nav__dropdown,
.nav__has-dropdown.is-open .nav__dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav__dropdown ul { display: grid; gap: 2px; }
.nav__dropdown a { display: block; padding: 9px 12px; border-radius: 6px; font-size: .89rem; color: var(--text-on-dark); }
.nav__dropdown ul a:hover { background: rgba(255,255,255,.06); color: var(--heading-on-dark); }
.nav__dropdown-flagship {
  display: flex; flex-direction: column; gap: 3px; margin-top: 8px; padding: 12px !important;
  background: var(--accent-soft-dark); border-radius: 8px; border: 1px solid rgba(130,166,223,.25);
}
.nav__dropdown-flagship .tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-light); }
.nav__dropdown-flagship strong { color: var(--heading-on-dark); font-size: .92rem; }
.nav__dropdown-all { display: block; text-align: center; margin-top: 6px; padding: 9px; font-size: .82rem; color: var(--muted-on-dark); border-top: 1px solid var(--line-dark); }
.nav__dropdown-all:hover { color: var(--accent-light); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em; color: var(--muted-on-dark);
  border: 1px solid var(--line-dark); border-radius: 6px; padding: 6px 10px;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.lang-switch:hover { color: var(--heading-on-dark); border-color: var(--accent-light); }
.nav__cta { display: none; }
@media (min-width: 861px) { .nav__cta { display: inline-flex; } }

.menu-toggle { display: flex; flex-direction: column; gap: 5px; width: 26px; padding: 6px 0; }
.menu-toggle span { width: 100%; height: 2px; background: var(--heading-on-dark); border-radius: 2px; transition: transform .22s var(--ease), opacity .22s var(--ease); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 861px) { .menu-toggle { display: none; } }
@media (max-width: 860px) { .nav { display: none; } }

.mobile-menu {
  display: none; position: fixed; inset: 76px 0 0 0; z-index: 90;
  background: var(--ink); border-top: 1px solid var(--line-dark);
  overflow-y: auto; padding: 20px 24px 40px;
}
.mobile-menu.is-open { display: block; }
.mobile-menu > ul { display: grid; gap: 4px; }
.mobile-menu a { display: block; padding: 13px 8px; font-size: 1.02rem; color: var(--text-on-dark); border-bottom: 1px solid var(--line-dark); }
.mobile-menu__group > span { display: block; padding: 13px 8px 4px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-on-dark); font-family: var(--font-mono); }
.mobile-menu__group ul a { padding-left: 20px; font-size: .95rem; border-bottom: none; }
.mobile-menu li .btn { margin-top: 14px; }

/* ---------- Hero ---------- */
.hero { background: var(--ink); position: relative; overflow: hidden; padding: 76px 0 96px; }
.hero::before {
  content: ""; position: absolute; inset: -42px 0 0 -42px; width: calc(100% + 42px); height: calc(100% + 42px);
  background-image:
    linear-gradient(rgba(130,166,223,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130,166,223,.07) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 70% 60% at 75% 30%, black, transparent);
  pointer-events: none;
  animation: grid-drift 26s linear infinite;
}
@keyframes grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 42px 42px, 42px 42px; }
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
@media (max-width: 940px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--accent-light);
  background: var(--accent-soft-dark); border: 1px solid rgba(130,166,223,.25); border-radius: 999px; padding: 7px 14px;
  margin-bottom: 22px;
}
.hero-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-light); animation: pulse-ring 2.4s ease-out infinite; animation-delay: .6s; }
.hero h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem); color: var(--heading-on-dark); }
.hero h1 .highlight { color: var(--accent-light); }
.hero-subtitle { margin-top: 20px; font-size: 1.1rem; color: var(--text-on-dark); max-width: 52ch; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-panel {
  background: var(--ink-3); border: 1px solid var(--line-dark); border-radius: 14px; padding: 26px;
  box-shadow: var(--shadow-dark);
}
.hero-panel__row { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line-dark); font-size: .88rem; }
.hero-panel__row:last-child { border-bottom: none; }
.hero-panel__row span:first-child { color: var(--muted-on-dark); }
.hero-panel__row span:last-child { font-family: var(--font-mono); color: var(--heading-on-dark); }
.status-dot { display: inline-flex; align-items: center; gap: 7px; }
.status-dot::before { content:""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: pulse-ring-success 2.4s ease-out infinite; }
.status-dot:nth-of-type(2)::before, .hero-panel__row:nth-child(2) .status-dot::before { animation-delay: .4s; }
.hero-panel__row:nth-child(3) .status-dot::before { animation-delay: .8s; }
.hero-panel__row:nth-child(4) .status-dot::before { animation-delay: 1.2s; }
.hero-panel__row:nth-child(5) .status-dot::before { animation-delay: 1.6s; }

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(var(--accent-light-rgb), .45); }
  70% { box-shadow: 0 0 0 7px rgba(var(--accent-light-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--accent-light-rgb), 0); }
}
@keyframes pulse-ring-success {
  0% { box-shadow: 0 0 0 0 rgba(var(--success-rgb), .45); }
  70% { box-shadow: 0 0 0 7px rgba(var(--success-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--success-rgb), 0); }
}
.hero-panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-on-dark); }

/* ---------- Trust / stats strip ---------- */
.stats { background: var(--ink-2); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); padding: 40px 0; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 780px) { .stats .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); color: var(--heading-on-dark); font-family: var(--font-mono); font-weight: 500; }
.stat p { color: var(--muted-on-dark); font-size: .87rem; margin-top: 4px; }

/* ---------- Service grid (bento, not a uniform 3-col row) ---------- */
.service-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 940px) { .service-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .service-bento { grid-template-columns: minmax(0, 1fr); } }

.service-card {
  grid-column: span 2; background: var(--paper); border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 28px; transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-light); }
.service-card--wide { grid-column: span 3; }
@media (max-width: 940px) { .service-card, .service-card--wide { grid-column: span 2; } }
@media (max-width: 560px) { .service-card, .service-card--wide { grid-column: span 1; } }

.service-card__icon { width: 46px; height: 46px; border-radius: 9px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 18px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: .93rem; margin-bottom: 16px; }
.service-card__list { display: grid; gap: 7px; margin-bottom: 18px; }
.service-card__list li { display: flex; gap: 9px; font-size: .87rem; color: var(--text-on-light); }
.service-card__list li::before { content: ""; width: 5px; height: 5px; margin-top: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.service-card__link { margin-top: auto; font-size: .87rem; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.service-card__link svg { transition: transform .18s var(--ease); }
.service-card:hover .service-card__link svg { transform: translateX(3px); }

/* ---------- Certification badges ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.cert-badge {
  background: var(--ink-3); border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: 20px; transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.cert-badge:hover { border-color: var(--accent-light); transform: translateY(-2px); }
.cert-badge__code { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; color: var(--accent-light); text-transform: uppercase; }
.cert-badge h3 { color: var(--heading-on-dark); font-size: 1.02rem; margin: 8px 0 6px; }
.cert-badge p { color: var(--muted-on-dark); font-size: .85rem; }
/* Light variant declared after the base rules so equal-specificity selectors resolve correctly. */
.cert-badge--light { background: var(--bone-2); border-color: var(--line-light); }
.cert-badge--light:hover { border-color: var(--accent); }
.cert-badge--light .cert-badge__code { color: var(--accent); }
.cert-badge--light h3 { color: var(--heading-on-light); }
.cert-badge--light p { color: var(--muted); }

/* ---------- Industries / feature list rows ---------- */
.row-list { display: grid; gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); border-radius: var(--radius); overflow: hidden; }
.row-list__item { background: var(--paper); padding: 24px 26px; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; align-items: start; }
.row-list__item .num { font-family: var(--font-mono); color: var(--accent); font-size: .95rem; }
.row-list__item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.row-list__item p { color: var(--muted); font-size: .92rem; }

/* ---------- Split feature (asymmetric, not centered-hero cliché) ---------- */
.split { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
.split--reverse { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
@media (max-width: 900px) { .split--reverse { grid-template-columns: minmax(0, 1fr); } }
.split--reverse > *:first-child { order: 2; }
@media (max-width: 900px) { .split--reverse > *:first-child { order: 0; } }

.quote-block { border-left: 3px solid var(--accent); padding-left: 20px; margin-top: 26px; }
.quote-block p { font-style: italic; color: var(--heading-on-light); font-size: 1.05rem; }
.quote-block footer { margin-top: 10px; font-size: .85rem; color: var(--muted); }
:is(.on-dark, .hero, .page-hero, .cta-band, .card--dark, .section--dark) .quote-block p { color: var(--heading-on-dark); }

.checklist { display: grid; gap: 12px; margin-top: 22px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.checklist li svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2px; background: var(--line-dark); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-dark); }
.step { background: var(--ink-2); padding: 26px 22px; }
.step__index { font-family: var(--font-mono); color: var(--accent-light); font-size: .8rem; }
.step h3 { color: var(--heading-on-dark); font-size: 1.02rem; margin: 10px 0 8px; }
.step p { color: var(--muted-on-dark); font-size: .88rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); position: relative; overflow: hidden; }
.cta-band__inner { text-align: center; max-width: 640px; margin: 0 auto; }
.cta-band h2 { color: var(--heading-on-dark); font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }
.cta-band p { color: var(--text-on-dark); margin: 16px auto 30px; }
.cta-band .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Cards (generic) ---------- */
.card { background: var(--paper); border: 1px solid var(--line-light); border-radius: var(--radius); padding: 26px; }
.card--dark { background: var(--ink-3); border-color: var(--line-dark); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--heading-on-light); }
:is(.on-dark, .hero, .page-hero, .cta-band, .card--dark, .section--dark) .field label { color: var(--heading-on-dark); }
.field input, .field textarea, .field select {
  background: var(--paper); border: 1px solid var(--line-light); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: .95rem; color: var(--text-on-light);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
:is(.on-dark, .hero, .page-hero, .cta-band, .card--dark, .section--dark) .field input, :is(.on-dark, .hero, .page-hero, .cta-band, .card--dark, .section--dark) .field textarea, :is(.on-dark, .hero, .page-hero, .cta-band, .card--dark, .section--dark) .field select {
  background: var(--ink-3); border-color: var(--line-dark); color: var(--text-on-dark);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field--full { grid-column: 1 / -1; }
.field-hint { font-size: .78rem; color: var(--muted); }

.honeypot-field { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }

.form-note { display: flex; gap: 8px; align-items: flex-start; font-size: .82rem; color: var(--muted); margin-top: 16px; }
:is(.on-dark, .hero, .page-hero, .cta-band, .card--dark, .section--dark) .form-note { color: var(--muted-on-dark); }
.form-note svg { flex-shrink: 0; margin-top: 2px; }

.alert { border-radius: var(--radius-sm); padding: 14px 18px; font-size: .9rem; margin-bottom: 24px; display: flex; gap: 10px; align-items: flex-start; }
.alert--success { background: var(--success-soft); color: var(--success); border: 1px solid rgba(47,143,99,.3); }
.alert--error { background: var(--danger-soft); color: var(--danger); border: 1px solid rgba(194,91,82,.3); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: var(--ink); padding: 64px 0 68px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(130,166,223,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(130,166,223,.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 60% 80% at 85% 20%, black, transparent);
}
.page-hero .wrap { position: relative; }
.breadcrumb { font-family: var(--font-mono); font-size: 12px; color: var(--muted-on-dark); margin-bottom: 18px; display: flex; gap: 8px; align-items: center; }
.breadcrumb a:hover { color: var(--accent-light); }
.page-hero h1 { color: var(--heading-on-dark); font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem); max-width: 20ch; }
.page-hero .lede { color: var(--text-on-dark); font-size: 1.08rem; margin-top: 18px; max-width: 60ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); border-top: 1px solid var(--line-dark); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; padding-bottom: 48px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.footer-col h3 { color: var(--heading-on-dark); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 16px; font-family: var(--font-mono); font-weight: 500; }
.footer-legal-heading { margin-top: 22px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--muted-on-dark); font-size: .9rem; transition: color .18s var(--ease); }
.footer-col a:hover { color: var(--accent-light); }
.footer-tagline { color: var(--muted-on-dark); font-size: .9rem; margin: 16px 0 12px; }
.footer-nap { color: var(--muted-on-dark); font-size: .85rem; margin-bottom: 14px; }
.footer-secure { display: flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--success); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 22px 0; }
.footer-bottom p { color: var(--muted-on-dark); font-size: .82rem; }

/* ---------- Reveal-on-scroll (subtle, low-energy) ---------- */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- 404 ---------- */
.error-page { min-height: 60vh; display: flex; align-items: center; }
.error-page .code { font-family: var(--font-mono); color: var(--accent); font-size: 1rem; letter-spacing: .08em; }
