:root {
  --bg: #ffffff;
  --bg-soft: #f7f9fb;
  --surface: #ffffff;
  --text: #121418;
  --muted: #5e6570;
  --line: #e6ebf0;
  --teal: #56a99d;
  --teal-deep: #2b8f81;
  --shadow-soft: 0 10px 26px rgba(17, 27, 39, 0.06);
  --shadow-lift: 0 18px 38px rgba(17, 27, 39, 0.09);
  --radius: 1.15rem;
}

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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 94px;
}

body {
  font-family: Inter, Manrope, "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

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

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding-left: 1.1rem;
}

li {
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.container {
  width: min(1320px, 94vw);
  margin: 0 auto;
}

.section {
  padding: clamp(3.4rem, 7vw, 7.2rem) 0;
}

.section-alt {
  background: var(--bg-soft);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--teal-deep);
  margin-bottom: 1rem;
}

.body-copy {
  color: var(--muted);
  font-size: 1.04rem;
  max-width: 64ch;
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  max-width: 24ch;
  margin-bottom: 0.9rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(255, 255, 255, 0.69);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: saturate(180%) blur(0px);
  backdrop-filter: saturate(180%) blur(0px);
  transition: background 0.42s ease, border-color 0.42s ease, backdrop-filter 0.42s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(20, 31, 44, 0.08);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-wordmark {
  font-weight: 800;
  font-size: clamp(1.7rem, 2.3vw, 2.1rem);
  letter-spacing: -0.04em;
}

.brand-wordmark .core {
  color: var(--teal);
}

.brand-wordmark .mediq {
  color: #050505;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-link {
  font-size: 0.93rem;
  color: #31343a;
  padding: 0.46rem 0.72rem;
  border-radius: 999px;
  transition: background-color 0.28s ease, color 0.28s ease;
}

.nav-link:hover {
  background: rgba(17, 27, 39, 0.06);
}

.nav-link.active {
  color: #2b8f81;
  background: rgba(86, 169, 157, 0.16);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 650;
  padding: 0.68rem 1rem;
  border: 1px solid transparent;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(140deg, #56a99d 0%, #2b8f81 100%);
  box-shadow: 0 8px 18px rgba(43, 143, 129, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 12px 25px rgba(43, 143, 129, 0.3);
}

.btn-secondary {
  color: #192029;
  background: #fff;
  border-color: var(--line);
}

.desktop-cta {
  font-size: 0.92rem;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #13161b;
  margin: 4px auto;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.menu-toggle.is-open span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(20, 31, 44, 0.08);
  padding: 0.7rem 1rem 1rem;
  background: rgba(255, 255, 255, 0.98);
}

.mobile-menu.open {
  display: grid;
  gap: 0.35rem;
}

.mobile-link {
  padding: 0.7rem 0.4rem;
  border-radius: 0.8rem;
  color: #2b313a;
}

.mobile-link:hover {
  background: rgba(18, 22, 30, 0.05);
}

.mobile-cta {
  margin-top: 0.3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: start;
}

.hero-copy h1 {
  font-size: clamp(2.3rem, 6.4vw, 5.1rem);
  max-width: 10ch;
  margin-bottom: 1rem;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.3rem);
  max-width: 46ch;
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-visual {
  position: relative;
  width: 100%;
  justify-self: end;
}

.hero-visual .hero-animation-shell {
  width: 100%;
  margin-left: auto;
}

@media (min-width: 1280px) {
  .hero-copy {
    transform: translateY(-1.25cm);
  }

  .hero-visual .hero-animation-shell {
    transform: translateY(calc(-68px - 2cm));
  }
}

.floating-card {
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.floating-card p {
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.floating-card strong {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  letter-spacing: -0.02em;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.1rem;
  align-items: start;
}

.about-copy h2 {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  max-width: 24ch;
  margin-bottom: 1rem;
}

.about-copy .body-copy {
  max-width: 60ch;
}

.about-grid > .card-grid {
  margin-top: 23px;
}

.card-grid {
  display: grid;
  gap: 0.85rem;
}

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

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

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

.soft-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.2rem;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.soft-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.soft-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.55rem;
}

.soft-card p {
  color: var(--muted);
}

.pillar-card li {
  margin-bottom: 0.45rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.stats-row article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.05rem;
  text-align: center;
}

.stats-row strong {
  display: block;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.03em;
}

.stats-row span {
  font-size: 0.87rem;
  color: var(--muted);
}

.cta-panel {
  border-radius: calc(var(--radius) + 0.2rem);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f9fcfb 100%);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.compliance-chips {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.compliance-chips span {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.36rem 0.7rem;
  color: #253140;
  font-size: 0.82rem;
  background: #fff;
}

.site-footer {
  padding: 1.8rem 0 1rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1rem;
}

.footer-brand {
  margin-bottom: 0.4rem;
}

.footer-line {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 0.4rem;
}

.footer-links a {
  color: #2f3440;
}

.footer-contact p,
.footer-contact a {
  display: block;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.footer-bottom {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(3px);
  transition: opacity 0.86s ease, transform 0.86s ease, filter 1.06s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

#about,
#solutions,
#platform,
#technology,
#impact,
#contact {
  scroll-margin-top: 100px;
}

@media (max-width: 1120px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-grid > .card-grid {
    margin-top: 0;
  }

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

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

  .stats-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .desktop-nav,
  .desktop-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }

  .hero-copy h1 {
    max-width: 14ch;
  }

  .hero-visual,
  .card-grid-2,
  .card-grid-3,
  .card-grid-4,
  .stats-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual .hero-animation-shell {
    width: 100%;
  }

  .section {
    padding: 3.2rem 0;
  }
}
