@import url('https://fonts.googleapis.com/css2?family=Anuphan:wght@300;400;500;600;700&family=Syne:wght@600;700;800&display=swap');

:root {
  --ink: #0d0f12;
  --ink-soft: #171a1f;
  --panel: #14171c;
  --line: rgba(255, 255, 255, 0.12);
  --white: #f5f6f2;
  --muted: rgba(245, 246, 242, 0.62);
  --lime: #c8f031;
  --lime-deep: #a7cb1e;
  --hiit: #ff5c5c;
  --yoga: #62c8ff;
  --strength: #c8f031;
  --hero-shade: linear-gradient(
    180deg,
    rgba(13, 15, 18, 0.35) 0%,
    rgba(13, 15, 18, 0.55) 55%,
    rgba(13, 15, 18, 0.96) 100%
  );
  --font: 'Anuphan', sans-serif;
  --heading: 'Anuphan', sans-serif;
  --brand: 'Syne', 'Anuphan', sans-serif;
  --max: 1160px;
  --nav-h: 76px;
  --demo-h: 48px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--white);
  background: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Demo bar */
.demo-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 1.25rem;
  background: #000;
  color: var(--white);
  font-size: 0.82rem;
  border-bottom: 1px solid var(--line);
}

.demo-bar strong {
  font-family: var(--brand);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--lime);
}

.demo-bar__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.demo-bar a {
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.78rem;
  font-weight: 500;
  transition: background 0.2s var(--ease), border-color 0.2s;
}

.demo-bar a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.demo-bar a.is-primary {
  background: var(--lime);
  border-color: var(--lime);
  color: #0d0f12;
  font-weight: 700;
}

.demo-bar a.is-primary:hover {
  background: var(--lime-deep);
  border-color: var(--lime-deep);
}

/* Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--nav-h);
}

.site-header.is-solid {
  position: fixed;
  top: var(--demo-h);
  background: rgba(13, 15, 18, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  animation: drop 0.35s var(--ease);
}

@keyframes drop {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.brand {
  font-family: var(--brand);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--white);
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  color: rgba(245, 246, 242, 0.85);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--lime);
}

.nav-cta {
  border: 1.5px solid var(--lime);
  padding: 0.5rem 1.1rem;
  color: var(--lime) !important;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--lime);
  color: var(--ink) !important;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: var(--white);
  padding: 0.4rem 0.7rem;
  font-family: var(--brand);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.95rem 1.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}

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

.btn--lime {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}

.btn--lime:hover {
  background: var(--lime-deep);
  border-color: var(--lime-deep);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

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

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--line);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero — full bleed, brand-level */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: kenburns 20s var(--ease) forwards;
  filter: grayscale(0.15) contrast(1.08);
}

@keyframes kenburns {
  to {
    transform: scale(1);
  }
}

.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-shade);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-h) + 2rem) 0 5rem;
  max-width: 40rem;
}

.hero__kicker {
  font-family: var(--brand);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
  font-weight: 700;
  margin-bottom: 1rem;
  animation: rise 0.9s var(--ease) both;
}

.hero__brand {
  font-family: var(--brand);
  font-size: clamp(4rem, 13vw, 8.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.9;
  margin-bottom: 1.25rem;
  animation: rise 0.9s var(--ease) 0.08s both;
}

.hero__lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 500;
  line-height: 1.5;
  max-width: 30ch;
  color: rgba(245, 246, 242, 0.88);
  margin-bottom: 2rem;
  animation: rise 0.9s var(--ease) 0.16s both;
}

.hero .btn-row {
  animation: rise 0.9s var(--ease) 0.24s both;
}

.hero__stats {
  display: flex;
  gap: 2.25rem;
  margin-top: 2.75rem;
  flex-wrap: wrap;
  animation: rise 0.9s var(--ease) 0.32s both;
}

.hero__stats strong {
  display: block;
  font-family: var(--brand);
  font-size: 2rem;
  font-weight: 800;
  color: var(--lime);
}

.hero__stats span {
  font-size: 0.82rem;
  color: var(--muted);
}

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

/* Sections */
.section {
  padding: 5.5rem 0;
}

.section__head {
  margin-bottom: 2.75rem;
  max-width: 38rem;
}

.section__head .eyebrow {
  font-family: var(--brand);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.section__head h2 {
  font-family: var(--heading);
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
}

.section__head p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* Schedule table */
.schedule-section {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.schedule-table {
  overflow-x: auto;
  border: 1px solid var(--line);
}

.schedule-table__row {
  display: grid;
  grid-template-columns: 90px 1fr 1fr 1fr;
  min-width: 640px;
}

.schedule-table__row + .schedule-table__row {
  border-top: 1px solid var(--line);
}

.schedule-table__row--head {
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--brand);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.schedule-table__row span {
  padding: 1.1rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 500;
  border-left: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.schedule-table__row span:first-child {
  border-left: none;
}

.schedule-table__row .time {
  font-family: var(--brand);
  font-weight: 700;
  color: var(--white);
}

.tag {
  font-family: var(--brand);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  white-space: nowrap;
}

.tag--hiit {
  background: rgba(255, 92, 92, 0.15);
  color: var(--hiit);
}

.tag--yoga {
  background: rgba(98, 200, 255, 0.15);
  color: var(--yoga);
}

.tag--strength {
  background: rgba(200, 240, 49, 0.15);
  color: var(--strength);
}

/* Programs */
.programs-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.25rem;
}

.program-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
}

.program-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.program-card:hover img {
  transform: scale(1.05);
}

.program-card__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(13, 15, 18, 0.92));
}

.program-card__copy .tag {
  margin-bottom: 0.75rem;
  display: inline-block;
}

.program-card__copy h3 {
  font-family: var(--heading);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.program-card__copy p {
  font-size: 0.92rem;
  color: rgba(245, 246, 242, 0.78);
  max-width: 32ch;
}

/* Packages */
.packages-section {
  background: var(--ink);
}

.packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.package-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}

.package-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 240, 49, 0.4);
}

.package-card--featured {
  background: linear-gradient(160deg, #1b2007, var(--panel) 55%);
  border-color: var(--lime);
}

.package-card__badge {
  position: absolute;
  top: -0.7rem;
  right: 1.5rem;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--brand);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
}

.package-card h3 {
  font-family: var(--brand);
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.package-card__desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.package-card__price {
  font-family: var(--brand);
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.package-card__price span {
  font-size: 2.4rem;
  color: var(--white);
  margin-right: 0.15rem;
}

.package-card__list {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.package-card__list li {
  font-size: 0.92rem;
  padding-left: 1.4rem;
  position: relative;
}

.package-card__list li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--lime);
  font-weight: 700;
  font-family: var(--brand);
}

.package-card .btn {
  width: 100%;
}

/* Trainers */
.trainers-section {
  background: var(--panel);
  border-top: 1px solid var(--line);
}

.trainers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.trainer {
  text-align: center;
}

.trainer__photo {
  aspect-ratio: 1;
  overflow: hidden;
  margin-bottom: 1.1rem;
  filter: grayscale(0.3);
  transition: filter 0.3s;
}

.trainer:hover .trainer__photo {
  filter: grayscale(0);
}

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

.trainer h3 {
  font-family: var(--heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.trainer p {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Join */
.join-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--ink);
  border-top: 1px solid var(--line);
}

.join-info {
  padding: 5rem 3rem;
  background: linear-gradient(160deg, #1b2007 0%, var(--ink) 60%);
}

.join-info .eyebrow {
  font-family: var(--brand);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.join-info h2 {
  font-family: var(--heading);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.join-info > p {
  color: var(--muted);
  margin-bottom: 2.25rem;
  max-width: 36ch;
}

.info-list {
  list-style: none;
  display: grid;
  gap: 1.1rem;
}

.info-list li {
  display: grid;
  gap: 0.2rem;
}

.info-list span {
  font-family: var(--brand);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.info-list strong {
  font-weight: 500;
  font-size: 1.02rem;
}

.join-form {
  padding: 5rem 3rem;
  border-left: 1px solid var(--line);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--white);
  padding: 0.8rem 0.9rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(245, 246, 242, 0.35);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--lime);
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.field select {
  color-scheme: dark;
}

/* Footer */
.site-footer {
  background: #000;
  color: rgba(245, 246, 242, 0.75);
  padding: 3rem 0 1.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__grid .brand {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer__grid h4 {
  font-family: var(--brand);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.footer__grid a {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer__grid a:hover {
  color: var(--lime);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--brand);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* Responsive */
@media (max-width: 960px) {
  .programs-grid,
  .packages,
  .trainers,
  .join-section,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .join-form {
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .join-info,
  .join-form {
    padding: 3rem 1.5rem;
  }

  .program-card--wide {
    min-height: 340px;
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    padding: 0.5rem 1.25rem 1rem;
    border-top: 1px solid var(--line);
  }

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

  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    border: none;
    color: var(--lime) !important;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .schedule-table__row {
    grid-template-columns: 70px 1fr 1fr 1fr;
  }

  .schedule-table__row span {
    padding: 0.9rem 0.85rem;
    font-size: 0.82rem;
  }

  .demo-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .wrap {
    width: min(100% - 1.5rem, var(--max));
  }

  .hero__content {
    padding-bottom: 3.25rem;
  }

  .hero__stats {
    gap: 1.5rem;
  }
}
