:root {
  --ink: #102033;
  --ink-2: #24384f;
  --muted: #5f6f82;
  --blue: #175cd3;
  --blue-2: #0b3b75;
  --cyan: #22a6b8;
  --line: #dbe5ef;
  --soft: #f5f8fb;
  --panel: #ffffff;
  --navy: #071728;
  --shadow: 0 18px 45px rgba(20, 45, 76, 0.12);
  --radius: 8px;
  --max: 1160px;
}

html[data-theme="dark"] {
  --ink: #d0d0d0;
  --ink-2: #d0d0d0;
  --muted: #9fb0c4;
  --blue: #66a6ff;
  --blue-2: #9bc5ff;
  --cyan: #57d8e7;
  --line: #26364b;
  --soft: #101b2a;
  --panel: #111d2c;
  --navy: #050b13;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

html[data-theme="dark"] body {
  background: #07111f;
}

html[data-theme="dark"] .hero,
html[data-theme="dark"] .hero h1,
html[data-theme="dark"] .cta,
html[data-theme="dark"] .cta h2,
html[data-theme="dark"] .system-row strong,
html[data-theme="dark"] .button.secondary {
  color: #d0d0d0 !important;
}

html[data-theme="dark"] .button.primary,
html[data-theme="dark"] .button.light,
html[data-theme="dark"] .nav-cta {
  color: #000 !important;
}

body.splash-active {
  overflow: hidden;
}

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  padding: 32px;
  border: 0;
  background: #000;
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.splash-screen img {
  max-width: min(80%, 760px);
  max-height: 80vh;
  object-fit: contain;
}

.splash-screen.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(219, 229, 239, 0.9);
  backdrop-filter: blur(14px);
}

html[data-theme="dark"] .site-header {
  background: rgba(7, 17, 31, 0.94);
  border-bottom-color: rgba(38, 54, 75, 0.92);
}

.nav-wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.brand img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

html[data-theme="dark"] .nav-toggle {
  background: #101b2a;
  border-color: var(--line);
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current="page"] {
  background: var(--soft);
  color: var(--blue-2);
  outline: none;
}

.theme-toggle {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink-2);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 750;
  cursor: pointer;
}

.theme-toggle:hover,
.theme-toggle:focus {
  background: var(--soft);
  color: var(--blue-2);
  outline: none;
}

html[data-theme="dark"] .theme-toggle {
  background: #101b2a;
  color: var(--ink-2);
}

.nav-cta {
  margin-left: 8px;
  background: var(--blue) !important;
  color: #fff !important;
}

.section {
  padding: 84px 0;
}

.section.alt {
  background: var(--soft);
}

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

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(7, 23, 40, 0.96), rgba(10, 59, 117, 0.88)),
    radial-gradient(circle at 80% 20%, rgba(34, 166, 184, 0.38), transparent 34%);
  color: #fff;
  min-height: 690px;
  display: flex;
  align-items: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 190px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.09));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 54px;
  align-items: center;
  padding: 82px 0 96px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #8fe3ef;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  color: inherit;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.55rem, 7vw, 5.25rem);
}

.hero p {
  max-width: 720px;
  margin: 24px 0 0;
  color: #d9e8f8;
  font-size: 1.18rem;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 750;
  text-decoration: none;
  line-height: 1.2;
}

.button.primary {
  background: var(--blue);
  color: #fff;
}

.button.primary:hover,
.button.primary:focus {
  background: #0f4fb9;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
}

.button.light {
  border-color: var(--line);
  color: var(--blue-2);
  background: #fff;
}

html[data-theme="dark"] .button.light {
  border-color: transparent;
  background: var(--blue);
}

html[data-theme="dark"] .button.light:hover,
html[data-theme="dark"] .button.light:focus {
  background: #0f4fb9;
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  padding: 24px;
}

.system-board {
  display: grid;
  gap: 14px;
}

.system-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
}

.system-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 7px;
  background: rgba(143, 227, 239, 0.18);
  color: #8fe3ef;
  font-weight: 900;
}

.system-row strong {
  display: block;
  color: #fff;
}

.system-row span {
  color: #bfd4e8;
  font-size: 0.9rem;
}

.status {
  min-width: 74px;
  color: #b8fff3;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: right;
  text-transform: uppercase;
}

.section-head {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-head.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-head h2,
.page-hero h1 {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.section-head p,
.page-hero p,
.lead {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-head p {
  margin: 16px 0 0;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: inherit;
  padding: 26px;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(20, 45, 76, 0.06);
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .metric,
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  background: var(--panel);
  color: var(--ink);
}

html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  border-color: var(--line);
}

.card h3 {
  color: var(--ink);
  font-size: 1.25rem;
}

.card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-2);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--cyan);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 46px;
  align-items: center;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.metric {
  min-height: 118px;
  padding: 22px;
  background: #fff;
}

.metric strong {
  display: block;
  color: var(--blue-2);
  font-size: 1.9rem;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.page-hero {
  padding: 72px 0 48px;
  background:
    linear-gradient(180deg, #f6f9fd, #ffffff);
  border-bottom: 1px solid var(--line);
}

html[data-theme="dark"] .page-hero {
  background: linear-gradient(180deg, #0b1625, #07111f);
}

.page-hero p {
  max-width: 790px;
  margin: 18px 0 0;
}

.content-band {
  padding: 64px 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1fr);
  gap: 34px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink-2);
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.note {
  color: var(--muted);
  font-size: 0.94rem;
}

.form-status {
  min-height: 1.45em;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.form-status[data-status="success"] {
  color: #138a5b;
}

.form-status[data-status="error"] {
  color: #c2413a;
}

html[data-theme="dark"] .form-status[data-status="success"] {
  color: #66d9a4;
}

html[data-theme="dark"] .form-status[data-status="error"] {
  color: #ff8a80;
}

.cta {
  background: var(--navy);
  color: #fff;
}

.cta h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.cta p {
  max-width: 760px;
  margin: 16px 0 0;
  color: #d9e8f8;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

html[data-theme="dark"] .site-footer {
  background: #07111f;
}

.footer-wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
}

.footer-brand strong {
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
  max-width: 640px;
}

.footer-links a {
  color: var(--ink-2);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--blue);
  text-decoration: underline;
}

.legal-page body,
body.legal-page {
  background: #fff;
}

html[data-theme="dark"] body.legal-page,
html[data-theme="dark"] .legal-shell,
html[data-theme="dark"] .legal-shell .page {
  background: #07111f;
  color: var(--ink);
}

html[data-theme="dark"] .legal-shell header,
html[data-theme="dark"] .legal-shell h1,
html[data-theme="dark"] .legal-shell h2,
html[data-theme="dark"] .legal-shell h3,
html[data-theme="dark"] .legal-shell p,
html[data-theme="dark"] .legal-shell li,
html[data-theme="dark"] .legal-shell td,
html[data-theme="dark"] .legal-shell th {
  color: var(--ink);
}

html[data-theme="dark"] .legal-shell a {
  color: var(--blue);
}

html[data-theme="dark"] .legal-shell .contact,
html[data-theme="dark"] .legal-shell .contact-block,
html[data-theme="dark"] .legal-shell table,
html[data-theme="dark"] .legal-shell th,
html[data-theme="dark"] .legal-shell td {
  background: var(--panel);
  border-color: var(--line);
}

.legal-shell {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 72px;
}

.legal-shell main,
.legal-shell .page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.legal-shell h1 {
  color: var(--ink);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
}

.legal-shell h2 {
  color: var(--ink);
}

.legal-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

@media (max-width: 920px) {
  .nav-wrap {
    min-height: 70px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 70px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }

  html[data-theme="dark"] .site-nav {
    background: #07111f;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .theme-toggle {
    width: 100%;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .split,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding: 58px 0 70px;
  }

  .grid.three,
  .grid.two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container,
  .nav-wrap,
  .footer-wrap,
  .legal-shell {
    width: min(100% - 28px, var(--max));
  }

  .brand img {
    width: 58px;
    height: 58px;
  }

  .section,
  .content-band {
    padding: 54px 0;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-panel {
    padding: 16px;
  }

  .system-row {
    grid-template-columns: 38px 1fr;
  }

  .status {
    grid-column: 2;
    text-align: left;
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }

  .footer-wrap {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
