/* ============================================
   NF RUNNERS — Landing Page
   Design: sporty • elegan • modern
   ============================================ */

/* ---------- Design System ---------- */
:root {
  --ink: #2b2628;
  --ink-2: #211d1f;
  --ink-3: #171416;
  --red: #e11b4c;
  --red-2: #ff5c7a;
  --white: #ffffff;

  /* semantic tokens (dark default) */
  --bg: #2b2628;
  --bg-2: #211d1f;
  --bg-3: #171416;
  --text: #ffffff;
  --muted: #b9b0b4;
  --line: rgba(255, 255, 255, 0.12);
  --card: rgba(255, 255, 255, 0.03);
  --nav-bg: rgba(43, 38, 40, 0.85);
  --menu-bg: rgba(23, 20, 22, 0.97);
  --hero-scroll: rgba(255, 255, 255, 0.35);
  --speed-line: rgba(255, 255, 255, 0.05);

  --grad: linear-gradient(135deg, var(--red) 0%, var(--red-2) 100%);
  --font-display: 'Fugaz One', system-ui, sans-serif;
  --font-body: 'Poppins', system-ui, sans-serif;
  --radius: 16px;
  --container: 1180px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
}

[data-theme="light"] {
  --bg: #faf7f8;
  --bg-2: #f1eef0;
  --bg-3: #e9e6e8;
  --text: #2b2628;
  --red-2: #d81b4a;
  --muted: #6b6468;
  --line: rgba(43, 38, 40, 0.14);
  --card: rgba(43, 38, 40, 0.03);
  --nav-bg: rgba(250, 247, 248, 0.92);
  --menu-bg: rgba(250, 247, 248, 0.98);
  --hero-scroll: rgba(43, 38, 40, 0.4);
  --speed-line: rgba(43, 38, 40, 0.06);
  --shadow: 0 24px 60px -24px rgba(43, 38, 40, 0.35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body.menu-open { overflow: hidden; }

body { transition: background 0.3s ease, color 0.3s ease; }

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

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

ul { list-style: none; }

.container {
  width: 92%;
  max-width: var(--container);
  margin-inline: auto;
}

section[id] { scroll-margin-top: 5.5rem; }

/* ---------- Utilities ---------- */
.accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--red);
}

.kicker {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-2);
  margin-bottom: 0.75rem;
}

.section { padding: 6.5rem 0; position: relative; }

.section__head { margin-bottom: 3.5rem; }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.section__title::after {
  content: '';
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 1.1rem;
  border-radius: 4px;
  background: var(--grad);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease,
    border-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.btn--sm { padding: 0.55rem 1.25rem; font-size: 0.88rem; }

.btn--primary {
  background: var(--grad);
  color: var(--white);
  box-shadow: 0 10px 30px -8px rgba(225, 27, 76, 0.65);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -8px rgba(225, 27, 76, 0.8);
}

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

.btn--ghost:hover {
  border-color: var(--red-2);
  color: var(--red-2);
  transform: translateY(-3px);
}

.btn--dark { background: var(--white); color: var(--ink); }
.btn--dark:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}
.btn--outline:hover { border-color: var(--white); transform: translateY(-3px); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================
   NAVBAR
   ============================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1.1rem 0;
  padding: calc(1.1rem + env(safe-area-inset-top)) 0 1.1rem;
  transition: background 0.3s ease, padding 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.is-scrolled {
  padding: 0.65rem 0;
  padding: calc(0.65rem + env(safe-area-inset-top)) 0 0.65rem;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__inner > * + * { margin-left: 1.5rem; }

.nav__actions {
  display: flex;
  align-items: center;
}
.nav__actions > * + * { margin-left: 0.6rem; }

.nav__brand {
  display: inline-flex;
  align-items: center;
}
.nav__brand .nav__logo { margin-right: 0.6rem; }

.nav__logo { width: 40px; height: 40px; object-fit: contain; }

.nav__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
}

.nav__name em {
  font-style: normal;
  color: var(--red-2);
}

.nav__menu {
  display: flex;
  align-items: center;
}
.nav__menu > * + * { margin-left: 1.9rem; }

.nav__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  transition: color 0.25s ease;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--grad);
  transition: width 0.3s ease;
}

.nav__link:hover,
.nav__link.is-active { color: var(--text); }
.nav__link:hover::after,
.nav__link.is-active::after { width: 100%; }

.nav__toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  width: 26px;
  height: 2.5px;
  background: var(--text);
  border-radius: 3px;
  margin-bottom: 5px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__toggle span:last-child { margin-bottom: 0; }

.nav__toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 92;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease,
    transform 0.25s ease;
}

.theme-toggle:hover {
  border-color: var(--red-2);
  color: var(--red-2);
  transform: translateY(-2px);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* Satu ikon selalu terlihat — default dark (sun), moon hanya di light.
   Spesifisitas dinaikkan (.theme-toggle …) agar menang atas .theme-toggle svg.
   Aturan sederhana tanpa :not() agar kompatibel dengan WebView lama. */
.theme-toggle .theme-toggle__icon--moon { display: none; }
html[data-theme="light"] .theme-toggle .theme-toggle__icon--moon { display: block; }

.theme-toggle .theme-toggle__icon--sun { display: block; }
html[data-theme="light"] .theme-toggle .theme-toggle__icon--sun { display: none; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(225, 27, 76, 0.22), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(225, 27, 76, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}

/* super graphic pattern */
.hero__pattern {
  position: absolute;
  inset: 0;
  background-image: url('../assets/pattern-nfrunners.png');
  background-size: 460px;
  background-repeat: repeat;
  opacity: 0.07;
  mask-image: radial-gradient(circle at 50% 40%, black, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, black, transparent 78%);
}

/* sporty speed lines */
.hero__pattern::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 220px,
    var(--speed-line) 220px 222px
  );
}

.hero__glow {
  position: absolute;
  width: 560px;
  height: 560px;
  right: -160px;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(225, 27, 76, 0.35), transparent 65%);
  filter: blur(30px);
  pointer-events: none;
  animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding: 9rem 0 7rem;
  max-width: 820px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-2);
  border: 1px solid rgba(255, 92, 122, 0.35);
  background: rgba(225, 27, 76, 0.08);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.6rem;
}

.hero__eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.7rem, 7vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.hero__title--accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--red);
}

.hero__sub {
  max-width: 620px;
  font-size: 1.06rem;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 2.4rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__scroll {
  position: absolute;
  left: 0;
  bottom: 2.2rem;
  width: 26px;
  height: 44px;
  border: 2px solid var(--hero-scroll);
  border-radius: 999px;
  display: flex;
  justify-content: center;
}

.hero__scroll-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red-2);
  margin-top: 8px;
  animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ============================================
   STATS
   ============================================ */
.stats {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
  padding: 3.2rem 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat { position: relative; }

.stat + .stat::before {
  content: '';
  position: absolute;
  left: -1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 56px;
  background: var(--line);
}

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--red);
  line-height: 1.1;
}

.stat__label {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================
   ABOUT
   ============================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.about__text p:not(.kicker) { color: var(--muted); margin-bottom: 1.1rem; }

.about__values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.4rem;
}

.value {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  background: var(--card);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.value:hover {
  border-color: rgba(225, 27, 76, 0.5);
  transform: translateY(-4px);
}

.value__num {
  font-family: var(--font-display);
  color: var(--red-2);
  font-size: 0.85rem;
}

.value__title { font-size: 1rem; margin: 0.35rem 0 0.35rem; }

.value p { font-size: 0.82rem; color: var(--muted); margin: 0; }

.about__visual { position: relative; }

.about__frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.about__frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, transparent 40%, rgba(225, 27, 76, 0.35));
  z-index: 1;
}

.about__frame img { width: 100%; height: 460px; object-fit: cover; }

.about__badge {
  position: absolute;
  left: -1.6rem;
  bottom: 2.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--grad);
  color: var(--white);
  padding: 1rem 1.4rem;
  border-radius: 18px;
  box-shadow: var(--shadow);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
}

.about__badge-num {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

/* ============================================
   FEATURES
   ============================================ */
.features {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(225, 27, 76, 0.55);
  box-shadow: 0 22px 50px -20px rgba(0, 0, 0, 0.6),
    0 0 40px -18px rgba(225, 27, 76, 0.5);
}

.feature__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(225, 27, 76, 0.12);
  border: 1px solid rgba(225, 27, 76, 0.35);
  color: var(--red-2);
  margin-bottom: 1.2rem;
}

.feature__icon svg { width: 26px; height: 26px; }

.card__title { font-size: 1.08rem; margin-bottom: 0.55rem; }

.card p { font-size: 0.9rem; color: var(--muted); }

/* ============================================
   SCHEDULE
   ============================================ */
.schedule__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.sched { position: relative; overflow: hidden; }

.sched::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.sched:hover::before { transform: scaleX(1); }

.sched__day {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-2);
  border: 1px solid rgba(225, 27, 76, 0.4);
  background: rgba(225, 27, 76, 0.08);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.sched__tag {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.sched__link {
  color: var(--text);
  text-decoration: none;
  transition: color 0.25s ease;
}

.sched__link:hover { color: var(--red-2); }

.sched__more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red-2);
  text-decoration: none;
  border-bottom: 1px dashed rgba(225, 27, 76, 0.5);
  transition: border-color 0.25s ease;
  white-space: nowrap;
}

.sched__more:hover { border-color: var(--red-2); }

/* ============================================
   GALLERY
   ============================================ */
.gallery {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}

.gallery__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}

.gallery__filter {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.gallery__filter:hover {
  border-color: var(--red-2);
  color: var(--red-2);
}

.gallery__filter.is-active {
  background: var(--red-2);
  border-color: var(--red-2);
  color: #fff;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.1rem;
}

.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}

.gallery__item.is-hidden { display: none; }

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery__item:hover img { transform: scale(1.06); }

.gallery__item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.4rem 1.2rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 1;
  transform: none;
  transition: background 0.35s ease;
}

.gallery__item:hover figcaption { background: linear-gradient(transparent, rgba(0, 0, 0, 0.9)); }

.gallery__item img { cursor: zoom-in; }
.gallery__item:focus-visible { outline: 2px solid var(--red-2); outline-offset: 2px; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__figure {
  position: relative;
  max-width: min(92vw, 1200px);
  max-height: 86vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: calc(var(--radius) - 2px);
}

.lightbox__caption {
  margin-top: 0.75rem;
  text-align: center;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox__close:hover,
.lightbox__nav:hover { background: var(--red-2); transform: scale(1.06); }

.lightbox__close { top: 1rem; right: 1rem; }

.lightbox__nav { top: 50%; transform: translateY(-50%); }

.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

.lightbox__nav:hover { transform: translateY(-50%) scale(1.06); }

@media (max-width: 600px) {
  .lightbox__close,
  .lightbox__nav { width: 40px; height: 40px; font-size: 1.4rem; }
  .lightbox__nav--prev { left: 0.5rem; }
  .lightbox__nav--next { right: 0.5rem; }
  .lightbox__img { max-height: 72vh; }
}

/* Pager galeri */
.gallery__pager {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.8rem;
}

.gallery__pager-btn {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.gallery__pager-btn:hover:not(:disabled) {
  border-color: var(--red-2);
  color: var(--red-2);
}

.gallery__pager-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.gallery__pager-info {
  color: var(--muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  min-width: 4.5rem;
  text-align: center;
}

/* ============================================
   EVENTS
   ============================================ */
.events__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.event { display: flex; gap: 1.2rem; align-items: flex-start; }

.event__date {
  flex-shrink: 0;
  width: 70px;
  height: 78px;
  border-radius: 14px;
  background: var(--grad);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.3;
  box-shadow: 0 10px 26px -10px rgba(225, 27, 76, 0.7);
}

.event__date-d {
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
}

.event__body { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }

.event__status {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-2);
  background: rgba(225, 27, 76, 0.12);
  border: 1px solid rgba(225, 27, 76, 0.4);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.event__status--open {
  color: #7dffa0;
  background: rgba(61, 220, 120, 0.1);
  border-color: rgba(61, 220, 120, 0.4);
}

.event__status--alumni {
  color: var(--red-2);
  background: rgba(225, 27, 76, 0.12);
  border-color: rgba(225, 27, 76, 0.35);
}

.event__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.event__meta { font-size: 0.82rem; color: var(--muted); }

/* ============================================
   VOICES / TESTIMONI
   ============================================ */
.voices {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.voices__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.quote {
  position: relative;
  padding: 2rem 1.8rem;
  font-style: italic;
}

.quote::before {
  content: '\201C';
  position: absolute;
  top: 0.4rem;
  left: 1.2rem;
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--red);
  opacity: 0.6;
}

.quote p { font-size: 0.95rem; color: var(--text); font-weight: 300; }

.quote footer { margin-top: 1.4rem; }

.quote cite {
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-2);
}

/* ============================================
   CTA
   ============================================ */
.cta { padding-top: 3.5rem; }

.cta__panel {
  position: relative;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% -20%, rgba(255, 255, 255, 0.14), transparent 60%),
    var(--grad);
  border-radius: 28px;
  padding: 5rem 2rem;
  box-shadow: 0 30px 70px -25px rgba(225, 27, 76, 0.6);
}

.cta__panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/pattern-nfrunners.png');
  background-size: 320px;
  opacity: 0.1;
  mask-image: radial-gradient(circle at 50% 0%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, black, transparent 75%);
  pointer-events: none;
}

.cta__title {
  position: relative;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  line-height: 1.2;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--white);
}

.cta__accent { color: var(--white); text-decoration: underline; text-underline-offset: 6px; }

.cta__sub {
  position: relative;
  max-width: 560px;
  margin: 0 auto 2.2rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.92);
}

.cta__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-3);
  padding: 3.5rem 0 2.2rem;
  padding: 3.5rem 0 calc(2.2rem + env(safe-area-inset-bottom));
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.footer__logo { width: 44px; height: 44px; object-fit: contain; margin-bottom: 1rem; }

.footer__brand p { font-size: 0.88rem; color: var(--muted); max-width: 320px; }

.footer__nav { display: flex; flex-direction: column; gap: 0.6rem; }

.footer__nav a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.25s ease;
}

.footer__nav a:hover { color: var(--red-2); }

.footer__social-title {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.9rem;
}

.footer__social-row {
  display: flex;
  align-items: center;
  margin-top: 1.2rem;
}
.footer__social-row a + a { margin-left: 0.75rem; }

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  max-width: 42px;
  height: 42px;
  max-height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.footer__social-link svg {
  flex: 0 0 20px;
  width: 20px;
  max-width: 20px;
  height: 20px;
  max-height: 20px;
  display: block;
}

.footer__social-link:hover {
  color: var(--red-2);
  border-color: var(--red-2);
  transform: translateY(-2px);
}

.footer__links { display: flex; flex-direction: column; }

.footer__links a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.25s ease;
}

.footer__links a:hover { color: var(--red-2); }

.footer__credit {
  margin-top: 2.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer__credit strong { color: var(--text); font-weight: 600; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .schedule__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr; gap: 3rem; }
  .about__badge { left: 1rem; }
  .events__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .voices__grid, .schedule__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 4.5rem 0; }

  .nav__menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100svh;
    width: 84vw;
    max-width: 320px;
    flex-direction: column;
    justify-content: center;
    background: var(--menu-bg);
    backdrop-filter: blur(16px);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 90;
  }
  .nav__menu > * + * { margin-left: 0; margin-top: 2rem; }

  .nav__menu.is-open { transform: none; }

  .nav__link { font-size: 1.1rem; }

  .nav__toggle { display: flex; z-index: 91; }

  .hero__inner { padding: 8rem 0 6rem; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 2.4rem; }
  .stat:nth-child(3)::before { display: none; }
  .stat:last-child { grid-column: 1 / -1; }
  .stat:last-child::before { display: none; }

  .hero__title { font-size: clamp(2.3rem, 9vw, 3.4rem); }
  .hero__scroll { display: none; }

  .gallery__filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    margin-bottom: 1.2rem;
    -webkit-overflow-scrolling: touch;
  }
  .gallery__filter { flex: 0 0 auto; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .gallery__item figcaption {
    font-size: 0.72rem;
    padding: 1.2rem 0.6rem 0.55rem;
  }
  .events__grid { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr; text-align: left; }
  .footer__credit { flex-direction: column; align-items: flex-start; text-align: left; }
}

@media (max-width: 520px) {
  .features__grid, .about__values { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
}

/* ============================================
   LIGHT THEME TWEAKS
   ============================================ */
[data-theme="light"] .card:hover {
  box-shadow: 0 22px 50px -24px rgba(43, 38, 40, 0.4),
    0 0 40px -18px rgba(225, 27, 76, 0.35);
}

[data-theme="light"] .hero__glow { opacity: 0.55; }

[data-theme="light"] .event__status--open {
  color: #157f3d;
  background: rgba(31, 157, 85, 0.12);
  border-color: rgba(31, 157, 85, 0.4);
}

[data-theme="light"] .event__status--alumni {
  color: #b91c3a;
  background: rgba(225, 27, 76, 0.1);
  border-color: rgba(225, 27, 76, 0.3);
}

/* ============================================
   HALAMAN STATISTIK
   ============================================ */
.page {
  min-height: calc(100vh - 200px);
  padding-top: calc(6.5rem + env(safe-area-inset-top));
  padding-bottom: 4rem;
}

.page-head { margin-bottom: 2.5rem; }

.page__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-2);
  margin-bottom: 0.8rem;
}

.page__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 400;
  line-height: 1.15;
}

.page__title--accent { color: var(--red-2); }

.page__sub { margin-top: 0.6rem; color: var(--muted); font-size: 0.95rem; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.9rem;
  margin-top: 1.6rem;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.panel__title { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; }

.panel__note { color: var(--muted); font-size: 0.85rem; margin-bottom: 1rem; }
.panel__note strong { color: var(--red-2); font-weight: 600; }

.panel__disclaimer {
  color: var(--muted);
  font-size: 0.75rem;
  opacity: 0.75;
  margin-bottom: 1rem;
}

/* segmented control */
.seg {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-3);
}

.seg__btn {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.seg__btn:hover { color: var(--text); }

.seg__btn.is-active {
  color: var(--white);
  background: var(--grad);
  box-shadow: 0 6px 18px -6px rgba(225, 27, 76, 0.7);
}

/* chart */
.chart-box {
  position: relative;
  width: 100%;
  min-height: 320px;
}

#trendChart { display: block; }

.empty {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 3rem 0;
}

/* leaderboard */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.lb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 480px;
}

.lb-table th,
.lb-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.lb-table thead th {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.lb-table tbody tr { transition: background 0.25s ease; }
.lb-table tbody tr:hover { background: var(--card); }

.lb-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.lb-table th.num { text-align: right; }

.lb__rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.lb__rank--top { border-color: transparent; color: var(--white); }
.lb__rank--top1 { background: linear-gradient(135deg, #f6b93b, #e2a11b); }
.lb__rank--top2 { background: linear-gradient(135deg, #c0ccd6, #9aa7b3); }
.lb__rank--top3 { background: linear-gradient(135deg, #d08a5b, #b57143); }

@media (max-width: 768px) {
  .panel__head { flex-direction: column; align-items: flex-start; }
  .seg { flex-wrap: wrap; }
  .page { padding-top: calc(5.5rem + env(safe-area-inset-top)); }
}

/* Leaderboard jadi kartu di layar sempit (tanpa scroll horizontal) */
@media (max-width: 600px) {
  .table-scroll { overflow-x: visible; }

  .lb-table { min-width: 0; }

  .lb-table thead { display: none; }

  .lb-table tbody { display: block; }

  .lb-table tbody tr {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 0.85rem;
    row-gap: 0.15rem;
    align-items: center;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--line);
  }

  .lb-table tbody tr:hover { background: none; }

  .lb-table td { padding: 0; border: 0; }

  .lb-table td:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
  }
  .lb-table td:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    font-weight: 600;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .lb-table td:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
    align-self: end;
    text-align: right;
    font-weight: 700;
    color: var(--red-2);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }
  .lb-table td:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
    align-self: start;
    text-align: right;
    color: var(--muted);
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .lb-table td:nth-child(3)::after { content: ' km'; font-weight: 600; color: var(--muted); }
  .lb-table td:nth-child(4)::after { content: ' aktivitas'; }

  .lb-table .lb__rank { width: 28px; height: 28px; font-size: 0.85rem; }
}

/* ---------- Strength Training (ST) ---------- */
.st-back {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 1.2rem;
  transition: color 0.25s ease;
}

.st-back:hover { color: var(--red-2); }

.st-back--bottom { margin: 2rem 0 0; }

.st-intro p + p { margin-top: 0.9rem; }

.st__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem 1.5rem;
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px dashed var(--line);
}

.st__meta-item { display: flex; flex-direction: column; gap: 0.15rem; }

.st__meta-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.st__meta-value { font-size: 0.92rem; font-weight: 600; }

.seg__btn--static {
  color: var(--text);
  background: var(--bg-3);
  cursor: default;
}

.st-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.st-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 460px;
}

.st-table th,
.st-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.st-table thead th {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.st-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.st-table th.num { text-align: right; }

.st-table tbody tr { transition: background 0.25s ease; }
.st-table tbody tr:hover { background: var(--card); }

.st-table tbody a {
  color: var(--red-2);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.25s ease;
}

.st-table tbody a:hover { border-color: var(--red-2); }

.st-list { margin: 0.6rem 0 0; padding-left: 1.2rem; list-style: square; }

.st-list li { margin-top: 0.55rem; color: var(--text); font-size: 0.94rem; }

.st-list li::marker { color: var(--red-2); }

.st-list li:last-child { font-weight: 500; }

.st-ex {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 1.4rem;
  align-items: start;
  margin-top: 1.2rem;
}

.st-fig {
  margin: 0;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-3);
}

.st-fig img {
  display: block;
  width: 100%;
  height: auto;
}

.st-ex__body > p { margin-top: 0; }
.st-ex__body > .st-list { margin-top: 0.9rem; }

@media (max-width: 600px) {
  .st-ex { grid-template-columns: 1fr; }
  .st-fig { max-width: 240px; margin-inline: auto; }
}

/* ---------- Tabs: Dengan Alat / Tanpa Alat ---------- */
.st-tabs { margin-top: 1.6rem; }

.st-tabs__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.st-tabs__nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}

.st-tabs__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.st-tabs__btn:hover { color: var(--text); border-color: var(--red-2); }

.st-tabs__icon { font-size: 1rem; line-height: 1; }

.st-tabs__panel { display: none; }

#st-tab-alat:checked ~ .st-tabs__nav .st-tabs__btn--alat,
#st-tab-body:checked ~ .st-tabs__nav .st-tabs__btn--body {
  color: var(--white);
  background: var(--grad);
  border-color: transparent;
  box-shadow: 0 6px 18px -6px rgba(225, 27, 76, 0.7);
}

#st-tab-alat:checked ~ .st-tabs__panel--alat,
#st-tab-body:checked ~ .st-tabs__panel--body {
  display: block;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal { opacity: 1; transform: none; }
}
