/* =========================================================
   Advantage Voice & Data — Design System
   Light + Dark themes · Brand: Navy #004772 / Orange #FD5C2B
   ========================================================= */

:root {
  --brand-navy: #004772;
  --brand-navy-600: #003a5e;
  --brand-navy-400: #1a6a9c;
  --brand-orange: #fd5c2b;
  --brand-orange-600: #e84a1a;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --container: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  --font: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Light theme (default) ---------- */
:root,
[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f8fb;
  --bg-alt: #eef2f7;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-glass: rgba(255, 255, 255, .78);
  --text: #0b1b2b;
  --text-muted: #51637a;
  --text-soft: #7a8aa0;
  --line: #e3e9f1;
  --line-strong: #cfd9e5;
  --primary: var(--brand-navy);
  --primary-hover: var(--brand-navy-600);
  --primary-contrast: #ffffff;
  --accent: var(--brand-orange);
  --accent-soft: rgba(253, 92, 43, .10);
  --primary-soft: rgba(0, 71, 114, .08);
  --shadow-sm: 0 1px 2px rgba(15, 35, 60, .06), 0 1px 3px rgba(15, 35, 60, .05);
  --shadow: 0 10px 30px -12px rgba(15, 35, 60, .18), 0 2px 6px rgba(15, 35, 60, .05);
  --shadow-lg: 0 30px 60px -20px rgba(0, 45, 80, .28);
  --hero-grad: radial-gradient(1200px 600px at 85% -10%, rgba(253, 92, 43, .14), transparent 60%),
               radial-gradient(900px 500px at -10% 10%, rgba(0, 71, 114, .14), transparent 60%);
  --media-bg: #ffffff;
  --mark-light: block;
  --mark-dark: none;
}

/* ---------- Dark theme ---------- */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07111c;
  --bg-alt: #0a1726;
  --surface: #0e1d2e;
  --surface-2: #122438;
  --surface-glass: rgba(9, 20, 33, .72);
  --text: #eaf1f8;
  --text-muted: #a3b3c7;
  --text-soft: #7688a0;
  --line: #1b2e44;
  --line-strong: #27405c;
  --primary: #3d9be0;
  --primary-hover: #5bb0ee;
  --primary-contrast: #04121f;
  --accent: #ff7547;
  --accent-soft: rgba(255, 117, 71, .14);
  --primary-soft: rgba(61, 155, 224, .12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 12px 34px -14px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .3);
  --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, .8);
  --hero-grad: radial-gradient(1100px 600px at 85% -10%, rgba(255, 117, 71, .16), transparent 60%),
               radial-gradient(900px 520px at -10% 10%, rgba(61, 155, 224, .18), transparent 60%);
  --media-bg: #f4f7fb;
  --mark-light: none;
  --mark-dark: block;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--primary); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--primary); color: var(--primary-contrast);
  padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--primary-contrast); }

.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section-sm { padding: clamp(40px, 5vw, 64px) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface-glass);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { height: var(--header-h); display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); flex-shrink: 0; }
.brand:hover { color: var(--text); }
.brand-mark { width: 42px; height: 40px; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-mark .mark-light { display: var(--mark-light); }
.brand-mark .mark-dark { display: var(--mark-dark); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.brand-text strong span { color: var(--accent); }
.brand-text small { font-size: 11.5px; color: var(--text-soft); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-top: 3px; }

.menu { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.menu a {
  position: relative; padding: 8px 13px; border-radius: 999px;
  color: var(--text-muted); font-weight: 600; font-size: 14.5px; white-space: nowrap;
}
.menu a:hover { color: var(--text); background: var(--primary-soft); }
.menu a[aria-current="page"] { color: var(--primary); background: var(--primary-soft); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle, .menu-toggle {
  width: 42px; height: 42px; display: inline-grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); cursor: pointer; transition: all .2s var(--ease);
}
.theme-toggle:hover, .menu-toggle:hover { border-color: var(--line-strong); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.theme-toggle svg, .menu-toggle svg { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.menu-toggle { display: none; }
.menu-toggle .i-close { display: none; }
.nav-open .menu-toggle .i-close { display: block; }
.nav-open .menu-toggle .i-menu { display: none; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--text); --btn-bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 20px; border-radius: 12px;
  font: 700 15px/1.2 var(--font); letter-spacing: -.005em;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--btn-fg); border-color: var(--primary); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { --btn-bg: var(--primary); --btn-fg: var(--primary-contrast); --btn-bd: var(--primary); }
.btn-primary:hover { --btn-bg: var(--primary-hover); border-color: var(--primary-hover); }
.btn-accent { --btn-bg: var(--brand-orange); --btn-fg: #fff; --btn-bd: var(--brand-orange); }
.btn-accent:hover { --btn-bg: var(--brand-orange-600); border-color: var(--brand-orange-600); }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 16px; border-radius: 14px; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Eyebrow / pills ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }
.badge-new {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: .04em;
  background: linear-gradient(135deg, #7c3aed, #2563eb); color: #fff;
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 110px) 0 clamp(56px, 8vw, 96px); }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-grad); pointer-events: none; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}
.hero > .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(38px, 5.6vw, 66px); margin: 20px 0 20px; letter-spacing: -.035em; }
.hero h1 .hl { background: linear-gradient(100deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-muted); max-width: 580px; margin-bottom: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 36px; color: var(--text-muted); font-size: 14.5px; font-weight: 600; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--accent); }

/* Hero visual */
.hero-visual { position: relative; }
.hero-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-xl); padding: 28px; box-shadow: var(--shadow-lg);
}
.hero-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.hero-card-head h3 { font-size: 16px; margin: 0; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: #16a34a; background: rgba(22, 163, 74, .1); padding: 4px 10px; border-radius: 999px; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stack-list { display: grid; gap: 12px; }
.stack-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line);
  transition: transform .25s var(--ease), border-color .25s;
}
.stack-item:hover { transform: translateX(4px); border-color: var(--line-strong); }
.stack-item .ico { flex-shrink: 0; }
.stack-item strong { display: block; font-size: 15px; }
.stack-item small { color: var(--text-muted); font-size: 13px; }
.stack-item .chev { margin-left: auto; color: var(--text-soft); width: 18px; height: 18px; }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 14px; box-shadow: var(--shadow); font-size: 13.5px; font-weight: 700;
  animation: float 6s ease-in-out infinite; z-index: 3;
}
.float-chip small { display: block; font-weight: 600; color: var(--text-muted); font-size: 12px; }
.float-chip.one { top: -22px; right: -14px; }
.float-chip.two { bottom: -24px; left: -22px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- Icon tile ---------- */
.ico {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary);
}
.ico svg { width: 24px; height: 24px; }
.ico.accent { background: var(--accent-soft); color: var(--accent); }
.ico.sm { width: 40px; height: 40px; border-radius: 11px; }
.ico.sm svg { width: 20px; height: 20px; }

/* ---------- Section heading ---------- */
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .kicker { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 44px); }
.section-head p { color: var(--text-muted); font-size: 18px; margin: 0; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(24px, 2.6vw, 32px);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.card h3 { font-size: 21px; margin: 18px 0 10px; }
.card > p { color: var(--text-muted); }
.card .card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; margin-top: 6px; }
.card .card-link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.card .card-link:hover svg { transform: translateX(4px); }
.card-top-accent::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 3px; border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent)); opacity: 0; transition: opacity .3s;
}
.card-top-accent:hover::before { opacity: 1; }

.check-list { display: grid; gap: 10px; margin-top: 18px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: 15px; font-weight: 500; }
.check-list li::before {
  content: ""; flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fd5c2b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.stat { padding: 28px 24px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.03em; background: linear-gradient(120deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--text-muted); font-weight: 600; font-size: 14.5px; }

/* ---------- Split / feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split h2 { font-size: clamp(28px, 3.4vw, 42px); }
.split p { color: var(--text-muted); font-size: 17px; }
.feature-rows { display: grid; gap: 18px; margin: 26px 0 30px; }
.feature-row { display: flex; gap: 16px; }
.feature-row strong { display: block; font-size: 16px; margin-bottom: 2px; }
.feature-row p { margin: 0; font-size: 15px; }

/* Media frames — images stay on a light plate so logos/photos look right in both themes */
.media {
  background: var(--media-bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(16px, 2vw, 28px); box-shadow: var(--shadow); overflow: hidden;
  display: grid; place-items: center;
}
.media img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.media.dark-plate { background: #2b2d33; }
.media-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; }
.media-stack { display: grid; gap: 22px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-grad); pointer-events: none; }
.page-hero > .container { position: relative; }
.page-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.page-hero h1 { font-size: clamp(36px, 5vw, 58px); margin: 18px 0 16px; letter-spacing: -.035em; }
.page-hero .lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--text-muted); max-width: 620px; margin-bottom: 28px; }
.page-hero .lead a { font-weight: 700; }
.breadcrumbs { display: flex; gap: 8px; align-items: center; font-size: 13.5px; font-weight: 600; color: var(--text-soft); }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs svg { width: 14px; height: 14px; }

.callout {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; margin: -8px 0 28px;
  border-radius: var(--radius); border: 1px solid color-mix(in srgb, #7c3aed 30%, transparent);
  background: linear-gradient(135deg, rgba(124, 58, 237, .08), rgba(37, 99, 235, .08));
  max-width: 620px; font-size: 15px;
}
.callout svg { width: 22px; height: 22px; color: #7c3aed; flex-shrink: 0; margin-top: 1px; }
[data-theme="dark"] .callout svg { color: #a78bfa; }
.callout p { margin: 0; color: var(--text); }

/* ---------- Resource lists ---------- */
.res-layout { display: grid; grid-template-columns: 250px 1fr; gap: 40px; align-items: start; }
.res-nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 4px; }
.res-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; color: var(--text-muted); font-weight: 600; font-size: 15px; }
.res-nav a:hover, .res-nav a.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.res-nav a svg { width: 18px; height: 18px; }
.res-nav .count { margin-left: auto; font-size: 12px; background: var(--primary-soft); color: var(--primary); padding: 2px 8px; border-radius: 999px; }
.res-section { scroll-margin-top: calc(var(--header-h) + 24px); margin-bottom: 44px; }
.res-section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.res-section-head h2 { font-size: 24px; margin: 0; }
.res-section-head p { margin: 2px 0 0; color: var(--text-muted); font-size: 15px; }
.res-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.res-item {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); transition: all .25s var(--ease);
}
.res-item:hover { color: var(--text); border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.res-item .meta { min-width: 0; }
.res-item strong { display: block; font-size: 15px; font-weight: 700; line-height: 1.35; }
.res-item small { color: var(--text-soft); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.res-item .go { margin-left: auto; width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; color: var(--text-soft); background: var(--surface-2); transition: all .25s var(--ease); }
.res-item:hover .go { background: var(--primary); color: var(--primary-contrast); }
.res-item .go svg { width: 16px; height: 16px; }

.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.video-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: all .3s var(--ease); cursor: pointer; text-align: left; padding: 0; font: inherit; color: var(--text); }
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.video-thumb { position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg, var(--brand-navy), #0a2c47 60%, #1a1a1a); display: grid; place-items: center; overflow: hidden; }
.video-thumb::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 20%, rgba(253, 92, 43, .35), transparent 55%); }
.video-thumb .play { position: relative; z-index: 1; width: 60px; height: 60px; border-radius: 50%; background: rgba(255, 255, 255, .95); display: grid; place-items: center; color: var(--brand-navy); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .3s var(--ease); }
.video-card:hover .play { transform: scale(1.1); }
.video-thumb .play svg { width: 24px; height: 24px; margin-left: 3px; }
.video-body { padding: 16px 18px 18px; }
.video-body strong { display: block; font-size: 16px; }
.video-body small { color: var(--text-muted); font-size: 13.5px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; padding: 20px; background: rgba(3, 10, 18, .82); backdrop-filter: blur(6px); }
.modal.open { display: grid; animation: fade .25s var(--ease); }
.modal-inner { width: min(1000px, 100%); position: relative; }
.modal video { width: 100%; border-radius: var(--radius); background: #000; box-shadow: var(--shadow-lg); }
.modal-close { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.modal-close:hover { background: rgba(255, 255, 255, .22); }
.modal-close svg { width: 20px; height: 20px; }
@keyframes fade { from { opacity: 0; } }

/* ---------- Partners strip ---------- */
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; }
.logo-tile { display: grid; place-items: center; height: 88px; min-width: 200px; padding: 16px 24px; border-radius: var(--radius); background: var(--media-bg); border: 1px solid var(--line); transition: all .25s var(--ease); }
.logo-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.logo-tile img { max-height: 52px; width: auto; object-fit: contain; }
.logo-tile.dark { background: #2b2d33; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { display: flex; gap: 16px; align-items: center; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--text); transition: all .25s var(--ease); }
a.contact-card:hover { color: var(--text); border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow); }
.contact-card small { display: block; color: var(--text-soft); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.contact-card strong { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.01em; word-break: break-word; }
.contact-card .note { color: var(--text-muted); font-size: 14px; font-weight: 500; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.map-frame iframe { width: 100%; height: 100%; min-height: 440px; border: 0; }
[data-theme="dark"] .map-frame iframe { filter: invert(.9) hue-rotate(180deg) saturate(.7) brightness(.95); }

.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; font: 500 15px/1.4 var(--font); color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.form-note { font-size: 13px; color: var(--text-soft); margin: 0; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-size: 14px; font-weight: 800; letter-spacing: .1em; color: var(--accent); margin-bottom: 14px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--text-muted); margin: 0; font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  padding: clamp(36px, 5vw, 60px); color: #fff;
  background: linear-gradient(125deg, #003355 0%, var(--brand-navy) 45%, #0b5a8c 100%);
  box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
}
.cta-band::before { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(253, 92, 43, .55), transparent 65%); }
.cta-band::after { content: ""; position: absolute; width: 360px; height: 360px; left: -120px; bottom: -220px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .05); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 10px; color: #fff; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .8); font-size: 17px; max-width: 560px; }
.cta-band .btn { --btn-bg: rgba(255, 255, 255, .1); --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .25); }
.cta-band .btn:hover { border-color: #fff; }
.cta-band .btn-accent { --btn-bg: var(--brand-orange); --btn-bd: var(--brand-orange); }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(56px, 8vw, 100px); background: var(--surface); border-top: 1px solid var(--line); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid h4 { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 16px; }
.footer-grid ul { display: grid; gap: 10px; }
.footer-grid ul a { color: var(--text-muted); font-weight: 600; font-size: 15px; }
.footer-grid ul a:hover { color: var(--accent); }
.footer-about p { color: var(--text-muted); font-size: 15px; margin: 16px 0 0; max-width: 340px; }
.footer-contact li { display: flex; gap: 10px; color: var(--text-muted); font-size: 15px; font-weight: 500; }
.footer-contact svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text-soft); font-size: 14px; }
.footer-bottom a { color: var(--text-muted); font-weight: 600; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 404 ---------- */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.nf .code { font-size: clamp(90px, 16vw, 180px); font-weight: 800; line-height: 1; letter-spacing: -.06em; background: linear-gradient(120deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Utilities ---------- */
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1140px) {
  .menu a { padding: 8px 10px; font-size: 14px; }
  .brand-text small { display: none; }
}
@media (max-width: 1024px) {
  .menu-toggle { display: inline-grid; }
  .menu {
    position: fixed; top: var(--header-h); left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 16px 20px 24px;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s var(--ease);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav-open .menu { transform: none; opacity: 1; visibility: visible; }
  .menu a { padding: 14px 16px; font-size: 16px; border-radius: 12px; }
  .nav-actions { margin-left: auto; }
  .hero-grid, .page-hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .steps, .video-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .res-layout { grid-template-columns: 1fr; }
  .res-nav { position: static; display: flex; overflow-x: auto; gap: 8px; padding-bottom: 4px; }
  .res-nav a { white-space: nowrap; background: var(--surface); border: 1px solid var(--line); }
  .res-nav .count { display: none; }
  .hero-visual { max-width: 560px; }
  .cta-band { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4, .steps, .video-grid, .res-list, .media-grid, .form-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .float-chip { display: none; }
  .brand-text strong { font-size: 15px; }
  .btn-group .btn { flex: 1 1 auto; }
  .logo-tile { min-width: 0; flex: 1 1 140px; }
}
@media (max-width: 560px) {
  .nav-cta { display: none; }
  .nav { gap: 12px; }
}
@media (max-width: 340px) {
  .brand-text { display: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .theme-toggle, .modal { display: none !important; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1; transform: none; }
}

/* Inline icon sizing inside pills/badges */
.eyebrow svg { width: 16px; height: 16px; flex-shrink: 0; }
.badge-new svg { width: 14px; height: 14px; flex-shrink: 0; }
