:root {
  --blue: #245875;
  --blue-dark: #145f78;
  --footer-blue: #166f88;
  --green: #23b245;
  --green-dark: #168836;
  --panel: #f4f8fb;
  --text: #263d4c;
  --max: 1240px;
  --gutter: 52px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.nav-open { overflow: hidden; }

body {
  margin: 0;
  font-family: Inter, Avenir, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.45;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(100% - calc(var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 50;
  background: #fff;
  box-shadow: 0 1px 0 rgba(36, 88, 117, .08);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: clamp(28px, 6vw, 96px);
}

.brand img {
  display: block;
  width: clamp(145px, 14vw, 204px);
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: clamp(32px, 6vw, 86px);
  color: var(--blue);
  font-size: .95rem;
  font-weight: 800;
}

.main-nav a,
.footer-nav a,
.footer-contact a {
  transition: opacity .18s ease;
}

.main-nav a:hover,
.footer-nav a:hover,
.footer-contact a:hover { opacity: .72; }

.linkedin {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 3px;
  background: var(--blue);
  color: white;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.06em;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--blue);
  transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.hero {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(520px, 1.45fr);
  background: var(--panel);
}

.hero-copy {
  min-height: 410px;
  padding: 58px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

h1,
h2 {
  color: var(--blue);
  letter-spacing: -0.012em;
}

.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(2.15rem, 3.7vw, 3.05rem);
  line-height: .96;
}

.hero p {
  margin: 0 0 34px;
  color: var(--blue);
  font-size: 1.18rem;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 28px;
  border-radius: 9px;
  background: var(--green);
  color: #fff;
  font-size: .9rem;
  font-weight: 900;
  transition: background .2s ease, transform .2s ease;
}

.button:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.hero-image {
  min-height: 410px;
  background: url("assets/hero-medarm.png") center / cover no-repeat;
}

.features {
  padding-block: 64px 62px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  text-align: center;
}

.feature-card img {
  width: 100%;
  max-width: 245px;
  height: 160px;
  object-fit: contain;
  margin-bottom: 16px;
}

.feature-card h2,
.cards h2 {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 2.4vw, 2rem);
  line-height: 1;
}

.feature-card p {
  margin: 0;
  color: var(--blue);
  font-weight: 800;
  line-height: 1.05;
}

.info-panel {
  margin-bottom: 18px;
  padding: clamp(44px, 6vw, 74px);
  display: grid;
  grid-template-columns: 1fr .95fr;
  align-items: center;
  gap: 42px;
  background: var(--panel);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.info-copy h2 {
  max-width: 610px;
  margin: 0 0 30px;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.02;
}

.info-copy > p:not(.eyebrow) {
  max-width: 590px;
  margin: 0 0 28px;
  color: #2f3f48;
  font-size: 1.02rem;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--blue);
  font-weight: 800;
}

.check-list li {
  position: relative;
  margin: 8px 0;
  padding-left: 34px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 900;
}

.info-device {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
}

.cards {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1.56fr .94fr;
  gap: 18px;
}

.download-card,
.contact-card {
  background: var(--panel);
  padding: clamp(36px, 5vw, 58px);
}

.download-card {
  display: grid;
  grid-template-columns: 176px 1fr;
  gap: 58px;
  align-items: center;
}

.download-card img {
  width: 176px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06);
}

.cards p:not(.eyebrow) {
  max-width: 520px;
  margin: 0 0 28px;
  color: #3d4a52;
  font-size: 1.02rem;
}

.site-footer {
  background: linear-gradient(180deg, var(--blue-dark), var(--footer-blue));
  color: #fff;
}

.footer-inner {
  padding-block: 72px 42px;
  display: grid;
  grid-template-columns: 1.75fr .7fr .95fr auto;
  gap: clamp(36px, 6vw, 76px);
  align-items: start;

}

.footer-brand img {
  display: block;
  width: clamp(240px, 28vw, 392px);
}

.footer-nav,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-style: normal;
  font-weight: 600;
}

.footer-contact {
  gap: 6px;
}

.footer-contact strong {
  margin-bottom: 0;
}

.footer-linkedin {
  align-self: start;
  background: #fff;
  color: var(--blue);
}

.copyright {
  grid-column: 1 / -1;
  justify-self: center;
  margin: 54px 0 0;
  font-weight: 400;
}

@media (max-width: 980px) {
  :root { --gutter: 32px; }

  .header-inner {
    min-height: auto;
    padding-block: 18px;
    gap: 18px;
    position: relative;
  }

  .brand { margin-right: auto; }

  .menu-toggle {
    display: inline-block;
    margin-left: 0;
  }

  .main-nav {
    position: absolute;
    z-index: 20;
    top: calc(100% - 2px);
    left: 0;
    right: 0;
    width: 100%;
    padding: 20px 24px 24px;
    display: grid;
    gap: 16px;
    justify-content: stretch;
    background: #fff;
    border-top: 1px solid rgba(36, 88, 117, .12);
    box-shadow: 0 18px 30px rgba(24, 67, 90, .12);
    transform-origin: top;
    transform: scaleY(.96);
    opacity: 0;
    pointer-events: none;
    transition: transform .22s ease, opacity .22s ease;
  }

  .main-nav.is-open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a {
    padding: 11px 0;
  }

  .header-linkedin {
    display: inline-grid;
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
  }

  .footer-linkedin {
    display: inline-grid;
    justify-self: start;
  }

  .hero,
  .info-panel,
  .cards {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: -1;
    min-height: 360px;
  }

  .hero-copy { min-height: 320px; }

  .features {
    max-width: 540px;
    padding-block: 48px;
    grid-template-columns: 1fr;
  }

  .info-panel { padding: 42px 30px; }

  .info-device {
    order: -1;
    max-height: 430px;
  }

  .download-card {
    grid-template-columns: 140px 1fr;
    gap: 32px;
  }

  .download-card img { width: 140px; }

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

  }

  .footer-brand,
  .copyright {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  :root { --gutter: 24px; }

  .brand img { width: 145px; }

  .main-nav {
    font-size: .9rem;
  }

  .hero-copy {
    align-items: center;
    text-align: center;
  }

  .hero-image { min-height: 480px; }

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

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


  }

  .footer-linkedin {
    justify-self: start;
  }

  .copyright {
    justify-self: start;
    margin-top: 22px;
  }
}

/* Subtle motion layer -------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 920ms cubic-bezier(.2, .65, .24, 1),
    transform 920ms cubic-bezier(.2, .65, .24, 1),
    filter 920ms cubic-bezier(.2, .65, .24, 1);
  transition-delay: var(--reveal-delay, 200ms);
  will-change: opacity, transform;
}

.reveal-from-left { transform: translateX(-22px); }
.reveal-from-right { transform: translateX(22px); }

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

.hero-image.reveal {
  transform: translateX(50px) scale(1.015);
  filter: saturate(.96);
}

.hero-image.reveal.is-visible {
  transform: translateX(0) scale(1);
  filter: saturate(1);
}

.feature-card img,
.info-device,
.download-card img {
  transition:
    transform 900ms cubic-bezier(.2, .65, .24, 1),
    filter 900ms cubic-bezier(.2, .65, .24, 1);
}

.feature-card.reveal img,
.download-card.reveal img {
  transform: scale(.985);
}

.feature-card.reveal.is-visible img,
.download-card.reveal.is-visible img {
  transform: scale(1);
}

.button {
  box-shadow: 0 0 0 rgba(22, 136, 54, 0);
  transition:
    background .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(22, 136, 54, .18);
}

.button:active { transform: translateY(0); }

.main-nav a,
.footer-nav a {
  position: relative;
}

.main-nav a::after,
.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .24s ease;
}

.main-nav a:hover::after,
.footer-nav a:hover::after {
  transform: scaleX(1);
}

.reveal-list li {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 480ms ease,
    transform 480ms ease;
}

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

.reveal-list.is-visible li:nth-child(1) { transition-delay: 40ms; }
.reveal-list.is-visible li:nth-child(2) { transition-delay: 90ms; }
.reveal-list.is-visible li:nth-child(3) { transition-delay: 140ms; }
.reveal-list.is-visible li:nth-child(4) { transition-delay: 190ms; }
.reveal-list.is-visible li:nth-child(5) { transition-delay: 240ms; }
.reveal-list.is-visible li:nth-child(6) { transition-delay: 290ms; }

.menu-toggle span {
  transform-origin: center;
}

.main-nav {
  transition:
    transform .24s cubic-bezier(.2, .65, .24, 1),
    opacity .24s ease;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal,
  .reveal-from-left,
  .reveal-from-right,
  .hero-image.reveal,
  .reveal-list li {
    opacity: 1;
    transform: none;
    filter: none;
  }
}


/* Cookie notice -------------------------------------------------------- */
.cookie-notice {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  width: min(calc(100% - 48px), 420px);
  color: var(--text);
}

.cookie-notice__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 18px 18px 20px;
  border: 1px solid rgba(36, 88, 117, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 40px rgba(20, 95, 120, .16);
  backdrop-filter: blur(8px);
}

.cookie-notice p {
  margin: 0;
  font-size: .86rem;
  line-height: 1.45;
}

.cookie-notice__button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-size: .84rem;
  font-weight: 900;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.cookie-notice__button:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(22, 136, 54, .16);
}

.cookie-notice__button:focus-visible {
  outline: 3px solid rgba(35, 178, 69, .32);
  outline-offset: 3px;
}

.cookie-notice.is-visible {
  animation: cookieFadeIn 360ms ease both;
}

.cookie-notice.is-hiding {
  animation: cookieFadeOut 240ms ease both;
}

@keyframes cookieFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cookieFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(10px); }
}

@media (max-width: 600px) {
  .cookie-notice {
    right: 16px;
    bottom: 16px;
    width: calc(100% - 32px);
  }

  .cookie-notice__inner {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
  }

  .cookie-notice__button {
    width: 100%;
  }
}
