:root {
  --navy: #071827;
  --navy-soft: #0c2c44;
  --blue: #126d94;
  --cyan: #18bad5;
  --cyan-soft: #8ee8f4;
  --ice: #eaf8fb;
  --ink: #182536;
  --muted: #5d6976;
  --line: #d7e1e7;
  --white: #fff;
  --header-h: 72px;
  --section-y: clamp(56px, 8vw, 96px);
  --container: min(1160px, calc(100% - 40px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--ink);
  background: #f4f7f9;
  line-height: 1.62;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--cyan); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
}
.skip-link:focus { left: 12px; top: 12px; }

.container { width: var(--container); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 24, 39, 0.97);
  border-bottom: 1px solid #29485e;
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.brand-mark-img {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}
.brand-text span { color: var(--cyan-soft); font-weight: 600; }
.footer-brand {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  border: 1px solid #3a5f78;
  background: transparent;
  color: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-nav a {
  display: block;
  padding: 10px 11px;
  color: #dbeaf2;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
}
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] {
  background: rgba(24, 186, 213, 0.14);
  color: var(--cyan-soft);
}
.nav-cta {
  background: var(--cyan) !important;
  color: var(--navy) !important;
}
.nav-cta:hover, .nav-cta:focus-visible {
  background: var(--cyan-soft) !important;
  color: var(--navy) !important;
}

.hero {
  background:
    radial-gradient(circle at 85% 18%, rgba(24, 186, 213, 0.18), transparent 28%),
    linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: #fff;
  padding: clamp(56px, 8vw, 92px) 0;
  border-bottom: 4px solid var(--cyan);
}
.hero-content {
  max-width: 46rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}
.eyebrow {
  color: var(--cyan-soft);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
}
.hero h1 {
  margin: 12px 0 16px;
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.lead { font-size: 1.08rem; color: #dbeaf2; max-width: 62ch; margin: 0 0 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: rgba(219, 234, 242, 0.82);
  font-size: 0.88rem;
}
.trust-line span::before { content: "· "; opacity: 0.5; }
.trust-line span:first-child::before { content: ""; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  font-size: 0.95rem;
}
.btn-primary { background: var(--cyan); color: var(--navy); }
.btn-primary:hover { background: var(--cyan-soft); color: var(--navy); }
.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(142, 232, 244, 0.45);
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); color: #fff; }

section { padding: var(--section-y) 0; }
.section-dark {
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: #fff;
}
.section-muted { background: #eef4f7; }
.section-head { max-width: 46rem; margin-bottom: clamp(24px, 4vw, 36px); }
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.12;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.section-dark .section-head h2, .section-dark .section-head p { color: #fff; }
.section-dark .section-head p { color: rgba(255,255,255,0.82); }
.section-head p { margin: 0; color: var(--muted); font-size: 1.05rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(14,42,63,0.05);
}
.card h3 { margin: 0 0 8px; color: var(--navy-soft); font-size: 1.08rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.section-dark .card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(142, 232, 244, 0.18);
}
.section-dark .card h3 { color: var(--cyan-soft); }
.section-dark .card p { color: rgba(255,255,255,0.78); }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.spec-table th {
  text-align: left;
  background: var(--navy);
  color: #fff;
  padding: 12px 14px;
}
.spec-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec-table tr:nth-child(even) td { background: #f8fbfc; }

.diagram-wrap {
  margin-top: 24px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fbfdfe;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.arch-flow-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 720px;
  display: grid;
  gap: 0;
}
.arch-layer {
  position: relative;
  margin: 0;
  padding: 16px 20px;
  border: 2px solid var(--cyan);
  border-radius: 10px;
  background: #123651;
  color: #fff;
  font-weight: 700;
  text-align: center;
}
.arch-layer + .arch-layer {
  margin-top: 28px;
}
.arch-layer + .arch-layer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -28px;
  width: 2px;
  height: 28px;
  transform: translateX(-50%);
  background: var(--cyan);
}
.arch-layer-core {
  background: var(--blue);
  border-color: var(--cyan-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.arch-layer-title {
  font-size: 1rem;
  font-weight: 700;
}
.arch-layer-detail {
  font-size: 0.88rem;
  font-weight: 600;
  color: #dbeaf2;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
  margin-bottom: 10px;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy-soft);
}
.faq-list p { margin: 10px 0 0; color: var(--muted); }

.cta-panel {
  padding: clamp(28px, 4vw, 40px);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: #fff;
  border: 1px solid rgba(142, 232, 244, 0.2);
}
.cta-panel h2 { margin: 0 0 10px; color: #fff; }
.cta-panel p { margin: 0 0 18px; color: rgba(255,255,255,0.82); }

.page-hero {
  padding: clamp(40px, 6vw, 64px) 0 24px;
  background: linear-gradient(180deg, #eef4f7 0%, #f4f7f9 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  color: var(--navy);
  line-height: 1.08;
}
.page-hero p { margin: 0; max-width: 52rem; color: var(--muted); font-size: 1.05rem; }
.breadcrumb {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.breadcrumb a { color: var(--blue); text-decoration: none; }

.prose { max-width: 46rem; }
.prose h2 { color: var(--navy); margin-top: 28px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.2rem; }

.legal-page .container { max-width: 760px; padding: 48px 20px 80px; }
.legal-page h1 { color: var(--navy); }
.legal-page .updated { color: var(--muted); font-size: 0.92rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: start;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}
.contact-form .field { margin-bottom: 14px; }
.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--navy-soft);
}
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-note { font-size: 0.88rem; color: var(--muted); }
.form-error { color: #a33232; font-size: 0.88rem; margin-top: 6px; }
.contact-alert {
  margin-bottom: 20px;
}
.form-success {
  padding: 18px 20px;
  border-radius: 10px;
  background: #e8f8ee;
  color: #11664e;
  border: 1px solid #9ed4b6;
  font-size: 1.02rem;
  font-weight: 600;
}
.form-error-banner {
  padding: 18px 20px;
  border-radius: 10px;
  background: #ffe7e7;
  color: #8f2d2d;
  border: 1px solid #e6a8a8;
  font-size: 1.02rem;
  font-weight: 600;
}
.field-checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  margin-bottom: 0;
  cursor: pointer;
}
.field-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: 0 0 18px;
  accent-color: var(--blue);
}
.contact-form input.field-invalid,
.contact-form select.field-invalid,
.contact-form textarea.field-invalid,
.field-checkbox.field-invalid {
  outline: none;
}
.contact-form input.field-invalid,
.contact-form select.field-invalid,
.contact-form textarea.field-invalid {
  border-color: #c45a5a;
  box-shadow: 0 0 0 2px rgba(196, 90, 90, 0.18);
}
.field-checkbox.field-invalid label span {
  color: #8f2d2d;
}
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.site-footer {
  background: var(--navy);
  color: #bed0db;
  padding: 48px 0 24px;
  margin-top: 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
}
.site-footer h3 { color: #fff; font-size: 0.95rem; margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: #dbeaf2; text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: var(--cyan-soft); }
.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #29485e;
  font-size: 0.86rem;
  color: #8aa3b3;
}

.process-list {
  margin: 0;
  padding-left: 1.25rem;
  max-width: 46rem;
}
.process-list li {
  margin: 0 0 12px;
}
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.checklist-grid li {
  position: relative;
  padding-left: 18px;
}
.checklist-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}
@media (max-width: 700px) {
  .checklist-grid { grid-template-columns: 1fr; }
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 900px) {
  .hero-grid, .footer-grid, .grid-3, .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--navy);
    border-bottom: 1px solid #29485e;
    padding: 12px 16px 18px;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .field-row { grid-template-columns: 1fr; }
}
