/* Secured Networks – site styles. No external requests: fonts are self-hosted. */

@font-face { font-family: "Inter Display"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/inter-display-500.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-400.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-600.woff") format("woff"); }

:root {
  --bg: #F7F8FA;
  --panel: #FFFFFF;
  --line: #E2E6EC;
  --line-strong: #C9D0DA;
  --ink: #172033;
  --muted: #566073;
  --brand: #2547D0;
  --brand-strong: #1B37A8;
  --brand-tint: #EEF2FD;
  --navy: #0E1A33;
  --led-green: #22A36A;
  --led-amber: #F0A229;
  --display: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--text); font-feature-settings: "cv11", "ss01"; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3, h4 { font-weight: 600; line-height: 1.35; margin: 0 0 0.4em; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: 0.875rem; color: var(--muted); }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 46em; }
mark.ph { background: #FFF1C2; color: #3B2F00; border-radius: 3px; padding: 0 2px; }

.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; color: #fff; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 600; text-decoration: none; border: 1px solid transparent; font-size: 1rem; cursor: pointer; font-family: inherit; }
.btn:hover { background: var(--brand-strong); color: #fff; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 0.9375rem; }
.btn-light { background: #fff; color: var(--brand-strong); }
.btn-light:hover { background: var(--brand-tint); color: var(--brand-strong); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-outline { background: transparent; color: var(--brand-strong); border-color: var(--line-strong); }
.btn-outline:hover { background: var(--brand-tint); color: var(--brand-strong); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.actions.center { justify-content: center; }
.link { font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Announcement bar */
.announce { background: var(--brand-strong); text-align: center; font-size: 0.875rem; padding: 9px 16px; }
.announce a { color: #fff; text-decoration: none; }
.announce a:hover { text-decoration: underline; }

/* Header */
.site-header { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand span, .btn { white-space: nowrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 500; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.mark { width: 32px; height: 32px; color: var(--brand); flex: none; }
.nav { flex: 1; }
.nav > ul { display: flex; justify-content: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav > ul > li { position: relative; }
.nav a { display: block; white-space: nowrap; padding: 10px 10px; color: var(--ink); text-decoration: none; font-size: 0.9375rem; font-weight: 500; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--bg); color: var(--brand-strong); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang { font-size: 0.875rem; font-weight: 600; color: var(--muted); text-decoration: none; padding: 8px; }

.mega { position: absolute; left: -12px; top: 100%; padding-top: 10px; display: none; }
.has-mega:hover .mega, .has-mega:focus-within .mega { display: block; }
.mega-inner { display: grid; grid-template-columns: repeat(4, 210px); gap: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 18px 40px -18px rgba(23, 32, 51, 0.28); }
.mega-small .mega-inner { grid-template-columns: 1fr; min-width: 260px; padding: 12px; }
.mega-small ul { font-size: 0.9375rem; }
.mega-small a { color: var(--ink); }
.mega-foot { grid-column: 1 / -1; display: flex; gap: 8px; margin: 0; padding-top: 16px; border-top: 1px solid var(--line); }
.mega-foot a { font-weight: 600; color: var(--brand-strong); }
.nav a.in-section { color: var(--brand-strong); background: var(--bg); }
.mega .mega-title { padding: 0 0 8px; font-weight: 600; color: var(--brand-strong); }
.mega ul { list-style: none; padding: 0; margin: 0; font-size: 0.875rem; color: var(--muted); }
.mega li { padding: 3px 0; }

.mobile-nav { display: none; position: relative; }
.mobile-nav summary { list-style: none; cursor: pointer; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 600; font-size: 0.9375rem; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav ul { position: absolute; right: 0; top: calc(100% + 10px); width: min(86vw, 320px); list-style: none; margin: 0; padding: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px -18px rgba(23, 32, 51, 0.28); }
.mobile-nav a { display: block; padding: 12px; color: var(--ink); text-decoration: none; border-radius: 8px; }
.mobile-nav a:hover { background: var(--bg); }

/* Hero */
.hero { padding: 24px 0 0; }
.hero-panel { position: relative; overflow: hidden; border-radius: 24px; background-color: var(--brand); color: #fff; padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 64px) clamp(28px, 4vw, 48px); text-align: center;
  background-image:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px),
    radial-gradient(120% 80% at 50% 0%, #3A5CE6 0%, var(--brand) 55%, var(--brand-strong) 100%);
  background-size: 40px 40px, 40px 40px, 100% 100%; }
.hero h1 { max-width: 15em; margin-inline: auto; }
.hero .lead { color: rgba(255,255,255,0.86); margin-inline: auto; }
.hero .actions { justify-content: center; }
.hero :focus-visible { outline-color: #fff; }
.hero-visual { margin: clamp(36px, 5vw, 56px) auto 0; max-width: 920px; background: var(--panel); border-radius: 18px; padding: clamp(12px, 2.5vw, 28px); box-shadow: 0 30px 60px -30px rgba(10, 20, 60, 0.6); }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; list-style: none; padding: 20px 0 0; margin: 0; color: var(--muted); font-size: 0.9375rem; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--led-green); }

.diagram { width: 100%; }
.d-box { fill: #fff; stroke: #1D2B4A; stroke-width: 1.25; }
.d-line { stroke: #B7C0CE; stroke-width: 1.5; }
.d-isl { stroke-dasharray: 4 4; }
.d-label { font: 600 13px var(--text); fill: var(--ink); }
.d-small { font: 400 12px var(--text); fill: var(--muted); }
.d-route { fill: none; stroke: var(--led-amber); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 900; stroke-dashoffset: 900; animation: route 1.8s cubic-bezier(.6,.1,.3,1) 0.5s forwards; }
.d-route-static { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
@keyframes route { to { stroke-dashoffset: 0; } }

/* Hero image */
.hero-image { margin: clamp(28px, 4vw, 48px) auto 0; max-width: 960px; }
.hero-image img { width: 100%; height: auto; }
.hero-image figcaption { margin-top: 8px; font-size: 0.8125rem; color: rgba(255,255,255,0.8); }

/* Page head (inner pages) */
.pagehead { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); background: var(--panel); border-bottom: 1px solid var(--line);
  background-image: linear-gradient(var(--bg) 1px, transparent 1px), linear-gradient(90deg, var(--bg) 1px, transparent 1px); background-size: 40px 40px; }
.pagehead h1 { max-width: 16em; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; padding: 0; margin: 28px 0 0; color: var(--muted); font-size: 0.9375rem; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--led-green); flex: none; }

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding: clamp(32px, 5vw, 56px) 0; }
.section-alt { background: var(--panel); border-block: 1px solid var(--line); }
.section:not(.section-alt) + .section:not(.section-alt) { padding-top: 0; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; }
.section-head p { color: var(--muted); font-size: 1.125rem; }

/* Bordered grids */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; list-style: none; padding: 0; margin: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.cell { background: var(--panel); padding: 28px; }
.cell p { color: var(--muted); margin: 0; }
.cell p + p { margin-top: 10px; }
.cell .result { color: var(--ink); font-size: 0.9375rem; }
.grid-2 > .cell:last-child:nth-child(odd) { grid-column: 1 / -1; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 16px 0 0; }
.tags li { font-size: 0.8125rem; font-weight: 600; line-height: 1.4; color: var(--brand-strong); background: var(--brand-tint); border-radius: 999px; padding: 3px 10px; }
.steps .hop { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-strong); font-weight: 600; font-size: 0.875rem; margin-bottom: 16px; }

/* Tabs */
.tab-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin: 0 auto 28px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; width: fit-content; max-width: 100%; }
.tab-list[hidden] { display: none; }
.tab-list button { font: 600 0.9375rem var(--text); color: var(--muted); background: none; border: 0; padding: 10px 18px; border-radius: 999px; cursor: pointer; }
.tab-list button[aria-selected="true"] { background: var(--brand); color: #fff; }
.tab-panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; padding: 40px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; }
.tab-panel + .tab-panel { margin-top: 16px; }
.tabs.is-ready .tab-panel + .tab-panel { margin-top: 0; }
.tab-panel[hidden] { display: none; }
.tab-label { font-weight: 600; color: var(--brand); margin-bottom: 8px; }
.tabs.is-ready .tab-label { display: none; }
.tab-intro h3 { font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.015em; line-height: 1.15; }
.tab-intro p { color: var(--muted); }
.tab-panel .grid { background: var(--line); }
.tab-panel .cell { padding: 22px; }

/* Areas (services page) */
.area { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; padding: 40px 0; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.area:first-of-type { border-top: 0; padding-top: 0; }
.area-title { font-size: clamp(1.5rem, 2.4vw, 2rem); }

/* Vendors */
.vendors { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 0 auto 28px; max-width: 920px; }
.vendors li { padding: 12px 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-weight: 600; color: var(--ink); font-size: 0.9375rem; }

/* Offers (Private AI services) */
.offer { scroll-margin-top: 96px; }
.offer h3 { font-family: var(--display); font-weight: 500; font-size: 1.5rem; letter-spacing: -0.01em; margin-bottom: 6px; }
.offer .tagline { color: var(--ink); font-weight: 600; margin-bottom: 12px; }
.checks { list-style: none; padding: 0; margin: 16px 0; color: var(--muted); }
.checks li { position: relative; padding-left: 26px; margin: 6px 0; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 10px; height: 6px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }

/* Product panels (home) */
.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
/* Four cards: two rows of two instead of three plus one */
@media (min-width: 761px) { .trio:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); } }
.trio h3 { font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 2vw, 1.75rem); letter-spacing: -0.01em; }
.status { display: inline-block; margin: 0 0 14px; padding: 4px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line-strong); font-size: 0.8125rem; font-weight: 600; color: var(--brand-strong); }
.section[id] { scroll-margin-top: 96px; }

/* Quote */
.quote { margin: 0 auto; max-width: 880px; text-align: center; }
.quote blockquote { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.3; letter-spacing: -0.01em; }
.quote figcaption { margin-top: 16px; color: var(--muted); }

/* Duo panels */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.duo-panel { padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.duo-tint { background: var(--brand-tint); border-color: #DCE3FA; }
.duo-panel h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.duo-panel p { color: var(--muted); }

/* Closing call to action */
.cta { padding: clamp(72px, 10vw, 128px) 0; background: var(--panel); border-top: 1px solid var(--line); }
.cta h2 { font-size: clamp(2rem, 4vw, 3.25rem); max-width: 18em; margin-inline: auto; }
.cta p { color: var(--muted); max-width: 40em; margin-inline: auto; }
.cta-contact { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; font-size: 0.9375rem; }
.cta-contact span { color: var(--line-strong); }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
th, td { text-align: left; vertical-align: top; padding: 18px 24px; border-bottom: 1px solid var(--line); }
thead th { font-size: 0.875rem; color: var(--muted); font-weight: 600; background: var(--bg); }
tbody th { font-weight: 600; width: 30%; }
table:has(thead th:nth-child(4)) tbody th { width: 20%; }
table:has(thead th:nth-child(4)) { min-width: 760px; }
tbody tr:last-child > * { border-bottom: 0; }
.after { margin-top: 24px; font-size: 1.125rem; }
.note { margin-top: 20px; font-size: 0.875rem; color: var(--muted); max-width: 60em; }

/* Courses */
.courses { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.course + .course { border-top: 1px solid var(--line); }
.course summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 24px; gap: 16px; align-items: center; padding: 22px 28px; cursor: pointer; list-style: none; }
.course summary::-webkit-details-marker { display: none; }
.course summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); justify-self: center; margin-top: -4px; transition: transform .2s; }
.course[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.course summary:hover { background: var(--bg); }
.course-title { font-weight: 600; font-size: 1.125rem; }
.course-meta { color: var(--muted); font-size: 0.9375rem; text-align: right; }
.course-body { padding: 4px 28px 28px; }
.course-facts { color: var(--muted); }
.course-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 16px 0 24px; }
.course-cols h3 { font-size: 1rem; }
.course-cols h4 { font-size: 0.9375rem; margin-top: 16px; }
.course-cols ul { margin: 0; font-size: 0.9375rem; color: var(--muted); }
.course-cols li { margin: 3px 0; }

/* Posts */
.posts { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.post-meta { font-size: 0.875rem; }

/* Prose (legal pages) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.375rem; margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 40px); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin: 0 0 18px; }
.field label { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--brand-tint); border-color: var(--brand); }
.req { color: var(--brand); }
.hp { position: absolute; left: -9999px; }
.form-status:empty { display: none; }
.form-status { background: var(--brand-tint); border-radius: 10px; padding: 12px 16px; }
.contact-info h2 { font-size: 1.125rem; font-family: var(--text); font-weight: 600; letter-spacing: 0; margin-top: 8px; }

/* Footer */
.site-footer { background: var(--navy); color: #C6CEDD; padding: 72px 0 32px; font-size: 0.9375rem; }
.site-footer a { color: #E6EBF5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand { color: #fff; }
.site-footer .mark { color: #fff; }
.site-footer .mark path { fill: var(--navy); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-grid h2 { font: 600 0.9375rem var(--text); color: #fff; letter-spacing: 0; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 0 0 8px; }
.footer-brand p { margin-top: 16px; max-width: 30em; }
.footer-brand .small { color: #98A3B8; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.875rem; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; padding: 0; margin: 0; }
.site-footer :focus-visible { outline-color: #fff; }

/* Responsive */
@media (max-width: 1200px) {
  .nav { display: none; }
  .mobile-nav { display: block; }
  .header-inner { justify-content: space-between; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .tab-panel { grid-template-columns: 1fr; gap: 24px; }
  .area { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trio { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .header-actions .btn-sm { display: none; }
  .grid-2, .grid-3, .grid-4, .duo, .contact, .field-row, .course-cols { grid-template-columns: 1fr; }
  .tab-panel { padding: 24px; }
  .course summary { grid-template-columns: minmax(0, 1fr) 24px; }
  .course-meta { grid-column: 1; grid-row: 2; text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-panel { border-radius: 18px; }
  .tab-list { border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .d-route { animation: none; stroke-dashoffset: 0; }
  .course summary::after { transition: none; }
}
