/* ============ YURNIC PLAY — LANDING (v2 · "Global") — light + dark themes ============ */

/* ---------- THEME TOKENS ---------- */
:root, html[data-theme="light"] {
  --bg: #f6f5fb;
  --bg-2: rgba(238, 237, 250, 0.55);
  --glow-1: rgba(69, 48, 178, 0.10);
  --glow-2: rgba(232, 96, 80, 0.07);
  --ink: #1b1730;
  --muted: #5d5873;
  --line: rgba(27, 23, 48, 0.10);
  --line-2: rgba(27, 23, 48, 0.18);
  --violet: #4530b2;
  --violet-2: #5b45c0;
  --indigo: #4530b2;
  --coral: #e86050;
  --surface: rgba(69, 48, 178, 0.05);
  --card-bg: rgba(255, 255, 255, 0.55);
  --card-border: rgba(255, 255, 255, 0.75);
  --orb-bg: #ffffff;
  --orb-border: rgba(27, 23, 48, 0.12);
  --shadow: 0 18px 44px rgba(43, 32, 96, 0.14);
  --card-shadow: 0 10px 30px rgba(43, 32, 96, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --header-bg: rgba(255, 255, 255, 0.82);
  --header-scroll: rgba(255, 255, 255, 0.94);
  --marquee-bg: rgba(27, 23, 48, 0.03);
  --footer-bg: #e9eaf6;
  --footer-ink: #1b1730;
  --footer-muted: #5d5873;
  --footer-line: rgba(27, 23, 48, 0.10);
  --logo-glow: rgba(69, 48, 178, 0.35);
}
html[data-theme="dark"] {
  --bg: #0b0a14;
  --bg-2: rgba(255, 255, 255, 0.025);
  --glow-1: rgba(69, 48, 178, 0.35);
  --glow-2: rgba(255, 111, 94, 0.12);
  --ink: #f5f4fb;
  --muted: #a8a4c6;
  --line: rgba(255, 255, 255, 0.10);
  --line-2: rgba(255, 255, 255, 0.16);
  --violet: #8b6cff;
  --violet-2: #b3a1ff;
  --indigo: #4530b2;
  --coral: #ff6f5e;
  --surface: rgba(255, 255, 255, 0.045);
  --card-bg: rgba(255, 255, 255, 0.07);
  --card-border: rgba(255, 255, 255, 0.15);
  --orb-bg: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  --orb-border: rgba(255, 255, 255, 0.16);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --card-shadow: 0 14px 40px rgba(0, 0, 0, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  --header-bg: rgba(11, 10, 20, 0.60);
  --header-scroll: rgba(11, 10, 20, 0.82);
  --marquee-bg: rgba(255, 255, 255, 0.02);
  --footer-bg: #08070f;
  --footer-ink: #f5f4fb;
  --footer-muted: #a8a4c6;
  --footer-line: rgba(255, 255, 255, 0.10);
  --logo-glow: rgba(108, 76, 255, 0.55);
}

:root {
  --radius: 18px;
  --ring: 480px;
  --orbit-r: 190px;
  --font-display: "Bricolage Grotesque", system-ui, -apple-system, sans-serif;
  --font-body: "Inter Tight", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(60% 55% at 50% -8%, var(--glow-1), transparent 60%),
    radial-gradient(45% 45% at 90% 8%, var(--glow-2), transparent 60%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* theme-aware logo swap */
.logo-dark { display: none; }
html[data-theme="dark"] .logo-dark { display: block; }
html[data-theme="dark"] .logo-light { display: none; }

/* ============ WORLD MAP BACKGROUND ============ */
.world-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
.world-veil {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(78% 62% at 50% 0%, transparent 46%, rgba(246, 245, 251, 0.45) 100%),
    linear-gradient(180deg, rgba(246, 245, 251, 0.05), rgba(246, 245, 251, 0.45) 72%, rgba(246, 245, 251, 0.72) 100%);
}
html[data-theme="dark"] .world-veil {
  background:
    radial-gradient(78% 62% at 50% 0%, transparent 46%, rgba(11, 10, 20, 0.45) 100%),
    linear-gradient(180deg, rgba(11, 10, 20, 0.10), rgba(11, 10, 20, 0.48) 72%, rgba(11, 10, 20, 0.70) 100%);
}

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 820px; }
img { max-width: 100%; display: block; }
a { color: var(--violet-2); text-decoration: none; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--violet); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 200; }
.skip-link:focus { left: 0; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  padding: 11px 22px; border-radius: 12px; border: 1.5px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.14s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; border-radius: 14px; }
.btn-primary {
  background: linear-gradient(135deg, #4530b2, #7b5cff);
  color: #fff; box-shadow: 0 10px 28px rgba(108, 76, 255, 0.38);
  position: relative; overflow: hidden;
}
.btn-primary:hover { box-shadow: 0 14px 36px rgba(108, 76, 255, 0.55); transform: translateY(-1px); }
.btn-primary::after { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.4), transparent); transform: skewX(-18deg); }
.btn-primary:hover::after { animation: shine 0.9s ease; }
@keyframes shine { to { left: 130%; } }
.btn-secondary { background: linear-gradient(135deg, #e86050, #ff9b7e); color: #2a0f0a; box-shadow: 0 10px 28px rgba(232, 96, 80, 0.32); }
.btn-secondary:hover { transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--violet); }
.btn-light { background: #fff; color: #4530b2; box-shadow: 0 10px 28px rgba(0,0,0,0.3); }
.btn-light:hover { transform: translateY(-1px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-outline-light:hover { background: rgba(255,255,255,0.10); }

.cta-icon { display: none; }
.cta-text { display: inline; }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled { background: var(--header-scroll); border-bottom-color: var(--line); box-shadow: 0 8px 30px rgba(24, 18, 60, 0.10); }
html[data-theme="dark"] .site-header.scrolled { box-shadow: 0 8px 30px rgba(0,0,0,0.4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; }
.brand-logo { width: 120px; height: auto; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { color: var(--muted); font-weight: 500; font-size: 0.95rem; position: relative; padding: 4px 0; transition: color 0.15s ease; }
.main-nav a:hover { color: var(--ink); }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--violet); transition: width 0.18s ease; }
.main-nav a:hover::after { width: 100%; }
.main-nav .nav-signin { display: none; }
.main-nav .nav-create { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-right { display: flex; align-items: center; gap: 8px; }
.header-right .header-signup { padding: 10px 18px; }

.theme-toggle {
  width: 42px; height: 42px; flex: none; display: inline-grid; place-items: center; cursor: pointer;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: 12px;
  font-size: 1.1rem; line-height: 1; transition: background 0.18s ease, border-color 0.18s ease, transform 0.14s ease;
}
.theme-toggle:hover { border-color: var(--violet); transform: translateY(-1px); }
.theme-toggle .tt-icon { display: block; }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: transparent; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO / OPENING ============ */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 84px 20px 60px; text-align: center; }
.hero-stage { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; }

.hero-orbit { position: relative; width: var(--ring); height: var(--ring); display: grid; place-items: center; max-width: 92vw; }

.orbit-ring { position: absolute; width: calc(var(--orbit-r) * 2); height: calc(var(--orbit-r) * 2); border-radius: 50%;
  border: 1.5px dashed rgba(69, 48, 178, 0.28); animation: spin 90s linear infinite; }
.orbit-ring.ring-2 { width: calc(var(--orbit-r) * 2 + 72px); height: calc(var(--orbit-r) * 2 + 72px); border-color: rgba(232, 96, 80, 0.18); animation: spin 140s linear infinite reverse; }
html[data-theme="dark"] .orbit-ring { border-color: rgba(139, 108, 255, 0.26); }
html[data-theme="dark"] .orbit-ring.ring-2 { border-color: rgba(255, 111, 94, 0.14); }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-logo { width: 118px; max-width: 74vw; height: auto; position: relative; z-index: 2; grid-area: 1 / 1;
  filter: drop-shadow(0 8px 30px var(--logo-glow)); animation: logoPulse 5s ease-in-out infinite; }
@keyframes logoPulse { 0%,100% { filter: drop-shadow(0 6px 24px var(--logo-glow)); transform: scale(1); } 50% { filter: drop-shadow(0 12px 46px var(--logo-glow)); transform: scale(1.03); } }

/* sport cards on the ring */
.sport { position: absolute; top: 50%; left: 50%; z-index: 3;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--orbit-r) * -1)) rotate(calc(var(--a) * -1));
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0; animation: sportIn 0.7s cubic-bezier(0.2, 0.9, 0.25, 1) forwards;
  animation-delay: calc(0.35s + var(--i, 0) * 0.12s);
}
@keyframes sportIn { from { opacity: 0; } to { opacity: 1; } }
.sport-orb { width: 74px; height: 74px; border-radius: 22px; display: grid; place-items: center; font-size: 2rem;
  background: var(--orb-bg); border: 1px solid var(--orb-border);
  box-shadow: 0 12px 30px rgba(43, 32, 96, 0.18), inset 0 1px 0 rgba(255,255,255,0.5);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: bob 5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -1.1s);
  transition: transform 0.18s ease;
}
html[data-theme="dark"] .sport-orb { box-shadow: 0 12px 30px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.18); }
.sport-orb svg { width: 40px; height: 40px; }

/* perforated pickleball ball — design ported from the mountisapickleball.com hero */
.pb-ball {
  display: block; width: 46px; height: 46px; border-radius: 50%; flex: none;
  background:
    radial-gradient(circle at 34% 27%, rgba(255,255,255,.95), rgba(255,255,255,0) 42%),
    radial-gradient(circle, rgba(150,60,12,.5) 18%, rgba(150,60,12,0) 20%) 0 0/33.5% 33.5%,
    radial-gradient(circle at 50% 44%, #ffc286, #f0813a);
  box-shadow: inset -5px -7px 12px rgba(150,60,12,.32), inset 4px 4px 9px rgba(255,255,255,.22), 0 8px 18px rgba(240,129,58,.40);
}
.sport-orb .pb-ball { width: 52%; height: 52%; }
.sport-badge .pb-ball { width: 46px; height: 46px; }
.sport-name { font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.02em; color: var(--ink); }
.sport:hover .sport-orb { transform: translateY(-6px) scale(1.06); }
@keyframes bob { 0%,100% { transform: translateY(-5px); } 50% { transform: translateY(5px); } }
.s-volleyball .sport-orb { box-shadow: 0 12px 30px rgba(255, 203, 71, 0.30); }
.s-pickleball .sport-orb { box-shadow: 0 12px 30px rgba(240, 129, 58, 0.34); }
.s-tennis .sport-orb { box-shadow: 0 12px 30px rgba(46, 168, 90, 0.26); }
.s-badminton .sport-orb { box-shadow: 0 12px 30px rgba(79, 209, 224, 0.30); }

/* core copy */
.hero-core { max-width: 760px; margin-top: 12px; animation: coreIn 0.8s ease both; animation-delay: 0.15s; }
@keyframes coreIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.45rem); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 12px; color: var(--ink); }
.grad { background: linear-gradient(100deg, var(--violet-2), var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 1.05rem; color: var(--muted); max-width: 36em; margin: 0 auto 18px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 16px; }
.hero-note { font-size: 0.9rem; color: var(--muted); }
.btn-start { padding-right: 20px; }
.btn-start svg { transition: transform 0.2s ease; }
.btn-start:hover svg { transform: translateX(3px); }

.scroll-cue { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--line-2); border-radius: 14px; display: grid; place-items: start center; padding-top: 7px; }
.scroll-cue span { width: 4px; height: 8px; border-radius: 3px; background: var(--violet); animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ============ MARQUEE ============ */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--marquee-bg); padding: 16px 0; white-space: nowrap; }
.marquee-track { display: inline-flex; align-items: center; gap: 26px; will-change: transform; animation: marquee 28s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.14em; font-size: 0.9rem; color: var(--muted); text-transform: uppercase; }
.marquee-track .dot { color: var(--violet); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ STATS ============ */
.stats-strip { border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 34px 20px; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem;
  background: linear-gradient(120deg, var(--violet-2), var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: 0.88rem; color: var(--muted); font-weight: 500; }

/* ============ SECTIONS ============ */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-eyebrow { font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral); margin-bottom: 10px; }
.section-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -0.015em; margin-bottom: 14px; color: var(--ink); }
.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 42em; margin-bottom: 42px; }

/* cards */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card, .sport-card, .step, .mgmt-card, .col-card, .faq-item {
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5);
}
.feature-card { padding: 26px 24px; transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--violet); }
.feature-icon { font-size: 1.7rem; display: block; margin-bottom: 14px; }
.feature-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; color: var(--ink); }
.feature-card p { color: var(--muted); font-size: 0.94rem; }

.sport-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.sport-card { padding: 30px 24px; text-align: center; transition: transform 0.18s ease, box-shadow 0.2s ease; }
.sport-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.sport-badge { font-size: 2.4rem; display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 14px; }
.sport-badge svg { width: 46px; height: 46px; }
.sport-card h3 { font-family: var(--font-display); font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.sport-card p { color: var(--muted); font-size: 0.95rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { padding: 30px 24px; position: relative; }
.step-num { position: absolute; top: -16px; left: 22px; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px; font-family: var(--font-display); font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #4530b2, #7b5cff); box-shadow: 0 8px 20px rgba(108,76,255,0.38); }
.step h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin: 10px 0 8px; color: var(--ink); }
.step p { color: var(--muted); font-size: 0.94rem; }

.mgmt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mgmt-card { padding: 22px 20px; transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.mgmt-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--violet); }
.mgmt-icon { font-size: 1.4rem; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(69, 48, 178, 0.12); border: 1px solid rgba(69, 48, 178, 0.25); margin-bottom: 12px; }
html[data-theme="dark"] .mgmt-icon { background: rgba(139,108,255,0.14); border-color: rgba(139,108,255,0.3); }
.mgmt-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.0rem; margin-bottom: 6px; color: var(--ink); }
.mgmt-card p { color: var(--muted); font-size: 0.9rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.col-card { padding: 32px 28px; display: flex; flex-direction: column; gap: 18px; }
.col-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; display: flex; align-items: center; gap: 10px; color: var(--ink); }
.col-icon { font-size: 1.5rem; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
.check-list li { position: relative; padding-left: 30px; color: var(--ink); font-size: 0.98rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(69,48,178,0.14); border: 1px solid rgba(69,48,178,0.35); color: var(--violet); border-radius: 6px; font-size: 0.78rem; font-weight: 700; }
.col-card .btn { align-self: flex-start; }
.col-player { border-color: rgba(232, 96, 80, 0.4); box-shadow: 0 0 0 1px rgba(232,96,80,0.08); }

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { padding: 4px 20px; }
.faq-item summary { cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; padding: 16px 0; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; font-weight: 500; color: var(--violet); transition: transform 0.18s ease; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); font-size: 0.95rem; padding-bottom: 16px; }

/* ============ CTA BAND (rich purple in both themes) ============ */
.cta-band { padding: 84px 0; text-align: center;
  background: radial-gradient(60% 120% at 50% 0%, rgba(108,76,255,0.35), transparent 60%),
              linear-gradient(120deg, #1a1440, #2a1c66 55%, #4a1f3e); border-top: 1px solid var(--line); }
.cta-inner h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: #fff; margin-bottom: 12px; }
.cta-inner p { color: rgba(255,255,255,0.82); font-size: 1.08rem; margin-bottom: 28px; }

/* ============ FOOTER ============ */
.site-footer { background: var(--footer-bg); padding: 56px 0 0; border-top: 1px solid var(--footer-line); color: var(--footer-ink); transition: background-color 0.3s ease; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; }
.footer-logo { margin-bottom: 14px; width: 120px; height: auto; }
.footer-brand p { font-size: 0.92rem; max-width: 24em; color: var(--footer-muted); }
.footer-col h4 { font-family: var(--font-display); font-weight: 700; color: var(--footer-ink); font-size: 1rem; margin-bottom: 16px; }
.footer-col { display: flex; flex-direction: column; gap: 13px; }
.footer-col a { color: var(--footer-muted); font-size: 0.98rem; }
.footer-col a:hover { color: var(--footer-ink); }
.footer-bottom { border-top: 1px solid var(--footer-line); padding: 20px; font-size: 0.92rem; color: var(--footer-muted); }

/* ============ BACK TO TOP ============ */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 95;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; line-height: 1;
  color: var(--ink);
  background: var(--card-bg); border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, border-color 0.2s ease, color 0.2s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--violet); color: var(--violet); transform: translateY(-2px); }
@media (max-width: 480px) { .to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; font-size: 1.2rem; } }

/* ============ SCROLL REVEAL (only hidden when JS is active) ============ */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2,0.8,0.25,1); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .mgmt-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .header-actions .btn-ghost { display: none; }
  .header-signup { display: none; }
  .header-signup .cta-text { display: none; }
  .header-signup .cta-icon { display: inline-flex; align-items: center; justify-content: center; gap: 1px; }
  .header-signup .cta-plus { font-size: 1.05rem; line-height: 1; }
  .header-signup .cta-person { font-size: 1.2rem; line-height: 1; }
  .main-nav { position: fixed; top: 64px; left: 0; right: 0; background: var(--bg); flex-direction: column; align-items: stretch; gap: 0; padding: 0 20px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(24,18,60,0.14); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity 0.18s ease, transform 0.18s ease; }
  html[data-theme="dark"] .main-nav { background: #0f0e1c; box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.02rem; color: var(--ink); }
  .main-nav a::after { display: none; }
  .main-nav .nav-signin { display: block; color: var(--violet); font-weight: 600; }
  .main-nav .nav-create { display: block; margin-top: 12px; padding: 13px 4px; border-bottom: 0; border-radius: 12px; text-align: center;
    color: #fff; font-weight: 600; background: linear-gradient(135deg, #4530b2, #7b5cff); }
  :root { --ring: 350px; --orbit-r: 127px; }
  .hero-core { margin-top: 20px; }
  .sport-orb { width: 60px; height: 60px; font-size: 1.6rem; border-radius: 18px; }
  .sport-orb svg { width: 34px; height: 34px; }
  .hero-logo { width: 104px; }
}
@media (max-width: 720px) {
  .hero { padding: 96px 18px 84px; }
  :root { --ring: 308px; --orbit-r: 110px; }
  .sport-orb { width: 52px; height: 52px; font-size: 1.35rem; border-radius: 16px; }
  .sport-orb svg { width: 28px; height: 28px; }
  .sport-name { font-size: 0.72rem; }
  .hero-logo { width: 88px; }
  .hero-core { margin-top: 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .section { padding: 60px 0; }
  .feature-grid, .mgmt-grid, .sport-grid { grid-template-columns: 1fr; }
  .steps, .two-col, .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .scroll-cue { display: none; }
}
@media (max-width: 480px) {
  .hero-cta .btn { width: 100%; }
  :root { --ring: 300px; --orbit-r: 106px; }
  .hero-logo { width: 80px; }
}

/* short desktop viewports: shrink the ring so the Start CTA stays above the fold */
@media (min-width: 821px) and (max-height: 860px) {
  :root { --ring: 384px; --orbit-r: 154px; }
  .hero { padding: 62px 20px 32px; }
  .hero-logo { width: 100px; }
  .hero-title { margin-bottom: 6px; }
  .hero-sub { margin-bottom: 12px; }
  .hero-cta { margin-bottom: 8px; }
  .hero-note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
}
