:root {
  --navy: #292779;
  --navy-dark: #1f1d63;
  --green: #0ead7b;
  --green-dark: #088b63;
  --white: #ffffff;
  --surface: #f5f7fc;
  --surface-strong: #e9edf7;
  --text: #272c43;
  --muted: #626a7d;
  --border: #d9deeb;
  --shadow: 0 18px 50px rgba(41, 39, 121, 0.1);
  --shadow-soft: 0 8px 24px rgba(41, 39, 121, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1280px;
  --header-height: 96px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
.button,
.text-link,
.main-nav a {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(14, 173, 123, 0.45);
  outline-offset: 4px;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  transition: box-shadow 180ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 35px rgba(41, 39, 121, 0.08);
}

.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  align-items: center;
  height: 100%;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  width: 238px;
  text-decoration: none;
}

.brand img,
.footer-brand img {
  width: 100%;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 52px;
}

.main-nav a {
  position: relative;
  color: var(--navy);
  font-size: 16px;
  font-weight: 720;
  text-decoration: none;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--green);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

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

.header-cta {
  justify-self: end;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.menu-toggle svg {
  width: 24px;
  margin: auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 15px 24px;
  gap: 10px;
  color: var(--white);
  font-size: 16px;
  font-weight: 760;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  background: var(--green);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(14, 173, 123, 0.2);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  background: var(--green-dark);
  box-shadow: 0 14px 28px rgba(14, 173, 123, 0.25);
  transform: translateY(-2px);
}

.button svg,
.text-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button--small {
  min-height: 48px;
  padding: 13px 26px;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  position: absolute;
  top: 25%;
  right: -180px;
  width: 440px;
  height: 440px;
  content: "";
  border: 2px solid rgba(14, 173, 123, 0.09);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: calc(100vh - var(--header-height) - 84px);
  align-items: center;
  gap: 32px;
  padding-block: 20px 120px;
}

.hero-copy {
  position: relative;
  top: -40px;
  z-index: 2;
  max-width: 640px;
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(48px, 4.7vw, 68px);
  font-weight: 820;
  letter-spacing: -0.052em;
  line-height: 1.04;
}

.hero-lead {
  max-width: 610px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
}

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

.hero-proof {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 24px;
  color: #49516a;
  font-size: 15px;
  font-weight: 620;
}

.hero-proof__icon {
  display: grid;
  width: 30px;
  height: 30px;
  color: var(--white);
  background: var(--green);
  border-radius: 50%;
  place-items: center;
}

.hero-proof__icon svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.hero-media {
  position: relative;
  top: -40px;
  width: 100%;
  margin: 0;
  isolation: isolate;
}

.hero-media::before {
  display: none;
  content: "";
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.hero-media figcaption,
.product-card__media figcaption {
  position: absolute;
  right: 18px;
  bottom: 14px;
  padding: 4px 8px;
  color: #666e80;
  font-size: 11px;
  font-weight: 680;
  line-height: 1.2;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
}

.products-section {
  padding-block: 112px 124px;
  background: var(--surface);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.section-heading h2,
.how-heading h2,
.final-cta h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(38px, 4.2vw, 58px);
  font-weight: 810;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.section-heading p {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.product-count {
  flex: 0 0 auto;
  padding-bottom: 5px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 760;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.filter-button {
  min-height: 46px;
  padding: 10px 19px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 720;
  background: var(--white);
  border: 1px solid rgba(41, 39, 121, 0.35);
  border-radius: 11px;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.filter-button:hover {
  border-color: var(--navy);
  transform: translateY(-1px);
}

.filter-button.is-active {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.featured-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.product-card[hidden] {
  display: none;
}

.product-card--featured {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(210px, 0.98fr);
  min-height: 390px;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.product-card--featured:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.product-card__content {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding: 36px 0 34px 36px;
}

.product-card__category,
.product-card__reference {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.075em;
  line-height: 1.35;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.product-card__description {
  margin: 16px 0 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.product-card__content .button {
  min-height: 50px;
  margin-top: auto;
  padding: 13px 17px;
  font-size: 14px;
}

.product-card__media {
  position: relative;
  display: grid;
  min-width: 0;
  margin: 0;
  padding: 18px;
  place-items: center;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  max-height: 330px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

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

.product-card--compact {
  display: grid;
  grid-template-columns: 118px 1fr;
  min-height: 210px;
  padding: 22px;
  gap: 20px;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.product-card--compact:hover {
  border-color: rgba(41, 39, 121, 0.35);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.placeholder-media {
  display: grid;
  width: 118px;
  height: 118px;
  color: var(--navy);
  background: var(--surface);
  border-radius: 50%;
  place-items: center;
}

.placeholder-media svg {
  width: 76px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.placeholder-media .placeholder-check {
  color: var(--green);
  stroke: currentColor;
  stroke-width: 4;
}

.product-card__compact-content {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  flex-direction: column;
}

.product-card__reference {
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}

.product-card--compact h3 {
  font-size: 20px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding-top: 18px;
  gap: 8px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 780;
  text-decoration: none;
}

.text-link svg {
  width: 18px;
  transition: transform 160ms ease;
}

.text-link:hover svg {
  transform: translateX(4px);
}

.how-section {
  padding-block: 124px 136px;
  background: var(--white);
}

.how-heading {
  display: flex;
  justify-content: center;
  text-align: center;
}

.how-heading h2 {
  max-width: 840px;
}

.how-heading span {
  display: block;
  color: var(--green);
}

.steps-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 72px 0 0;
  padding: 0;
  gap: 80px;
  list-style: none;
}

.steps-list::before {
  position: absolute;
  top: 70px;
  right: 16.5%;
  left: 16.5%;
  height: 2px;
  content: "";
  background: var(--green);
}

.step {
  position: relative;
  text-align: center;
}

.step::before {
  position: absolute;
  top: 64px;
  left: 50%;
  z-index: 1;
  width: 14px;
  height: 14px;
  content: "";
  background: var(--green);
  border: 4px solid var(--white);
  border-radius: 50%;
  transform: translateX(-50%);
}

.step-number {
  position: relative;
  z-index: 2;
  display: inline-block;
  padding-inline: 18px;
  color: var(--navy);
  background: var(--white);
  font-size: clamp(64px, 7vw, 100px);
  font-weight: 840;
  letter-spacing: -0.07em;
  line-height: 1;
}

.step h3 {
  margin: 30px 0 10px;
  color: var(--green-dark);
  font-size: 26px;
  font-weight: 810;
  letter-spacing: -0.03em;
}

.step p {
  max-width: 280px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 16px;
}

.final-cta {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.final-cta__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 0.52fr);
  min-height: 520px;
  align-items: center;
  gap: 40px;
}

.final-cta__copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-block: 92px;
}

.final-cta h2 {
  color: var(--white);
}

.final-cta p {
  max-width: 560px;
  margin: 22px 0 30px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

.final-cta__mark {
  width: 100%;
  color: rgba(255, 255, 255, 0.15);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
  transform: rotate(-3deg) scale(1.1);
}

.site-footer {
  color: var(--white);
  background: var(--navy-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.footer-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 185px;
  align-items: center;
  gap: 72px;
}

.footer-brand {
  width: 280px;
}

.footer-inner p {
  max-width: 690px;
  margin: 0;
  padding-left: 72px;
  color: rgba(255, 255, 255, 0.78);
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 15px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.reveal--delay {
  transition-delay: 110ms;
}

.reveal--delay-2 {
  transition-delay: 200ms;
}

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

@media (max-width: 1080px) {
  :root {
    --header-height: 84px;
  }

  .header-inner {
    grid-template-columns: 220px 1fr 200px;
  }

  .brand {
    width: 205px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(430px, 1.05fr);
    gap: 28px;
  }

  .hero h1 {
    font-size: clamp(48px, 5.8vw, 64px);
  }

  .product-card--featured {
    grid-template-columns: 1fr;
  }

  .product-card__content {
    padding: 30px 30px 0;
  }

  .product-card__media {
    min-height: 260px;
  }

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

@media (max-width: 820px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .header-inner {
    display: flex;
    justify-content: space-between;
  }

  .brand {
    width: 190px;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .header-cta {
    display: none;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    padding: 12px;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }

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

  .main-nav a {
    padding: 13px 12px;
  }

  .main-nav a::after {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 70px 54px;
    gap: 30px;
  }

  .hero-copy {
    max-width: 680px;
    top: 0;
  }

  .hero-media {
    max-width: 680px;
    margin-inline: auto;
    top: 0;
  }

  .products-section,
  .how-section {
    padding-block: 88px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }

  .featured-products,
  .secondary-products {
    grid-template-columns: 1fr;
  }

  .product-card--featured {
    grid-template-columns: 1fr 0.75fr;
    min-height: 360px;
  }

  .product-card__content {
    padding: 30px;
  }

  .steps-list {
    grid-template-columns: 1fr;
    margin-top: 54px;
    gap: 54px;
  }

  .steps-list::before {
    display: none;
  }

  .step::before {
    display: none;
  }

  .step-number {
    font-size: 76px;
  }

  .step h3 {
    margin-top: 16px;
  }

  .final-cta__inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .final-cta__copy {
    padding-block: 84px;
  }

  .final-cta__mark {
    position: absolute;
    right: -80px;
    bottom: -60px;
    width: 390px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding-block: 48px;
    gap: 34px;
  }

  .footer-inner p {
    padding: 28px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 0;
  }
}

@media (max-width: 560px) {
  :root {
    --header-height: 78px;
  }

  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .brand {
    width: 168px;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .hero-grid {
    padding-block: 52px 38px;
  }

  .hero h1 {
    font-size: clamp(42px, 12.2vw, 56px);
  }

  .hero-lead {
    margin-top: 22px;
    font-size: 17px;
  }

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

  .hero-proof {
    align-items: flex-start;
  }

  .hero-media figcaption,
  .product-card__media figcaption {
    right: 8px;
    bottom: 8px;
  }

  .section-heading h2,
  .how-heading h2,
  .final-cta h2 {
    font-size: 38px;
  }

  .section-heading p {
    font-size: 16px;
  }

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

  .filter-button {
    padding-inline: 10px;
  }

  .product-card--featured {
    grid-template-columns: 1fr;
  }

  .product-card__media {
    min-height: 240px;
  }

  .product-card--compact {
    grid-template-columns: 88px 1fr;
    min-height: 190px;
    padding: 18px;
    gap: 16px;
  }

  .placeholder-media {
    width: 88px;
    height: 88px;
  }

  .placeholder-media svg {
    width: 58px;
  }

  .product-card--compact h3 {
    font-size: 18px;
  }

  .product-card__reference {
    font-size: 10px;
  }

  .text-link {
    padding-top: 14px;
    font-size: 13px;
  }

  .final-cta__mark {
    opacity: 0.7;
  }

  .footer-brand {
    width: 235px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::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;
  }
}
