:root {
  --bg: #0a0a08;
  --bg2: #111110;
  --bg3: #1a1a18;
  --white: #f5f5f0;
  --lime: #b8f000;
  --lime-dim: rgba(184, 240, 0, 0.15);
  --muted: #6b6b68;
  --line: rgba(245, 245, 240, 0.08);
  --display: 'Barlow Condensed', sans-serif;
  --body: 'Barlow', sans-serif;
  --mono: 'DM Mono', monospace;
  --error: #ff5c5c;
  --success: #8ff27f;
  --banner-height: 28px;
  --nav-height: 80px;
  --bottom-bar-height: 48px;
}

@property --g1x {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 18%;
}

@property --g1y {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 20%;
}

@property --g2x {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 78%;
}

@property --g2y {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 26%;
}

@property --g3x {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 22%;
}

@property --g3y {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 78%;
}

@property --g4x {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 82%;
}

@property --g4y {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 80%;
}

@property --g5x {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 52%;
}

@property --g5y {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 52%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--body);
  overflow-x: hidden;
}

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

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

.demo-banner {
  z-index: 30;
  height: var(--banner-height);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lime);
  color: var(--bg);
}

.demo-banner p,
.demo-banner a {
  font: 400 11px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.demo-banner a {
  text-decoration: underline;
}

.site-nav {
  position: fixed;
  top: var(--banner-height);
  left: 0;
  right: 0;
  z-index: 120;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
  top: 0;
  background: rgba(17, 17, 16, 0.94);
  border-bottom-color: var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  font: 800 28px/1 var(--display);
  letter-spacing: 0.04em;
  color: var(--lime);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a,
.bottom-bar p,
.bottom-bar a,
.about-meta,
.credentials,
.stat-item p,
.programme-meta,
.hero-label,
.scroll-indicator span,
.contact-copy address,
label,
.field-feedback,
.builder-group legend {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links a {
  font-size: 10px;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--white);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
}

.snap-container {
  min-height: 100vh;
  overflow: visible;
  scroll-behavior: smooth;
}

.snap-section {
  position: relative;
  min-height: auto;
  height: auto;
  overflow: visible;
  padding: calc(var(--nav-height) + 36px) 48px calc(var(--bottom-bar-height) + 40px);
}

.hero-section {
  min-height: 100vh;
  display: grid;
  place-items: center;
  isolation: isolate;
  background:
    radial-gradient(circle at var(--g1x, 18%) var(--g1y, 20%), rgba(184, 240, 0, 0.12), transparent 26%),
    radial-gradient(circle at var(--g2x, 78%) var(--g2y, 26%), rgba(220, 255, 120, 0.06), transparent 24%),
    radial-gradient(circle at var(--g3x, 22%) var(--g3y, 78%), rgba(184, 240, 0, 0.08), transparent 20%),
    radial-gradient(circle at var(--g4x, 82%) var(--g4y, 80%), rgba(184, 240, 0, 0.1), transparent 22%),
    radial-gradient(circle at var(--g5x, 52%) var(--g5y, 52%), rgba(255, 255, 255, 0.03), transparent 18%),
    linear-gradient(145deg, var(--bg) 0%, #0d0d0b 45%, #10100f 100%);
  animation: meshShiftA 16s ease-in-out infinite alternate, meshShiftB 19s ease-in-out infinite alternate;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.hero-label {
  margin: 0;
  color: var(--lime);
  font-size: 11px;
}

h1,
h2,
h3,
.btn,
.programme-price,
.bottom-bar strong,
.programme-placeholder h3 {
  font-family: var(--display);
  text-transform: uppercase;
}

h1 {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-size: clamp(72px, 12vw, 160px);
  line-height: 0.88;
  letter-spacing: 0.01em;
}

.hero-line.lime {
  color: var(--lime);
}

.hero-copy {
  margin: 0;
  max-width: 36ch;
  color: var(--muted);
  font-size: 17px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid var(--white);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

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

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

.btn-ghost {
  background: transparent;
  color: var(--white);
}

.scroll-indicator {
  position: absolute;
  bottom: calc(var(--bottom-bar-height) + 22px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.scroll-indicator span {
  font-size: 9px;
  color: var(--muted);
}

.chevrons {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chevrons i {
  display: block;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--lime);
  border-bottom: 2px solid var(--lime);
  transform: rotate(45deg);
  animation: chevronPulse 1.5s infinite;
  opacity: 0;
}

.chevrons i:nth-child(2) {
  animation-delay: 0.2s;
}

.chevrons i:nth-child(3) {
  animation-delay: 0.4s;
}

.about-section,
.builder-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 45% 55%;
  padding-left: 0;
  padding-right: 0;
}

.contact-layout {
  min-height: 100%;
}

.about-panel,
.builder-controls,
.builder-output,
.contact-copy,
.contact-form-wrap {
  padding: 48px;
}

.about-copy,
.contact-copy {
  position: relative;
  background: var(--bg2);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-stats,
.builder-output,
.contact-form-wrap {
  background: var(--bg3);
}

.accent-line {
  width: 40px;
  height: 2px;
  background: var(--lime);
  margin-bottom: 28px;
}

.monogram {
  position: absolute;
  top: 50%;
  left: 48px;
  transform: translateY(-50%);
  margin: 0;
  font: 800 120px/0.8 var(--display);
  color: rgba(245, 245, 240, 0.06);
  pointer-events: none;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 800;
  line-height: 0.92;
}

.about-copy h2 {
  font-size: 48px;
  font-weight: 700;
}

.about-meta,
.programme-meta,
.testimonial-meta,
.contact-copy address,
.builder-group legend,
label {
  color: var(--lime);
  font-size: 11px;
}

.about-text,
.contact-copy p,
.programme-copy,
.builder-subtitle,
.programme-note {
  color: var(--muted);
  font-weight: 300;
  line-height: 1.9;
  font-size: 15px;
}

.credentials,
.stats-list,
.programme-grid,
.testimonial-grid {
  list-style: none;
  padding: 0;
  margin: 0;
}

.credentials {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  font-size: 11px;
  color: var(--lime);
}

.credentials li::before {
  content: "• ";
}

.about-stats {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-stats h3 {
  margin: 0 0 40px;
  font-size: 24px;
  font-weight: 600;
}

.stats-list {
  display: grid;
  gap: 24px;
}

.stat-item p {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 10px;
  font-size: 11px;
}

.stat-item p span:first-child {
  color: var(--white);
}

.stat-item p span:last-child {
  color: var(--lime);
}

.stat-track {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--line);
}

.stat-fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--lime);
}

.section-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.programme-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--lime);
}

.programme-card {
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 36px;
  background: var(--bg2);
  transition: background 0.3s ease;
}

.programme-card:hover,
.programme-card:focus-within {
  background: var(--bg3);
}

.programme-index {
  position: absolute;
  top: 24px;
  right: 28px;
  margin: 0;
  font: 800 80px/1 var(--display);
  color: rgba(184, 240, 0, 0.12);
}

.programme-card h3 {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 700;
}

.programme-copy {
  max-width: 28ch;
}

.programme-price {
  margin: auto 0 24px;
  font-size: 28px;
  font-weight: 600;
}

.programme-card a,
.result-cta {
  color: var(--lime);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
}

.builder-section {
  background: var(--bg2);
}

.builder-layout {
  min-height: calc(100vh - var(--banner-height));
}

.builder-controls {
  background: var(--bg2);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.builder-controls h2 {
  font-size: clamp(36px, 4vw, 60px);
}

.builder-group {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

.builder-group legend {
  margin-bottom: 14px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--white);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font: 600 16px/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.pill:hover,
.pill:focus-visible {
  transform: translateY(-1px);
}

.pill.is-selected {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--bg);
}

.generate-btn {
  width: 100%;
  margin-top: 8px;
}

.generate-btn:disabled,
.submit-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.generate-btn.is-ready {
  animation: buttonPulse 1.8s infinite;
}

.builder-output {
  display: flex;
  align-items: center;
  justify-content: center;
}

.programme-placeholder,
.programme-result {
  width: 100%;
  max-width: 760px;
}

.programme-placeholder h3 {
  margin: 0;
  color: var(--muted);
  font-size: 40px;
  text-align: center;
}

.programme-result {
  display: none;
}

.programme-result.is-visible {
  display: block;
}

.result-heading {
  margin: 0 0 24px;
  color: var(--lime);
  font: 400 12px/1.6 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.week-card {
  border: 1px solid var(--line);
  background: rgba(10, 10, 8, 0.44);
  padding: 22px;
}

.week-card h3 {
  margin: 0 0 14px;
  font-size: 24px;
}

.week-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.week-card li {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.week-card li:first-child {
  padding-top: 0;
  border-top: 0;
}

.session-day,
.session-focus {
  display: block;
}

.session-day {
  color: var(--lime);
  font: 400 11px/1.4 var(--mono);
  text-transform: uppercase;
}

.session-focus {
  margin: 4px 0;
  font: 700 20px/1 var(--display);
  text-transform: uppercase;
}

.session-exercises {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.programme-note {
  margin: 18px 0 0;
}

.result-cta {
  display: inline-flex;
  margin-top: 20px;
  min-height: 50px;
  align-items: center;
  padding: 0 22px;
  background: var(--lime);
  color: var(--bg);
}

.results-section {
  background: var(--bg);
}

.results-section .section-inner {
  gap: 28px;
  padding-block: 20px;
}

.results-section h2 {
  margin-bottom: 0;
}

.testimonial-grid {
  align-items: center;
}

.testimonial {
  position: relative;
  min-height: clamp(320px, 44vh, 400px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  background: var(--lime);
  color: var(--bg);
  border-left: 1px solid var(--line);
}

.testimonial:first-child {
  border-left: 0;
}

.quote-mark {
  position: absolute;
  top: 12px;
  left: 18px;
  margin: 0;
  font: 800 180px/1 var(--display);
  color: rgba(10, 10, 8, 0.12);
}

blockquote {
  position: relative;
  z-index: 1;
  margin: 0 0 28px;
  color: var(--bg);
  font-size: 18px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.7;
}

.testimonial-meta {
  color: var(--bg);
}

.contact-section {
  background: var(--bg2);
}

.contact-copy h2 {
  font-size: clamp(48px, 6vw, 80px);
}

.contact-copy address {
  display: grid;
  gap: 12px;
  font-style: normal;
}

.contact-copy address a {
  color: var(--lime);
}

.contact-form-wrap {
  display: flex;
  align-items: stretch;
}

#contact-form,
.form-success {
  width: 100%;
  max-width: 680px;
  margin: auto 0;
}

label {
  display: block;
  margin-bottom: 10px;
}

input,
select,
textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #060605;
  color: var(--white);
  padding: 16px 0;
  font-size: 15px;
  outline: none;
}

select {
  appearance: none;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

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

.field-feedback {
  min-height: 18px;
  margin: 8px 0 20px;
  font-size: 11px;
  color: var(--muted);
}

.field-feedback.error {
  color: var(--error);
}

.field-feedback.success {
  color: var(--success);
}

.submit-btn {
  width: 100%;
  margin-top: 10px;
}

.form-success {
  border: 1px solid var(--lime);
  padding: 28px;
  color: var(--lime);
  font: 600 26px/1.2 var(--display);
  text-transform: uppercase;
}

.bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  height: var(--bottom-bar-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 48px;
  background: var(--bg2);
  border-top: 1px solid var(--line);
}

.bottom-bar p,
.bottom-bar a {
  margin: 0;
  font-size: 10px;
}

.bottom-bar p {
  color: var(--muted);
}

.bottom-bar strong {
  color: var(--lime);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.bottom-bar a {
  color: var(--lime);
}

@keyframes meshShiftA {
  0% {
    --g1x: 18%;
    --g1y: 20%;
    --g2x: 78%;
    --g2y: 26%;
    --g3x: 22%;
    --g3y: 78%;
  }
  100% {
    --g1x: 30%;
    --g1y: 34%;
    --g2x: 64%;
    --g2y: 18%;
    --g3x: 16%;
    --g3y: 66%;
  }
}

@keyframes meshShiftB {
  0% {
    --g4x: 82%;
    --g4y: 80%;
    --g5x: 52%;
    --g5y: 52%;
  }
  100% {
    --g4x: 70%;
    --g4y: 68%;
    --g5x: 40%;
    --g5y: 44%;
  }
}

@keyframes chevronPulse {
  0%, 100% {
    opacity: 0;
    transform: rotate(45deg) translate(-2px, -2px);
  }
  50% {
    opacity: 1;
    transform: rotate(45deg) translate(0, 0);
  }
}

@keyframes buttonPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(184, 240, 0, 0.25);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(184, 240, 0, 0);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #060605;
    --bg2: #0c0c0b;
    --bg3: #141412;
    --lime: #ccff1f;
    --lime-dim: rgba(204, 255, 31, 0.18);
  }
}

@media (max-width: 767px) {
  body {
    overflow: auto;
  }

  .site-nav {
    padding: 0 20px;
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 130;
  }

  .nav-links {
    position: fixed;
    inset: var(--banner-height) 0 0;
    flex-direction: column;
    justify-content: center;
    background: rgba(10, 10, 8, 0.98);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    font-size: 20px;
    color: var(--white);
  }

  .snap-container {
    height: auto;
    overflow: visible;
  }

  .snap-section {
    height: auto;
    min-height: auto;
    overflow: visible;
    padding: calc(var(--nav-height) + 24px) 20px calc(var(--bottom-bar-height) + 28px);
  }

  .hero-section {
    min-height: 100vh;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

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

  .about-section,
  .builder-layout,
  .contact-layout,
  .programme-grid,
  .testimonial-grid,
  .week-grid {
    grid-template-columns: 1fr;
  }

  .about-panel,
  .builder-controls,
  .builder-output,
  .contact-copy,
  .contact-form-wrap {
    padding: 32px 20px;
  }

  .monogram {
    left: 20px;
    font-size: 88px;
  }

  .programme-card,
  .testimonial {
    min-height: auto;
  }

  .bottom-bar {
    padding: 0 20px;
    gap: 12px;
  }

  .bottom-bar strong {
    font-size: 14px;
  }

  .bottom-bar p {
    max-width: 90px;
  }
}
