:root {
  --color-ink: #14202b;
  --color-muted: #5d6a75;
  --color-soft: #f5f8fb;
  --color-panel: #ffffff;
  --color-line: #dce5ee;
  --color-blue: #005eb8;
  --color-blue-deep: #063c73;
  --color-teal: #08a9bd;
  --color-green: #3f8b68;
  --color-warm: #c49a4a;
  --shadow-soft: 0 20px 60px rgba(19, 36, 52, 0.12);
  --shadow-card: 0 14px 35px rgba(19, 36, 52, 0.1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --container: 1160px;
  --header-height: 84px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(8, 169, 189, 0.55);
  outline-offset: 4px;
}

.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(100% - 40px, var(--container));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  min-height: var(--header-height);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(220, 229, 238, 0.7);
  backdrop-filter: blur(18px);
  transition:
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(19, 36, 52, 0.08);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand-link {
  position: relative;
  z-index: 55;
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: clamp(138px, 15vw, 190px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
  color: #263747;
  font-size: 0.96rem;
  font-weight: 650;
}

.site-nav a {
  position: relative;
  padding-block: 10px;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--color-blue), var(--color-teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  position: relative;
  z-index: 55;
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  color: var(--color-ink);
  background: #ffffff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 999px;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(4) {
  transform: translateY(-7px) rotate(-45deg);
}

.section-shell {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero {
  min-height: 760px;
  padding: calc(var(--header-height) + 92px) 0 92px;
  background:
    linear-gradient(130deg, rgba(245, 248, 251, 0.96) 0%, rgba(255, 255, 255, 0.98) 52%, rgba(231, 245, 248, 0.9) 100%),
    repeating-linear-gradient(90deg, rgba(0, 94, 184, 0.07) 0 1px, transparent 1px 76px),
    repeating-linear-gradient(0deg, rgba(63, 139, 104, 0.06) 0 1px, transparent 1px 76px);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(0, 94, 184, 0.08) 42% 52%, transparent 52%),
    linear-gradient(155deg, transparent 0 65%, rgba(196, 154, 74, 0.12) 65% 72%, transparent 72%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: clamp(42px, 6vw, 78px);
}

.hero-content {
  max-width: 670px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--color-blue-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--color-ink);
  line-height: 1.08;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.6rem, 5.8vw, 5.65rem);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3.35rem);
  letter-spacing: 0;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.hero-text {
  max-width: 630px;
  margin: 26px 0 0;
  color: var(--color-muted);
  font-size: clamp(1.06rem, 1.4vw, 1.2rem);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 750;
  line-height: 1.2;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-teal) 100%);
  box-shadow: 0 16px 36px rgba(0, 94, 184, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 18px 42px rgba(0, 94, 184, 0.3);
}

.btn-secondary {
  color: var(--color-ink);
  background: #ffffff;
  border-color: var(--color-line);
  box-shadow: 0 10px 24px rgba(19, 36, 52, 0.08);
}

.btn-secondary:hover {
  border-color: rgba(0, 94, 184, 0.38);
}

.hero-visual {
  position: relative;
  min-height: 440px;
}

.hero-logo-panel {
  display: grid;
  min-height: 330px;
  padding: clamp(26px, 4vw, 44px);
  place-items: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(242, 248, 252, 0.84)),
    linear-gradient(90deg, rgba(0, 94, 184, 0.08), rgba(8, 169, 189, 0.08));
  border: 1px solid rgba(220, 229, 238, 0.95);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.hero-logo-panel img {
  width: min(100%, 520px);
  filter: drop-shadow(0 18px 26px rgba(19, 36, 52, 0.12));
}

.brand-stack {
  position: absolute;
  right: 22px;
  bottom: 0;
  left: 42px;
  display: grid;
  gap: 12px;
}

.stack-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 14px;
  align-items: center;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(220, 229, 238, 0.95);
  border-radius: var(--radius-sm);
  box-shadow: 0 14px 32px rgba(19, 36, 52, 0.12);
}

.stack-card span {
  grid-row: span 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  font-weight: 800;
  background: var(--color-blue-deep);
  border-radius: var(--radius-sm);
}

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

.stack-card small {
  color: var(--color-muted);
  font-weight: 650;
}

.section {
  padding: clamp(74px, 9vw, 118px) 0;
}

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

.legal-main {
  padding: calc(var(--header-height) + 58px) 0 86px;
  background:
    linear-gradient(180deg, #f6f9fc 0%, #ffffff 280px),
    repeating-linear-gradient(90deg, rgba(0, 94, 184, 0.06) 0 1px, transparent 1px 76px);
}

.legal-article {
  max-width: 900px;
  padding: clamp(26px, 5vw, 54px);
  background: var(--color-panel);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.legal-article .eyebrow {
  margin-bottom: 10px;
}

.legal-article h1 {
  margin-bottom: 22px;
  font-size: clamp(2.25rem, 5vw, 4rem);
}

.legal-article h2 {
  margin: 34px 0 14px;
  padding-top: 8px;
  font-size: clamp(1.28rem, 2.3vw, 1.85rem);
  line-height: 1.22;
}

.legal-article p,
.legal-article li,
.legal-article address {
  color: var(--color-muted);
  font-size: 1rem;
}

.legal-article p {
  margin: 0 0 15px;
}

.legal-article ul {
  padding-left: 1.3rem;
  margin: 0 0 18px;
}

.legal-article li + li {
  margin-top: 6px;
}

.legal-article address {
  margin-bottom: 16px;
  font-style: normal;
}

.legal-article address span {
  display: block;
}

.legal-note {
  display: inline-block;
  padding: 2px 6px;
  color: var(--color-blue-deep);
  font-weight: 750;
  background: rgba(8, 169, 189, 0.1);
  border: 1px solid rgba(8, 169, 189, 0.18);
  border-radius: 6px;
}

.split-layout,
.mission-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: start;
}

.section-body p,
.section-heading p,
.mission-copy p,
.contact-copy p,
.footer-brand p {
  color: var(--color-muted);
  font-size: 1.04rem;
}

.section-body p:first-child,
.mission-copy p,
.contact-copy p {
  margin-top: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.feature-card,
.company-card,
.value-card,
.contact-form {
  background: var(--color-panel);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.feature-card {
  padding: 28px;
}

.feature-icon,
.value-card span {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  place-items: center;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-blue-deep), var(--color-teal));
  border-radius: var(--radius-sm);
}

.feature-card h3,
.company-card h3,
.value-card h3 {
  margin-bottom: 10px;
}

.feature-card p,
.company-card p {
  margin: 0;
  color: var(--color-muted);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 40px;
}

.section-heading p {
  margin: 20px 0 0;
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.company-card {
  overflow: hidden;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.company-card:hover {
  border-color: rgba(0, 94, 184, 0.32);
  box-shadow: 0 24px 55px rgba(19, 36, 52, 0.14);
  transform: translateY(-5px);
}

.company-logo-wrap {
  display: grid;
  min-height: 250px;
  padding: 26px;
  place-items: center;
  background:
    linear-gradient(145deg, #f8fbfd 0%, #eef7fa 100%),
    repeating-linear-gradient(90deg, rgba(0, 94, 184, 0.08) 0 1px, transparent 1px 54px);
  border-bottom: 1px solid var(--color-line);
}

.company-logo {
  width: min(100%, 470px);
  max-height: 200px;
  object-fit: contain;
}

.company-content {
  padding: 28px;
}

.company-kicker {
  margin: 0 0 8px;
  color: var(--color-green);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.text-link {
  display: inline-flex;
  margin-top: 22px;
  color: var(--color-blue-deep);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(8, 169, 189, 0.45);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.text-link:hover {
  color: var(--color-blue);
}

.section-accent {
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(20, 32, 43, 0.96), rgba(6, 60, 115, 0.93)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 80px);
}

.section-accent h2,
.section-accent h3,
.section-accent .eyebrow {
  color: #ffffff;
}

.section-accent p {
  color: rgba(255, 255, 255, 0.78);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.value-card {
  min-height: 146px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.value-card:last-child {
  grid-column: 1 / -1;
}

.value-card span {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-section {
  background:
    linear-gradient(180deg, #ffffff 0%, #f4f8fb 100%),
    repeating-linear-gradient(0deg, rgba(196, 154, 74, 0.12) 0 1px, transparent 1px 70px);
}

.contact-copy .btn {
  margin-top: 14px;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 34px);
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  font-size: 0.94rem;
  font-weight: 800;
}

.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--color-ink);
  background: #fbfdff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  background: #ffffff;
  border-color: rgba(0, 94, 184, 0.5);
  box-shadow: 0 0 0 4px rgba(8, 169, 189, 0.12);
  outline: none;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--color-muted);
  font-size: 0.94rem;
}

.site-footer {
  padding: 58px 0 26px;
  color: rgba(255, 255, 255, 0.78);
  background: #121d27;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(230px, 1.4fr) repeat(3, minmax(140px, 0.7fr));
  gap: 34px;
}

.footer-brand img {
  width: 160px;
  margin-bottom: 18px;
  filter: brightness(1.9) contrast(0.94);
}

.footer-brand p {
  max-width: 360px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 0.96rem;
}

.site-footer nav {
  display: grid;
  align-content: start;
  gap: 9px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  transition: color 180ms ease;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 26px;
  margin-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 500ms ease,
    transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  :root {
    --header-height: 76px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 52;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 26px;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 110px 24px 40px;
    font-size: 1.25rem;
    background: #ffffff;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 56px);
  }

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

  .hero-visual {
    min-height: 400px;
  }

  .feature-grid,
  .company-grid {
    grid-template-columns: 1fr;
  }

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

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

  .hero {
    padding-bottom: 68px;
  }

  .hero-actions,
  .hero-actions .btn,
  .contact-copy .btn,
  .contact-form .btn {
    width: 100%;
  }

  .hero-visual {
    min-height: 410px;
  }

  .hero-logo-panel {
    min-height: 260px;
  }

  .brand-stack {
    right: 10px;
    left: 10px;
  }

  .stack-card {
    padding: 14px;
  }

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

  .value-card:last-child {
    grid-column: auto;
  }

  .company-logo-wrap {
    min-height: 210px;
  }

  .company-content,
  .feature-card {
    padding: 22px;
  }
}
