:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #121826;
  --muted: #5b667a;
  --primary: #0f4be2;
  --primary-strong: #0935a4;
  --primary-soft: #dce8ff;
  --ink: #0a1020;
  --border: #dbe2ef;
  --footer: #15243e;
  --footer-muted: #89a0c3;
  --header-bg: #0a1222;
  --header-bg-mid: #101c33;
  --header-border: rgb(146 176 227 / 24%);
  --header-text: #edf4ff;
  --header-muted: #9fb2d2;
  --header-glow: rgb(84 170 255 / 26%);
  --header-accent: #63d3ff;
  --header-accent-strong: #338dff;
  --header-focus: #8fd5ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -120px;
  z-index: 200;
  border-radius: 0.5rem;
  background: #0f4be2;
  color: #fff;
  padding: 0.6rem 0.78rem;
  font-size: 0.88rem;
  font-weight: 600;
  transition: top 140ms ease;
}

.skip-link:focus {
  top: 0.75rem;
}

.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(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  padding: 0;
}

.site-header::before {
  content: none;
}

.site-header .container {
  width: 100%;
  max-width: none;
  padding: 0;
}

.nav-shell {
  width: 100%;
  border: 1px solid #d8e1ec;
  border-radius: 0;
  background: rgb(255 255 255 / 78%);
  box-shadow: 0 4px 16px rgb(16 33 61 / 8%);
  backdrop-filter: blur(8px);
  overflow: visible;
  animation: nav-enter 200ms ease-out both;
}

.nav-shell::before {
  content: none;
}

.nav-shell::after {
  content: none;
}

.nav-wrap {
  padding: 0 0.9rem;
}

.nav-main {
  min-height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-copy {
  display: inline-flex;
}

.brand-name {
  color: #1f2d3d;
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1;
}

.nav-desktop {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 0.2rem;
  padding: 0;
}

.nav-item,
.dropdown-toggle {
  color: #3d4f65;
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0;
  text-transform: none;
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.nav-item:hover,
.nav-item:focus-visible,
.nav-item[aria-current='page'],
.dropdown-toggle:hover,
.dropdown-toggle:focus-visible,
.dropdown-toggle[aria-current='page'],
.dropdown.open .dropdown-toggle,
.dropdown.has-current .dropdown-toggle {
  color: #1f2d3d;
  background: #eef3f8;
  box-shadow: inset 0 0 0 1px #dde6f0;
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  border: 0;
  margin: 0;
  cursor: pointer;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
}

.dropdown-caret {
  font-size: 0.95rem;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform 180ms ease;
}

.dropdown.open .dropdown-caret {
  transform: translateY(-1px) rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  left: auto;
  transform: none;
  width: min(240px, calc(100vw - 1rem));
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #d8e2ec;
  box-shadow: 0 10px 30px rgb(16 33 61 / 14%);
  padding: 0;
  display: none;
  min-width: 0;
  overflow: hidden;
}

.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0.55rem;
}

.dropdown-list li + li {
  margin-top: 0.32rem;
}

.dropdown-list a {
  display: inline-block;
  padding: 0;
  color: #2e425a;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.3;
  transition: color 140ms ease, font-size 140ms ease;
}

.dropdown-list a:hover,
.dropdown-list a:focus-visible {
  color: #0f4be2;
  font-size: 0.97rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 0;
}

.mobile-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid #c0d0e4;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #eef4fc);
  padding: 0;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.mobile-toggle span {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #2a466c;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.mobile-toggle span:nth-child(1) {
  transform: translateY(-6px);
}

.mobile-toggle span:nth-child(3) {
  transform: translateY(6px);
}

.mobile-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: rotate(45deg);
}

.mobile-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: rotate(-45deg);
}

.mobile-menu {
  display: none;
  border-top: 1px solid #e0e8f1;
  background: #ffffff;
  padding: 0.35rem 0.9rem 0.85rem;
}

.mobile-menu[hidden] {
  display: none !important;
}

.mobile-menu-label {
  margin: 0.3rem 0 0.15rem;
  color: #60748d;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.mobile-menu a,
.mobile-services summary {
  display: block;
  color: #33485f;
  font-size: 0.88rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #e3ebf3;
}

.mobile-services {
  margin: 0;
}

.mobile-services summary {
  cursor: pointer;
  list-style: none;
}

.mobile-services summary::-webkit-details-marker {
  display: none;
}

.mobile-services ul {
  list-style: none;
  padding: 0 0 0 0.9rem;
  margin: 0 0 0.3rem;
}

.mobile-services li a {
  font-size: 0.8rem;
  color: #556a82;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.mobile-menu.open {
  display: block;
  animation: mobile-menu-enter 220ms ease both;
}

@keyframes mobile-menu-enter {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.nav-item:focus-visible,
.dropdown-toggle:focus-visible,
.dropdown-menu a:focus-visible,
.mobile-toggle:focus-visible,
.mobile-menu a:focus-visible,
.mobile-services summary:focus-visible {
  outline: 2px solid #4c78ab;
  outline-offset: 2px;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid #0f4be2;
  outline-offset: 2px;
}

@keyframes nav-enter {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main {
  min-height: calc(100vh - 220px);
}

#main-content {
  scroll-margin-top: 5.5rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 6.5rem 0 4.8rem;
  background: radial-gradient(circle at 12% 20%, #2b4d8f 0%, #14264d 20%, #0a1020 50%, #070b16 100%);
  color: #f4f8ff;
}

.hero::after {
  content: '';
  position: absolute;
  right: -160px;
  top: -130px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(63 124 255 / 36%) 0%, rgb(63 124 255 / 0%) 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  font-size: 0.76rem;
  color: #9bc0ff;
  margin: 0 0 0.75rem;
}

.hero h1 {
  margin: 0;
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.15;
  max-width: 14ch;
}

.hero p {
  margin: 1.1rem 0 1.8rem;
  max-width: 54ch;
  color: #d3e0fa;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 0.62rem;
  padding: 0.74rem 1.1rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.btn:focus-visible {
  box-shadow: 0 0 0 3px rgb(15 75 226 / 30%);
}

.btn-primary {
  background: linear-gradient(120deg, var(--primary), #2c74ff);
  color: #fff;
}

.btn-secondary {
  border-color: rgb(229 238 255 / 36%);
  color: #dbe8ff;
}

.hero-card {
  background: rgb(11 19 37 / 70%);
  border: 1px solid rgb(194 215 255 / 20%);
  border-radius: 0.95rem;
  padding: 1.3rem;
}

.hero-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: #dce9ff;
  font-family: 'Sora', 'Segoe UI', sans-serif;
}

.hero-card ul {
  margin: 0;
  padding: 0 0 0 1rem;
  color: #b8caea;
  font-size: 0.91rem;
}

.content-section {
  padding: 3.3rem 0;
}

.content-section.alt {
  background: #edf2fa;
}

.section-title {
  margin: 0 0 0.6rem;
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
}

.section-lead {
  margin: 0;
  color: var(--muted);
  max-width: 67ch;
}

.grid-3 {
  margin-top: 1.3rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: #fff;
  padding: 1.1rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: 1.04rem;
}

.card p,
.card li {
  color: #4b5569;
  font-size: 0.94rem;
}

.card ul {
  margin: 0;
  padding: 0 0 0 1rem;
}

.text-content h2,
.text-content h3 {
  font-family: 'Sora', 'Segoe UI', sans-serif;
  margin-bottom: 0.35rem;
}

.text-content p,
.text-content li {
  color: #394457;
  font-size: 0.95rem;
}

.text-content ul {
  margin: 0 0 1rem;
  padding: 0 0 0 1rem;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr 1fr;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form-status {
  margin: 0 0 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid #d8e2ef;
  background: #f6f9ff;
  padding: 0.76rem 0.9rem;
  color: #33485f;
}

.form-status a {
  text-decoration: underline;
}

.form-status-success {
  border-color: #b8ddc8;
  background: #edf9f2;
  color: #1f5c39;
}

.form-status-error {
  border-color: #ebc2c2;
  background: #fff4f4;
  color: #8a1f1f;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  font: inherit;
  font-size: 0.94rem;
  padding: 0.72rem 0.76rem;
  background: #fff;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: #9db8e8;
  box-shadow: 0 0 0 3px rgb(15 75 226 / 16%);
  outline: 2px solid transparent;
}

textarea {
  resize: vertical;
}

label {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
  color: #374255;
  font-weight: 600;
}

.site-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgb(105 153 242 / 22%) 0%, rgb(105 153 242 / 0%) 30%),
    radial-gradient(circle at 12% 0%, rgb(192 216 255 / 18%) 0%, rgb(192 216 255 / 0%) 26%),
    radial-gradient(circle at 18% 100%, rgb(69 115 198 / 18%) 0%, rgb(69 115 198 / 0%) 32%),
    linear-gradient(135deg, #213a61 0%, #192d4c 44%, #13223a 100%);
  color: #fff;
  padding: 3.25rem 0 1.85rem;
  border-top: 1px solid rgb(255 255 255 / 12%);
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 0.05) 1px, transparent 1px),
    linear-gradient(rgb(255 255 255 / 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.16;
  pointer-events: none;
}

.site-footer::after {
  content: '';
  position: absolute;
  inset: auto -8rem -10rem auto;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgb(178 208 255 / 20%) 0%, rgb(178 208 255 / 0%) 68%);
  pointer-events: none;
}

.footer-shell {
  position: relative;
  z-index: 1;
}

.footer-topbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem 1.6rem;
  border-radius: 1.4rem;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.12), rgb(255 255 255 / 0.05)),
    radial-gradient(circle at right center, rgb(167 200 255 / 15%) 0%, rgb(167 200 255 / 0%) 34%);
  border: 1px solid rgb(199 220 255 / 18%);
  box-shadow: 0 22px 48px rgb(8 19 42 / 24%);
  backdrop-filter: blur(16px);
}

.footer-heading {
  margin: 0;
  max-width: 24ch;
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.1;
  color: #f8fbff;
}

.footer-topcopy {
  margin: 0;
  max-width: 48rem;
  color: #b7cae8;
  font-size: 0.96rem;
  line-height: 1.7;
}

.footer-grid {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.8fr) minmax(180px, 0.8fr);
  padding: 0.5rem 0 0;
}

.footer-title {
  margin: 0 0 0.95rem;
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d3e4ff;
}

.footer-company {
  max-width: 30rem;
}

.footer-brand {
  margin: 0 0 0.75rem;
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #f8fbff;
}

.footer-copy,
.footer-link {
  color: var(--footer-muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.footer-copy {
  margin: 0;
}

.footer-link {
  display: block;
  padding: 0.34rem 0;
  transition: color 160ms ease, transform 160ms ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: #f3f7ff;
  transform: translateX(2px);
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.footer-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(214 229 255 / 14%);
  color: #dbe8ff;
  font-size: 0.8rem;
  font-weight: 600;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 12%);
  color: #9db0cd;
  font-size: 0.82rem;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 980px) {
  .nav-wrap {
    padding: 0 0.8rem;
  }

  .nav-main {
    min-height: 58px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
  }

  .nav-desktop {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .mobile-menu {
    padding: 0.34rem 0.92rem 0.92rem;
  }

  .hero {
    padding-top: 5.6rem;
  }

  .hero-grid,
  .footer-topbar,
  .footer-grid,
  .grid-3 {
    grid-template-columns: 1fr;
  }

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

  .site-footer .footer-shell {
    padding-inline: 0.35rem;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(1120px, calc(100% - 1.5rem));
  }

  .nav-wrap {
    padding: 0 0.72rem;
  }

  .nav-main {
    min-height: 54px;
  }

  .brand-name {
    font-size: 0.86rem;
  }

  .mobile-menu {
    padding: 0.3rem 0.82rem 0.82rem;
  }

  .content-section {
    padding: 2.35rem 0;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding-top: 2.6rem;
  }

  .footer-topbar {
    padding: 1.25rem;
  }

  .footer-heading {
    max-width: none;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer .footer-shell {
    padding-inline: 0.5rem;
  }
}

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

@media (forced-colors: active) {
  :where(a, button, input, select, textarea, summary):focus-visible {
    outline: 2px solid Highlight;
  }

  .btn,
  .mobile-toggle,
  .dropdown-toggle,
  input,
  select,
  textarea {
    border: 1px solid ButtonText;
  }
}
