/* ═══════════════════════════════════════════════════════
   SCOREBLOX — Shared design system
   ═══════════════════════════════════════════════════════ */
:root {
  --bg: oklch(7% 0.012 295);
  --bg2: oklch(10% 0.018 295);
  --bg3: oklch(13% 0.024 295);
  --border: oklch(23% 0.035 295);
  --border2: oklch(30% 0.05 295);
  --text: oklch(97% 0.005 295);
  --text2: oklch(72% 0.012 295);
  --text3: oklch(63% 0.014 295);
  --accent: oklch(58% 0.25 300);
  --accent2: oklch(70% 0.2 300);
  --accent3: oklch(80% 0.14 300);
  --pink: oklch(70% 0.2 350);
  --blue: oklch(72% 0.16 245);
  --orange: oklch(74% 0.17 45);
  --green: oklch(72% 0.19 150);
  --accent-dim: oklch(58% 0.25 300 / 0.16);
  --accent-glow: oklch(58% 0.25 300 / 0.45);
  --radius: 18px;
  --radius-sm: 11px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }

/* grain overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: 0.5;
}

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.025em; line-height: 1.12; font-weight: 700; }
a { color: inherit; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--accent2); }
.gradient-text {
  background: linear-gradient(110deg, var(--accent3) 0%, var(--pink) 55%, var(--accent2) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ── TAG ── */
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent2); background: var(--accent-dim);
  border: 1px solid oklch(58% 0.25 300 / 0.3);
  padding: 5px 13px; border-radius: 100px;
}
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent2); box-shadow: 0 0 8px var(--accent2); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 11px;
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-ghost { color: var(--text2); background: transparent; border: 1px solid var(--border2); }
.btn-ghost:hover { color: var(--text); background: var(--bg3); transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 0 22px var(--accent-glow); }
.btn-primary:hover { background: var(--accent2); box-shadow: 0 0 36px var(--accent-glow); transform: translateY(-2px); }
.btn-lg { padding: 15px 30px; font-size: 15px; border-radius: 13px; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0; transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: oklch(7% 0.012 295 / 0.82);
  backdrop-filter: blur(22px) saturate(180%);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.03em; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(150deg, var(--accent2), var(--accent));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px oklch(58% 0.25 300 / 0.4);
}
.logo-img { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 4px 12px oklch(58% 0.25 300 / 0.45)); }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { color: var(--text2); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* dropdown */
.nav-dd { position: relative; }
.nav-dd-trigger { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.nav-dd-trigger svg { transition: transform 0.25s; }
.nav-dd:hover .nav-dd-trigger svg { transform: rotate(180deg); }
.nav-dd-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--bg2); border: 1px solid var(--border); border-radius: 14px;
  padding: 8px; width: 280px; opacity: 0; visibility: hidden;
  transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0.2s;
  box-shadow: 0 24px 50px oklch(0 0 0 / 0.5); z-index: 50;
}
.nav-dd::after { content:''; position:absolute; top:100%; left:0; right:0; height:18px; }
.nav-dd:hover .nav-dd-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dd-item { display: flex; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 10px; text-decoration: none; transition: background 0.18s; }
.nav-dd-item:hover { background: var(--bg3); }
.nav-dd-ico { width: 38px; height: 38px; border-radius: 9px; background: var(--accent-dim); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px; }
.nav-dd-item strong { font-family: var(--font-display); font-size: 14px; font-weight: 600; display: block; color: var(--text); }
.nav-dd-item span { font-size: 12px; color: var(--text3); }

/* ── SECTIONS ── */
section { padding: 100px 0; position: relative; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: clamp(32px, 3.6vw, 50px); margin-top: 16px; text-wrap: balance; }
.section-header p { font-size: 17px; color: var(--text2); margin: 18px auto 0; max-width: 580px; text-wrap: pretty; }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.rd-1 { transition-delay: 0.08s; } .rd-2 { transition-delay: 0.16s; } .rd-3 { transition-delay: 0.24s; }
.rd-4 { transition-delay: 0.32s; } .rd-5 { transition-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  * { animation-duration: 0.001ms !important; }
}

/* ── PLATFORM BADGES (store buttons) ── */
.store-row { display: flex; gap: 14px; flex-wrap: wrap; }
.store-btn {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 10px 18px 10px 16px; border-radius: 13px;
  background: var(--bg2); border: 1px solid var(--border2);
  text-decoration: none; transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s;
}
.store-btn:hover { transform: translateY(-2px); border-color: var(--accent2); background: var(--bg3); }
.store-btn svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-btn-txt { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn-txt small { font-size: 10px; color: var(--text3); letter-spacing: 0.04em; }
.store-btn-txt strong { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--text); }

/* ── PLATFORM PILLS ── */
.plat-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.plat-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--text2);
  background: var(--bg2); border: 1px solid var(--border);
  padding: 7px 15px; border-radius: 100px;
}
.plat-pill svg { width: 15px; height: 15px; }

/* ── DEVICE / PHONE GALLERY ── */
.shot {
  border-radius: 28px; overflow: hidden;
  box-shadow: 0 30px 70px -20px oklch(0 0 0 / 0.7), 0 0 0 1px oklch(100% 0 0 / 0.04);
  background: var(--bg2);
}
.shot img { width: 100%; height: auto; }

/* marquee gallery */
.gallery { overflow: hidden; padding: 20px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.gallery-track { display: flex; gap: 28px; width: max-content; animation: scroll-x 60s linear infinite; }
.gallery:hover .gallery-track { animation-play-state: paused; }
.gallery-track .shot { width: 280px; flex-shrink: 0; transition: transform 0.4s var(--ease); }
.gallery-track .shot:hover { transform: translateY(-10px) scale(1.02); }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 14px)); } }

/* ── FOOTER ── */
footer { padding: 70px 0 44px; border-top: 1px solid var(--border); position: relative; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 14px; color: var(--text3); margin-top: 16px; max-width: 270px; line-height: 1.6; }
.footer-col h4, .footer-col .footer-heading { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text3); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col ul a { font-size: 14px; color: var(--text2); text-decoration: none; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text3); flex-wrap: wrap; gap: 12px; }

/* ── BACKGROUND ORBS ── */
.orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; opacity: 0.5; }

/* ── MOBILE NAV ── */
.nav-toggle { display: none; background: none; border: 1px solid var(--border2); border-radius: 9px; width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text); }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }

/* touch-target floor: comfortable tap sizes on touch devices */
@media (hover: none) and (pointer: coarse) {
  .btn { min-height: 44px; }
  .nav-dd-item, .store-btn, .plat-pill, .faq-q, .footer-col ul a { min-height: 44px; }
  .footer-col ul a { display: inline-flex; align-items: center; }
}

/* ── TABLET ── */
@media (max-width: 1024px) {
  :root { --maxw: 960px; }
  section { padding: 84px 0; }
  .nav-links { gap: 22px; }
  .section-header { margin-bottom: 48px; }
  .gallery-track .shot { width: 240px; }
}

@media (max-width: 920px) {
  section { padding: 72px 0; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ── SMALL PHONE ── */
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  section { padding: 56px 0; }
  .nav-cta .btn-ghost { display: none; }
  .store-row { gap: 10px; }
  .store-btn { flex: 1 1 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 18px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .gallery-track { gap: 16px; }
  .gallery-track .shot { width: 190px; }
}
