:root {
  --bg-main: #f4f5f8;
  --bg-dark: #12141a;
  --bg-card: #ffffff;
  --c-primary: #ff4d6d;
  --c-secondary: #7b2cbf;
  --c-accent: #00d2ff;
  --c-text: #2b2d35;
  --c-text-light: #6b6e76;
  --c-border: #e2e4e8;
  --gradient-marquee: linear-gradient(90deg, #ff007f, #7b2cbf, #00d2ff);
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--c-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 70px; /* For bottom floating bar */
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; object-fit: cover; }
ul { list-style: none; }

/* Typography */
h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; }
h1 { font-size: 2rem; margin-bottom: 1rem; color: #fff; }
h2 { font-size: 1.6rem; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; font-size: 0.95rem; }

/* Header & Nav */
.site-header {
  background: var(--bg-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.1rem; }
.brand img { height: 32px; width: auto; border-radius: 6px; }
.nav-menu {
  display: flex;
  gap: 20px;
  align-items: center;
}
.nav-menu a {
  color: #aeb2bd;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
  padding: 5px 0;
}
.nav-menu a:hover, .nav-menu a.active {
  color: var(--c-primary);
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: var(--c-primary);
  transition: width 0.3s ease, left 0.3s ease;
}
.nav-menu a:hover::after { width: 100%; left: 0; }
.mobile-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #1a0b2e 0%, #2a1649 50%, #0f1123 100%);
  color: #fff;
  padding: 4rem 5% 2rem;
  position: relative;
  overflow: hidden;
}
.hero-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-content { flex: 1; }
.badge-tag {
  display: inline-block;
  background: rgba(255, 77, 109, 0.15);
  color: var(--c-primary);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 77, 109, 0.3);
}
.hero-desc {
  font-size: 1rem;
  color: #b0b5c1;
  margin-bottom: 2rem;
  max-width: 90%;
}
.hero-gallery {
  flex: 1;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: center;
}
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s ease;
}
.gallery-item:hover { transform: translateY(-5px); }
.gallery-item:nth-child(1) { grid-column: 1 / 2; grid-row: 1 / 3; }
.gallery-item:nth-child(2) { grid-column: 2 / 3; grid-row: 1 / 2; margin-top: 20px; }
.gallery-item:nth-child(3) { grid-column: 2 / 3; grid-row: 2 / 3; margin-bottom: 20px; }

/* Download Buttons */
.download-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 2rem;
}
.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}
.btn-android { background: #00c853; color: #fff; }
.btn-ios { background: #007aff; color: #fff; }
.btn-web { background: #ff9100; color: #fff; }
.btn-harmony { background: #7b2cbf; color: #fff; }
.btn-download:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }

/* Marquee */
.marquee-wrap {
  background: #000;
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 3;
}
.marquee-content {
  display: inline-block;
  animation: marquee 15s linear infinite;
  font-weight: 700;
  font-size: 1rem;
  background: var(--gradient-marquee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.marquee-content span { margin-right: 40px; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Common Section */
.section-wrap {
  padding: 4rem 5%;
}
.section-inner { max-width: 1100px; margin: 0 auto; }
.bg-light { background: #fff; }
.bg-gray { background: #f0f2f5; }
.bg-pink { background: #fff0f3; }
.bg-blue { background: #f0f7ff; }
.bg-purple { background: #f5f0ff; }
.bg-dark-accent { background: #1a1c24; color: #fff; }
.bg-dark-accent p, .bg-dark-accent h2, .bg-dark-accent h3 { color: #fff; }

/* Daily Matches (Grid) */
.grid-card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.match-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  transition: transform 0.3s, box-shadow 0.3s;
}
.match-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.match-card img { width: 100%; height: 180px; object-fit: cover; }
.card-body { padding: 1rem; }
.card-body h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.card-meta { font-size: 0.8rem; color: var(--c-text-light); display: flex; justify-content: space-between; }

/* Riding Challenge (List) */
.split-layout {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}
.split-left { flex: 1; }
.split-right { flex: 1.2; }
.vertical-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  object-fit: cover;
}
.list-styled { margin-top: 1rem; }
.list-styled li {
  padding: 12px 0;
  border-bottom: 1px dashed var(--c-border);
  display: flex;
  gap: 12px;
  font-size: 0.95rem;
}
.list-styled li::before {
  content: '🏆';
  font-size: 1rem;
}

/* Q&A / FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--c-border);
  overflow: hidden;
}
.faq-q {
  padding: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fafafa;
}
.faq-a {
  padding: 0 1rem 1rem;
  color: var(--c-text-light);
  font-size: 0.9rem;
}

/* Comments */
.comment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.comment-card {
  background: #fff;
  padding: 1.2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.comment-name { font-weight: 600; font-size: 0.9rem; }
.comment-text { font-size: 0.9rem; color: var(--c-text-light); }

/* Download Section */
.download-banner {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 3rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  border: 1px solid var(--c-border);
}
.download-banner img { width: 120px; height: 120px; border-radius: 20px; box-shadow: var(--shadow-sm); }
.download-banner-text { flex: 1; }
.download-banner-text h2 { margin-bottom: 0.5rem; color: var(--c-text); }
.download-banner-text p { color: var(--c-text-light); margin-bottom: 1.5rem; }

/* Footer */
.site-footer {
  background: #12141a;
  color: #8c8f98;
  padding: 3rem 5% 2rem;
  font-size: 0.85rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand h3 { color: #fff; font-size: 1.1rem; margin-bottom: 0.5rem; }
.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-links a { color: #aeb2bd; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.8rem;
}
.about-details {
  margin: 1.5rem 0;
}
.about-details summary {
  cursor: pointer;
  font-size: 0.85rem;
  color: #aeb2bd;
  outline: none;
}
.about-details summary::-webkit-details-marker { display: none; }
.about-links {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(255,255,255,0.05);
  padding: 1rem;
  border-radius: 8px;
}
.about-links a { color: #fff; }
.about-links a:hover { text-decoration: underline; }

/* Floating Download Bar */
.floating-download {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border-radius: 50px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 999;
  border: 1px solid var(--c-border);
  width: calc(100% - 40px);
  max-width: 400px;
  transition: transform 0.3s ease;
}
.floating-download img { width: 40px; height: 40px; border-radius: 50%; }
.floating-info { flex: 1; }
.floating-info h4 { font-size: 0.9rem; margin-bottom: 2px; }
.floating-info p { font-size: 0.7rem; color: var(--c-text-light); margin: 0; }
.floating-btn {
  background: var(--c-primary);
  color: #fff;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 340px;
  text-align: center;
}
.modal-box p { margin-bottom: 1.5rem; font-size: 0.95rem; color: var(--c-text); font-weight: 600; }
.modal-box input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--c-text-light);
  font-size: 0.85rem;
}
.modal-box button {
  background: var(--c-primary);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner { justify-content: space-between; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 1rem;
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-menu.active { display: flex; }
  .mobile-toggle { display: block; }
  .hero-container { flex-direction: column; padding-top: 2rem; text-align: center; }
  .hero-content h1 { font-size: 1.6rem; }
  .hero-desc { margin: 0 auto 2rem; }
  .download-group { justify-content: center; }
  .hero-gallery { width: 100%; max-width: 400px; margin: 0 auto; }
  .gallery-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 2; }
  .gallery-item:nth-child(2) { grid-column: 1 / 2; grid-row: 2 / 3; margin-top: 0; }
  .gallery-item:nth-child(3) { grid-column: 2 / 3; grid-row: 2 / 3; margin-bottom: 0; }
  .split-layout { flex-direction: column; }
  .download-banner { flex-direction: column; text-align: center; padding: 2rem 1rem; }
  .footer-top { flex-direction: column; gap: 1.5rem; }
  .floating-download { bottom: 10px; width: calc(100% - 20px); }
  .about-links { flex-direction: column; gap: 8px; }
}