/* =====================================================================
   AEUMIG landing - aeumig.com
   Hand-written to the AEUMIG brand palette. Sora typeface, light
   corporate surfaces, dark navy bands. Professional, enterprise, no
   neon and no console look.
   ===================================================================== */

:root {
  --blue: #3498ff;
  --blue-hover: #1d7fff;
  --blue-deep: #0a5dc2;
  --accent: #7e57c2;
  --navy: #0e1116;
  --navy-soft: #161b22;
  --white: #ffffff;
  --surface: #f5f7fa;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --muted: #6e7681;
  --slate: #2b333d;
  --text: #1c232b;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(14, 17, 22, 0.08);
  --shadow-md: 0 8px 24px rgba(14, 17, 22, 0.10);
  --shadow-lg: 0 18px 48px rgba(14, 17, 22, 0.14);
  --maxw: 1180px;
  --header-h: 74px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Sora', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: 'Sora', sans-serif; color: var(--navy); line-height: 1.18; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--blue-deep); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--blue-hover); }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: .98rem;
  padding: .82rem 1.5rem; border-radius: var(--radius); border: 1.5px solid transparent;
  cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease, box-shadow .18s ease;
  line-height: 1.1; text-align: center;
}
.btn-cta { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 4px 14px rgba(52, 152, 255, .28); }
.btn-cta:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; transform: translateY(-1px); }
.btn-cta:active { background: var(--blue-deep); border-color: var(--blue-deep); transform: translateY(0); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue-deep); }
.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); color: #fff; border-color: #fff; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between;
}
.logo-link { display: inline-flex; align-items: center; gap: 10px; }
.site-logo { height: 40px; width: 40px; }
.site-wordmark { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.32rem; letter-spacing: -0.01em; color: var(--navy); }
#mainNav { display: flex; align-items: center; gap: 1.9rem; }
#mainNav a:not(.nav-cta) {
  font-size: .96rem; font-weight: 600; color: var(--slate);
  position: relative; padding: .25rem 0;
}
#mainNav a:not(.nav-cta):hover { color: var(--blue-deep); }
#mainNav a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--blue); transition: width .2s ease;
}
#mainNav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { padding: .6rem 1.25rem; }
.nav-cta::after { display: none; }

.menu-toggle {
  display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px;
  align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
}
.menu-toggle .bar { display: block; width: 22px; height: 2px; background: var(--navy); transition: transform .2s ease, opacity .2s ease; }
.menu-toggle.open .bar1 { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open .bar2 { opacity: 0; }
.menu-toggle.open .bar3 { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Section scaffolding ---------- */
.section { padding: 92px 0; }
.section.tight { padding: 64px 0; }
.section-surface { background: var(--surface); }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.sec-eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-deep); margin-bottom: .9rem;
}
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section-subtitle { font-size: 1.08rem; color: var(--muted); margin: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 96px 24px 92px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero-kicker { color: var(--blue-deep); }
.hero-text h1 { font-size: clamp(2.1rem, 4.6vw, 3.35rem); margin-bottom: .5em; }
.hero-text p.lead { font-size: 1.18rem; max-width: 40ch; margin-bottom: 1.8em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero-actions .text-link { font-weight: 700; color: var(--blue-deep); display: inline-flex; align-items: center; gap: .5rem; }
.hero-actions .text-link i { transition: transform .18s ease; }
.hero-actions .text-link:hover i { transform: translateX(4px); }
.hero-trust { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1.4rem; color: var(--muted); font-size: .92rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: .5rem; }
.hero-trust i { color: var(--blue); }

/* Hero visual: a clean product-style panel, not a stock illustration */
.hero-visual { position: relative; }
.hero-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.hero-panel__bar { display: flex; align-items: center; gap: .5rem; padding: .8rem 1rem; background: var(--navy); }
.hero-panel__bar .dot { width: 11px; height: 11px; border-radius: 50%; background: #384250; }
.hero-panel__bar .title { margin-left: .6rem; color: #cbd5e1; font-size: .82rem; font-weight: 600; letter-spacing: .02em; }
.hero-panel__body { padding: 20px; display: grid; gap: 14px; }
.mig-row {
  display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
}
.mig-row i.wl { color: var(--blue-deep); font-size: 1.05rem; }
.mig-row .wl-name { font-weight: 600; color: var(--navy); font-size: .95rem; }
.mig-row .wl-name small { display: block; color: var(--muted); font-weight: 500; font-size: .78rem; }
.mig-row .wl-state { font-size: .78rem; font-weight: 700; color: #1f8a4c; display: inline-flex; align-items: center; gap: .4rem; }
.mig-row .wl-state i { font-size: .7rem; }
.mig-row.pending .wl-state { color: var(--muted); }
.mig-bar { grid-column: 1 / -1; height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; }
.mig-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--blue-deep)); }

/* ---------- Feature / workload cards ---------- */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 24px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--blue-deep); font-size: 1.35rem; margin-bottom: 18px;
}
.feature-card h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.feature-card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- About / Why band ---------- */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-grid.reverse .split-text { order: 2; }
.feature-list { display: grid; gap: 14px; margin-top: 1.4rem; }
.feature-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; color: var(--slate); }
.feature-list li i { color: var(--blue); margin-top: .28rem; }
.feature-list li strong { color: var(--navy); }
.panel-card {
  background: var(--navy); color: #d6dee8; border-radius: var(--radius-lg); padding: 34px 32px; box-shadow: var(--shadow-lg);
}
.panel-card h3 { color: #fff; }
.panel-card .sec-eyebrow { color: #7bb6ff; }
.panel-card .feature-list li { color: #c5cfdb; }
.panel-card .feature-list li strong { color: #fff; }
.panel-card .feature-list li i { color: #5aa2ff; }

/* ---------- Assessment ---------- */
.assess-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: start; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 1.4rem; }
.check-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 18px; box-shadow: var(--shadow-sm); }
.check-card h4 { font-size: 1rem; margin-bottom: .3rem; display: flex; align-items: center; gap: .55rem; }
.check-card h4 i { color: var(--blue-deep); }
.check-card p { font-size: .88rem; color: var(--muted); margin: 0; }
.rulepacks { display: grid; gap: 14px; }
.rulepack {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.rulepack .rp-icon { width: 50px; height: 50px; border-radius: 10px; color: var(--blue-deep); display: inline-flex; align-items: center; justify-content: center; font-size: 2.30rem; }
.rulepack h4 { font-size: 1.02rem; margin-bottom: .25rem; }
.rulepack p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 22px; box-shadow: var(--shadow-sm); }
.step .step-num {
  width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.05rem; margin-bottom: 16px;
}
.step h3 { font-size: 1.06rem; margin-bottom: .45rem; }
.step p { font-size: .9rem; color: var(--muted); margin: 0; }
.step .step-ico { position: absolute; top: 26px; right: 22px; color: var(--line-strong); font-size: 1.25rem; }

/* ---------- Stats / trust band (dark) ---------- */
.band-dark { background: var(--navy); color: #d6dee8; }
.band-dark .section-title, .band-dark h3 { color: #fff; }
.band-dark .sec-eyebrow { color: #7bb6ff; }
.band-dark .section-subtitle { color: #9fb0c3; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.stat { text-align: center; padding: 8px 10px; }
.stat .stat-ico { color: var(--blue); font-size: 1.6rem; margin-bottom: 12px; }
.stat .stat-num { font-size: 1.5rem; font-weight: 800; color: #fff; line-height: 1.2; }
.stat .stat-label { color: #9fb0c3; font-size: .92rem; margin-top: 6px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, #0a5dc2, #1d7fff);
  color: #fff; border-radius: 0;
}
.cta-inner { text-align: center; max-width: 760px; margin: 0 auto; }
.cta-inner h2 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.cta-inner p { color: rgba(255,255,255,.9); font-size: 1.12rem; margin-bottom: 1.8em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 52px; align-items: start; }
.contact-aside .contact-item { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; margin-bottom: 22px; }
.contact-aside .contact-item i { width: 44px; height: 44px; border-radius: 10px; color: var(--blue-deep); display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.contact-aside .contact-item h4 { font-size: 1.02rem; margin-bottom: .2rem; }
.contact-aside .contact-item p { color: var(--muted); font-size: .93rem; margin: 0; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 32px; box-shadow: var(--shadow-md); }

/* Shared form styles (used by contact card + modal) */
.contact-form .cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form .form-group { margin-bottom: 16px; display: flex; flex-direction: column; }
.contact-form label { font-size: .86rem; font-weight: 600; color: var(--slate); margin-bottom: .4rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  font-family: inherit; font-size: .96rem; color: var(--text);
  padding: .72rem .85rem; border: 1.5px solid var(--line-strong); border-radius: 9px; background: #fff; width: 100%;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(52,152,255,.16);
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form .form-submit { width: 100%; margin-top: 6px; }
#form-result, #form-result * { font-size: .92rem; }
.form-success { margin-top: 1rem; background: #eafaf0; border: 1px solid #b6e6c8; color: #1f7a45; padding: .8rem 1rem; border-radius: 9px; }
.form-error { margin-top: 1rem; background: #fdecec; border: 1px solid #f3c0c0; color: #b3261e; padding: .8rem 1rem; border-radius: 9px; }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-card .news-thumb { aspect-ratio: 16 / 9; background: var(--surface); object-fit: cover; width: 100%; }
.news-card .news-body { padding: 20px 20px 24px; }
.news-card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.news-card p { font-size: .9rem; color: var(--muted); margin: 0; }
.news-card time { display: block; font-size: .78rem; color: var(--muted); margin-bottom: .6rem; letter-spacing: .02em; }
#news { display: none; }
#news.has-content { display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #b7c2d0; padding: 72px 0 0; }
.footer-main-grid { max-width: var(--maxw); margin: 0 auto; padding: 0 24px 48px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { height: 38px; width: auto; }
.footer-brand .footer-logo-link { display: inline-flex; }
.footer-tagline { margin: 18px 0 20px; font-size: .92rem; color: #93a1b3; max-width: 34ch; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.06); color: #cdd7e3; display: inline-flex; align-items: center; justify-content: center; transition: background .18s ease, color .18s ease; }
.footer-social a:hover { background: var(--blue); color: #fff; }
.footer-heading { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 18px; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { color: #93a1b3; font-size: .93rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom-bar { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 24px; max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; }
.footer-bottom-bar p { margin: 0; font-size: .84rem; color: #7f8ea1; }
.footer-fineprint { max-width: 62ch; }

/* ---------- Contact modal ---------- */
.contact-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 24px; }
.contact-modal.open { display: flex; }
.contact-modal__backdrop { position: absolute; inset: 0; background: rgba(14, 17, 22, .6); backdrop-filter: blur(2px); }
.contact-modal__dialog { position: relative; z-index: 1; width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto; background: #fff; border-radius: var(--radius-lg); padding: 36px 34px; box-shadow: var(--shadow-lg); }
.contact-modal__close { position: absolute; top: 14px; right: 16px; width: 38px; height: 38px; border: none; background: var(--surface); border-radius: 9px; font-size: 1.4rem; line-height: 1; color: var(--slate); cursor: pointer; }
.contact-modal__close:hover { background: var(--line); color: var(--navy); }
.contact-modal .contact-h2 { font-size: 1.5rem; margin-bottom: .3rem; }

/* ---------- Reveal (AOS is used, this is a no-JS-safe base) ---------- */
[data-aos] { will-change: transform, opacity; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { order: 2; max-width: 560px; }
  .assess-grid, .contact-grid, .split-grid { grid-template-columns: 1fr; gap: 40px; }
  .split-grid.reverse .split-text { order: 0; }
}

@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  #mainNav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
    transform: translateY(-140%); transition: transform .24s ease; box-shadow: var(--shadow-md);
  }
  #mainNav.open { transform: translateY(0); }
  #mainNav a:not(.nav-cta) { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  #mainNav a:last-child { border-bottom: none; }
  .nav-cta { margin-top: 10px; }
  .section { padding: 64px 0; }
  .features-grid, .news-grid, .steps, .stats-grid, .check-grid, .contact-form .cf-row { grid-template-columns: 1fr; }
  .footer-main-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .contact-modal__dialog { padding: 28px 22px; }
}

@media (max-width: 480px) {
  .footer-main-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  [data-aos] { transition: none !important; transform: none !important; opacity: 1 !important; }
}

/* ================= Media backgrounds (Pexels, self-hosted) ================= */
/* Hero: subtle looping tech video behind a dark overlay so white text reads. */
.hero { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10,17,22,.80) 0%, rgba(10,45,90,.85) 100%); }
.hero .hero-inner { position: relative; z-index: 2; }
.hero .hero-kicker { color: #9fc6ff; }
.hero h1 { color: #ffffff; }
.hero .lead { color: rgba(255,255,255,.95); }
.hero .hero-trust span { color: rgba(255,255,255,.92); }
.hero .hero-trust span i { color: #9fc6ff; }
.hero .text-link { color: #cfe0ff; }
.hero .hero-panel { box-shadow: 0 24px 60px rgba(0,0,0,.45); }
/* Hero video stays visible even under reduce-motion (owner choice); the poster
   image on .hero is the fallback if the video is unavailable. */

/* Dark stats band over a data-center backdrop. */
.band-dark { position: relative; overflow: hidden;
  background-image: linear-gradient(180deg, rgba(10,17,22,.88), rgba(12,26,46,.92)), url('/assets/img/bg/workloads.webp');
  background-size: cover; background-position: center; background-repeat: no-repeat; }
.band-dark .container { position: relative; z-index: 1; }

/* CTA band: brand blue over a collaboration photo for depth. */
.cta-band { position: relative; overflow: hidden;
  background-image: linear-gradient(120deg, rgba(10,93,194,.93), rgba(29,127,255,.88)), url('/assets/img/bg/collaboration.webp');
  background-size: cover; background-position: center; background-repeat: no-repeat; }
.cta-band .container { position: relative; z-index: 1; }

/* ============ Full-bleed video hero + overlay header (match aeu-i / aeu-it) ============ */
/* Hero fills the viewport; the video is the background, text sits over it. */
.hero { min-height: 100vh; display: flex; align-items: center; border-bottom: none;
  background: var(--navy) url('/assets/img/bg/hero_poster.webp') center / cover no-repeat; }
.hero-bg { z-index: 0; }
/* Lighter overlay so the video motion is clearly visible while text stays legible. */
/* Contrast-aware scrim: darker behind the (left-aligned) text so white type always
   reads, fading lighter toward the right/edges so the background image stays visible. */
.hero::before { background:
  linear-gradient(105deg, rgba(8,13,20,.86) 0%, rgba(8,13,20,.64) 38%, rgba(8,15,26,.32) 64%, rgba(8,13,20,.10) 100%),
  linear-gradient(180deg, rgba(8,13,20,.30) 0%, rgba(8,13,20,.10) 40%, rgba(8,13,20,.46) 100%); }
/* Lighter overlay keeps the video motion visible; text-shadow preserves contrast. */
.hero h1, .hero .lead { text-shadow: 0 2px 20px rgba(0,0,0,.45); }
.hero .hero-kicker { text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.hero-inner { grid-template-columns: 1fr; max-width: 880px; margin: 0 auto; padding: 128px 24px 100px; }
.hero-visual { display: none; }               /* full-video hero: no side mockup */
.hero-text { text-align: left; }
.hero-text p.lead { max-width: 62ch; }

/* Header floats transparent over the hero, turns solid white once scrolled. */
.site-header { position: fixed; left: 0; right: 0; top: 0; background: transparent;
  backdrop-filter: none; border-bottom: 1px solid transparent;
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease; }
/* App logo is full-colour, so no invert; only the wordmark text switches colour. */
.site-header .site-wordmark { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.site-header #mainNav a:not(.nav-cta) { color: #fff; }
.site-header #mainNav a:not(.nav-cta):hover { color: #cfe0ff; }
.site-header #mainNav a:not(.nav-cta)::after { background: #fff; }
.site-header .menu-toggle { border-color: rgba(255,255,255,.5); }
.site-header .menu-toggle .bar { background: #fff; }
.site-header .nav-cta { color: #fff; }        /* CTA stays blue button, white label, both states */

.site-header.scrolled { background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(8px);
  border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header.scrolled .site-wordmark { color: var(--navy); text-shadow: none; }
.site-header.scrolled #mainNav a:not(.nav-cta) { color: var(--slate); }
.site-header.scrolled #mainNav a:not(.nav-cta):hover { color: var(--blue-deep); }
.site-header.scrolled #mainNav a:not(.nav-cta)::after { background: var(--blue); }
.site-header.scrolled .menu-toggle { border-color: var(--line); }
.site-header.scrolled .menu-toggle .bar { background: var(--navy); }

@media (max-width: 860px) {
  #mainNav.open { background: #fff; box-shadow: var(--shadow-md); }
  #mainNav.open a { color: var(--slate); }
}

.footer-credit a { color: #9fc6ff; }
.footer-credit a:hover { color: #cfe0ff; }

/* ---------- Insights consent banner ---------- */
.aeu-consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; background: var(--navy); border-top: 1px solid rgba(255,255,255,.10); box-shadow: 0 -10px 34px rgba(0,0,0,.35); }
.aeu-consent[hidden] { display: none; }
.aeu-consent-in { max-width: var(--maxw); margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: space-between; }
.aeu-consent-txt { margin: 0; font-size: .86rem; line-height: 1.5; color: #c2cdd9; flex: 1; min-width: 260px; }
.aeu-consent-btns { display: flex; gap: 10px; flex-shrink: 0; }
.aeu-consent .btn { padding: .6rem 1.3rem; font-size: .9rem; }
.aeu-consent .btn-secondary { background: transparent; color: #cbd5e1; border-color: rgba(255,255,255,.30); }
.aeu-consent .btn-secondary:hover { border-color: #fff; color: #fff; }
.aeu-consent .btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.aeu-consent .btn-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }

/* Granular consent options (checkboxes) */
.aeu-consent-opts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 4px 0 2px; width: 100%; }
.aeu-opt { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; color: #e6edf3; font-size: .86rem; }
.aeu-opt input { margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--blue); cursor: pointer; flex-shrink: 0; }
.aeu-opt.is-locked { opacity: .8; cursor: default; }
.aeu-opt.is-locked input { cursor: default; }
.aeu-opt span { display: flex; flex-direction: column; line-height: 1.35; }
.aeu-opt strong { font-weight: 700; color: #fff; }
.aeu-opt small { color: #9fb0c3; font-size: .78rem; }
/* Blocking consent modal: full-screen backdrop, page locked until a choice is made */
.aeu-consent { position: fixed; inset: 0; left: 0; right: 0; top: 0; bottom: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(6,10,16,.74); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); border-top: none; box-shadow: none; }
.aeu-consent[hidden] { display: none; }
.aeu-consent-in { max-width: 560px; width: 100%; margin: 0; flex-direction: column; align-items: stretch; gap: 18px; background: #0e1116; border: 1px solid rgba(255,255,255,.10); border-radius: 16px; padding: 28px 26px; box-shadow: 0 30px 80px rgba(0,0,0,.55); max-height: 90vh; overflow-y: auto; }
.aeu-consent-btns { width: 100%; justify-content: flex-end; flex-wrap: wrap; }
html.aeu-noscroll, body.aeu-noscroll { overflow: hidden !important; }

/* Modal body consistency: the intro text must not flex-grow (it was stretching to
   fill the centered card and pushing the options down, differently per site). */
.aeu-consent .aeu-consent-txt { flex: 0 0 auto; min-width: 0; margin: 0; font-size: .9rem; line-height: 1.55; color: #c2cdd9; }
.aeu-consent .aeu-consent-in { justify-content: flex-start; }

/* ===== Smooth reveals + hover micro-interactions (varied entrance, softer easing) ===== */
[data-aos] { transition-timing-function: cubic-bezier(.22,.7,.24,1) !important; }
.feature-card, .about-card, .panel-card, .check-card, .contact-card, .rulepack, .step, .card, .case-card, .svc-card {
  transition: transform .4s cubic-bezier(.22,.7,.24,1), box-shadow .4s ease, border-color .3s ease;
}
.feature-card:hover, .about-card:hover, .check-card:hover, .rulepack:hover, .step:hover, .case-card:hover, .svc-card:hover {
  transform: translateY(-8px); box-shadow: 0 28px 55px -26px rgba(11,18,42,.42); border-color: var(--blue, #1e6fff);
}
.feature-icon, .rp-icon, .step-num, .step-ico { transition: transform .45s cubic-bezier(.34,1.56,.64,1), color .25s ease, background-color .25s ease; }
.feature-card:hover .feature-icon, .rulepack:hover .rp-icon, .step:hover .step-num { transform: scale(1.08); }
.btn { transition: background .2s ease, border-color .2s ease, color .2s ease, transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease; }
.btn:hover { transform: translateY(-3px); }
.text-link i { transition: transform .28s cubic-bezier(.34,1.56,.64,1); }
.text-link:hover i { transform: translateX(6px); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  [data-aos] { transition: none !important; }
  .btn:hover, .feature-card:hover, .rulepack:hover, .step:hover, .about-card:hover, .svc-card:hover, .card:hover { transform: none !important; }
}

/* HERO LEAD CONTRAST FIX: the dark hero needs a light lead (the base .hero-text p.lead
   slate colour was dark-on-dark). Higher specificity than that rule. */
.hero .hero-text p.lead, .hero .hero-text .lead { color: rgba(255,255,255,.92) !important; }
.hero .hero-text .sec-eyebrow, .hero .hero-kicker { color: #7db4ff !important; }
