:root {
  --paper: #f7f5ee;
  --surface: #ffffff;
  --ink: #182230;
  --muted: #5e6876;
  --navy: #243752;
  --navy-2: #18263b;
  --gold: #bd9746;
  --teal: #218b93;
  --line: #dedbd1;
  --shadow: 0 18px 55px rgba(24, 34, 48, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 64px);
  background: rgba(247, 245, 238, 0.86);
  border-bottom: 1px solid rgba(222, 219, 209, 0.72);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 32px);
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 650;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
}

.section {
  padding: clamp(72px, 9vw, 128px) clamp(20px, 5vw, 84px);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding-top: 112px;
  overflow: hidden;
  color: white;
  background: var(--navy);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(24, 38, 59, 0.95) 0%, rgba(24, 38, 59, 0.78) 38%, rgba(24, 38, 59, 0.18) 100%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  max-width: 780px;
  padding-bottom: clamp(32px, 5vw, 72px);
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 740px;
  margin-bottom: 20px;
  font-size: clamp(3.2rem, 8vw, 7.6rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 20px;
  color: var(--navy-2);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: clamp(1.08rem, 1.4vw, 1.35rem);
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.08rem, 1.6vw, 1.32rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--gold);
  color: var(--navy-2);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.36);
  color: inherit;
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 920px;
  background: rgba(255, 255, 255, 0.18);
}

.hero-stats article {
  padding: clamp(18px, 2.6vw, 30px);
  background: rgba(24, 38, 59, 0.78);
}

.hero-stats strong {
  display: block;
  color: var(--gold);
  font-size: clamp(1.7rem, 3vw, 3.1rem);
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
}

.section-heading {
  max-width: 880px;
}

.lead {
  max-width: 980px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.intro-band {
  background: var(--surface);
}

.solution-grid,
.market-grid,
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.solution-card,
.market-grid article,
.team-grid article {
  min-height: 100%;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.solution-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 270px;
  box-shadow: var(--shadow);
}

.card-index {
  color: var(--teal);
  font-weight: 900;
}

.solution-card p,
.market-grid p,
.team-grid p,
.tech-copy p,
.contact p {
  color: var(--muted);
}

.technology {
  background: #eef4f2;
}

.tech-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  margin-top: 36px;
}

.pipeline {
  display: grid;
  gap: 12px;
  padding: clamp(20px, 3vw, 34px);
  background: var(--navy-2);
  box-shadow: var(--shadow);
}

.pipeline div {
  position: relative;
  padding: 17px 18px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border-left: 5px solid var(--gold);
  font-weight: 750;
}

.pipeline div:nth-child(2n) {
  border-left-color: var(--teal);
}

.pipeline div:not(:last-child)::after {
  position: absolute;
  left: 34px;
  bottom: -13px;
  width: 2px;
  height: 13px;
  content: "";
  background: rgba(255, 255, 255, 0.34);
}

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

.feature-list li {
  padding-left: 24px;
  color: var(--ink);
  background: linear-gradient(var(--teal), var(--teal)) 0 0.68em / 9px 9px no-repeat;
}

.market {
  background: var(--surface);
}

.market-grid article {
  border-top: 4px solid var(--gold);
}

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

.team-grid article {
  min-height: 168px;
  background: linear-gradient(180deg, #fff 0%, #f9f8f3 100%);
}

.contact {
  padding-bottom: clamp(54px, 7vw, 96px);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 0.52fr);
  gap: 40px;
  align-items: center;
  padding: clamp(28px, 5vw, 62px);
  color: white;
  background: var(--navy-2);
}

.contact-panel h2 {
  color: white;
}

.contact-panel p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.76);
}

.contact-actions {
  align-items: stretch;
  flex-direction: column;
}

address {
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(20px, 5vw, 84px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface);
}

.site-footer img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
    background: rgba(247, 245, 238, 0.98);
    border-bottom: 1px solid var(--line);
  }

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

  .site-nav a {
    padding: 13px 0;
  }

  .hero-media::after {
    background: linear-gradient(180deg, rgba(24, 38, 59, 0.94) 0%, rgba(24, 38, 59, 0.74) 58%, rgba(24, 38, 59, 0.9) 100%);
  }

  .solution-grid,
  .market-grid,
  .team-grid,
  .tech-layout,
  .contact-panel {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .site-header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand img {
  width: 56px;
  }

  .hero {
    min-height: 940px;
  }

  .hero-stats,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .button,
  .hero-actions {
    width: 100%;
  }

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