/* ==========================================================================
   HoopingNow — shared site stylesheet
   Design language: dark "night-court", warm orange accent, glass cards with
   0.5px hairline borders + backdrop blur, headings at weight 500 with tight
   negative letter-spacing (never bold).
   Tokens mirror the app palette (lib/theme/hoopa_palette.dart).
   ========================================================================== */

:root {
  /* Brand */
  --orange: #F26414;
  --orange-2: #FF8A3D;
  --orange-fill: rgba(242, 100, 20, 0.14);
  --orange-fill-soft: rgba(242, 100, 20, 0.18);
  --orange-border: rgba(242, 100, 20, 0.45);

  /* Success / confirm */
  --teal: #1D9E75;
  --teal-fill: rgba(29, 158, 117, 0.14);
  --teal-border: rgba(29, 158, 117, 0.42);

  /* Surface + text ramp */
  --surface: #050507;
  --text: #F7F6F4;
  --t85: rgba(255, 255, 255, 0.85);
  --t65: rgba(255, 255, 255, 0.65);
  --t55: rgba(255, 255, 255, 0.55);
  --t45: rgba(255, 255, 255, 0.45);
  --t40: rgba(255, 255, 255, 0.40);
  --t30: rgba(255, 255, 255, 0.30);

  /* Glass surfaces */
  --card-bg: rgba(255, 255, 255, 0.045);
  --card-border: rgba(255, 255, 255, 0.10);
  --pill-bg: rgba(255, 255, 255, 0.06);
  --pill-border: rgba(255, 255, 255, 0.12);
  --field-bg: rgba(255, 255, 255, 0.05);
  --field-border: rgba(255, 255, 255, 0.12);
  --hairline: rgba(255, 255, 255, 0.09);

  /* Type + geometry */
  --font: "Satoshi", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-btn: 14px;
  --r-card: 20px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--surface); color: var(--text); line-height: 1.5; overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.03em; line-height: 1.06; }

/* Links never fall back to browser blue. */
a { color: var(--orange); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--orange-2); }

/* Visible focus ring on every interactive control. */
:focus-visible { outline: none; border-color: var(--orange-border); box-shadow: 0 0 0 3px var(--orange-fill-soft); border-radius: 6px; }

/* ---------- Layout ---------- */
.atmosphere { position: fixed; inset: 0; z-index: -2; pointer-events: none; background: radial-gradient(1200px 620px at 50% -16%, rgba(242, 100, 20, 0.20), transparent 60%), radial-gradient(1000px 700px at 88% -8%, rgba(242, 100, 20, 0.12), transparent 55%), radial-gradient(800px 600px at 6% 4%, rgba(242, 100, 20, 0.08), transparent 55%), var(--surface); }
.shell { position: relative; z-index: 1; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(22px, 5vw, 48px); }

/* ---------- Nav — the landing page's floating glass pill, verbatim ---------- */
.top-fade { position: fixed; top: 0; left: 0; right: 0; height: clamp(110px, 17vw, 150px); z-index: 150; pointer-events: none; -webkit-backdrop-filter: blur(13px); backdrop-filter: blur(13px); -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 40%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0, #000 40%, transparent 100%); background: linear-gradient(to bottom, rgba(5, 5, 7, 0.82) 0, rgba(5, 5, 7, 0.42) 46%, rgba(5, 5, 7, 0) 100%); }
.nav { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 200; width: min(var(--maxw), calc(100% - 32px)); display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 12px 10px 20px; border-radius: 18px; background: rgba(18, 18, 22, 0.5); -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%); border: 1px solid rgba(255, 255, 255, 0.055); box-shadow: 0 14px 44px -24px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.06); transition: background 0.4s var(--ease), border-color 0.4s var(--ease); }
.nav.scrolled { background: rgba(12, 12, 15, 0.72); border-color: rgba(255, 255, 255, 0.10); }
.brand { display: flex; align-items: center; }
.brand-logo { height: 34px; width: auto; }

.store-row { display: flex; gap: 12px; flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: 11px; padding: 10px 18px 10px 15px; border-radius: 14px; background: rgba(255, 255, 255, 0.055); border: 1px solid rgba(255, 255, 255, 0.10); color: var(--text); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s; }
.store:hover { background: rgba(255, 255, 255, 0.11); border-color: rgba(255, 255, 255, 0.22); transform: translateY(-2px); color: var(--text); }
.store:active { transform: scale(0.97); }
.store svg { flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.04; }
.store small { font-size: 9.5px; letter-spacing: 0.05em; color: var(--t55); text-transform: uppercase; font-weight: 600; }
.store b { font-size: 15.5px; font-weight: 700; }
.store-row.sm .store { padding: 8px 14px 8px 12px; border-radius: 12px; }
.store-row.sm .store b { font-size: 14px; }

.burger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, 0.10); border-radius: 12px; background: rgba(255, 255, 255, 0.05); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: pointer; flex: none; padding: 0; }
.burger span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s ease, opacity 0.2s ease; }
.nav.open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .burger span:nth-child(2) { opacity: 0; }
.nav.open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border: 0.5px solid transparent; border-radius: var(--r-btn); font-family: var(--font); font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em; cursor: pointer; transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: linear-gradient(100deg, var(--orange-2), var(--orange) 65%); color: #fff; box-shadow: 0 10px 30px -14px rgba(242, 100, 20, 0.85); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 38px -14px rgba(242, 100, 20, 0.95); }
.btn i { font-size: 17px; }

/* ---------- Footer ---------- */
.footer { margin-top: 110px; border-top: 0.5px solid var(--hairline); padding: 54px 0 30px; }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 340px; }
.footer-brand p { color: var(--t45); font-size: 14px; line-height: 1.6; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; background: var(--pill-bg); border: 0.5px solid var(--pill-border); color: var(--t65); font-size: 18px; transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease); }
.footer-socials a:hover { color: var(--orange); background: var(--orange-fill); transform: translateY(-2px); }
.footer-socials svg { width: 18px; height: 18px; flex: none; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-size: 12px; font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; color: var(--t45); }
.footer-col a { color: var(--t65); font-size: 14.5px; }
.footer-col a:hover { color: var(--orange-2); }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 46px; padding-top: 22px; border-top: 0.5px solid var(--hairline); color: var(--t40); font-size: 13px; }

/* ---------- Legal documents (privacy / terms) ---------- */
.legal-wrap { max-width: 820px; margin: 0 auto; padding: 160px 0 0; }
.legal-eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--orange); }
.legal-wrap h1 { margin-top: 14px; font-size: clamp(34px, 4.4vw, 52px); }
.legal-lede { margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--t55); max-width: 60ch; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.legal-meta span { display: inline-flex; align-items: center; padding: 7px 13px; border-radius: 999px; background: var(--pill-bg); border: 0.5px solid var(--pill-border); font-size: 12.5px; color: var(--t65); }
.legal { margin-top: 44px; padding-top: 38px; border-top: 0.5px solid var(--hairline); }
.legal h2 { margin-top: 42px; font-size: 24px; letter-spacing: -0.02em; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { margin-top: 28px; font-size: 17px; color: var(--t85); letter-spacing: -0.01em; }
.legal p { margin-top: 14px; font-size: 15.5px; line-height: 1.75; color: var(--t65); }
.legal ul { margin-top: 14px; padding-left: 20px; display: flex; flex-direction: column; gap: 9px; }
.legal li { font-size: 15.5px; line-height: 1.7; color: var(--t65); }
.legal li::marker { color: var(--orange); }
.legal strong { color: var(--t85); font-weight: 500; }
.legal .callout { margin-top: 18px; padding: 18px 20px; border-radius: var(--r-card); background: var(--orange-fill); border: 0.5px solid var(--orange-border); }
.legal .callout p { margin-top: 0; color: var(--t85); }
.legal-foot { margin-top: 48px; padding-top: 22px; border-top: 0.5px solid var(--hairline); font-size: 13.5px; color: var(--t45); }

@media (max-width: 560px) {
  .legal-wrap { padding-top: 130px; }
  .legal h2 { font-size: 21px; }
}

/* ---------- Reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 80ms; }

@media (max-width: 900px) {
  .footer-top { flex-direction: column; gap: 40px; }
}

@media (max-width: 560px) {
  .nav .store-row .store small { display: none; }
  .nav .store-row .store { padding: 9px 12px; gap: 7px; }
}

@media (max-width: 640px) {
  .burger { display: flex; }
  .nav { padding: 9px 12px; }
  .nav > .store-row.sm { position: absolute; top: calc(100% + 12px); left: 0; right: 0; width: 100%; flex-direction: column; align-items: stretch; gap: 10px; margin: 0; display: none; background: rgba(12, 12, 15, 0.94); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); border: 1px solid rgba(255, 255, 255, 0.10); border-radius: 16px; padding: 12px; box-shadow: 0 26px 54px -22px rgba(0, 0, 0, 0.75); }
  .nav.open > .store-row.sm { display: flex; }
  .nav > .store-row.sm .store { width: 100%; justify-content: center; padding: 14px; border-radius: 13px; }
  .nav > .store-row.sm .store small { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .footer-socials a { transition: none; }
  .btn:active, .btn-primary:hover, .footer-socials a:hover { transform: none; }
}
