/* ==========================================================================
   092 · GALLOP (عَدو الماراثون — Gallop Run) — 1:1 Adaptive Marathon Coaching & Run Club
   Tarmac #070707 · Bone #F2EFE6 · Acid-Lime #C6FF2E · Signal Red #FF3B2F · 2px Sharp Grid
   ========================================================================== */

:root {
  --bg: #070707;
  --bone: #F2EFE6;
  --lime: #C6FF2E;
  --red: #FF3B2F;
  --line: rgba(242, 239, 230, 0.14);
  --mut: rgba(242, 239, 230, 0.62);
  --display: 'Cairo', 'Readex Pro', system-ui, sans-serif;
  --sans: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--bone);
  font-family: var(--sans);
  letter-spacing: 0;
}

body {
  background: var(--bg);
  color: var(--bone);
  font-family: var(--sans);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; letter-spacing: 0; }
.bidi { unicode-bidi: isolate; font-family: var(--mono); }

.gl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 2px;
  font-weight: 800;
  font-size: 13.5px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s ease, background 0.16s ease;
}

.gl-btn:hover { transform: translateY(-1px); }
.gl-btn-lime { background: var(--lime); color: #070707; }
.gl-btn-ghost { background: transparent; border-color: var(--line); color: var(--bone); }
.gl-btn-ghost:hover { border-color: var(--lime); color: var(--lime); }

/* ======================== FIXED 64px NAVBAR ======================== */
.gl-nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 64px;
  z-index: 80;
  padding: 0 28px;
  background: rgba(7, 7, 7, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.gl-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 20px;
  white-space: nowrap;
}

.gl-slashes {
  color: var(--lime);
  font-family: var(--mono);
  font-weight: 900;
}

.gl-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--mut);
  white-space: nowrap;
}

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

/* ======================== 1. HERO (100svh HALFTONE HORSE + TELEMETRY HUD) ======================== */
.gl-hero {
  position: relative;
  min-height: 100dvh;
  padding: 84px 28px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.gl-watermark {
  position: absolute;
  top: 12%;
  inset-inline: 0;
  text-align: center;
  font-family: var(--mono);
  font-size: clamp(5rem, 19vw, 16rem);
  font-weight: 900;
  color: rgba(198, 255, 46, 0.05);
  -webkit-text-stroke: 1px rgba(242, 239, 230, 0.22);
  pointer-events: none;
  z-index: 0;
  direction: ltr;
}

.gl-hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  z-index: 1;
}

.gl-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(7,7,7,0.45) 0%, rgba(7,7,7,0.18) 46%, rgba(7,7,7,0.92) 96%);
  pointer-events: none;
}

/* Top Telemetry HUD Row */
.gl-hud-top {
  position: relative;
  z-index: 4;
  max-width: 1260px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.gl-telemetry-box {
  width: 230px;
  background: rgba(7, 7, 7, 0.82);
  border: 1px solid var(--line);
  padding: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
}

.gl-rec-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  margin-inline-end: 6px;
}

.gl-zones-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  margin-top: 8px;
}

.gl-zones-5 i {
  height: 6px;
  background: rgba(242, 239, 230, 0.16);
}
.gl-zones-5 i.on { background: var(--lime); }
.gl-zones-5 i.peak { background: var(--red); }

/* Bottom 7fr : 5fr Hero Split */
.gl-hero-bottom {
  position: relative;
  z-index: 4;
  max-width: 1260px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 36px;
  align-items: end;
}

.gl-h1 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5.2vw, 4.6rem);
  font-weight: 900;
  line-height: 1.06;
}

.gl-h1 em {
  font-style: normal;
  color: var(--lime);
}

/* ======================== ACID-LIME MARQUEE ======================== */
.gl-marquee {
  background: var(--lime);
  color: #070707;
  padding: 10px 0;
  overflow: hidden;
  font-weight: 900;
  font-size: 14.5px;
}

.gl-marquee-track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: glTick 24s linear infinite;
}

@keyframes glTick {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}

/* ======================== SECTIONS ======================== */
.gl-sec {
  max-width: 1260px;
  margin: 0 auto;
  padding: 88px 28px;
  border-bottom: 1px solid var(--line);
}

.gl-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--lime);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.gl-h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
}

/* 2. Interactive Plan Builder + SVG Week-by-Week Bar Chart */
.gl-plan-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 28px;
  margin-top: 34px;
}

.gl-ctrl-box {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(198, 255, 46, 0.06) 0%, #0B0B0B 35%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gl-seg-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.gl-seg-btn {
  padding: 9px 4px;
  border: 1px solid var(--line);
  background: #101010;
  color: var(--bone);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.gl-seg-btn.active {
  background: var(--lime);
  color: #070707;
  border-color: var(--lime);
}

.gl-out-box {
  border: 1px solid var(--line);
  background: #0A0A0A;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.gl-out-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.gl-out-stats strong {
  display: block;
  font-family: var(--mono);
  font-size: 26px;
  color: var(--lime);
}

.gl-bars-wrap {
  height: 165px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding-top: 16px;
}

.gl-bar {
  flex: 1;
  background: rgba(198, 255, 46, 0.45);
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.gl-bar.build { background: var(--lime); }
.gl-bar.peak { background: var(--red); }
.gl-bar.taper { background: var(--bone); }
.gl-bar:hover { transform: scaleY(1.05); }

/* 3. 4-Column Exposed Hairline Steps */
.gl-steps-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-inline-start: 1px solid var(--line);
  margin-top: 34px;
}

.gl-step-cell {
  padding: 28px 22px;
  border-bottom: 1px solid var(--line);
  border-inline-end: 1px solid var(--line);
}

.gl-hollow-num {
  font-family: var(--mono);
  font-size: 54px;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(242, 239, 230, 0.45);
  margin-bottom: 14px;
  transition: color 0.2s ease;
}

.gl-step-cell:hover .gl-hollow-num {
  color: var(--lime);
  -webkit-text-stroke-color: var(--lime);
}

/* 4. Full-Bleed Acid-Lime Engine Band */
.gl-lime-band {
  background: var(--lime);
  color: #070707;
  padding: 76px 28px;
}

.gl-lime-inner {
  max-width: 1260px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

/* 5. Race-Bib Pinned Results Cards (#F2EFE6) */
.gl-bibs-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.gl-bib {
  position: relative;
  background: var(--bone);
  color: #070707;
  border-radius: 2px;
  padding: 22px 18px;
}

.gl-bib:nth-child(odd) { transform: rotate(-1deg); }
.gl-bib:nth-child(even) { transform: rotate(1deg); }
.gl-bib:hover { transform: rotate(0deg); }

.gl-bib-num {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 900;
  border-top: 2px solid #070707;
  border-bottom: 2px solid #070707;
  padding: 4px 0;
  margin: 8px 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gl-pb-tag {
  background: var(--red);
  color: #FFFFFF;
  font-size: 11.5px;
  padding: 2px 8px;
}

/* 6. Pricing Monthly/Yearly Toggle + 3 Cards */
.gl-pricing-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 32px;
}

.gl-price-card {
  border: 1px solid var(--line);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gl-price-card.featured {
  background: var(--lime);
  color: #070707;
  border-color: var(--lime);
}

/* Checkered Finish Line Strip & Footer */
.gl-checkered {
  height: 26px;
  background-image:
    linear-gradient(45deg, #F2EFE6 25%, transparent 25%),
    linear-gradient(-45deg, #F2EFE6 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #F2EFE6 75%),
    linear-gradient(-45deg, transparent 75%, #F2EFE6 75%);
  background-size: 26px 26px;
  background-position: 0 0, 0 13px, 13px -13px, -13px 0;
}

.gl-footer {
  max-width: 1260px;
  margin: 0 auto;
  padding: 52px 28px 36px;
}

.gl-showcase-nav {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .gl-links { display: none; }
  .gl-hero-bottom,
  .gl-plan-grid,
  .gl-out-stats,
  .gl-steps-4,
  .gl-lime-inner,
  .gl-bibs-4,
  .gl-pricing-3 {
    grid-template-columns: 1fr;
  }
}
