/* ==========================================================================
   RYDE FITNESS — WHY RYDE PAGE STYLING
   Theme: Cyber-Fitness Dark (#050505) with Ryde Red (#f40210)
   ========================================================================== */

@property --why-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.why-page {
  --why-bg: #050505;
  --why-line: rgba(255, 255, 255, 0.09);
  --why-line-bright: rgba(255, 255, 255, 0.16);
  --why-text: #ffffff;
  --why-text-soft: rgba(255, 255, 255, 0.72);
  --why-accent: #f40210;
  --why-accent-soft: #ff6b60;
  --why-radius: 20px;

  background: var(--why-bg);
  color: var(--why-text);
  overflow-x: hidden;
}

.why-page .site-header {
  opacity: 1;
  transform: none;
  background: rgba(8, 8, 8, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--why-line);
}

.why-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.why-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--why-accent);
  margin-bottom: 14px;
}

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.why-hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  padding: 160px 0 96px;
  overflow: hidden;
}

.why-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.why-hero__image {
  position: absolute;
  inset: 0;
  background-image: url("../images/why-ryde.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.1);
  animation: whyKenBurns 26s ease-in-out infinite alternate;
}

.why-hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(5, 5, 5, 0.7) 0%,
      rgba(5, 5, 5, 0.82) 55%,
      #050505 100%
    ),
    radial-gradient(circle at 25% 25%, rgba(244, 2, 16, 0.28), transparent 62%);
}

.why-hero__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 72%);
  pointer-events: none;
}

.why-hero__aurora {
  position: absolute;
  top: 44%;
  left: 50%;
  width: min(960px, 95vw);
  height: min(960px, 95vw);
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    rgba(244, 2, 16, 0.22),
    transparent 32%,
    rgba(255, 107, 96, 0.16) 58%,
    transparent 84%
  );
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
  animation: whySpin 26s linear infinite;
}

.why-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.5;
  pointer-events: none;
}

.why-orb--1 {
  width: 220px;
  height: 220px;
  top: 18%;
  left: 8%;
  background: radial-gradient(circle, rgba(244, 2, 16, 0.55), transparent 70%);
  animation: whyFloat 12s ease-in-out infinite;
}

.why-orb--2 {
  width: 180px;
  height: 180px;
  bottom: 14%;
  right: 10%;
  background: radial-gradient(circle, rgba(255, 107, 96, 0.45), transparent 70%);
  animation: whyFloat 15s ease-in-out infinite reverse;
}

.why-orb--3 {
  width: 140px;
  height: 140px;
  top: 30%;
  right: 22%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25), transparent 70%);
  animation: whyFloat 18s ease-in-out infinite;
}

.why-hero__content {
  position: relative;
  z-index: 2;
  width: min(1000px, calc(100% - 48px));
  margin: 0 auto;
  text-align: center;
}

.why-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 17px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--why-line-bright);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  backdrop-filter: blur(8px);
  animation: whyFadeUp 800ms ease both;
}

.why-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--why-accent);
  box-shadow: 0 0 10px var(--why-accent);
  animation: whyPulseDot 2s ease-in-out infinite;
}

.why-hero__title {
  margin: 22px 0 0;
  font-size: clamp(38px, 6.4vw, 84px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -1px;
  text-transform: uppercase;
  animation: whyFadeUp 900ms ease 120ms both;
}

.why-hero__title span {
  background: linear-gradient(100deg, #f40210 0%, #ff8a80 50%, #f40210 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: whySheen 6s linear infinite;
}

.why-hero__subtitle {
  margin: 22px auto 0;
  max-width: 680px;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.7;
  color: var(--why-text-soft);
  animation: whyFadeUp 900ms ease 240ms both;
}

.why-hero__actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  animation: whyFadeUp 900ms ease 360ms both;
}

.why-hero__chips {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  animation: whyFadeUp 900ms ease 480ms both;
}

.why-hero__chips li {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--why-line);
  background: rgba(18, 18, 18, 0.6);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.85);
}

/* --------------------------------------------------------------------------
   MARQUEE
   -------------------------------------------------------------------------- */
.why-marquee {
  overflow: hidden;
  background: #080808;
  border-top: 1px solid var(--why-line);
  border-bottom: 1px solid var(--why-line);
}

.why-marquee__track {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 0;
  width: max-content;
  white-space: nowrap;
  animation: whyMarquee 30s linear infinite;
}

.why-marquee__track span {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.why-marquee__dot {
  color: var(--why-accent) !important;
  font-size: 11px !important;
}

/* --------------------------------------------------------------------------
   SECTION HEAD
   -------------------------------------------------------------------------- */
.why-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 54px;
}

.why-section-head__title {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 900;
  letter-spacing: -0.4px;
  text-transform: uppercase;
}

.why-section-head__subtitle {
  margin: 0;
  color: var(--why-text-soft);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   REASON CARDS
   -------------------------------------------------------------------------- */
.why-reasons {
  padding: 96px 0;
  background: radial-gradient(circle at 50% 0, rgba(244, 2, 16, 0.07), transparent 55%),
    #050505;
}

.why-reasons__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.reason-card {
  position: relative;
  border-radius: var(--why-radius);
  padding: 32px 26px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--why-line);
  overflow: hidden;
  z-index: 1;
  translate: 0 0;
  transition-property: transform, opacity, translate, border-color, box-shadow;
  transition-duration: 720ms, 720ms, 420ms, 300ms, 300ms;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1), ease,
    cubic-bezier(0.16, 1, 0.3, 1), ease, ease;
}

.reason-card.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), 0s, 0s, 0s;
}

.reason-card.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reason-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--why-angle),
    rgba(244, 2, 16, 0) 0deg,
    rgba(244, 2, 16, 0.6) 300deg,
    #ff6b60 345deg,
    #f40210 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: whyRun 4s linear infinite;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.reason-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    240px circle at var(--mx, 50%) var(--my, 0%),
    rgba(244, 2, 16, 0.2),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.reason-card:hover {
  translate: 0 -8px;
  border-color: rgba(244, 2, 16, 0.35);
  box-shadow: 0 26px 60px rgba(244, 2, 16, 0.16);
}

.reason-card:hover::before,
.reason-card:hover::after {
  opacity: 1;
}

.reason-card__icon {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--why-accent);
  background: linear-gradient(135deg, rgba(244, 2, 16, 0.16), rgba(244, 2, 16, 0.04));
  border: 1px solid rgba(244, 2, 16, 0.3);
  margin-bottom: 20px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease,
    background 0.3s ease, box-shadow 0.3s ease;
}

.reason-card__icon svg {
  width: 28px;
  height: 28px;
}

.reason-card:hover .reason-card__icon {
  transform: translateY(-3px) rotate(-4deg);
  background: var(--why-accent);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(244, 2, 16, 0.4);
}

.reason-card__title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.reason-card__text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--why-text-soft);
}

/* --------------------------------------------------------------------------
   STATS
   -------------------------------------------------------------------------- */
.why-stats {
  padding: 74px 0;
  background: linear-gradient(180deg, #080808, #050505);
  border-top: 1px solid var(--why-line);
  border-bottom: 1px solid var(--why-line);
}

.why-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  text-align: center;
}

.stat {
  position: relative;
  padding: 10px;
}

.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 18%;
  height: 64%;
  width: 1px;
  background: var(--why-line);
}

.stat__num {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(120deg, #ffffff, #ff8a80);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.stat__label {
  margin: 8px 0 0;
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* --------------------------------------------------------------------------
   SHOWCASE
   -------------------------------------------------------------------------- */
.why-showcase {
  padding: 96px 0;
}

.why-showcase__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  align-items: center;
}

.why-showcase__media {
  position: relative;
  border-radius: 30px 110px 30px 110px;
  overflow: hidden;
  border: 1px solid var(--why-line-bright);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.55);
}

.why-showcase__media img {
  display: block;
  width: 100%;
  height: 520px;
  object-fit: cover;
  transform: scale(1.04);
  animation: whyKenBurns 22s ease-in-out infinite alternate;
}

.why-showcase__badge {
  position: absolute;
  left: 22px;
  bottom: 22px;
  padding: 14px 20px;
  border-radius: 16px;
  background: rgba(8, 8, 8, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--why-line-bright);
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.why-showcase__badge strong {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--why-accent);
}

.why-showcase__title {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 900;
  letter-spacing: -0.4px;
  text-transform: uppercase;
}

.why-showcase__text {
  margin: 0 0 26px;
  color: var(--why-text-soft);
  line-height: 1.75;
}

.why-checklist {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.why-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 600;
}

.why-checklist__mark {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--why-accent);
  background: rgba(244, 2, 16, 0.12);
  border: 1px solid rgba(244, 2, 16, 0.35);
}

.why-checklist__mark svg {
  width: 14px;
  height: 14px;
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.why-cta {
  padding: 0 0 100px;
}

.why-cta__box {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 40px;
  text-align: center;
  border-radius: 24px;
  background: linear-gradient(135deg, #111111, #1c1c1c);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.why-cta__box::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  padding: 2.5px;
  background: conic-gradient(
    from var(--why-angle),
    rgba(244, 2, 16, 0.1) 0deg,
    #f40210 280deg,
    #ff6b60 330deg,
    #f40210 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: whyRun 5s linear infinite;
  pointer-events: none;
}

.why-cta__title {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  letter-spacing: -0.4px;
  text-transform: uppercase;
}

.why-cta__text {
  margin: 0 auto 32px;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.why-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* --------------------------------------------------------------------------
   KEYFRAMES
   -------------------------------------------------------------------------- */
@keyframes whyRun {
  to {
    --why-angle: 360deg;
  }
}

@keyframes whyKenBurns {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.16) translate3d(-1.5%, -2%, 0);
  }
}

@keyframes whySpin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes whyFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(24px, -28px, 0);
  }
}

@keyframes whySheen {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@keyframes whyFadeUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes whyPulseDot {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.45);
    opacity: 0.6;
  }
}

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

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .why-hero {
    padding-top: 130px;
  }

  .why-reasons__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }

  .stat:nth-child(2)::after {
    display: none;
  }

  .why-showcase__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .why-showcase__media img {
    height: 420px;
  }
}

@media (max-width: 620px) {
  .why-reasons {
    padding: 72px 0;
  }

  .why-reasons__grid {
    grid-template-columns: 1fr;
  }

  .stat:not(:last-child)::after {
    display: none;
  }

  .why-reasons__grid .reason-card {
    padding: 26px 22px;
  }

  .why-showcase {
    padding: 72px 0;
  }

  .why-showcase__media {
    border-radius: 22px 70px 22px 70px;
  }

  .why-showcase__media img {
    height: 320px;
  }

  .why-cta {
    padding-bottom: 72px;
  }

  .why-cta__box {
    padding: 44px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .why-hero__image,
  .why-hero__aurora,
  .why-orb,
  .why-marquee__track,
  .why-hero__title span,
  .why-showcase__media img,
  .reason-card::before,
  .why-cta__box::before,
  .why-badge,
  .why-badge__dot,
  .why-hero__title,
  .why-hero__subtitle,
  .why-hero__actions,
  .why-hero__chips {
    animation: none;
  }

  .reason-card.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
