/* Theme color variables for the default dark design */
:root {
  --bg: #040404;
  --panel: #0c0c0f;
  --panel-strong: #141419;
  --text: #f7f3ed;
  --muted: #9f978c;
  --accent: #ff5d2e;
  --accent-2: #7df9ff;
  --line: rgba(255, 255, 255, 0.07);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
}

/* Alternate dark theme activated by the theme toggle */
body.alt-dark-theme {
  --bg: #090b12;
  --panel: #111622;
  --panel-strong: #161d2c;
  --text: #f3f6fb;
  --muted: #9ba7bb;
  --accent: #27c1ff;
  --accent-2: #8bffb7;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

/* Base reset and page-wide defaults */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 93, 46, 0.16), transparent 28%),
    radial-gradient(circle at bottom left, rgba(125, 249, 255, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 35%),
    var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

.site-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  padding: 1rem 0 3rem;
}

/* Sticky top navigation */
.navbar {
  position: sticky;
  top: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  margin-top: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(6, 6, 8, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

body.alt-dark-theme .navbar {
  background: rgba(11, 15, 24, 0.82);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand__logo {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

.brand__eyebrow,
.brand__title {
  margin: 0;
}

.brand__eyebrow,
.section-tag,
.feature-card__label,
.price-card__name {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

.brand__eyebrow,
.section-tag,
.feature-card__label {
  color: var(--accent-2);
}

.brand__title,
.hero h2,
.section h3,
.info-strip h3,
.cta h3 {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.brand__title {
  font-size: 1.35rem;
}

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

.nav-links a,
.theme-switch,
.nav-toggle,
.filter-chip,
.billing-button,
.testimonial-controls button {
  transition: 0.25s ease;
}

.nav-links a:hover,
.theme-switch:hover {
  color: var(--accent);
}

.theme-switch,
.nav-toggle,
.filter-chip,
.billing-button,
.testimonial-controls button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 999px;
  cursor: pointer;
}

.theme-switch {
  padding: 0.7rem 1rem;
}

.nav-toggle {
  display: none;
  width: 52px;
  height: 52px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero__content,
.section--split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero__content {
  padding-top: 3rem;
}

.hero h2 {
  margin: 0.3rem 0 1rem;
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  line-height: 0.94;
  max-width: 10ch;
}

.hero__text,
.info-strip p,
.feature-card p,
.trainer-card span,
.price-card p,
.calculator__result,
.cta p {
  color: var(--muted);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

/* Shared button system */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
}

.button--primary {
  background: linear-gradient(135deg, var(--accent), #ff8a5f);
  color: #fff8f2;
}

.button--ghost {
  border-color: var(--line);
  background: transparent;
}

.stats-grid,
.card-grid,
.trainer-grid,
.pricing-grid {
  display: grid;
  gap: 1rem;
}

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

/* Shared card surface styling used across the page */
.stat-card,
.feature-card,
.trainer-card,
.price-card,
.calculator,
.results-panel,
.info-strip,
.cta {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent), var(--panel);
  box-shadow: var(--shadow);
}

.stat-card,
.feature-card,
.trainer-card,
.price-card,
.calculator,
.results-panel,
.cta {
  padding: 1.4rem;
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  font-family: "Oswald", sans-serif;
}

.hero__visual {
  position: relative;
}

.hero__visual img {
  min-height: 520px;
  object-fit: cover;
  border-radius: 36px;
  border: 1px solid var(--line);
}

.hero__badge {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  padding: 1rem 1.2rem;
  border-radius: 24px;
  background: rgba(5, 5, 6, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

body.alt-dark-theme .hero__badge {
  background: rgba(12, 18, 28, 0.88);
}

.hero__badge span,
.hero__badge strong {
  display: block;
}

.section {
  padding: 1.5rem 0 0.5rem;
}

.section-heading {
  margin-bottom: 1.2rem;
}

.section h3,
.info-strip h3,
.cta h3 {
  margin: 0.25rem 0 0;
  font-size: clamp(2rem, 3vw, 3.3rem);
}

.info-strip {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  padding: 1.5rem;
  margin: 0.5rem 0 1rem;
}

.class-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.filter-chip {
  padding: 0.8rem 1rem;
}

.filter-chip.active,
.testimonial-controls button:hover,
.billing-button.active {
  background: var(--accent);
  color: #fff8f2;
}

.card-grid,
.trainer-grid,
.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.trainer-card,
/* Pricing card hover and selected state */
.price-card {
  min-height: 220px;
}

.price-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.price-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 93, 46, 0.35);
}

.price-card.is-selected {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 22px 60px rgba(0, 0, 0, 0.5),
    0 0 32px rgba(255, 93, 46, 0.16);
}

body.alt-dark-theme .price-card.is-selected {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 22px 60px rgba(0, 0, 0, 0.45),
    0 0 32px rgba(39, 193, 255, 0.18);
}

.trainer-card p,
.testimonial__author {
  margin: 0.3rem 0 0.7rem;
  color: var(--accent-2);
}

.pricing-section {
  padding-top: 2.2rem;
}

/* Weekly/monthly billing switch */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.billing-button {
  position: relative;
  width: 68px;
  height: 38px;
  padding: 0;
}

.billing-button__knob {
  position: absolute;
  top: 4px;
  left: 5px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-2);
  transition: 0.25s ease;
}

.billing-button.active .billing-button__knob {
  transform: translateX(28px);
  background: #fff8f2;
}

.price-card h4 {
  margin: 0.5rem 0;
  font-size: 2.2rem;
}

.price-term {
  font-size: 1rem;
  color: var(--muted);
}

/* Membership plan action buttons */
.plan-select {
  margin-top: 1rem;
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(255, 93, 46, 0.38);
  background:
    linear-gradient(135deg, rgba(255, 93, 46, 0.18), rgba(255, 138, 95, 0.08)),
    rgba(255, 255, 255, 0.03);
  color: #fff7f1;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.plan-select:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 93, 46, 0.75);
  background:
    linear-gradient(135deg, rgba(255, 93, 46, 0.95), rgba(255, 138, 95, 0.92)),
    rgba(255, 255, 255, 0.03);
  color: #ffffff;
}

.plan-select:focus-visible {
  outline: 3px solid rgba(125, 249, 255, 0.45);
  outline-offset: 3px;
}

.price-card.is-selected .plan-select {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), #ff8a5f);
  color: #ffffff;
}

body.alt-dark-theme .plan-select {
  border-color: rgba(39, 193, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(39, 193, 255, 0.18), rgba(139, 255, 183, 0.08)),
    rgba(255, 255, 255, 0.03);
  color: #f4fbff;
}

body.alt-dark-theme .plan-select:hover {
  border-color: rgba(39, 193, 255, 0.78);
  background:
    linear-gradient(135deg, rgba(39, 193, 255, 0.95), rgba(102, 255, 201, 0.92)),
    rgba(255, 255, 255, 0.03);
  color: #031018;
}

body.alt-dark-theme .price-card.is-selected .plan-select {
  background: linear-gradient(135deg, #27c1ff, #66ffc9);
  color: #031018;
}

.price-card--featured {
  border-color: rgba(255, 90, 54, 0.45);
  transform: translateY(-8px);
}

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

.calculator-form label {
  display: grid;
  gap: 0.4rem;
}

.calculator-form input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-strong);
  color: var(--text);
}

.calculator__result {
  margin-top: 1rem;
}

.testimonial__quote {
  margin: 1rem 0;
  font-size: 1.25rem;
  line-height: 1.6;
}

.testimonial-controls {
  display: flex;
  gap: 0.8rem;
}

.testimonial-controls button {
  padding: 0.8rem 1rem;
}

.cta {
  margin: 2rem 0 3rem;
  text-align: center;
}

.footer {
  padding: 0 0 2rem;
  color: var(--muted);
  text-align: center;
}

/* Floating confirmation toast — top center of viewport */
.plan-toast {
  position: fixed;
  top: 1.2rem;
  left: 50%;
  z-index: 50;
  width: min(360px, calc(100% - 2rem));
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 93, 46, 0.35);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    rgba(10, 10, 14, 0.95);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -130%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

body.alt-dark-theme .plan-toast {
  border-color: rgba(39, 193, 255, 0.35);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    rgba(16, 22, 34, 0.96);
}

.plan-toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.plan-toast__eyebrow,
.plan-toast__text {
  margin: 0;
}

.plan-toast__eyebrow {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  margin-bottom: 0.35rem;
}

/* Reusable reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.is-hidden {
  display: none;
}

/* Tablet/mobile layout adjustments */
@media (max-width: 920px) {
  .hero__content,
  .section--split,
  .info-strip,
  .card-grid,
  .trainer-grid,
  .pricing-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.8rem);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--panel);
  }

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

  .hero__visual img {
    min-height: 340px;
  }

  .price-card--featured {
    transform: none;
  }
}

@media (max-width: 600px) {
  .site-shell {
    width: min(100% - 1rem, 1180px);
  }

  .navbar {
    padding: 0.8rem;
  }

  .brand__logo {
    width: 62px;
    height: 62px;
  }

  .hero h2 {
    max-width: none;
  }
}
