/* ============================================================
   MATS | Maritime Analytics & Tracking System
   www.matsmarine.com · public marketing site
   Brand: Manrope · Navy #071A35 · Surface #020B1A · Blue #0066FF
   ------------------------------------------------------------
   Layout rule: EVERY horizontal band (header, hero, sections,
   footer) places its content inside the same `.container`, so
   logo, headings, cards and footer columns share one left edge.
   ============================================================ */

/* ---------- Fonts (self-hosted, no external requests) ---------- */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/manrope-latin-800-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --navy: #071a35;
  --navy-2: #0a2245;
  --surface: #020b1a;
  --blue: #0066ff;
  --blue-hover: #0a5cff;
  --blue-soft: #e8f0ff;
  --blue-text: #0a58d6;

  --text: #172b42;
  --text-2: #3f5470;
  --muted: #5f7389;
  --border: #d6e0ea;
  --line: #e6edf3;
  --bg: #ffffff;
  --bg-alt: #f5f8fb;
  --card: #ffffff;

  --light: #e5eaf2;
  --light-muted: #9fb0c6;
  --dark-border: rgba(255, 255, 255, 0.1);

  --green: #1fb877;
  --green-text: #11774f;
  --green-soft: #e6f6ef;
  --amber: #f4b942;
  --amber-text: #8a5a0b;
  --amber-soft: #fff3dc;
  --red-text: #b52f39;
  --red-soft: #fdecee;

  --header-h: 68px;
  --container: 1180px;
  --gutter: 40px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 12px 32px rgba(7, 26, 53, 0.08);
  --shadow-lg: 0 30px 80px -20px rgba(2, 11, 26, 0.55);
  --anchor-offset: var(--header-h);
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);   /* anchor targets land below the sticky header */
  scrollbar-gutter: stable;                    /* no 15px horizontal jump when page height changes */
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; color: var(--navy); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid rgba(0, 102, 255, 0.55); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--blue); color: #fff; padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); }
.section.dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: #7fb0ff; }
.lead { font-size: 18px; line-height: 1.65; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; line-height: 1.2; white-space: nowrap;
  border-radius: 9px; padding: 12px 22px; border: 1px solid transparent; cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); box-shadow: 0 8px 20px -8px rgba(0, 102, 255, 0.7); }
.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.55); }
.btn-outline { background: #fff; border-color: #c5d2e0; color: var(--navy); }
.btn-outline:hover { border-color: #8faacb; background: #f8fbff; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Demo request gating. `demo-enabled` is set when a submission endpoint is configured. */
[data-demo-trigger] { display: none; }
html.demo-enabled [data-demo-trigger] { display: inline-flex; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 36px; width: auto; }
.primary-nav { display: flex; align-items: stretch; gap: 32px; margin-left: 6px; height: var(--header-h); }
.nav-link { position: relative; display: inline-flex; align-items: center; font-size: 15px; font-weight: 500; color: #243349; transition: color 0.15s; }
.nav-link:hover { color: var(--blue); }
.nav-link[aria-current="page"] { color: var(--blue); font-weight: 600; }
.nav-link[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--blue); border-radius: 2px 2px 0 0; }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 9px; border: 1px solid var(--border); background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--navy); border-radius: 2px; position: relative; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.2s, top 0.2s; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: #fff; }
.mobile-nav.open { display: block; }
.mobile-nav .container { padding-top: 10px; padding-bottom: 18px; display: grid; gap: 4px; }
.mobile-nav a { padding: 12px 6px; font-weight: 600; font-size: 16px; border-radius: 8px; }
.mobile-nav a:hover { background: var(--bg-alt); }
.mobile-nav a[aria-current="page"] { color: var(--blue); }
.mobile-nav .mobile-cta { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(105deg, var(--surface) 0%, var(--navy) 55%, var(--navy-2) 100%); }
.hero-wave { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-glow { position: absolute; right: -10%; top: 15%; width: 60%; height: 90%; pointer-events: none; background: radial-gradient(circle, rgba(0, 102, 255, 0.18) 0%, transparent 65%); }
.hero-grid { position: absolute; inset: 0; opacity: 0.35; pointer-events: none; background-image: linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(circle at 25% 40%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(circle at 25% 40%, #000 0%, transparent 70%); }
.hero-inner { position: relative; z-index: 2; padding: 104px 0 0; max-width: 700px; }
.hero h1 { color: #fff; font-size: clamp(36px, 5vw, 54px); line-height: 1.08; letter-spacing: -0.025em; margin: 16px 0 22px; }
.hero .lead { color: var(--light); opacity: 0.92; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-status { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 10px 26px; max-width: 920px; margin-top: 44px; padding: 22px 0 72px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 13.5px; color: #b9c7da; }
.hero-status a { display: inline-flex; align-items: center; gap: 9px; color: #c9d5e6; }
.hero-status a:hover { color: #fff; }
.hero-status .st { color: #7f92ab; font-weight: 500; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.status-dot.live { background: var(--green); box-shadow: 0 0 0 3px rgba(31, 184, 119, 0.22); }
.status-dot.dev { background: var(--amber); box-shadow: 0 0 0 3px rgba(244, 185, 66, 0.22); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(105deg, var(--surface) 0%, var(--navy) 60%, var(--navy-2) 100%); }
.page-hero .hero-wave { opacity: 0.75; }
.page-hero-inner { position: relative; z-index: 2; padding: 76px 0 60px; max-width: 760px; }
.page-hero h1 { color: #fff; font-size: clamp(32px, 4vw, 44px); margin: 14px 0 16px; }
.page-hero .lead { color: var(--light); opacity: 0.9; }
.page-hero .meta { margin-top: 18px; font-size: 13.5px; color: #93a6c0; }
.anchor-nav { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 36px; }
.anchor-nav a { font-size: 13.5px; font-weight: 600; color: #d6e0ef; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.04); transition: background 0.15s, border-color 0.15s; }
.anchor-nav a:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.35); }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--navy); color: var(--light); }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.tight { padding: 64px 0; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(27px, 3vw, 36px); margin: 10px 0 14px; }
.section-head p { font-size: 17px; color: var(--muted); }
.section.dark .section-head p { color: var(--light-muted); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.badge-live { background: var(--green-soft); color: var(--green-text); }
.badge-live::before { background: var(--green); }
.badge-dev { background: var(--amber-soft); color: var(--amber-text); }
.badge-dev::before { background: var(--amber); }
.section.dark .badge-live { background: rgba(31, 184, 119, 0.15); color: #7fe3b6; }
.section.dark .badge-dev { background: rgba(244, 185, 66, 0.15); color: #ffd47a; }

/* ---------- Module cards (home) ---------- */
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.module-card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s; }
.module-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #b9cbe0; }
.module-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.module-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }
.module-icon svg { width: 24px; height: 24px; }
.module-num { font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; color: var(--blue); }
.module-card h3 { font-size: 22px; margin: 6px 0 10px; }
.module-card .desc { color: var(--muted); font-size: 15.5px; margin-bottom: 18px; }
.feature-list { list-style: none; display: grid; gap: 9px; margin-bottom: 24px; }
.feature-list li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.6L12 5.5' fill='none' stroke='%230066ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.section.dark .feature-list li { color: #c9d5e6; }
.module-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; font-weight: 600; font-size: 14.5px; }
.link-arrow { color: var(--blue-text); display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: "→"; transition: transform 0.15s; }
.link-arrow:hover::after { transform: translateX(3px); }
.link-ext { color: var(--navy); display: inline-flex; align-items: center; gap: 6px; }
.link-ext::after { content: "↗"; font-size: 13px; }
.link-ext:hover { color: var(--blue-text); }

/* ---------- Backbone diagram (home, dark) ---------- */
.backbone { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 18px; align-items: stretch; }
.node { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--dark-border); border-radius: var(--radius); padding: 24px; }
.node .eyebrow { color: #7fb0ff; }
.node h3 { font-size: 18px; margin: 8px 0 8px; }
.node p { color: var(--light-muted); font-size: 14.5px; }
.node ul { list-style: none; margin-top: 14px; display: grid; gap: 6px; font-size: 13.5px; color: #c9d5e6; }
.node ul li { padding-left: 14px; position: relative; }
.node ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.node.core { background: linear-gradient(160deg, rgba(0, 102, 255, 0.18), rgba(0, 102, 255, 0.04)); border-color: rgba(0, 102, 255, 0.45); }
.flow-arrow { align-self: center; color: #4f7fc4; }
.flow-arrow svg { width: 34px; height: 34px; }
.backbone-modules { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.backbone-modules .lbl { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 800; color: #7f92ab; margin-right: 6px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--dark-border); background: rgba(255, 255, 255, 0.04); font-size: 13.5px; font-weight: 600; color: #e5eaf2; }
.chip:hover { border-color: rgba(255, 255, 255, 0.35); }

/* ---------- Generic small-card grids ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.mini-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 22px; display: flex; flex-direction: column; gap: 8px; transition: box-shadow 0.2s, transform 0.2s; }
.mini-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.mini-card h3 { font-size: 16.5px; }
.mini-card p { color: var(--muted); font-size: 14.5px; }
.mini-card .link-arrow { margin-top: auto; font-size: 14px; font-weight: 600; padding-top: 6px; }
.mini-card .k { font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }

/* ---------- Callouts ---------- */
.callout { border-left: 3px solid var(--blue); background: var(--blue-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 16px 20px; font-size: 15px; color: var(--text); }
.callout code, .formula { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; }
.formula { display: block; background: var(--navy); color: #dbe7fb; border-radius: var(--radius-sm); padding: 16px 20px; font-size: 14.5px; line-height: 1.6; overflow-x: auto; }
.formula b { color: #7fb0ff; font-weight: 600; }
.note { font-size: 13.5px; color: var(--muted); }

/* ---------- Platform: module sections ---------- */
.module-section { padding: 84px 0; border-top: 1px solid var(--line); }
.module-section.alt { background: var(--bg-alt); }
.module-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 40px; align-items: start; margin-bottom: 40px; }
.module-head .meta-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.module-head h2 { font-size: clamp(27px, 3vw, 34px); margin-bottom: 14px; }
.module-head .regimes { margin: -6px 0 14px; font-size: 14px; font-weight: 700; letter-spacing: 0.04em; color: var(--blue-text); }
.module-head .lead { font-size: 17px; }
.module-head .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.module-aside { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.module-aside h4 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.module-aside dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; }
.module-aside dt { color: var(--muted); font-weight: 600; }
.module-aside dd { margin: 0; color: var(--navy); font-weight: 600; }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.detail-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.detail .k { font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.detail h3 { font-size: 17.5px; margin: 6px 0 12px; }
.detail .feature-list { margin-bottom: 0; }
.detail .feature-list li { font-size: 14px; }
.module-section .status-line { margin-top: 26px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------- Solutions ---------- */
.role { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; padding: 64px 0; border-top: 1px solid var(--line); }
.role:first-of-type { border-top: 0; }
.role h2 { font-size: 28px; margin: 8px 0 12px; }
.role .lead { font-size: 16.5px; }
.role-cols { display: grid; gap: 16px; }
.role-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.role-box .k { display: flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.role-box .feature-list { margin-bottom: 0; }
.map-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }
.map-table th, .map-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 14.5px; vertical-align: top; }
.map-table th { background: #edf3f8; color: #546b82; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.map-table tr:last-child td { border-bottom: 0; }
.map-table td:first-child { font-weight: 600; color: var(--navy); }
.calendar-table td:first-child { white-space: nowrap; }

/* ---------- Resources ---------- */
.res-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.res-nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 4px; margin-left: -12px; }
.res-nav .lbl { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 800; color: var(--muted); padding: 6px 12px 8px; }
.res-nav a { padding: 9px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 600; color: var(--text-2); border-left: 2px solid transparent; }
.res-nav a:hover { background: var(--bg-alt); color: var(--navy); }
.res-nav a.active { color: var(--blue-text); background: var(--blue-soft); }
.guide { padding: 12px 0 64px; }
.guide + .guide { border-top: 1px solid var(--line); padding-top: 56px; }
.guide-head { margin-bottom: 26px; }
.guide-head .tag { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.guide-head h2 { font-size: 30px; margin: 8px 0 10px; }
.guide-head p { font-size: 16.5px; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0 28px; }
.fact { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.fact dt { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.fact dd { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--navy); line-height: 1.45; }
.guide h3 { font-size: 18px; margin: 30px 0 12px; }
.guide p { color: var(--text-2); font-size: 15.5px; margin-bottom: 12px; }
.guide ul.plain { list-style: none; display: grid; gap: 8px; }
.guide ul.plain li { position: relative; padding-left: 20px; font-size: 15px; color: var(--text-2); }
.guide ul.plain li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.dates { list-style: none; display: grid; }
.dates li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--border); font-size: 15px; color: var(--text-2); }
.dates li:last-child { border-bottom: 0; }
.dates b { color: var(--navy); font-weight: 700; }
.mats-note { margin-top: 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mats-note .box { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; background: #fff; }
.mats-note .box .k { display: flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.mats-note .box p { font-size: 14.5px; margin: 0; }
.disclaimer { background: #f6f8fb; border: 1px solid var(--line); color: var(--muted); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 13.5px; line-height: 1.55; }
.disclaimer span { color: var(--text-2); font-weight: 600; white-space: nowrap; }

/* ---------- Company ---------- */
.mission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.mission-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; }
.mission-card .k { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
.mission-card h2 { font-size: 26px; margin: 10px 0 14px; }
.mission-card p { color: var(--text-2); font-size: 16px; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: p; }
.principle { border: 1px solid var(--dark-border); background: rgba(255, 255, 255, 0.04); border-radius: var(--radius); padding: 24px; }
.principle .n { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; color: #7fb0ff; }
.principle h3 { font-size: 17.5px; margin: 8px 0 10px; }
.principle p { color: var(--light-muted); font-size: 14.5px; }
.status-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.status-item { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.status-item .module-icon { width: 42px; height: 42px; }
.status-item h3 { font-size: 17px; margin-bottom: 6px; }
.status-item p { color: var(--muted); font-size: 14.5px; }
.status-item .badge { margin-left: auto; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(105deg, var(--surface) 0%, var(--navy) 60%, var(--navy-2) 100%); color: #fff; padding: 72px 0; position: relative; overflow: hidden; }
.cta-band .hero-glow { right: -20%; top: -20%; }
.cta-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; }
.cta-band p { color: var(--light-muted); font-size: 16px; max-width: 560px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); color: var(--light-muted); padding: 64px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer-logo { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer-logo img { height: 40px; width: auto; }
.wordmark { display: flex; flex-direction: column; color: #fff; font-size: 24px; font-weight: 800; letter-spacing: 0.3em; line-height: 1; }
.wordmark small { font-size: 8.5px; font-weight: 700; letter-spacing: 0.17em; text-transform: uppercase; color: #94a3b8; margin-top: 7px; }
.footer-brand p { max-width: 300px; color: #7f92ab; font-size: 13.5px; line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a { display: block; padding: 4px 0; color: var(--light-muted); transition: color 0.15s; }
.footer-col a:hover { color: #fff; }
.footer-col .sub { font-size: 12px; color: #6c7d94; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: #6c7d94; }

/* ---------- Demo request modal ---------- */
.demo-modal { border: 0; padding: 0; border-radius: 16px; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: #fff; color: var(--text); box-shadow: var(--shadow-lg); }
.demo-modal::backdrop { background: rgba(2, 11, 26, 0.62); backdrop-filter: blur(3px); }
.demo-modal-inner { padding: 28px 30px 30px; }
.demo-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.demo-modal-head h2 { font-size: 22px; }
.demo-modal-head p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.modal-close { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--border); background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--muted); flex-shrink: 0; }
.modal-close:hover { color: var(--navy); border-color: #8faacb; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field[hidden] { display: none; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #52677c; }
.field .req { color: var(--red-text); }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #cbd7e3; border-radius: 9px; padding: 11px 12px; background: #fff; outline: none; transition: border-color 0.15s, box-shadow 0.15s; font-size: 15px; }
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.14); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.form-actions .note { font-size: 12.5px; }
.form-msg { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 9px; font-size: 14px; }
.form-msg.error { display: block; background: var(--red-soft); border: 1px solid #ebbbbb; color: #8e2f2f; }
.form-msg.error a { color: inherit; font-weight: 700; text-decoration: underline; }
.form-msg.info { display: block; background: var(--blue-soft); border: 1px solid #c8daf8; color: #204d85; }
.form-privacy { margin-top: 12px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.form-privacy a { color: var(--blue-text); font-weight: 600; }
.form-privacy a:hover { text-decoration: underline; }
.demo-success { display: none; text-align: center; padding: 26px 8px 8px; }
.demo-success .ok { width: 56px; height: 56px; border-radius: 50%; background: var(--green-soft); color: var(--green-text); display: grid; place-items: center; margin: 0 auto 16px; }
.demo-success h3 { font-size: 20px; margin-bottom: 8px; }
.demo-success p { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.demo-modal.is-success form { display: none; }
.demo-modal.is-success .demo-success { display: block; }

/* ---------- Legal, privacy and terms ---------- */
.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; align-items: start; }
.legal-nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 4px; }
.legal-nav a { padding: 9px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 600; color: var(--text-2); border-left: 2px solid transparent; }
.legal-nav a:hover { background: var(--bg-alt); color: var(--navy); }
.legal-section { padding: 0 0 48px; }
.legal-section + .legal-section { border-top: 1px solid var(--line); padding-top: 48px; }
.legal-section h2 { font-size: 28px; margin-bottom: 16px; }
.legal-section h3 { font-size: 18px; margin: 28px 0 10px; }
.legal-section p { color: var(--text-2); font-size: 15.5px; margin-bottom: 12px; }
.legal-section ul { padding-left: 20px; color: var(--text-2); font-size: 15.5px; display: grid; gap: 8px; }
.legal-section a { color: var(--blue-text); font-weight: 600; }

/* ---------- Utilities (no inline styles → strict CSP) ---------- */
.mt-10 { margin-top: 10px; } .mt-12 { margin-top: 12px; } .mt-28 { margin-top: 28px; } .mb-40 { margin-bottom: 40px; }
.pt-24 { padding-top: 24px; } .pt-48 { padding-top: 48px; }
.h3-sm { font-size: 17px; margin-bottom: 10px; }

/* ---------- 404 ---------- */
.err-page { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; text-align: center; padding: 80px 0; }
.err-page h1 { font-size: 64px; color: var(--blue); }
.err-page p { color: var(--muted); margin: 10px 0 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles, .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col a { font-size: 13.5px; }
}
@media (max-width: 960px) {
  .backbone { grid-template-columns: 1fr; }
  .flow-arrow { justify-self: center; transform: rotate(90deg); }
  .module-head, .role, .res-layout, .legal-layout { grid-template-columns: 1fr; }
  .res-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; margin-left: 0; }
  .legal-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .res-nav .lbl { width: 100%; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .primary-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
}
@media (max-width: 760px) {
  :root { --gutter: 22px; }
  .section { padding: 64px 0; }
  .hero-inner { padding: 72px 0 0; }
  .hero-status { padding-bottom: 56px; }
  .module-grid, .grid-2, .grid-3, .grid-4, .mission-grid, .status-list, .mats-note, .form-grid, .facts, .principles, .detail-grid { grid-template-columns: 1fr; }
  .module-card { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dates li { grid-template-columns: 1fr; gap: 2px; }
  .hero-status { gap: 10px 18px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .brand img { height: 30px; }
  .btn { width: 100%; }
  .hero-actions .btn, .cta-actions .btn, .form-actions .btn { width: auto; }
}
