/* ============================================================
   Galileo Club — landing page
   Tokens follow design_handoff_galileo_landing/README.md
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --surface: #131313;
  --surface-2: #141414;
  --surface-hover: #171717;
  --card: #111111;
  --input: #0c0c0c;
  --input-focus: #0f0f0f;

  --text: #f5f5f4;
  --text-2: #d6d6d4;
  --text-3: #c4c4c2;
  --muted: #8f8f8f;
  --muted-2: #9a9a98;
  --dim: #6b6b69;

  --lime: #c6f135;
  --lime-hover: #d4fb4e;
  --lime-deep: #b6e21f;
  --on-lime: #0a0a0a;

  --line: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.09);
  --line-3: rgba(255, 255, 255, 0.14);
  --lime-tint: rgba(198, 241, 53, 0.12);

  --maxw: 1180px;
  --pad: 24px;
  --ease: cubic-bezier(.2, .7, .3, 1);
  --t: background .22s ease, color .22s ease, border-color .22s ease,
       transform .28s var(--ease), box-shadow .3s ease;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

a { color: inherit; text-decoration: none; transition: var(--t); }

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

button, input, select, textarea { font-family: inherit; transition: var(--t); }

::selection { background: var(--lime); color: var(--on-lime); }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

em.ser {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--lime);
}

section { scroll-margin-top: 24px; }

/* ---------- shared primitives ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--t);
}

.btn--lime { background: var(--lime); color: var(--on-lime); padding: 11px 20px; }
.btn--lime:hover { background: var(--lime-hover); color: var(--on-lime); transform: translateY(-1px); }
.btn--lg { padding: 14px 24px; font-size: 15px; }

.pill {
  display: inline-block;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}
.pill--ghost { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #c9c9c7; }
.pill--dim { background: rgba(0, 0, 0, .28); color: #fff; font-weight: 500; }
.pill--best { background: var(--on-lime); color: var(--lime); font-weight: 600; }

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #e5e5e3;
  font-size: 12px;
  white-space: nowrap;
}
.chip--tint { background: rgba(198, 241, 53, .14); color: var(--lime); font-weight: 500; }
.chip--soft { background: rgba(255, 255, 255, .06); color: var(--text-3); }
.chip--lime { background: var(--lime); color: var(--on-lime); font-weight: 600; font-size: 13px; padding: 8px 15px; }
.chip--lime:hover { background: var(--lime-hover); color: var(--on-lime); }

.media { margin: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .7); }
.media img { width: 100%; height: 100%; object-fit: cover; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 26px;
  letter-spacing: .01em;
}
.wordmark__dot { width: 22px; height: 22px; border-radius: 50%; background: var(--text); }
.wordmark--lg { font-size: 34px; gap: 9px; }
.wordmark--lg .wordmark__dot { width: 26px; height: 26px; background: var(--on-lime); }

/* ---------- nav ---------- */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease, transform .35s var(--ease);
  border-bottom: 1px solid transparent;
}

/* premium: nav re-enters as a solid bar once past the hero */
.nav.is-stuck {
  position: fixed;
  background: rgba(10, 10, 10, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }

.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav.is-stuck .nav__inner { padding-top: 16px; padding-bottom: 16px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0 auto;
  padding-left: 40px;
  font-size: 14px;
  color: #e5e5e3;
}
.nav__links a { position: relative; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav__links a:hover { color: var(--lime); }
.nav__links a:hover::after { transform: scaleX(1); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  padding: 11px 10px;
  cursor: pointer;
}
.burger span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- mobile menu ---------- */
.mmenu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(8, 8, 8, .98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  padding: 22px 22px 34px;
  animation: menuIn .3s var(--ease);
}
.mmenu[hidden] { display: none; }

@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }

.mmenu__top { display: flex; align-items: center; justify-content: space-between; }
.mmenu__close {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.mmenu__links { margin-top: 40px; display: flex; flex-direction: column; }
.mmenu__links a {
  font-size: 28px;
  font-weight: 600;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.mmenu__links a:last-child { border-bottom: none; }
.mmenu__links a:hover { color: var(--lime); }
.mmenu__cta { margin-top: auto; justify-content: center; padding: 16px; font-size: 16px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 18s var(--ease) forwards;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

.hero__veil { position: absolute; inset: 0; background: rgba(10, 10, 10, .42); pointer-events: none; }
.hero__grad {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(10, 10, 10, .35) 0%,
    rgba(10, 10, 10, 0) 26%,
    rgba(10, 10, 10, 0) 60%,
    rgba(10, 10, 10, .5) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: auto;
  padding: 0 var(--pad);
  text-align: center;
}
.hero__content h1 {
  font-size: 60px;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -.03em;
  margin: 26px 0 0;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .4);
}
.hero__content h1 em.ser { font-size: 64px; }
.hero__content > p {
  max-width: 480px;
  margin: 22px auto 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-2);
}
.hero__content .btn { margin-top: 30px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--line-3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 13px;
  color: #f0f0ee;
}
.badge__avatars { display: flex; }
.badge__avatars i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(10, 10, 10, .4);
}
.badge__avatars i:nth-child(1) { background: var(--lime); }
.badge__avatars i:nth-child(2) { background: #e5e5e3; margin-left: -6px; }
.badge__avatars i:nth-child(3) { background: var(--muted); margin-left: -6px; }

/* ---------- section scaffolding ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 90px var(--pad); }
.section--about { padding-top: 120px; }
.section--gallery { padding-bottom: 110px; }

.head { max-width: 760px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}
.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(198, 241, 53, .7);
}
.head h2 {
  font-size: 46px;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.06;
  margin: 20px 0 0;
}
.head h2 em.ser { font-size: 50px; }
.head > p {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.grid { display: grid; }
.grid--2 { grid-template-columns: 1fr 1fr; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* ---------- about ---------- */
.about__body { gap: 24px; margin-top: 56px; align-items: stretch; }
.features { display: flex; flex-direction: column; gap: 12px; }
.feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .22s ease, background .22s ease, transform .28s var(--ease);
}
.feature:hover {
  border-color: rgba(198, 241, 53, .22);
  background: var(--surface-hover);
  transform: translateX(4px);
}
.feature__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--lime-tint);
  color: var(--lime);
  flex-shrink: 0;
}
.feature__label { font-size: 15px; font-weight: 500; }
.about__img { min-height: 340px; }

/* ---------- membership ---------- */
.plans { margin-top: 56px; }
.plan {
  position: relative;
  border-radius: 20px;
  padding: 32px;
  overflow: hidden;
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .75);
  transition: transform .28s var(--ease), box-shadow .3s ease;
}
.plan:hover { transform: translateY(-5px); box-shadow: 0 34px 70px -28px rgba(0, 0, 0, .85); }

.plan--dark {
  background: var(--surface-2) url('../assets/card-dark.avif') center / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, .07);
}
.plan--lime {
  background: var(--lime-deep) url('../assets/card-green.avif') center / cover no-repeat;
  color: #fff;
}

.plan__toprow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan__body { margin-top: 64px; }
.plan__body h3 { font-size: 30px; font-weight: 600; margin: 0; letter-spacing: -.01em; }
.plan--lime .plan__body h3 { font-weight: 700; }
.plan__sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.plan--lime .plan__sub { color: rgba(255, 255, 255, .75); font-weight: 500; }

.plan__price { margin-top: 26px; display: flex; align-items: baseline; gap: 8px; }
.plan__amount { font-size: 46px; font-weight: 700; letter-spacing: -.02em; }
.plan--lime .plan__amount { font-weight: 800; }
.plan__per { color: var(--muted); font-size: 15px; }
.plan--lime .plan__per { color: rgba(255, 255, 255, .7); font-weight: 500; }

.plan__foot {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.plan--lime .plan__foot { border-top-color: rgba(255, 255, 255, .2); }
.plan__total { color: #a5a5a3; font-size: 14px; }
.plan--lime .plan__total { color: rgba(255, 255, 255, .8); font-weight: 500; }

.circle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--text);
  color: var(--on-lime);
  flex-shrink: 0;
}
.circle-btn:hover { background: var(--lime); color: var(--on-lime); transform: rotate(45deg); }
.circle-btn--dark { background: var(--on-lime); color: var(--lime); }
.circle-btn--dark:hover { background: var(--on-lime); color: var(--lime); }

/* ---------- training ---------- */
.programs { margin-top: 56px; }
.program {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 330px;
  box-shadow: 0 22px 55px -26px rgba(0, 0, 0, .8);
  transition: transform .28s var(--ease), box-shadow .3s ease;
}
.program:hover { transform: translateY(-5px); }
.program > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.program:hover > img { transform: scale(1.05); }
.program__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0) 30%, rgba(10, 10, 10, .85) 100%);
}
.program__card {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 22px;
  border-radius: 14px;
  background: rgba(20, 20, 20, .55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .1);
}
.program__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.program__head h3 { font-size: 20px; font-weight: 600; margin: 0; }
.program__icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(198, 241, 53, .15);
  color: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.program__card > p { margin: 8px 0 16px; color: var(--text-3); font-size: 13.5px; line-height: 1.5; }
.program__foot { display: flex; align-items: center; gap: 10px; }
.program__foot--split { justify-content: space-between; }

/* ---------- events ---------- */
.events { grid-template-columns: .85fr 1.15fr; gap: 22px; margin-top: 56px; align-items: stretch; }
.events__img { border-radius: 18px; min-height: 380px; }
.events__list { display: flex; flex-direction: column; gap: 14px; }
.event {
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 22px 24px;
  transition: border-color .22s ease, background .22s ease, transform .28s var(--ease);
}
.event:hover { border-color: rgba(198, 241, 53, .28); background: var(--surface-hover); transform: translateY(-3px); }
.event__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.event__top h3 { font-size: 19px; font-weight: 600; margin: 0; }
.event__prize {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--lime);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.event__prize--text { font-size: 14px; }
.event__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 13px;
}
.event__meta span { display: flex; align-items: center; gap: 7px; }
.event__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }

/* ---------- contact ---------- */
.form {
  margin: 48px auto 0;
  max-width: 860px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 40px;
  box-shadow: 0 34px 80px -34px rgba(0, 0, 0, .8);
}
.form__row { margin-bottom: 20px; }
.field { margin-bottom: 20px; }
.form__row .field { margin-bottom: 0; }
.field label { display: block; font-size: 13px; color: var(--text-3); margin-bottom: 9px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 11px;
  background: var(--input);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-size: 14px;
  outline: none;
}
.field textarea { resize: vertical; }
.field select { color: var(--muted); appearance: none; cursor: pointer; }
.field select:valid { color: var(--text); }
.field select option { background: var(--input); color: var(--text); }
.field input::placeholder,
.field textarea::placeholder { color: var(--dim); }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: rgba(198, 241, 53, .55); background: var(--input-focus); }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: rgba(255, 120, 100, .6); }

.form .btn { margin-top: 4px; }
.form__status { margin: 16px 0 0; font-size: 14px; color: var(--lime); min-height: 20px; }
.form__status--error { color: #ff9c8c; }

/* ---------- gallery ---------- */
.gallery { gap: 18px; margin-top: 18px; }
.gallery--top { margin-top: 52px; }
.gcell { margin: 0; border-radius: 16px; overflow: hidden; height: 300px; }
.gcell img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gcell:hover img { transform: scale(1.06); }

/* ---------- footer ---------- */
.footer { background: var(--lime); color: var(--on-lime); }
.footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 70px var(--pad) 30px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 18px;
  color: rgba(10, 10, 10, .55);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.footer__links { display: flex; flex-direction: column; gap: 11px; font-size: 15px; font-weight: 500; }
.footer__links a { color: var(--on-lime); }
.footer__links a:hover { color: rgba(10, 10, 10, .55); }
.footer__bar {
  margin-top: 60px;
  padding-top: 22px;
  border-top: 1px solid rgba(10, 10, 10, .18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
  color: rgba(10, 10, 10, .7);
}
.footer__made {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--on-lime);
  color: var(--lime);
  font-weight: 600;
}

/* ============================================================
   Responsive — breakpoints 820px / 500px
   ============================================================ */
@media (max-width: 820px) {
  :root { --pad: 22px; }

  .hero { height: 90vh; min-height: 640px; }
  .nav__inner { padding: 20px 18px; }
  .nav.is-stuck .nav__inner { padding-top: 14px; padding-bottom: 14px; }
  .nav__links, .nav__cta { display: none; }
  .burger { display: flex; }

  .hero__content h1 { font-size: 44px; line-height: 1.08; }
  .hero__content h1 em.ser { font-size: 46px; }
  .hero__content > p { margin-top: 18px; }

  .section { padding: 90px var(--pad); }
  .section--about { padding-top: 90px; }
  .head h2 { font-size: 33px; margin-top: 18px; }
  .head h2 em.ser { font-size: 36px; }
  .head > p { margin-top: 16px; }

  .grid--2, .grid--3, .events { grid-template-columns: 1fr; gap: 16px; }
  .about__body, .plans, .programs, .events { margin-top: 40px; }
  .gallery--top { margin-top: 40px; }

  .about__img { min-height: 240px; }
  .events__img { min-height: 300px; }

  .program { min-height: 420px; }
  .program__card { padding: 16px; left: 12px; right: 12px; bottom: 12px; }
  .program__card > p { margin: 6px 0 12px; }

  .form { padding: 26px; margin-top: 40px; }
  .form__row { gap: 0; }
  .form__row .field { margin-bottom: 20px; }
  .form__row .field:last-child { margin-bottom: 0; }

  .gcell { height: 220px; }

  .footer__inner { padding: 56px var(--pad) 30px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 34px 24px; }
}

@media (max-width: 500px) {
  .hero__content h1 { font-size: 38px; }
  .hero__content h1 em.ser { font-size: 40px; }
  .head h2 { font-size: 28px; }
  .head h2 em.ser { font-size: 31px; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .footer__bar { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}
