/* ═══════════════════════════════════════════════════════════
   MEGA PRIME — Design System CSS
   ═══════════════════════════════════════════════════════════ */

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #00F2FF;
  --blue-hover: #00F2FF;
  --magenta:    #FF00E5;
  --green:      #BDFF00;
  --red:        #FF3B3B;
  --bg:         #050505;
  --surface:    #0F1113;
  --input-bg:   #0F1113;
  --border:     #1a1f26;
  --border-input:#252b34;
  --white:      #FFFFFF;
  --gray:       #A0A5B1;
  --placeholder:#5E6672;

  --glow-cyan:  0 0 15px rgba(0,242,255,0.6);

  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;

  --nav-h: 72px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ── Layout ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 14px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn--primary {
  background: var(--blue);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--blue-hover);
  box-shadow: var(--glow-cyan);
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--blue);
  color: var(--blue);
}
.btn--ghost:hover { background: var(--blue); color: var(--bg); }

/* ── Section Helpers ─────────────────────────────────────── */
.section-label {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.1;
  color: var(--white);
  display: inline;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.1;
  color: var(--blue);
  display: inline;
}

.section-sub {
  font-size: 16px;
  color: var(--gray);
  margin-top: 12px;
  max-width: 560px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header .section-label,
.section-header .section-title { display: inline; }
.section-header .section-sub   { display: block; margin: 12px auto 0; }


/* ═══════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__logo img {
  height: 36px;
  width: auto;
}
.nav__brand-name {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
}

.nav__links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}

.nav__links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--blue); }

.nav__cta { margin-left: 24px; padding: 10px 24px; font-size: 13px; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}


/* ═══════════════════════════════════════════════════════════
   MOBILE DRAWER
   ═══════════════════════════════════════════════════════════ */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--surface);
  padding: 0 24px 40px;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.drawer.open { transform: translateX(0); }

.drawer__overlay {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.drawer__overlay.open { opacity: 1; pointer-events: auto; }

.drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  border-bottom: 1px solid var(--border);
}
.drawer__logo { height: 32px; }
.drawer__brand-name {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}
.drawer__close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
}

.drawer__links {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
  flex: 1;
}
.drawer__links a {
  display: block;
  padding: 18px 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.drawer__links a:hover { color: var(--white); }

.drawer__cta {
  display: block;
  text-align: center;
  margin-top: 32px;
  padding: 16px;
  font-size: 15px;
}


/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,5,5,0.4) 0%, #050505 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 80px;
  padding-bottom: 120px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero__eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.hero__headline {
  font-family: var(--font-head);
  font-size: clamp(56px, 8vw, 90px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 24px;
}
.hero__headline--accent { color: var(--blue); }

.hero__sub {
  font-size: 17px;
  color: var(--gray);
  line-height: 1.65;
  max-width: 480px;
  margin: 0 auto 40px;
  text-align: center;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}


/* ═══════════════════════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════════════════════ */
.features {
  background: var(--surface);
  padding: 0;
  border-top: none;
  border-bottom: none;
  position: relative;
}
.features::before,
.features::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}
.features::before { top: 0; }
.features::after  { bottom: 0; }

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 40px 32px;
  border-right: 1px solid var(--border);
  transition: background 0.2s;
}
.feature-item:last-child { border-right: none; }
.feature-item:hover { background: rgba(0,242,255,0.04); }

.feature-item__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(45deg);
  border: 1px solid var(--blue);
}
.feature-item__icon svg {
  transform: rotate(-45deg);
  color: var(--blue);
  width: 20px;
  height: 20px;
}

.feature-item__text h3 {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 6px;
}
.feature-item__text p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
}


/* ═══════════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════════ */
.about {
  overflow: hidden;
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  width: 100%;
}

.about__text {
  padding: 80px 64px;
}

.about__text .section-label { display: inline; }

.about__body {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.75;
  margin: 24px 0 32px;
}

.about__bullets {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about__bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
}
.about__bullets li::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  background: var(--blue);
  transform: rotate(45deg);
}

.about__visual {
  position: relative;
}
.about__image {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  display: block;
}
.about__glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at 50% 50%, rgba(0,242,255,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}


/* ═══════════════════════════════════════════════════════════
   CLASSES
   ═══════════════════════════════════════════════════════════ */
.classes {
  padding: 120px 0;
  background: var(--surface);
  border-top: none;
  border-bottom: none;
  position: relative;
}
.classes::before,
.classes::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}
.classes::before { top: 0; }
.classes::after  { bottom: 0; }

.classes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.class-card {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transition: background 0.2s;
}
.class-card:hover { background: #0d1017; }

.class-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  border-bottom: 2px solid var(--blue);
}

.class-card__body {
  padding: 28px 24px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.class-card__title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 6px;
}

.class-card__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
}
.class-card__meta span {
  font-size: 12px;
  color: var(--blue);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.class-card__desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 24px;
}

.class-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  transition: gap 0.2s;
}
.class-card__cta::after {
  content: '→';
  transition: transform 0.2s;
}
.class-card:hover .class-card__cta { gap: 12px; }


/* ═══════════════════════════════════════════════════════════
   TRAINERS
   ═══════════════════════════════════════════════════════════ */
.trainers {
  padding: 120px 0;
}

.trainers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trainer-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
}
.trainer-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.3s;
  z-index: 1;
}
.trainer-card:hover::before {
  transform: scaleX(1);
  box-shadow: var(--glow-cyan);
}

.trainer-card__image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s;
}
.trainer-card:hover .trainer-card__image { transform: scale(1.04); }

.trainer-card__overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 20px 20px;
  background: linear-gradient(0deg, rgba(5,5,5,0.95) 0%, transparent 100%);
}

.trainer-card__name {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}
.trainer-card__specialty {
  font-size: 13px;
  color: var(--blue);
  font-weight: 500;
  margin-top: 2px;
}


/* ═══════════════════════════════════════════════════════════
   TRIAL / CTA
   ═══════════════════════════════════════════════════════════ */
.trial {
  padding: 120px 0;
  background: var(--surface);
  border-top: none;
  position: relative;
  overflow: hidden;
}
.trial::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}
.trial::after {
  content: '';
  position: absolute;
  left: -200px; top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,242,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.trial__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.trial__headline {
  font-family: var(--font-head);
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.05;
  margin: 8px 0 20px;
}
.trial__headline .accent { color: var(--blue); }

.trial__desc {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 48px;
}

.trial__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.stat-item {
  border-left: 2px solid var(--blue);
  padding-left: 16px;
}
.stat-item__value {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1;
}
.stat-item__label {
  font-size: 13px;
  color: var(--gray);
  margin-top: 4px;
  font-weight: 500;
}

/* Form card */
.trial__form-card {
  background: rgba(15,17,19,0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  padding: 40px;
}

.trial__form-title {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 32px;
}

.trial__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--input-bg);
  border: 1px solid var(--border-input);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--placeholder); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); }

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23A0A5B1' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-group select option { background: var(--surface); color: var(--white); }

.form-group textarea {
  resize: vertical;
  min-height: 96px;
}

.form-submit {
  margin-top: 8px;
}
.form-submit .btn {
  width: 100%;
  text-align: center;
  padding: 16px;
  font-size: 15px;
}


/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg);
  border-top: none;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
  padding-top: 64px;
  padding-bottom: 64px;
}

.footer__brand-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.footer__logo { height: 36px; }
.footer__brand-name {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.footer__tagline {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
  max-width: 280px;
}

.footer__heading {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__list a,
.footer__list li {
  font-size: 14px;
  color: var(--gray);
  transition: color 0.2s;
}
.footer__list a:hover { color: var(--white); }

.footer__list--contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.footer__list--contact li svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 3px;
  color: var(--blue);
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  text-align: center;
}
.footer__bottom p {
  font-size: 13px;
  color: var(--placeholder);
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (≤ 1024px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .feature-item { border-bottom: 1px solid var(--border); }
  .feature-item:nth-child(2) { border-right: none; }
  .feature-item:nth-child(3),
  .feature-item:nth-child(4) { border-bottom: none; }
  .feature-item:nth-child(4) { border-right: none; }

  .about__inner  { grid-template-columns: 1fr; }
  .about__text   { padding: 48px 24px; }
  .about__image  { height: 340px; min-height: unset; }
  .about__visual { order: -1; }

  .trainers__grid  { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .trial__inner    { grid-template-columns: 1fr; gap: 56px; }

  .footer__inner   { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer__brand   { grid-column: span 2; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Mobile (≤ 768px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Nav */
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }

  /* Hero */
  .hero__content { padding-top: 48px; padding-bottom: 80px; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { width: 100%; text-align: center; }

  /* Features */
  .features__grid { grid-template-columns: 1fr; }
  .feature-item   { border-right: none; border-bottom: 1px solid var(--border); }
  .feature-item:last-child { border-bottom: none; }

  /* About */
  .about { padding: 0; }
  .about__text  { padding: 40px 20px; }
  .about__image { height: 260px; min-height: unset; }

  /* Classes */
  .classes        { padding: 80px 0; }
  .classes__grid  { grid-template-columns: 1fr; }

  /* Trainers */
  .trainers          { padding: 80px 0; }
  .trainers__grid    { grid-template-columns: repeat(2, 1fr); }

  /* Trial */
  .trial { padding: 80px 0; }
  .trial__stats { grid-template-columns: repeat(2, 1fr); }
  .trial__form-card { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__brand { grid-column: span 1; }
}

@media (max-width: 480px) {
  .trainers__grid { grid-template-columns: 1fr; }
}
