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

:root {
  --navy: #142033;
  --navy-2: #1c2e48;
  --ink: #182230;
  --muted: #5c6b80;
  --line: #e3e8ef;
  --soft: #f4f6f9;
  --white: #ffffff;
  --accent: #e64b42;
  --accent-strong: #c4342c;
  --link: #9f2e28;
  --ok: #1f7a4d;
  --shadow: 0 16px 40px rgba(20, 32, 51, 0.08);
  --header: 76px;
  --radius: 18px;
  --container: 1160px;
  --measure: 74ch;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-strong); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--navy);
  color: var(--white);
  padding: 10px 14px;
  z-index: 100;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; color: var(--white); }

.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;
}

.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(800px, 100%); }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 0.6em; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 5vw, 4.35rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 46rem; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.kicker::before { content: ""; width: 18px; height: 2px; background: var(--accent); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(20, 32, 51, 0.06);
}
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(20, 32, 51, 0.06); }
.header-bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; font-weight: 800; letter-spacing: -0.04em; font-size: 1.25rem; }
.logo:hover { color: var(--navy); }
.logo-mark { width: 36px; height: 36px; flex: none; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 0;
  cursor: pointer;
}
.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  position: relative;
  margin: 0 auto;
}
.nav-toggle-lines::before,
.nav-toggle-lines::after { content: ""; position: absolute; left: 0; }
.nav-toggle-lines::before { top: -6px; }
.nav-toggle-lines::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after { top: 0; transform: rotate(-45deg); }

.site-nav { display: flex; align-items: center; gap: 6px; }
.nav-item { position: relative; }
.nav-link, .nav-single {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  font-weight: 600;
  cursor: pointer;
  border-radius: 10px;
}
.nav-link:hover, .nav-single:hover, .nav-single[aria-current="page"] { background: var(--soft); color: var(--navy); }
.nav-caret { width: 8px; height: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.nav-panel {
  display: none;
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  min-width: 260px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.nav-item:hover .nav-panel,
.nav-item:focus-within .nav-panel,
.nav-item.is-open .nav-panel { display: grid; }
.nav-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.nav-panel a:hover, .nav-panel a[aria-current="page"] { background: var(--soft); color: var(--navy); }
.nav-cta { margin-left: 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
}
.btn-primary { background: var(--accent-strong); color: var(--white); }
.btn-primary:hover { background: #a82c25; color: var(--white); }
.btn-secondary { background: transparent; color: var(--navy); border-color: #c9d2de; }
.btn-secondary:hover { border-color: var(--navy); color: var(--navy); background: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { color: var(--navy); background: #f7f8fb; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.65; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.hero { padding: 56px 0 28px; background:
  radial-gradient(900px 420px at 90% -10%, rgba(230, 75, 66, 0.12), transparent 60%),
  linear-gradient(#fff, #fff);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero-grid > *, .split > *, .layout-guide > *, .contact-grid > *, .footer-grid > * { min-width: 0; }
.hero h1 { margin-bottom: 16px; }
.hero-visual {
  background: var(--navy);
  border-radius: 28px;
  min-height: 420px;
  padding: 28px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero-visual::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  right: 12px;
  bottom: 12px;
  background: rgba(230, 75, 66, 0.28);
}
.device-stage { position: relative; z-index: 1; display: grid; gap: 16px; }
.device-card { background: #1c2e48; border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 16px 16px 14px; }
.device-card strong { display: block; font-size: 0.95rem; }
.device-card span { color: #c5d0de; font-size: 0.92rem; }
.device-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pill { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: #ffd0cc; font-weight: 700; }
.id-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.id-box { background: #10192a; border-radius: 10px; padding: 10px; }
.id-box small { display: block; color: #93a0b5; font-size: 0.75rem; }
.id-box b { font-weight: 700; }
.link-line { height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }

.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 28px 0 10px; }
.trust-item { padding-top: 14px; border-top: 2px solid var(--navy); }
.trust-item strong { display: block; margin-bottom: 4px; }
.trust-item p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.section { padding: 84px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--navy); color: #e7edf5; }
.section-dark h2, .section-dark h3 { color: white; }
.section-dark p { color: #c9d4e3; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-dark .kicker { color: #ffb1ab; }

.card-grid, .split, .step-grid, .resource-grid { display: grid; gap: 18px; }
.card-grid { grid-template-columns: repeat(3, 1fr); }
.card, .service-card, .resource-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 1px 0 rgba(20, 32, 51, 0.02);
}
.service-card { display: flex; flex-direction: column; min-height: 100%; color: inherit; text-decoration: none; }
.service-card:hover { border-color: #c9d3e0; transform: translateY(-3px); color: inherit; box-shadow: var(--shadow); }
.icon-badge {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--navy); color: white; margin-bottom: 16px;
}
.icon-badge svg { width: 22px; height: 22px; }
.service-card p { color: var(--muted); flex: 1; }
.card-link { margin-top: 8px; font-weight: 700; color: var(--link); }

.split { grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }
.media-frame { border-radius: 24px; overflow: hidden; background: var(--soft); border: 1px solid var(--line); }
.media-frame img { width: 100%; height: auto; }
.caption { margin-top: 8px; color: var(--muted); font-size: 0.92rem; }

.step-grid { grid-template-columns: repeat(4, 1fr); }
.step { padding: 8px 8px 0 0; }
.step em {
  display: block; font-style: normal; font-weight: 800; color: var(--accent);
  letter-spacing: 0.08em; margin-bottom: 8px;
}

.platform-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.platform {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 16px;
}
.platform strong { display: block; margin-bottom: 6px; }
.platform p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.section-dark .platform { background: #1c2e48; border-color: rgba(255,255,255,0.08); }
.section-dark .platform p { color: #c5d0de; }

.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: white; }
.faq-item button {
  width: 100%; text-align: left; background: transparent; border: 0; padding: 16px 18px;
  font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; gap: 16px;
}
.faq-item button span[aria-hidden] { color: var(--accent-strong); font-weight: 500; }
.faq-item .faq-panel { padding: 0 18px 16px; color: var(--muted); display: none; }
.faq-item.is-open .faq-panel { display: block; }

.cta-band {
  background:
    radial-gradient(500px 180px at 100% 0%, rgba(230,75,66,0.35), transparent 50%),
    var(--navy);
  color: white;
  border-radius: 28px;
  padding: 42px;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 24px;
  align-items: center;
}
.cta-band h2 { color: white; margin-bottom: 8px; }
.cta-band p { color: #d5deea; margin: 0; }

.site-footer { background: #0f1928; color: #d5deea; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.site-footer a { color: #d5deea; text-decoration: none; }
.site-footer a:hover { color: white; }
.site-footer h2 { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: white; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-brand p { color: #b7c3d4; max-width: 32ch; }
.legal-line { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.08); color: #93a0b5; font-size: 0.92rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.page-hero { padding: 42px 0 10px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; color: var(--muted); font-size: 0.92rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 8px; color: #b0bac8; }

.prose { max-width: var(--measure); }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.2em; }
.prose li + li { margin-top: 0.35em; }
.prose a, .lead, p { overflow-wrap: anywhere; }
code { font-family: Consolas, ui-monospace, monospace; font-size: 0.92em; background: var(--soft); padding: 0.1em 0.35em; border-radius: 6px; }
.step-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.layout-guide { display: grid; grid-template-columns: 220px 1fr; gap: 42px; align-items: start; }
.toc { position: sticky; top: 96px; display: grid; gap: 8px; font-size: 0.95rem; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--navy); }

.note, .callout {
  border-left: 4px solid var(--accent);
  background: #fff6f5;
  border-radius: 0 14px 14px 0;
  padding: 14px 16px;
  margin: 18px 0;
}
.note p:last-child, .callout p:last-child { margin: 0; }
.callout-navy { background: #f4f6f9; border-left-color: var(--navy); }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.data-table th, .data-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { background: var(--soft); font-size: 0.86rem; letter-spacing: 0.04em; text-transform: uppercase; }
.data-table caption { caption-side: bottom; text-align: left; color: var(--muted); font-size: 0.9rem; padding: 10px 14px 12px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: white; }

.window-schema { margin: 22px 0; }
.schema-label { color: var(--muted); font-size: 0.92rem; margin-bottom: 8px; }
.app-window { background: white; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.app-bar { display: flex; gap: 6px; padding: 12px 14px; background: var(--soft); }
.app-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d5dbe3; display: block; }
.app-bar i:first-child { background: var(--accent); }
.app-body { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 18px; }
.fake-field { background: var(--soft); border-radius: 12px; padding: 12px; }
.fake-field small { display: block; color: var(--muted); }
.fake-field b { font-size: 1.2rem; letter-spacing: 0.04em; }
.remote-box { border: 1.5px dashed #c9d3e0; border-radius: 12px; padding: 14px; }
.remote-box span { display: block; color: var(--muted); font-size: 0.9rem; }

.form-card { background: white; border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid #d5dce6; border-radius: 12px; padding: 12px 14px; background: white;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: 3px solid rgba(230, 75, 66, 0.35); }
.field .error { color: var(--accent-strong); font-size: 0.92rem; min-height: 1.2em; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { margin-top: 4px; width: 18px; height: 18px; }
.form-status { border-radius: 14px; padding: 14px 16px; background: var(--soft); margin-bottom: 16px; }
.form-status a { font-weight: 700; }
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 36px; align-items: start; }

.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related a { display: block; padding: 16px; border-radius: 16px; background: white; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; }
.related a span { display: block; margin-top: 6px; font-weight: 500; color: var(--muted); }

.source-list { font-size: 0.95rem; color: var(--muted); }
.page-404 { padding: 80px 0 100px; }
.page-404 h1 { font-size: clamp(3rem, 8vw, 6rem); }

@media (max-width: 1024px) {
  .hero-grid, .split, .layout-guide, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .split-reverse { direction: ltr; }
  .card-grid, .step-grid { grid-template-columns: 1fr 1fr; }
  .platform-grid { grid-template-columns: 1fr 1fr; }
  .toc { position: static; grid-auto-flow: column; overflow-x: auto; }
  .cta-band { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(var(--header) + 8px);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    max-height: calc(100vh - 110px);
    overflow: auto;
  }
  .site-nav.is-open { display: flex; }
  .nav-panel { position: static; box-shadow: none; border: 0; padding: 0 0 8px 12px; min-width: 0; }
  .site-nav.is-open .nav-panel { display: grid; }
  .nav-cta { margin: 8px 0 0; }
  .trust-row, .card-grid, .step-grid, .step-grid.cols-2, .related, .platform-grid, .app-body { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
  .hero-visual { min-height: 0; }
  .section { padding: 56px 0; }
  .container { width: min(var(--container), calc(100% - 32px)); }
  .cta-band { padding: 28px 22px; }
  .legal-line { flex-direction: column; }
}

@media (max-width: 390px) {
  h1 { font-size: 2.15rem; }
  .btn { width: 100%; }
  .btn-row .btn { width: 100%; }
  .nav-cta { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .service-card:hover { transform: none; }
}
