/* ClubRise landing — palette taken from the Android app (ui/Theme.kt) */
:root {
  --lime: #c5f567;
  --lime-deep: #4f7d10;
  --bg: #111713;
  --panel: #1d2820;
  --panel-2: #2c3a23;
  --muted: #9aa99e;
  --ink: #f1f4ee;
  --paper: #f1f4ee;
  --paper-2: #e3e9dd;
  --ink-dark: #111713;
  --muted-dark: #56635a;
  --glow: #ff8a1f;
  --radius: 24px;
  --max: 1160px;
  --font: Roboto, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(var(--max), 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: var(--bg); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17, 23, 19, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -.3px; }
.logo img { width: 34px; height: 34px; border-radius: 9px; }
.logo span::after { content: "."; color: var(--lime); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav a:hover { color: var(--ink); }
.nav .btn { color: var(--bg); }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 18px;
  background: var(--lime); color: var(--bg);
  font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(197, 245, 103, .25); }
.btn svg { width: 22px; height: 22px; }
.btn-sm { min-height: 42px; padding: 0 18px; border-radius: 14px; font-size: 14px; }
.btn-ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.btn-ghost:hover { box-shadow: none; }

/* ---------- Sections ---------- */
section { padding: 120px 0; position: relative; overflow: hidden; }
.dark { background: var(--bg); color: var(--ink); }
.light { background: var(--paper); color: var(--ink-dark); }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase; color: var(--lime); margin-bottom: 18px; }
.light .eyebrow { color: var(--lime-deep); }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(44px, 6.4vw, 80px); line-height: 1.02; font-weight: 800; }
h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.06; font-weight: 800; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 700; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 540px; margin: 22px 0 0; }
.light .lead { color: var(--muted-dark); }
.accent { color: var(--lime); }
.light .accent { color: var(--lime-deep); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.reverse .copy { order: 2; }

/* ---------- Flat phone mockup ---------- */
.phone {
  position: relative;
  width: min(300px, 74vw);
  padding: 10px;
  border-radius: 46px;
  background: #0a0e0b;
  box-shadow: inset 0 0 0 2px #2b352e;
  flex-shrink: 0;
}
.light .phone { background: #1a211c; box-shadow: inset 0 0 0 2px #2b352e, 0 30px 60px -30px rgba(17, 23, 19, .45); }
.phone img { width: 100%; height: auto; aspect-ratio: 1080 / 2400; object-fit: cover; border-radius: 37px; }
.phone-sm { width: min(250px, 62vw); }
.phones { display: flex; justify-content: center; align-items: flex-end; gap: 28px; position: relative; }
.phones .phone:nth-child(2) { transform: translateY(-48px); }
.glow::before {
  content: ""; position: absolute; inset: 10% -10%; z-index: 0;
  background: radial-gradient(closest-side, rgba(255, 138, 31, .28), transparent 70%);
  filter: blur(20px); pointer-events: none;
}
.glow > * { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 120px; }
.hero::before, .hero::after {
  content: ""; position: absolute; pointer-events: none; border-radius: 50%; filter: blur(80px);
}
.hero::before { width: 560px; height: 560px; right: -120px; top: -80px; background: rgba(255, 138, 31, .18); }
.hero::after { width: 420px; height: 420px; right: 260px; bottom: -200px; background: rgba(197, 245, 103, .10); }
.hero .split { position: relative; z-index: 1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 44px; color: var(--muted); font-size: 14px; }
.hero-meta strong { display: block; color: var(--ink); font-size: 26px; font-weight: 800; }
.hero .phones { justify-content: flex-end; align-items: center; }
.hero .phones .phone:nth-child(2) { transform: none; }

/* ---------- Sports ---------- */
.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .lead { margin-inline: auto; }
.sports { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sport {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--paper-2); transition: transform .2s ease, box-shadow .2s ease;
}
.sport:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(17, 23, 19, .35); }
.sport-art { height: 150px; display: grid; place-items: center; font-size: 64px; }
.sport-art.football { background: linear-gradient(#3c5a34, #2a3d27); }
.sport-art.basketball { background: linear-gradient(#7a4b33, #4a3127); }
.sport-art.volleyball { background: linear-gradient(#3a5468, #2a3a46); }
.sport-art.tennis { background: linear-gradient(#6b7a2c, #44501f); }
.sport-body { padding: 22px 22px 24px; }
.sport-body p { margin: 6px 0 0; color: var(--muted-dark); font-size: 14px; }
.sports-note { text-align: center; color: var(--muted-dark); margin-top: 40px; }

/* ---------- Feature list ---------- */
.features { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 14px; }
.features li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 20px; border-radius: 20px; background: var(--panel);
}
.light .features li { background: #fff; border: 1px solid var(--paper-2); }
.features .ic {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; background: var(--panel-2); color: var(--lime); font-weight: 800;
}
.light .features .ic { background: var(--bg); }
.features b { display: block; font-size: 16px; }
.features span { color: var(--muted); font-size: 14px; }
.light .features span { color: var(--muted-dark); }

/* ---------- Stat cards ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.stat { background: var(--panel); border-radius: 20px; padding: 22px 18px; text-align: center; }
.light .stat { background: #fff; border: 1px solid var(--paper-2); }
.stat strong { display: block; font-size: 30px; font-weight: 800; color: var(--lime); line-height: 1.1; }
.light .stat strong { color: var(--ink-dark); }
.stat span { font-size: 13px; color: var(--muted); }
.light .stat span { color: var(--muted-dark); }

/* ---------- CTA ---------- */
.cta { padding: 0; }
.cta-banner {
  position: relative; min-height: 560px; display: grid; align-items: end;
  background: url("../img/feature.jpg") center / cover no-repeat;
}
.cta-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,23,19,.15) 0%, rgba(17,23,19,.55) 55%, var(--bg) 100%); }
.cta-inner { position: relative; text-align: center; padding: 80px 0 110px; }
.cta-inner .lead { margin-inline: auto; color: #c9d2cb; }
.cta-inner .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); color: var(--ink-dark); padding: 56px 0 40px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--muted-dark); font-weight: 500; }
.footer-links a:hover { color: var(--ink-dark); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--paper-2); color: var(--muted-dark); font-size: 14px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer .logo img { box-shadow: none; }

/* ---------- Legal pages ---------- */
.legal-hero { padding: 80px 0 64px; }
.legal-hero p { color: var(--muted); margin: 14px 0 0; }
.legal { padding: 72px 0 110px; }
.legal article { max-width: 760px; }
.legal h2 { font-size: 24px; margin: 44px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: #2c3530; font-size: 16.5px; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--lime-deep); font-weight: 600; }
.legal .box { background: #fff; border: 1px solid var(--paper-2); border-radius: 18px; padding: 20px 22px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .sport { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  section { padding: 88px 0; }
  .split { grid-template-columns: 1fr; gap: 56px; }
  .split.reverse .copy { order: 0; }
  .hero .phones { justify-content: center; }
  .sports { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); padding: 8px 24px 24px; border-bottom: 1px solid rgba(255,255,255,.08); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; font-size: 17px; }
  .nav .btn { margin-top: 10px; }
  .nav-toggle { display: block; }
  .phones { gap: 14px; }
  .phones .phone-sm { width: 44vw; padding: 6px; border-radius: 30px; }
  .phones .phone-sm img { border-radius: 25px; }
  .phones .phone:nth-child(2) { transform: translateY(-28px); }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat strong { font-size: 24px; }
}
@media (max-width: 520px) {
  .sports { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 88px; }
  .cta-banner { min-height: 480px; }
}
@media (max-width: 520px) {
  .stat { padding: 18px 8px; border-radius: 16px; }
  .stat span { font-size: 12px; line-height: 1.35; display: block; margin-top: 4px; }
}
