:root {
  --bg: #eef4fb;
  --text: #10233f;
  --muted: #52657f;
  --muted-strong: #384f6c;
  --line: rgba(16, 35, 63, 0.1);
  --line-strong: rgba(13, 46, 99, 0.2);
  --brand: #1294d1;
  --brand-1: #0b52b0;
  --brand-2: #f5ae17;
  --brand-3: #0d2e63;
  --accent: #ffc247;
  --success: #176b48;
  --danger: #b33b2e;
  --radius-2: 26px;
  --shadow-1: 0 24px 64px rgba(16, 38, 59, 0.1);
  --shadow-soft: 0 18px 60px rgba(16, 38, 59, 0.08);
  --shadow-strong: 0 28px 80px rgba(16, 38, 59, 0.16);
  --container: min(1320px, calc(100% - 48px));
  --motion: 700ms cubic-bezier(0.2, 0.9, 0.2, 1);
  --motion-fast: 240ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(245, 174, 23, 0.14), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(18, 148, 209, 0.16), transparent 28%),
    linear-gradient(180deg, #f7fbff 0%, #eef4fb 42%, #f5f8fd 100%);
  line-height: 1.6;
  overflow-x: hidden;
}
main,
section,
div,
article,
aside,
form,
.container {
  min-width: 0;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; font-size: 16px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.35);
  outline-offset: 3px;
}

.container { width: var(--container); margin: 0 auto; }

@media (max-width: 1399.98px) {
  :root { --container: min(1140px, calc(100% - 48px)); }
}
@media (max-width: 1199.98px) {
  :root { --container: min(960px, calc(100% - 40px)); }
}
@media (max-width: 991.98px) {
  :root { --container: min(720px, calc(100% - 32px)); }
}
@media (max-width: 767.98px) {
  :root { --container: min(540px, calc(100% - 24px)); }
}
@media (max-width: 575.98px) {
  :root { --container: calc(100% - 24px); }
}
.skip-link {
  position: absolute;
  top: 10px;
  left: -9999px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line-strong);
  z-index: 200;
}
.skip-link:focus { left: 12px; }

.site-shell { position: relative; isolation: isolate; }
.site-shell::before,
.site-shell::after {
  content: "";
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.35;
}
.site-shell::before { top: -120px; right: -140px; background: rgba(18, 148, 209, 0.26); }
.site-shell::after { bottom: 10%; left: -160px; background: rgba(245, 174, 23, 0.18); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(238, 244, 251, 0.76);
  border-bottom: 1px solid rgba(13, 46, 99, 0.1);
  padding: 0;
}
.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.navbar-brand {
  padding-top: 0;
  padding-bottom: 0;
  margin-right: 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  min-width: 0;
}
.brand-mark {
  width: 100px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(13, 46, 99, 0.16));
}
.brand-copy small {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.nav-links {
  align-items: center;
  color: #233a5d;
  font-size: 15px;
  font-weight: 600;
  min-width: 0;
  flex-grow: 1;
}
.navbar-nav {
  gap: 22px;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(13, 46, 99, 0.2);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle-line {
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: #1f3658;
  transition: transform var(--motion-fast), opacity var(--motion-fast);
}
.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: -14px;
}
.nav-item-shell {
  float: none;
}
.nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 2px);
  height: 16px;
}
.nav-link,
.nav-sublink {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: inherit;
}
.nav-link {
  padding: 4px 0;
  background: transparent;
  border: 0;
}
.nav-link.dropdown-toggle::after {
  margin-left: 0.45rem;
  vertical-align: 0.18em;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--motion-fast);
}
.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--brand-3); }
.nav-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(13, 46, 99, 0.12);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity var(--motion-fast), transform var(--motion-fast), visibility var(--motion-fast);
  z-index: 120;
}
.nav-panel.show {
  display: grid;
}
.nav-item:hover .nav-panel,
.nav-item:focus-within .nav-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-sublink {
  padding: 10px 12px;
  border-radius: 8px;
  color: #2a4060;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
}
.nav-sublink:hover,
.nav-sublink:focus-visible,
.nav-sublink.is-active {
  background: rgba(18, 148, 209, 0.1);
  color: var(--brand-3);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 700;
  transition: transform var(--motion-fast), box-shadow var(--motion-fast), background var(--motion-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline-offset: 4px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  box-shadow: 0 18px 34px rgba(15, 118, 110, 0.22);
}
.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(23, 35, 48, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--brand-3);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(18, 61, 99, 0.12);
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 0 6px rgba(15, 118, 110, 0.08);
}

h1, h2, h3 {
  margin: 10px 0;
  font-family: "Sora", sans-serif;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.section { padding: 92px 0; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  gap: 24px;
  align-items: end;
  margin-bottom: 30px;
}
.section-head p { color: var(--muted); font-size: 16px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.5rem); max-width: 20ch; margin-top: 10px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--motion), transform var(--motion); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.footer {
  padding: 24px 0 36px;
  border-top: 1px solid rgba(23, 35, 48, 0.08);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 1080px) {
  .section-head { grid-template-columns: 1fr; }
  .topbar { position: sticky; }
  .nav {
    min-height: auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 10px 0 8px;
  }
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .topbar.menu-open .nav-toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .topbar.menu-open .nav-toggle-line:nth-child(2) {
    opacity: 0;
  }
  .topbar.menu-open .nav-toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .nav-links {
    width: 100%;
    order: 3;
    display: block;
    gap: 6px;
    font-size: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(13, 46, 99, 0.1);
    border-radius: 14px;
    padding: 12px;
    margin-top: 8px;
  }
  .nav-links.collapsing,
  .nav-links.show {
    overflow-y: auto;
    max-height: 75vh;
  }
  .navbar-nav {
    gap: 6px;
    width: 100%;
  }
  .nav-cta {
    width: 100%;
    order: 4;
    justify-content: stretch;
    display: none;
  }
  .topbar.menu-open .nav-cta {
    display: grid;
    grid-template-columns: 1fr;
  }
  .nav-cta .btn {
    width: 100%;
  }
  .nav-item {
    display: block;
    padding-bottom: 0;
    margin-bottom: 0;
  }
  .nav-item::after { display: none; }
  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 10px 2px;
  }
  .nav-link::after { bottom: 3px; }
  .has-children .nav-panel {
    position: static !important;
    transform: none !important;
    border: 0;
    box-shadow: none;
    background: rgba(18, 148, 209, 0.06);
    border-radius: 10px;
    margin: 4px 0 8px;
    padding: 6px;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-sublink {
    padding: 9px 10px;
    white-space: normal;
  }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .brand-mark {
    width: 82px;
    height: 50px;
  }
  .brand-copy small {
    font-size: 13px;
    letter-spacing: 0.12em;
  }
  .nav-links {
    gap: 14px;
    font-size: 13px;
  }
  .footer-row {
    font-size: 13px;
  }
}

@media (max-width: 560px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }
  .nav { gap: 8px; }
  .brand {
    gap: 10px;
    min-width: 0;
    max-width: calc(100% - 56px);
    flex: 1 1 auto;
  }
  .brand-mark {
    width: 56px;
    height: 38px;
  }
  .brand-copy {
    font-size: 13px;
    line-height: 1.1;
    min-width: 0;
  }
  .navbar-brand.brand {
    margin-right: 0;
  }
  .brand-copy small { display: none; }
  .nav-toggle {
    width: 40px;
    height: 40px;
    margin-left: auto;
    flex: 0 0 auto;
  }
  .nav-toggle-line {
    width: 16px;
  }
  .topbar.menu-open .nav-links { max-height: 78vh; }
  .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
  .section-head h2 {
    max-width: none;
    font-size: clamp(1.72rem, 8vw, 2.05rem);
    line-height: 1.1;
    word-break: break-word;
  }
  .section-head p {
    font-size: 0.96rem;
    line-height: 1.65;
  }
}

@media (max-width: 420px) {
  .nav {
    position: relative;
    padding-right: 56px;
  }
  .brand {
    max-width: none;
    gap: 6px;
  }
  .brand-mark {
    width: 44px;
    height: 32px;
  }
  .brand-copy {
    display: none;
  }
  .nav-toggle {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    display: inline-flex !important;
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(13, 46, 99, 0.22);
    box-shadow: 0 8px 20px rgba(13, 46, 99, 0.12);
    z-index: 25;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
