:root {
  --bg: #04131c;
  --panel: #09242f;
  --panel2: #0d303b;
  --line: rgba(130, 211, 218, 0.25);
  --text: #f8fcfd;
  --muted: #bdd3d7;
  --accent: #2ed2cf;
  --accent2: #58a7ff;
  --professional: #2ed2cf;
  --student: #58a7ff;
  --patient: #7bd957;
  --dark: #03151d;
  color-scheme: dark;
}

html {
  scroll-padding-top: 88px;
}

body {
  background:
    radial-gradient(circle at 86% 4%, rgba(26, 139, 151, 0.13), transparent 32rem),
    linear-gradient(180deg, #04131c 0%, #061c26 48%, #04131c 100%);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #ffe78a;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 10px;
  background: #ffffff;
  color: #03151d;
  font-weight: 900;
}

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

.site-header {
  min-height: 78px;
  padding: 12px clamp(18px, 4.2vw, 68px);
  background: rgba(3, 17, 25, 0.88);
  border-bottom-color: var(--line);
  backdrop-filter: blur(20px);
}

.brand > span {
  width: 45px;
  height: 39px;
  border-radius: 0;
  background: transparent;
}

.brand > span img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand > div {
  display: grid;
}

.brand strong {
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
}

.brand small {
  margin-top: 4px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.27em;
}

.site-header nav {
  gap: clamp(12px, 2vw, 28px);
  color: #c5d9dc;
}

.site-header nav > a:not(.nav-button) {
  position: relative;
  padding: 12px 2px;
}

.site-header nav > a:not(.nav-button)::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 5px;
  left: 2px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.site-header nav > a:not(.nav-button):hover::after {
  transform: scaleX(1);
}

.public-menu-button {
  display: none;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 25px;
  cursor: pointer;
}

.nav-button,
.primary,
.buy {
  background: linear-gradient(135deg, var(--accent), #58a7ef);
  color: #031a23;
}

.secondary {
  border-color: rgba(121, 211, 216, 0.4);
  background: rgba(5, 31, 42, 0.72);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 760px;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.58fr);
  gap: clamp(36px, 6vw, 90px);
  padding: clamp(68px, 8vw, 116px) clamp(22px, 5vw, 82px);
  overflow: hidden;
  border-bottom: 1px solid rgba(122, 213, 218, 0.16);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../academy/academy-hero-clean.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  filter: saturate(0.92) contrast(1.05);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(2, 14, 21, 0.04) 35%, rgba(2, 14, 21, 0.96) 100%),
    linear-gradient(90deg, rgba(2, 14, 21, 0.99) 0%, rgba(2, 14, 21, 0.9) 42%, rgba(2, 14, 21, 0.36) 72%, rgba(2, 14, 21, 0.72) 100%);
}

.hero-copy {
  max-width: 870px;
}

.hero h1 {
  margin-top: 20px;
  color: #ffffff;
  font-size: clamp(3.3rem, 6vw, 6.25rem);
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.44);
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero-copy > p {
  max-width: 760px;
  color: #e4eff1;
  font-size: clamp(1.02rem, 1.55vw, 1.28rem);
}

.hero-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: min(920px, 100%);
  margin: 32px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(88, 221, 219, 0.35);
  border-radius: 17px;
  background: rgba(3, 25, 34, 0.73);
  backdrop-filter: blur(14px);
  list-style: none;
}

.hero-benefits > li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 13px 15px;
  color: #f2f9fa;
  font-size: 12px;
  font-weight: 760;
}

.hero-benefits > li + li {
  border-left: 1px solid rgba(104, 219, 218, 0.24);
}

.hero-benefits svg {
  flex: 0 0 35px;
  width: 35px;
  height: 35px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(46, 210, 207, 0.26));
}

.hero-panel {
  align-self: end;
  padding: clamp(24px, 3vw, 38px);
  border-color: rgba(103, 224, 221, 0.4);
  background: rgba(3, 24, 33, 0.8);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(20px);
}

.hero-panel h2 {
  color: #ffffff;
}

.panel-grid div {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
}

.panel-grid span {
  color: #bfd4d8;
}

.panel-link {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  padding: 13px 16px;
  border: 1px solid rgba(75, 220, 216, 0.5);
  border-radius: 13px;
  color: #effafa;
  font-weight: 900;
}

.panel-link:hover {
  background: rgba(46, 210, 207, 0.11);
}

.audiences {
  display: grid;
  grid-template-columns: 0.86fr repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
  padding: 72px clamp(22px, 5vw, 82px);
}

.audience-intro {
  align-self: center;
  padding-right: 12px;
}

.audience-intro h2 {
  margin: 10px 0 0;
  color: #ffffff;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.05;
}

.audience-card {
  --audience-color: var(--professional);
  padding: 25px;
  border: 1px solid color-mix(in srgb, var(--audience-color) 40%, transparent);
  border-radius: 22px;
  background:
    radial-gradient(circle at 15% 0%, color-mix(in srgb, var(--audience-color) 16%, transparent), transparent 42%),
    linear-gradient(155deg, #0d303a, #08212b);
  color: #ffffff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease;
}

.audience-card.students {
  --audience-color: var(--student);
}

.audience-card.patients {
  --audience-color: var(--patient);
}

.audience-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--audience-color) 72%, transparent);
}

.audience-card > span {
  display: inline-grid;
  place-items: center;
  min-width: 52px;
  height: 36px;
  padding: 0 10px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--audience-color) 16%, transparent);
  color: color-mix(in srgb, var(--audience-color) 78%, white);
  font-size: 12px;
  font-weight: 950;
}

.audience-card h3 {
  margin: 18px 0 7px;
  font-size: 1.35rem;
}

.audience-card p {
  min-height: 76px;
  margin: 0;
  color: #bdd2d6;
  font-size: 0.92rem;
}

.audience-card b {
  display: block;
  margin-top: 18px;
  color: color-mix(in srgb, var(--audience-color) 75%, white);
  font-size: 0.84rem;
}

.products-section {
  padding: 88px clamp(22px, 5vw, 82px);
  background: rgba(255, 255, 255, 0.015);
}

.products-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.products-heading-row .section-heading {
  margin-bottom: 0;
}

.section-heading p {
  color: var(--muted);
}

.public-filter-tabs {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
  max-width: 100%;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(4, 26, 35, 0.92);
}

.public-filter-tabs button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 10px 15px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #c3d8db;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 850;
  cursor: pointer;
}

.public-filter-tabs button.active {
  background: linear-gradient(135deg, rgba(46, 210, 207, 0.3), rgba(40, 127, 144, 0.42));
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(90, 226, 222, 0.23);
}

.product-groups {
  display: grid;
  gap: 42px;
}

.product-group {
  min-width: 0;
}

.product-group-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 15px;
}

.product-group-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-group-heading h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.35rem;
}

.product-group-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.group-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--professional);
  box-shadow: 0 0 0 5px rgba(46, 210, 207, 0.1);
}

.group-dot.students {
  background: var(--student);
  box-shadow: 0 0 0 5px rgba(88, 167, 255, 0.1);
}

.group-dot.patients {
  background: var(--patient);
  box-shadow: 0 0 0 5px rgba(123, 217, 87, 0.1);
}

.product-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(290px, 350px);
  grid-template-columns: none;
  gap: 18px;
  margin: 0 -4px;
  padding: 4px 4px 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(71, 209, 207, 0.5) rgba(255, 255, 255, 0.04);
}

.product-grid::-webkit-scrollbar {
  height: 8px;
}

.product-grid::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.product-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(71, 209, 207, 0.5);
}

.product-card {
  --card-accent: var(--professional);
  min-height: 455px;
  padding: 24px;
  scroll-snap-align: start;
  border-color: color-mix(in srgb, var(--card-accent) 42%, transparent);
  background:
    radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--card-accent) 18%, transparent), transparent 40%),
    linear-gradient(165deg, #0d303a, #08212b);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.product-card.audience-students {
  --card-accent: var(--student);
}

.product-card.audience-patients {
  --card-accent: var(--patient);
}

.product-card.featured {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--card-accent) 45%, transparent),
    0 20px 50px rgba(0, 0, 0, 0.22);
}

.product-icon {
  background: color-mix(in srgb, var(--card-accent) 78%, #0b3441);
  color: #031923;
}

.tag {
  max-width: 190px;
  color: color-mix(in srgb, var(--card-accent) 74%, white);
  background: color-mix(in srgb, var(--card-accent) 12%, transparent);
  text-align: right;
}

.product-card h3 {
  color: #ffffff;
}

.subtitle {
  color: #d3e4e7;
}

.product-card ul {
  color: #b8d0d4;
}

.buy {
  background: linear-gradient(90deg, color-mix(in srgb, var(--card-accent) 76%, #58a7ef), var(--card-accent));
}

.upcoming {
  opacity: 0.86;
}

.filtered-products[hidden] {
  display: none;
}

.filtered-products {
  margin-top: 6px;
}

.steps-section,
.faq-section {
  padding: 90px clamp(22px, 5vw, 82px);
}

.steps article,
.faq-grid details {
  border-color: var(--line);
  background: linear-gradient(155deg, #0c2c36, #071f29);
}

.steps p,
.faq-grid p {
  color: var(--muted);
}

.final-cta {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(122, 213, 218, 0.14);
  background: radial-gradient(circle at 50% 100%, rgba(46, 210, 207, 0.11), transparent 34rem);
}

footer {
  padding-bottom: 92px;
  border-top-color: var(--line);
  color: var(--muted);
}

.support-widget {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 100;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.support-launcher {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 11px 17px;
  border: 1px solid rgba(93, 229, 224, 0.5);
  border-radius: 999px;
  background: linear-gradient(135deg, #0b5660, #087781);
  color: #ffffff;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.36);
  cursor: pointer;
}

.support-launcher span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  letter-spacing: -1px;
}

.support-panel {
  position: relative;
  width: min(340px, calc(100vw - 28px));
  padding: 22px;
  border: 1px solid rgba(106, 225, 222, 0.4);
  border-radius: 20px;
  background: rgba(4, 24, 33, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(18px);
}

.support-panel[hidden] {
  display: none;
}

.support-panel strong {
  display: block;
  margin-top: 7px;
  padding-right: 28px;
  color: #ffffff;
  font-size: 1.2rem;
}

.support-panel p {
  color: var(--muted);
  font-size: 0.84rem;
}

.support-panel > a {
  display: flex;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--accent), #54a9f1);
  color: #03202a;
  font-weight: 900;
}

.support-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 1160px) {
  .hero-benefits {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-benefits > li:nth-child(3) {
    border-top: 1px solid rgba(104, 219, 218, 0.24);
    border-left: 0;
  }

  .hero-benefits > li:nth-child(4) {
    border-top: 1px solid rgba(104, 219, 218, 0.24);
  }

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

  .audience-intro {
    grid-column: 1 / -1;
  }

  .audience-card p {
    min-height: 0;
  }

  .products-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 980px) {
  .public-menu-button {
    display: block;
    margin-left: auto;
  }

  .site-header nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 14px;
    left: 14px;
    display: none;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 0 0 18px 18px;
    background: rgba(3, 20, 28, 0.98);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
  }

  .site-header nav.open {
    display: grid;
  }

  .site-header nav a,
  .site-header nav a:not(.nav-button) {
    display: flex;
    justify-content: center;
    padding: 12px 14px;
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    padding-top: 76px;
  }

  .hero-panel {
    max-width: 680px;
  }

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

@media (max-width: 640px) {
  html {
    scroll-padding-top: 74px;
  }

  .site-header {
    min-height: 68px;
  }

  .brand > span {
    width: 36px;
    height: 31px;
  }

  .brand strong {
    font-size: 17px;
  }

  .brand small {
    font-size: 8px;
  }

  .hero {
    padding: 64px 18px 48px;
  }

  .hero::before {
    background-size: cover;
    background-position: 63% center;
    opacity: 0.62;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(2, 14, 21, 0.6), rgba(2, 14, 21, 0.97) 58%);
  }

  .hero h1 {
    font-size: clamp(3rem, 14vw, 4.2rem);
  }

  .hero-copy > p {
    font-size: 1rem;
  }

  .hero-benefits {
    grid-template-columns: 1fr;
  }

  .hero-benefits > li {
    min-height: 62px;
    padding: 10px 13px;
  }

  .hero-benefits > li + li,
  .hero-benefits > li:nth-child(3),
  .hero-benefits > li:nth-child(4) {
    border-top: 1px solid rgba(104, 219, 218, 0.24);
    border-left: 0;
  }

  .hero-benefits svg {
    flex-basis: 31px;
    width: 31px;
    height: 31px;
  }

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

  .audiences,
  .products-section,
  .steps-section,
  .faq-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .audience-card {
    padding: 21px;
  }

  .public-filter-tabs {
    width: 100%;
  }

  .product-group-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .product-grid {
    grid-auto-columns: minmax(275px, 88vw);
  }

  .product-card {
    min-height: 435px;
  }

  .support-launcher {
    width: 52px;
    padding: 10px;
  }

  .support-launcher b {
    display: none;
  }

  .support-launcher span {
    width: 30px;
  }
}

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