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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--prk-font);
  color: var(--prk-text);
  background: var(--prk-surface);
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--prk-cyan-600);
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header:has(.nav.is-open) {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--prk-border);
  box-shadow: 0 8px 24px rgba(16, 40, 63, 0.05);
}

.header__inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 78px;
  gap: 20px;
}

.logo img,
.logo--light {
  height: 36px;
  width: auto;
}

.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--prk-navy-900);
}

.nav a {
  position: relative;
  padding: 6px 0;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--prk-cyan-600);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang {
  position: relative;
}

.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--prk-navy-900);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  padding: 8px;
}

.lang__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--prk-border);
  border-radius: 12px;
  box-shadow: var(--prk-shadow);
  min-width: 140px;
}

.lang__menu button {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.lang__menu button[aria-current="true"],
.lang__menu button:hover {
  background: var(--prk-ice);
  color: var(--prk-cyan-600);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

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

.btn--primary {
  background: var(--prk-cyan-600);
  color: #fff;
  box-shadow: 0 10px 22px rgba(22, 142, 209, 0.28);
}

.btn--primary:hover {
  background: var(--prk-cyan-500);
}

.btn--primary img,
.btn--ghost-light img {
  filter: brightness(0) invert(1);
}

.btn--ghost {
  background: #fff;
  color: var(--prk-cyan-600);
  border-color: rgba(22, 142, 209, 0.45);
}

.btn--ghost:hover {
  background: var(--prk-ice);
  border-color: var(--prk-cyan-600);
}

.btn--ghost img {
  filter: none;
}

.btn--outline {
  background: #fff;
  color: var(--prk-cyan-600);
  border-color: rgba(22, 142, 209, 0.4);
}

.btn--outline:hover {
  border-color: var(--prk-cyan-600);
  background: var(--prk-ice);
}

.btn--light {
  background: #fff;
  color: var(--prk-cyan-600);
  box-shadow: 0 10px 24px rgba(7, 29, 50, 0.18);
}

.btn--light:hover {
  background: var(--prk-ice);
}

.btn--light img {
  filter: none;
}

.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn--sm {
  min-height: 42px;
  padding-inline: 16px;
  font-size: 14px;
  white-space: nowrap;
}

.btn--block {
  width: 100%;
}

.header__cta {
  min-height: 42px;
  padding-inline: 18px;
  font-size: 14px;
}

.nav__cta {
  display: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}

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

/* Shared bits */
.eyebrow {
  color: var(--prk-cyan-600);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.eyebrow--light {
  color: #6ec8f0;
}

.lead {
  color: var(--prk-muted);
  font-size: 17px;
  max-width: 46ch;
  margin-top: 18px;
}

.section-title {
  text-align: center;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.03em;
  margin-bottom: 36px;
  color: var(--prk-navy-950);
}

.section-title--left {
  text-align: left;
  margin-bottom: 12px;
}

.icon-bubble {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--prk-cyan-100);
  flex-shrink: 0;
}

.icon-bubble--sm {
  width: 38px;
  height: 38px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--prk-cyan-600);
  font-weight: 800;
}

.text-link:hover {
  color: var(--prk-navy-700);
}

.text-link img {
  width: 16px;
  height: 16px;
}

/* Hero */
.hero {
  position: relative;
  padding: 28px 0 110px;
  background: url("../svg/hero-background.svg") center top / cover no-repeat;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 540px;
}

.hero h1 {
  font-size: clamp(40px, 5.2vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--prk-navy-950);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__visual {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
}

.hero__rings {
  position: absolute;
  width: min(100%, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.95) 0 2px,
    transparent 2px 74px
  );
  opacity: 0.9;
}

.hero__device {
  position: relative;
  z-index: 2;
  width: min(88%, 520px);
  filter: drop-shadow(0 28px 40px rgba(16, 40, 63, 0.22));
}

.hero__pedestal {
  position: absolute;
  z-index: 1;
  bottom: 34px;
  width: min(78%, 430px);
  height: 72px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, 0.98), rgba(210, 236, 247, 0.55) 55%, rgba(186, 226, 242, 0.12) 72%, transparent 73%);
  box-shadow:
    0 22px 36px rgba(22, 142, 209, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Trust bar */
.trust {
  position: relative;
  z-index: 3;
  margin-top: -56px;
}

.trust__bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border: 1px solid var(--prk-border);
  border-radius: var(--prk-radius-lg);
  box-shadow: var(--prk-shadow);
  padding: 18px 10px;
}

.trust__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-weight: 700;
  font-size: 15px;
  color: var(--prk-navy-900);
  padding: 10px 16px;
}

.trust__item + .trust__item {
  border-left: 1px solid var(--prk-border);
}

/* Product */
.product {
  padding: 88px 0 72px;
}

.product__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.product__media {
  display: grid;
  place-items: center;
}

.product__media img {
  width: min(100%, 560px);
  filter: drop-shadow(0 24px 40px rgba(16, 40, 63, 0.14));
}

.product__copy h2 {
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--prk-navy-950);
}

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

.feature-list li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  align-items: start;
}

.feature-list strong {
  display: block;
  color: var(--prk-navy-900);
  margin-bottom: 2px;
}

.feature-list span {
  color: var(--prk-muted);
  font-size: 14.5px;
}

.how {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--prk-border);
  border-radius: 20px;
  background: var(--prk-ice);
}

.how[hidden] {
  display: none;
}

.how h3 {
  margin-bottom: 12px;
}

.how ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 12px;
  color: var(--prk-muted);
}

.how strong {
  color: var(--prk-navy-900);
}

/* Courses */
.courses {
  padding: 72px 0 80px;
  background: linear-gradient(180deg, #f3fafd 0%, var(--prk-ice) 100%);
}

.cards {
  display: grid;
  gap: 22px;
}

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

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

.card,
.event-card {
  position: relative;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--prk-shadow);
  border: 1px solid rgba(215, 231, 239, 0.75);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(16, 40, 63, 0.12);
}

.card__art {
  height: 150px;
  background: #f6fcff;
}

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

.card__icon {
  position: absolute;
  top: 118px;
  left: 22px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid rgba(22, 142, 209, 0.35);
  box-shadow: 0 8px 18px rgba(16, 40, 63, 0.08);
}

.card__body,
.event-card__body {
  padding: 36px 22px 24px;
}

.card h3,
.event-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--prk-navy-950);
}

.card p,
.event-card p {
  color: var(--prk-muted);
  margin-bottom: 16px;
  font-size: 15px;
}

/* Events */
.events {
  padding: 80px 0;
  background: #fff;
}

.event-card__media {
  position: relative;
}

.event-card__photo {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.event-card__badges {
  position: absolute;
  inset: 14px 14px auto 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: max-content;
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}

.badge img {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.badge--date {
  background: rgba(255, 248, 235, 0.95);
  color: #a36b16;
  border: 1px solid rgba(233, 170, 67, 0.75);
}

.badge--place {
  background: rgba(255, 255, 255, 0.96);
  color: var(--prk-navy-900);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 16px rgba(16, 40, 63, 0.1);
}

.event-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: nowrap;
}

.event-card__meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px 16px;
  min-width: 0;
  color: var(--prk-muted);
  font-size: 13px;
}

.event-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.event-card__meta img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.event-card__footer .btn {
  flex-shrink: 0;
}

.events__more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

/* Science */
.science {
  position: relative;
  padding: 96px 0;
  background:
    image-set(
      url("../images/science-bg.webp") type("image/webp"),
      url("../images/science-bg.png") type("image/png")
    ) center / cover no-repeat,
    #061627;
  color: #fff;
  overflow: hidden;
}

.science::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 22, 39, 0.55) 0%, rgba(6, 22, 39, 0.18) 42%, transparent 68%);
  pointer-events: none;
}

.science__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.62fr);
  gap: 24px;
  align-items: center;
  min-height: 320px;
}

.science__copy {
  position: relative;
  z-index: 1;
  max-width: 34rem;
}

.science__copy h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin-bottom: 16px;
}

.science__copy p {
  color: rgba(234, 247, 252, 0.82);
  max-width: 46ch;
  margin-bottom: 26px;
  font-size: 17px;
}

/* CTA */
.cta {
  padding: 48px 0 72px;
  background: #fff;
}

.cta__box {
  position: relative;
  isolation: isolate;
  background:
    image-set(
      url("../images/cta-bg.webp") type("image/webp"),
      url("../images/cta-bg.png") type("image/png")
    ) center / cover no-repeat,
    linear-gradient(135deg, #061525, #0a3356 50%, #072033);
  color: #fff;
  border-radius: 28px;
  text-align: center;
  padding: 64px 28px;
  box-shadow: 0 24px 60px rgba(7, 29, 50, 0.35);
  overflow: hidden;
}

.cta__box::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(7, 29, 50, 0.15) 0%, rgba(7, 29, 50, 0.45) 100%);
  pointer-events: none;
}

.cta__box h2 {
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.03em;
}

.cta__box p {
  margin: 12px 0 28px;
  color: rgba(255, 255, 255, 0.82);
}

.cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Footer */
.site-footer {
  background: var(--prk-navy-950);
  color: rgba(234, 247, 252, 0.78);
  padding: 56px 0 24px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.45fr repeat(4, 1fr);
  gap: 28px;
}

.footer__brand p {
  margin-top: 14px;
  max-width: 30ch;
  line-height: 1.6;
}

.social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.social a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
}

.site-footer h3 {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 14.5px;
}

.site-footer a:hover {
  color: #fff;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.footer__bottom nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* Modal */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 29, 50, 0.55);
}

.modal__dialog {
  position: relative;
  width: min(92vw, 460px);
  margin: 10vh auto;
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--prk-shadow);
}

.modal__close {
  position: absolute;
  right: 14px;
  top: 10px;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  color: var(--prk-muted);
}

.form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
}

.form input,
.form select {
  min-height: 44px;
  border: 1px solid var(--prk-border);
  border-radius: 12px;
  padding: 0 12px;
}

.form__status {
  min-height: 1.2em;
  color: var(--prk-cyan-600);
  font-weight: 700;
}

/* Responsive */
@media (max-width: 1100px) {
  .nav {
    gap: 8px 18px;
    font-size: 13.5px;
  }

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

  .footer__brand {
    grid-column: 1 / -1;
  }
}

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

  .header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 64px;
    gap: 12px;
  }

  .logo {
    flex-shrink: 0;
  }

  .header__actions {
    margin-left: auto;
    flex-shrink: 0;
  }

  .nav {
    position: absolute;
    left: auto;
    right: 0;
    top: calc(100% + 6px);
    width: min(280px, calc(100vw - 24px));
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 10px 14px 14px;
    background: #fff;
    border: 1px solid var(--prk-border);
    border-radius: 16px;
    box-shadow: var(--prk-shadow);
    max-height: calc(100vh - 80px);
    overflow: auto;
    text-align: right;
    z-index: 50;
  }

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

  .nav a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--prk-ice);
    text-align: right;
  }

  .hero__grid,
  .product__grid,
  .cards--3,
  .cards--2,
  .trust__bar,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 12px 0 72px;
  }

  .hero__grid {
    min-height: 0;
  }

  .hero__visual {
    min-height: 340px;
    order: -1;
  }

  .trust {
    margin-top: -28px;
  }

  .trust__item + .trust__item {
    border-left: 0;
    border-top: 1px solid var(--prk-border);
  }

  .header__cta {
    display: none;
  }

  .nav__cta {
    display: inline-flex;
    margin-top: 12px;
    width: fit-content;
    align-self: flex-end;
  }

  .event-card__footer {
    align-items: center;
    flex-wrap: nowrap;
  }

  .event-card__meta {
    flex: 1 1 auto;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .event-card__meta::-webkit-scrollbar {
    display: none;
  }

  .event-card__footer .btn {
    width: auto;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, var(--prk-container));
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero__actions,
  .cta__actions {
    display: grid;
  }

  .hero__visual {
    min-height: 280px;
  }

  .hero__pedestal {
    bottom: 18px;
  }

  .product,
  .courses,
  .events {
    padding: 48px 0;
  }

  .science {
    padding: 56px 0;
  }

  .cta {
    padding-bottom: 48px;
  }

  .event-card__photo,
  .card__art {
    height: 170px;
  }

  .event-card__meta {
    gap: 8px 12px;
    font-size: 12px;
  }

  .event-card__footer {
    gap: 10px;
  }
}

  .card__icon {
    top: 138px;
  }

  .footer__bottom {
    flex-direction: column;
  }

  .event-card__badges {
    flex-wrap: wrap;
  }
}
