/* Your Volleyball Videos — landing page.
   Same design language as the app: tokens mirror styles.css and the
   Claude Design "Games list" comps. */

:root {
  --bg: #14161c;
  --glow: #1c2029;
  --card: #20242e;
  --card-2: #262b37;
  --line: rgba(255, 255, 255, 0.07);
  --text: #f4f6fb;
  --muted: rgba(226, 232, 244, 0.62);
  --faint: rgba(226, 232, 244, 0.55);
  --blue: #3aa0ff;
  --amber: #ffc44d;
  --green: #34c759;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(120% 46% at 50% 0%, var(--glow) 0%, var(--bg) 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
}

a { color: var(--blue); text-decoration: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* --- shared shells ------------------------------------------------------ */
.nav, .hero, .section, .footer {
  max-width: 1020px;
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 6px 20px rgba(0, 0, 0, 0.28);
}
.card.pad { padding: 22px 22px 24px; }
.card.pad h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; letter-spacing: -0.2px; }
.card.pad p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* --- nav ------------------------------------------------------------------ */
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding-top: 22px; padding-bottom: 10px;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  color: var(--text); font-size: 16px; font-weight: 700; letter-spacing: -0.3px;
}
.brand img { border-radius: 9px; }
.btn-ghost {
  padding: 9px 18px; border-radius: 21px;
  background: rgba(255, 255, 255, 0.055); border: 1px solid var(--line);
  color: var(--text); font-size: 13.5px; font-weight: 600;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn-solid {
  padding: 9px 18px; border-radius: 21px;
  background: linear-gradient(160deg, #3d97f2, #1a63c2);
  color: #fff; font-size: 13.5px; font-weight: 600;
  box-shadow: 0 6px 16px rgba(58, 160, 255, 0.3);
}
.btn-solid:hover { box-shadow: 0 8px 20px rgba(58, 160, 255, 0.4); }

/* --- hero ------------------------------------------------------------------- */
.hero {
  display: flex; align-items: center; gap: 56px;
  padding-top: clamp(40px, 8vh, 88px); padding-bottom: 24px;
}
.hero-copy { flex: 1; min-width: 0; }
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 700; letter-spacing: -1.5px; line-height: 1.06;
}
.lede { color: var(--muted); font-size: clamp(15.5px, 1.4vw, 17.5px); max-width: 460px; margin: 0 0 30px; }

.cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 9px;
  height: 50px; padding: 0 26px; border-radius: 25px;
  background: linear-gradient(160deg, #3d97f2, #1a63c2); color: #fff;
  font-size: 15px; font-weight: 700;
  box-shadow: 0 8px 20px rgba(58, 160, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 11px 26px rgba(58, 160, 255, 0.42); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 9px;
  height: 50px; padding: 0 24px; border-radius: 25px;
  background: rgba(255, 255, 255, 0.06); color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 15px; font-weight: 700;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.24); }
.btn-secondary svg { color: #3aa0ff; }
.cta-note { display: block; color: var(--faint); font-size: 13px; font-weight: 500; margin-top: 14px; }
.closer-row { justify-content: center; margin-top: 4px; }

/* --- phone mockup ------------------------------------------------------------ */
.phone { flex-shrink: 0; position: relative; }
.phone::before {
  content: ""; position: absolute; inset: -12% -18%;
  background: radial-gradient(50% 50% at 50% 46%, rgba(58, 160, 255, 0.13) 0%, transparent 70%);
  pointer-events: none;
}
.screen {
  width: 318px; height: 610px;
  background: radial-gradient(140% 60% at 50% 0%, var(--glow) 0%, var(--bg) 55%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  padding: 0 13px;
  overflow: hidden; position: relative;
}
.app-header { padding: 26px 6px 12px; font-size: 22px; font-weight: 700; letter-spacing: -0.4px; }
.screen .card { margin-bottom: 13px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 13px 14px 8px; }
.card-title { font-size: 14.5px; font-weight: 700; letter-spacing: -0.2px; flex: 1; }
.upload-link {
  font-size: 12px; font-weight: 600; color: var(--blue);
  padding: 4px 10px; border-radius: 16px; background: rgba(58, 160, 255, 0.12);
}
.rows { padding: 2px 7px 6px; }
.vrow { display: flex; align-items: center; gap: 11px; padding: 7px; border-radius: 12px; }

.thumb {
  width: 96px; height: 54px; border-radius: 10px; flex-shrink: 0;
  position: relative; overflow: hidden; background: #0d0f14;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.thumb .frame { position: absolute; inset: 0; }
.frame.court-a { background: linear-gradient(180deg, #4a5d74 0%, #3d4e62 52%, #8a684a 52%, #6a5138 100%); }
.frame.court-b { background: linear-gradient(180deg, #45605c 0%, #38504c 52%, #83654a 52%, #665038 100%); }
.frame.court-c { background: linear-gradient(180deg, #55586e 0%, #44475c 52%, #8f6c4a 52%, #6e5338 100%); }
.thumb .net { position: absolute; left: 10%; right: 10%; top: 44%; height: 2px; background: rgba(255, 255, 255, 0.5); }
.thumb .net::before, .thumb .net::after {
  content: ""; position: absolute; top: -6px; width: 2px; height: 13px;
  background: rgba(255, 255, 255, 0.35);
}
.thumb .net::before { left: 0; } .thumb .net::after { right: 0; }
.thumb.dim .frame { filter: brightness(0.42) saturate(0.45); }
.thumb .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.05) 55%, rgba(0,0,0,0.42)); }
.pchip {
  position: relative; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(14, 16, 22, 0.55); color: #fff; font-size: 10px;
  display: flex; align-items: center; justify-content: center; padding-left: 2px;
}
.wchip { position: relative; color: var(--amber); font-size: 15px; font-weight: 700; }
.spin { display: inline-block; animation: spin 1.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.dur {
  position: absolute; right: 4px; bottom: 4px; font-size: 9px; font-weight: 700;
  color: #fff; background: rgba(8, 10, 14, 0.68); padding: 2px 5px; border-radius: 5px;
  font-variant-numeric: tabular-nums;
}
.tprog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.16); }
.tprog span { display: block; height: 100%; background: linear-gradient(90deg, #ffb52e, #ffd06b); }

.vmeta { flex: 1; min-width: 0; }
.vname { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vstatus { font-size: 11.5px; font-weight: 600; margin-top: 3px; display: flex; align-items: center; gap: 5px; }
.vstatus .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.vstatus.ready { color: var(--blue); }
.vstatus.working { color: var(--amber); }

.fab {
  position: absolute; right: 14px; bottom: 18px; height: 44px;
  display: flex; align-items: center; padding: 0 18px; border-radius: 22px;
  background: linear-gradient(160deg, #3dd167, #22b14c); color: #0a2b14;
  font-size: 13.5px; font-weight: 700;
  box-shadow: 0 10px 28px rgba(52, 199, 89, 0.4);
}

/* --- sections ------------------------------------------------------------------- */
.section { padding-top: 64px; }
.section-title { margin: 0 0 22px; font-size: 24px; font-weight: 700; letter-spacing: -0.5px; }

.grid { display: grid; gap: 15px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.stepchip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  font-size: 14px; font-weight: 700; margin-bottom: 14px;
}
.stepchip.blue { color: var(--blue); background: rgba(58, 160, 255, 0.12); }
.stepchip.amber { color: var(--amber); background: rgba(255, 196, 77, 0.12); }
.stepchip.green { color: var(--green); background: rgba(52, 199, 89, 0.12); }

.featicon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 11px; margin-bottom: 14px;
}
.featicon.blue { color: var(--blue); background: rgba(58, 160, 255, 0.12); }
.featicon.amber { color: var(--amber); background: rgba(255, 196, 77, 0.12); }
.featicon.green { color: var(--green); background: rgba(52, 199, 89, 0.12); }
.featicon.court { background: #0d0f14; overflow: hidden; }
.mini-frame {
  display: block; width: 100%; height: 100%; position: relative;
  background: linear-gradient(180deg, #4a5d74 0%, #3d4e62 52%, #8a684a 52%, #6a5138 100%);
}
.mini-net { position: absolute; left: 12%; right: 12%; top: 44%; height: 1.5px; background: rgba(255, 255, 255, 0.55); }

/* --- closer & footer ------------------------------------------------------------------ */
.closer { text-align: center; padding-top: 72px; padding-bottom: 20px; }
.closer h2 {
  margin: 0 0 26px; font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700; letter-spacing: -0.8px;
}

.footer {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  padding-top: 56px; padding-bottom: 30px;
  color: var(--faint); font-size: 13px;
}
.footer-links { display: flex; gap: 20px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }

/* --- responsive -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero { flex-direction: column; gap: 44px; text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  /* brand text + two auth buttons don't fit side by side on small phones */
  .brand span { display: none; }
  /* the headline wraps on its own here; the forced break strands "game," */
  .hero h1 br { display: none; }
}

@media (max-width: 420px) {
  .screen { width: 288px; height: 570px; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .cta-note { width: 100%; text-align: center; }
}

/* --- motion -------------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .btn-primary { transition: none; }
  .spin { animation: none; }
}
