:root {
  --primary: #004466;
  --primary-light: #006699;
  --accent: #00a6d6;
  --ink: #122b38;
  --muted: #5b707b;
  --surface: #fff;
  --soft: #eef6f8;
  --line: #d7e5ea;
  --success: #087a58;
  --shadow: 0 18px 48px rgba(0, 68, 102, .10);
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #f8fbfc;
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary-light); text-underline-offset: .2em; }
a:hover { color: var(--primary); }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .7rem 1rem; color: #fff; background: var(--primary); border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.wrap { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 2rem), 820px); margin-inline: auto; }
.section { padding: 4.5rem 0; }
.section-sm { padding: 2.7rem 0; }
.soft { background: var(--soft); }
.dark { color: #fff; background: var(--primary); }
.eyebrow { margin: 0 0 .8rem; color: var(--primary-light); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.dark .eyebrow { color: #8ee8ff; }
h1, h2, h3 { margin: 0 0 .75rem; color: var(--primary); line-height: 1.15; letter-spacing: -.025em; }
h1 { font-size: clamp(2.25rem, 6vw, 4.7rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.7rem); }
h3 { font-size: 1.2rem; }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.lead { max-width: 760px; margin: 0 0 1.5rem; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.dark .lead { color: #d5ebf2; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.section-head p { max-width: 670px; margin: 0; color: var(--muted); }

.site-header { position: sticky; top: 0; z-index: 50; color: #fff; background: rgba(0, 68, 102, .98); border-bottom: 1px solid rgba(255,255,255,.14); }
.header-row { min-height: 76px; display: flex; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand img { display: block; width: 188px; height: auto; }
.menu-toggle { display: none; padding: .55rem .75rem; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.45); border-radius: 9px; cursor: pointer; }
.site-nav { display: flex; align-items: center; gap: .15rem; }
.site-nav a { padding: .55rem .62rem; color: #fff; border-radius: 8px; font-size: .88rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(255,255,255,.13); }
.languages { display: flex; gap: .25rem; margin-left: .5rem; padding-left: .7rem; border-left: 1px solid rgba(255,255,255,.3); }
.languages a { padding: .35rem .42rem; color: #d7edf4; border-radius: 6px; font-size: .75rem; font-weight: 800; text-decoration: none; }
.languages a[aria-current="true"] { color: var(--primary); background: #fff; }

.hero { overflow: hidden; padding: clamp(4rem, 9vw, 7.4rem) 0; color: #fff; background: var(--primary); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.hero h1 { color: #fff; }
.hero .lead { color: #d8eef5; }
.hero .eyebrow { color: #8ee8ff; }
.hero .hero-panel .eyebrow { color: var(--primary-light); }
.hero-panel { position: relative; padding: 2rem; background: #fff; border-radius: 24px; box-shadow: 0 28px 70px rgba(0,0,0,.24); color: var(--ink); }
.hero-panel::before { content: ""; position: absolute; width: 120px; height: 8px; top: 0; left: 2rem; background: var(--accent); border-radius: 0 0 8px 8px; }
.hero-panel h2, .hero-panel h3 { color: var(--primary); }
.price { margin: .5rem 0; color: var(--primary); font-size: 2.8rem; font-weight: 850; letter-spacing: -.05em; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.7rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .72rem 1.1rem; border: 1px solid transparent; border-radius: 10px; font-weight: 800; text-align: center; text-decoration: none; }
.button-primary { color: #062f42; background: var(--accent); }
.button-primary:hover { color: #062f42; background: #60d6f5; }
.button-dark { color: #fff; background: var(--primary); }
.button-dark:hover { color: #fff; background: #00344f; }
.button-light { color: #fff; border-color: rgba(255,255,255,.65); background: transparent; }
.button-light:hover { color: var(--primary); background: #fff; }
.button-quiet { color: var(--primary); border-color: var(--line); background: #fff; }
.button-quiet:hover { background: var(--soft); }
.button-disabled { color: #687b84; border-color: #ccd9dd; background: #edf2f4; cursor: not-allowed; }
.badges { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0; }
.badge { display: inline-flex; align-items: center; padding: .32rem .62rem; color: var(--primary); background: #e6f5f9; border: 1px solid #c9e8ef; border-radius: 999px; font-size: .78rem; font-weight: 800; }
.badge-inverse { color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); }

.grid { display: grid; gap: 1.2rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { padding: 1.55rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 26px rgba(0,68,102,.05); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card-icon { display: grid; width: 44px; height: 44px; place-items: center; margin-bottom: 1.1rem; color: #fff; background: var(--primary); border-radius: 12px; font-weight: 900; }
.check-list, .plain-list { margin: 1rem 0 0; padding: 0; list-style: none; }
.check-list li, .plain-list li { position: relative; margin: .55rem 0; padding-left: 1.45rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 900; }
.plain-list li::before { content: "—"; position: absolute; left: 0; color: var(--accent); font-weight: 900; }
.product-card { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid #bcdce5; border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.product-visual { display: grid; min-height: 280px; place-items: center; color: #fff; background: var(--primary); border-radius: 18px; }
.connector-mark { display: grid; grid-template-columns: 68px 68px; align-items: center; gap: 42px; position: relative; }
.connector-mark::before { content: ""; position: absolute; left: 60px; right: 60px; height: 4px; background: var(--accent); }
.connector-node { display: grid; width: 68px; height: 68px; place-items: center; z-index: 1; color: var(--primary); background: #fff; border-radius: 18px; font-size: 1.45rem; font-weight: 900; }
.platform-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.platform { padding: 1.4rem; border-left: 4px solid var(--accent); background: #fff; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2rem; border-radius: 20px; background: var(--primary); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { margin: 0; color: #d8eef5; }
.process { display: grid; grid-template-columns: repeat(6, 1fr); gap: .8rem; counter-reset: step; }
.process-item { position: relative; padding: 1.15rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.process-item::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; margin-bottom: .5rem; color: var(--accent); font-weight: 900; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
#demo { scroll-margin-top: 90px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .9rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--primary); background: var(--soft); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
.note { padding: 1rem 1.15rem; border-left: 4px solid var(--accent); background: #eef8fb; border-radius: 0 10px 10px 0; }
.warning { border-left-color: #c77a00; background: #fff5df; }
.breadcrumbs { padding: 1rem 0; color: var(--muted); font-size: .88rem; }
.breadcrumbs a { text-decoration: none; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { margin-top: 2.5rem; }
.faq details { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.faq summary { color: var(--primary); font-weight: 800; cursor: pointer; }
.faq details p { margin-bottom: 0; color: var(--muted); }
.shot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.shot { margin: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.shot-box { display: grid; aspect-ratio: 4/3; place-items: center; padding: 1rem; color: #69808a; background: repeating-linear-gradient(135deg, #f3f7f8, #f3f7f8 12px, #eaf1f3 12px, #eaf1f3 24px); text-align: center; font-size: .84rem; }
.shot figcaption { padding: .75rem; font-size: .85rem; font-weight: 700; }
.meta-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; margin-top: -1px; background: var(--line); border: 1px solid var(--line); border-radius: 0 0 18px 18px; }
.meta-item { padding: 1.1rem; background: #fff; }
.meta-item small { display: block; color: var(--muted); }
.meta-item strong { color: var(--primary); }

.site-footer { padding: 3rem 0 1.5rem; color: #d3e7ed; background: #062f42; }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 2rem; }
.site-footer h2, .site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer a { display: block; margin: .35rem 0; color: #d3e7ed; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .84rem; }

/* Existing editorial pages keep their content but gain the new commercial navigation. */
body.legacy-page { background: #f4f8f9; }
.legacy-page > header { background: var(--primary); }
.legacy-page > header h1 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.legacy-page > nav:not(.breadcrumb) { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem; padding: .75rem 1rem; background: #e8f1f4; }
.legacy-page > nav:not(.breadcrumb) a { margin: 0; padding: .45rem .65rem; border-radius: 7px; }
.legacy-page > section { width: min(calc(100% - 2rem), 1000px); margin: 1.5rem auto; border-radius: 14px; box-shadow: var(--shadow); }
.legacy-page .breadcrumb { display: block; padding: 0; }

@media (max-width: 1024px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { position: absolute; inset: 76px 0 auto; display: none; flex-direction: column; align-items: stretch; padding: .8rem 1rem 1.2rem; background: var(--primary); border-top: 1px solid rgba(255,255,255,.15); }
  .site-nav[data-open="true"] { display: flex; }
  .site-nav a { padding: .65rem .8rem; }
  .languages { margin: .35rem 0 0; padding: .65rem 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.2); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(3, 1fr); }
  .shot-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .section { padding: 3.3rem 0; }
  .section-head, .cta-band { align-items: flex-start; flex-direction: column; }
  .hero-grid, .product-card, .grid-2, .grid-3, .platform-row { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero-panel { padding: 1.5rem; }
  .meta-strip { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .brand img { width: 160px; }
  .actions .button { flex: 1 1 170px; }
}

@media (max-width: 420px) {
  .wrap, .narrow { width: min(calc(100% - 1.25rem), var(--max)); }
  .process, .shot-grid, .meta-strip { grid-template-columns: 1fr; }
  .card, .hero-panel { border-radius: 14px; }
  th, td { padding: .7rem; }
}

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