:root {
  --ink: oklch(19% 0.045 236);
  --muted: oklch(42% 0.055 226);
  --paper: oklch(98% 0.018 205);
  --mist: oklch(94% 0.04 204);
  --pool: oklch(57% 0.16 213);
  --pool-deep: oklch(33% 0.11 229);
  --aqua: oklch(78% 0.145 189);
  --lime: oklch(88% 0.13 125);
  --sun: oklch(87% 0.17 86);
  --coral: oklch(70% 0.18 35);
  --white-soft: oklch(99% 0.01 205);
  --line: oklch(86% 0.035 209);
  --shadow: 0 24px 70px oklch(26% 0.08 225 / 0.18);
  --radius: 8px;
  --space-page: clamp(1rem, 3vw, 3rem);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 5%, oklch(88% 0.12 188 / 0.42), transparent 30rem),
    linear-gradient(180deg, oklch(97% 0.03 196), var(--paper) 42rem);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: geometricPrecision;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  width: min(calc(100% - 24px), var(--max));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 10px 12px;
  color: oklch(98% 0.01 205);
  background: oklch(22% 0.07 226 / 0.78);
  border: 1px solid oklch(96% 0.02 205 / 0.28);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px oklch(19% 0.04 230 / 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding-inline: 6px 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--pool-deep);
  background: var(--sun);
  border-radius: 50%;
  font-weight: 900;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
  color: oklch(96% 0.018 205 / 0.88);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
}

.nav-links a:focus-visible,
.button:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

@media (hover: hover) {
  .nav-links a:hover {
    background: oklch(100% 0.01 205 / 0.16);
  }
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-items: end;
  padding: clamp(7rem, 14vh, 11rem) var(--space-page) clamp(2rem, 8vh, 5rem);
  color: var(--white-soft);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-image {
  background-image: url("assets/swim-class-hero.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, oklch(16% 0.065 230 / 0.88), oklch(22% 0.09 216 / 0.64) 42%, oklch(45% 0.12 207 / 0.1)),
    linear-gradient(0deg, oklch(14% 0.05 230 / 0.6), transparent 54%);
}

.hero-content {
  width: min(760px, 100%);
  margin-inline: auto;
  justify-self: start;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.9rem;
  color: var(--coral);
  font-size: 0.9rem;
  font-weight: 900;
}

.eyebrow {
  display: inline-flex;
  padding: 7px 12px;
  color: oklch(23% 0.08 230);
  background: var(--sun);
  border-radius: 999px;
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 1.1rem;
  font-size: clamp(3.2rem, 10vw, 7.8rem);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.18;
  font-weight: 900;
}

.hero-subtitle,
.lead {
  max-width: 62ch;
  color: oklch(95% 0.025 205 / 0.92);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.78;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button.primary {
  color: var(--pool-deep);
  background: var(--sun);
  box-shadow: 0 16px 30px oklch(50% 0.13 80 / 0.3);
}

.button.secondary {
  color: var(--white-soft);
  border-color: oklch(98% 0.02 205 / 0.42);
  background: oklch(100% 0.01 205 / 0.13);
}

@media (hover: hover) {
  .button:hover {
    transform: translateY(-2px);
  }
}

.hero-ticket {
  width: min(100%, 430px);
  margin-top: 3rem;
  padding: 1.1rem;
  color: var(--pool-deep);
  background: var(--white-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-ticket span,
.hero-ticket em {
  display: block;
}

.hero-ticket span {
  color: var(--coral);
  font-weight: 900;
}

.hero-ticket strong {
  display: block;
  margin: 0.2rem 0;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 1.15;
  font-weight: 900;
}

.hero-ticket em {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.proof-strip {
  width: min(calc(100% - 2 * var(--space-page)), var(--max));
  margin: clamp(1.5rem, -3vh, 3rem) auto 0;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  overflow: hidden;
  color: var(--ink);
  background: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.proof-strip > div {
  min-height: 150px;
  padding: 1.5rem;
  background: var(--white-soft);
}

.proof-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 36px;
  margin-bottom: 1rem;
  padding-inline: 12px;
  color: var(--pool-deep);
  background: var(--aqua);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 900;
}

.proof-strip strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.25rem;
  font-weight: 900;
}

.proof-strip p {
  margin: 0;
  color: var(--muted);
}

.section {
  width: min(calc(100% - 2 * var(--space-page)), var(--max));
  margin: 0 auto;
  padding-block: clamp(4rem, 9vw, 8rem);
}

.elite-section {
  padding-top: clamp(5rem, 10vw, 9rem);
}

.section-kicker {
  color: var(--coral);
}

.elite-layout {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.elite-copy .lead {
  color: var(--muted);
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.6rem;
}

.trust-line span {
  padding: 10px 14px;
  color: var(--pool-deep);
  background: oklch(91% 0.09 189);
  border: 1px solid oklch(77% 0.09 190);
  border-radius: 999px;
  font-weight: 900;
}

.standard-panel {
  padding: clamp(1.2rem, 3vw, 2rem);
  color: var(--white-soft);
  background:
    linear-gradient(145deg, var(--pool-deep), oklch(42% 0.14 220));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.standard-panel h3 {
  color: var(--sun);
}

.standard-panel ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.standard-panel li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 12px;
  background: oklch(100% 0.01 205 / 0.1);
  border: 1px solid oklch(100% 0.01 205 / 0.14);
  border-radius: var(--radius);
  font-weight: 800;
}

.standard-panel li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  color: var(--pool-deep);
  background: var(--sun);
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 900;
}

.split-feature {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-top: 0;
}

.training-photo {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.training-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.why-copy p {
  max-width: 64ch;
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 2.2rem;
  font-weight: 800;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: inset 0 0 0 4px var(--pool-deep);
}

.section-heading {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(1.6rem, 4vw, 3rem);
}

.section-heading p {
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.course-card {
  min-height: 330px;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--white-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 45px oklch(34% 0.08 220 / 0.08);
}

.course-card.strong {
  background: oklch(96% 0.06 129);
  border-color: oklch(80% 0.11 128);
}

.course-tag {
  display: inline-flex;
  margin-bottom: 1.2rem;
  padding: 7px 11px;
  color: var(--pool-deep);
  background: var(--sun);
  border-radius: 999px;
  font-weight: 900;
}

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

.course-card dl {
  display: grid;
  gap: 10px;
  margin: 1.6rem 0 0;
}

.course-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 10px;
  border-top: 1px solid oklch(83% 0.04 205);
}

.course-card dt {
  color: var(--muted);
  font-weight: 700;
}

.course-card dd {
  margin: 0;
  text-align: right;
  font-weight: 900;
}

.schedule-section {
  width: 100%;
  max-width: none;
  padding-inline: var(--space-page);
  background:
    linear-gradient(180deg, oklch(94% 0.045 203), oklch(91% 0.08 190));
}

.schedule-section > .section-heading,
.schedule-layout {
  width: min(100%, var(--max));
  margin-inline: auto;
}

.schedule-layout {
  display: grid;
  gap: 1rem;
}

.schedule-board {
  overflow: hidden;
  background: var(--white-soft);
  border: 1px solid oklch(82% 0.05 205);
  border-radius: var(--radius);
  box-shadow: 0 24px 50px oklch(33% 0.1 215 / 0.12);
}

.board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 1.1rem clamp(1rem, 3vw, 1.6rem);
  color: var(--white-soft);
  background: var(--pool-deep);
}

.board-head span {
  font-weight: 900;
}

.board-head strong {
  color: var(--sun);
}

.term-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--line);
}

.term-grid div {
  min-height: 96px;
  padding: 1rem;
  background: var(--white-soft);
}

.term-grid span,
.time-slots span {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.term-grid strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.2rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  padding: clamp(1rem, 3vw, 1.4rem);
}

.time-slots span {
  padding: 10px 12px;
  color: var(--pool-deep);
  background: var(--mist);
  border-radius: var(--radius);
  font-variant-numeric: tabular-nums;
}

.elite-board .board-head {
  background: linear-gradient(135deg, oklch(31% 0.12 230), oklch(49% 0.15 196));
}

.cta-section {
  display: grid;
  gap: 2rem;
  align-items: center;
  width: min(calc(100% - 2 * var(--space-page)), var(--max));
  margin: clamp(4rem, 9vw, 8rem) auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  color: var(--white-soft);
  background:
    radial-gradient(circle at 85% 20%, oklch(86% 0.16 90 / 0.32), transparent 18rem),
    linear-gradient(135deg, oklch(25% 0.11 231), oklch(45% 0.15 204));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section-kicker.light {
  color: var(--sun);
}

.cta-copy p {
  max-width: 62ch;
  color: oklch(94% 0.02 205 / 0.88);
}

.contact-panel {
  padding: 1.2rem;
  color: var(--pool-deep);
  background: var(--sun);
  border-radius: var(--radius);
}

.contact-panel span,
.contact-panel p {
  display: block;
}

.contact-panel span {
  font-weight: 900;
}

.contact-panel p {
  margin-bottom: 0;
  color: oklch(35% 0.08 228);
  font-weight: 700;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin: 0.8rem 0 0.75rem;
}

.contact-list a {
  display: grid;
  gap: 2px;
  min-height: 64px;
  padding: 10px 12px;
  background: oklch(99% 0.02 95 / 0.72);
  border: 1px solid oklch(76% 0.12 85);
  border-radius: var(--radius);
}

.contact-list small {
  color: oklch(35% 0.08 228);
  font-size: 0.92rem;
  font-weight: 900;
}

.contact-list strong {
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.05;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  width: min(calc(100% - 2 * var(--space-page)), var(--max));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.site-footer a {
  color: var(--pool-deep);
}

@media (min-width: 720px) {
  .nav-links {
    display: flex;
  }

  .hero {
    align-items: center;
  }

  .hero-content {
    margin-inline: 0;
  }

  .hero-ticket {
    position: absolute;
    right: var(--space-page);
    bottom: clamp(2rem, 7vh, 5rem);
    margin-top: 0;
  }

  .elite-layout,
  .split-feature,
  .cta-section {
    grid-template-columns: 1fr 0.86fr;
  }

  .split-feature {
    grid-template-columns: 0.9fr 1fr;
  }

  .section-heading {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .schedule-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .schedule-board:first-child .term-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

@media (min-width: 1040px) {
  .hero-content {
    padding-left: calc((100vw - var(--max)) / 2);
  }
}

@media (max-width: 480px) {
  .site-header {
    border-radius: var(--radius);
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

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

  h1 {
    font-size: clamp(2.8rem, 15vw, 4rem);
    line-height: 0.98;
  }

  .proof-strip {
    width: calc(100% - 24px);
  }

  .course-card dl div {
    display: grid;
  }

  .course-card dd {
    text-align: left;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    transform: translateY(0);
  }

  .reveal.is-visible {
    animation: rise-in 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  @keyframes rise-in {
    from {
      opacity: 0;
      transform: translateY(22px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media print {
  .site-header,
  .site-footer,
  .hero-actions,
  script {
    display: none;
  }

  .hero {
    min-height: auto;
    color: var(--ink);
    padding: 2rem;
  }

  .hero-image,
  .hero-overlay {
    display: none;
  }

  .section,
  .schedule-section,
  .cta-section {
    width: 100%;
    margin: 0;
    padding: 1.2rem;
    box-shadow: none;
  }
}
