:root {
  --bg: #d8e8ff;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --text: #0f2747;
  --muted: #416484;
  --line: rgba(16, 74, 140, 0.12);
  --line-strong: rgba(16, 74, 140, 0.20);
  --shadow: 0 20px 55px rgba(10, 45, 90, 0.10);
  --radius: 28px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

body {
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.88), rgba(176, 206, 248, 0.82) 42%, rgba(216, 232, 255, 0.98) 100%),
    linear-gradient(180deg, rgba(235, 244, 255, 0.62), rgba(192, 218, 252, 0.96));
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 93, 184, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(13, 93, 184, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  z-index: -1;
  pointer-events: none;
}

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

.page {
  min-height: 100vh;
  padding: 24px;
}

.shell {
  width: min(1200px, 100%);
  margin: 0 auto;
  min-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  position: relative;
}

.topbar {
  position: relative;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-mark {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c62828;
}

.brand-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link,
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  color: #1d4673;
  transition: background-color 0.2s ease, transform 0.2s ease;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.nav-link:hover,
.dropdown-toggle:hover,
.dropdown.is-open .dropdown-toggle {
  background: rgba(13, 93, 184, 0.08);
  transform: translateY(-1px);
}

.nav-link.primary {
  background: #0d5db8;
  color: #ffffff;
}

.nav-link.primary:hover {
  background: #c62828;
}

.dropdown {
  position: relative;
  z-index: 120;
}

.dropdown-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.dropdown.is-open .dropdown-toggle svg,
.dropdown:hover .dropdown-toggle svg,
.dropdown:focus-within .dropdown-toggle svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(320px, 78vw);
  padding: 10px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 50px rgba(13, 58, 117, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 20;
}

.dropdown.is-open .dropdown-menu,
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  transition: background-color 0.2s ease;
}

.dropdown-item:hover { background: rgba(13, 93, 184, 0.06); }

.dropdown-item-title {
  font-size: 0.97rem;
  font-weight: 500;
}

.dropdown-item-meta {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c62828;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
}

.icon-link svg { width: 16px; height: 16px; }

.main-content {
  flex: 1;
  padding: 28px 0 20px;
}

.banner {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #b7d3ff;
  margin-bottom: 22px;
}

.banner-bg,
.banner-bg-next {
  position: absolute;
  inset: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.02);
}

.banner-bg-next {
  opacity: 0;
  transition: opacity 1.4s ease;
}

.banner.is-transitioning .banner-bg-next { opacity: 1; }

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(216, 232, 255, 0.92) 0%, rgba(216, 232, 255, 0.76) 38%, rgba(216, 232, 255, 0.36) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  z-index: 2;
}

.banner::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  z-index: 2;
  pointer-events: none;
}

.banner-content {
  position: relative;
  z-index: 3;
  width: min(620px, 100%);
  height: 100%;
  padding: clamp(28px, 5vw, 58px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(13, 93, 184, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: #b32020;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-title {
  margin: 18px 0 10px;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  font-weight: 650;
}

.hero-subtitle {
  margin: 0;
  max-width: 38ch;
  font-size: 1rem;
  line-height: 1.8;
  color: #355a84;
}


.banner-home {
  min-height: clamp(560px, calc(100vh - 180px), 820px);
  margin-bottom: 0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: #0f2747;
  font-weight: 500;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(198, 40, 40, 0.32);
  color: #b32020;
}

.button.dark {
  background: #0d5db8;
  border-color: #0d5db8;
  color: #ffffff;
}

.button.dark:hover {
  background: #c62828;
  border-color: #c62828;
}

.button.accent,
.button.alert {
  background: #c62828;
  border-color: #c62828;
  color: #ffffff;
}

.button.accent:hover,
.button.alert:hover {
  background: #a61f1f;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.stack-card,
.kicker-list {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
}

.stack-card h3,
.kicker-item strong {
  display: block;
  margin: 0 0 10px;
}

.stack-card h3 {
  font-size: 1rem;
}

.stack-card p {
  margin: 0 0 14px;
  line-height: 1.75;
  color: #2f4f73;
}

.stack-card p:last-of-type {
  margin-bottom: 0;
}

.kicker-list {
  display: grid;
  gap: 14px;
}

.kicker-item {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  color: #2f4f73;
}

.inline-mail {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  color: #c62828;
}

.content-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 48px);
}

.section-label {
  margin: 0 0 10px;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c62828;
}

.page-title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.lead {
  margin: 0 0 28px;
  max-width: 56ch;
  font-size: 1rem;
  line-height: 1.8;
  color: #355a84;
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.info-block,
.text-block {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
}

.info-block h3,
.text-block h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.info-block p,
.text-block p,
.text-block li {
  margin: 0 0 12px;
  line-height: 1.75;
  color: #2f4f73;
}

.text-block p:last-child,
.info-block p:last-child,
.text-block li:last-child { margin-bottom: 0; }

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(198, 40, 40, 0.24);
  background: rgba(255, 255, 255, 0.9);
  color: #b32020;
}

.pill-link:hover {
  background: rgba(198, 40, 40, 0.08);
  border-color: rgba(198, 40, 40, 0.38);
}

.footer {
  padding: 16px 6px 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer a {
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(198, 40, 40, 0.35);
}

@media (max-width: 980px) {
  .topbar {
    border-radius: 28px;
    align-items: flex-start;
    flex-direction: column;
  }

  .banner { min-height: 240px; }

  .banner::before {
    background:
      linear-gradient(180deg, rgba(216, 232, 255, 0.92) 0%, rgba(216, 232, 255, 0.76) 40%, rgba(216, 232, 255, 0.36) 100%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  }

  .legal-grid { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .banner-home { min-height: 360px; }
}

@media (max-width: 640px) {
  .page { padding: 14px; }
  .shell { min-height: calc(100vh - 28px); }
  .topbar { padding: 16px; }
  .nav-links { width: 100%; justify-content: flex-start; }
  .nav-link,
  .nav-link.primary,
  .dropdown,
  .dropdown-toggle { width: 100%; }
  .nav-link,
  .nav-link.primary,
  .dropdown-toggle { justify-content: center; }
  .dropdown-menu {
    left: 0;
    right: 0;
    width: 100%;
  }
  .banner {
    min-height: 220px;
    border-radius: 22px;
  }
  .banner-home { min-height: 320px; }
  .banner::after {
    inset: 12px;
    border-radius: 16px;
  }
  .banner-content { padding: 24px 20px; }
  .content-card { padding: 20px; }
  .legal-links { flex-direction: column; }
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
