/* ============================================================================
   PlayUGC 2026 Design System — "Tactile Shipped-Game Studio"
   Shared across playugc.com (/ , /live/ , /studio-services/ , /research/ , bundles)
   ============================================================================ */

@font-face {
  font-family: 'Caveat';
  src: url('/black-friday/assets/fonts/caveat-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  /* Deep Studio Ink (Dark Showcase Bands) */
  --ink-bg: #09111c;
  --ink-bg-2: #0d1828;
  --ink-surface: #122034;
  --ink-surface-2: #172942;
  --ink-border: rgba(148, 163, 184, 0.17);
  --ink-border-strong: rgba(148, 163, 184, 0.32);
  --ink-text: #f4f7fc;
  --ink-body: #d3dfec;
  --ink-muted: #98abc2;

  /* Warm Studio Paper (Light Authority, Consulting & Telemetry Bands) */
  --paper-bg: #f7f5f0;
  --paper-surface: #ffffff;
  --paper-surface-2: #efece4;
  --paper-border: #e3ddd0;
  --paper-border-strong: #cfc7b6;
  --paper-text: #11161f;
  --paper-body: #2d3748;
  --paper-muted: #5b6678;

  /* Tactile Accents & Semantic Colors */
  --yellow: #ffd43b;
  --yellow-hover: #ffc414;
  --yellow-ink: #121212;
  --indigo: #4f46e5;
  --indigo-soft: #818cf8;
  --green: #16a34a;
  --green-bright: #4ade80;
  --amber: #d97706;
  --red: #dc2626;
  --red-bright: #ff6b57;

  /* Platform Visual Language */
  --plat-roblox: #1d6ff2;
  --plat-roblox-bg: rgba(29, 111, 242, 0.11);
  --plat-roblox-border: rgba(29, 111, 242, 0.34);

  --plat-fortnite: #7c3aed;
  --plat-fortnite-bg: rgba(124, 58, 237, 0.11);
  --plat-fortnite-border: rgba(124, 58, 237, 0.34);

  --plat-unreal: #0f172a;
  --plat-unreal-bg: rgba(15, 23, 42, 0.08);
  --plat-unreal-border: rgba(15, 23, 42, 0.24);

  /* Typography & Layout */
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-hand: 'Caveat', 'Bradley Hand', cursive;
  --wrap: 1180px;
  --gutter: 22px;
  --nav-h: 64px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow-dark: 0 24px 56px -18px rgba(0, 0, 0, 0.65);
  --shadow-light: 0 12px 32px -12px rgba(17, 22, 31, 0.1), 0 2px 6px rgba(17, 22, 31, 0.04);
  --shadow-light-lg: 0 22px 48px -16px rgba(17, 22, 31, 0.14), 0 4px 12px rgba(17, 22, 31, 0.05);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.6;
  background: var(--ink-bg);
  color: var(--ink-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.theme-paper {
  background: var(--paper-bg);
  color: var(--paper-text);
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 1.08;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
.tnum { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.wrap { width: min(var(--wrap), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.wrap-narrow { width: min(760px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 200;
  background: var(--yellow); color: var(--yellow-ink);
  padding: 10px 16px; border-radius: 8px; font-weight: 800;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2.5px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
body.theme-paper :focus-visible, .band-paper :focus-visible { outline-color: var(--indigo); }

/* ============================================================================
   Band Rhythm (Deep Studio Ink <-> Warm Studio Paper)
   ============================================================================ */
.band { padding: clamp(56px, 7vw, 96px) 0; position: relative; }
.band-ink {
  background: var(--ink-bg);
  color: var(--ink-text);
}
.band-ink-alt {
  background: linear-gradient(180deg, #0d192b 0%, #09111c 100%);
  color: var(--ink-text);
  border-top: 1px solid var(--ink-border);
}
.band-paper {
  background: var(--paper-bg);
  color: var(--paper-text);
  border-top: 1px solid var(--paper-border);
  border-bottom: 1px solid var(--paper-border);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 14px;
}
.band-ink .eyebrow, .band-ink-alt .eyebrow { color: var(--yellow); }
.band-paper .eyebrow, body.theme-paper .eyebrow { color: var(--indigo); }

.sec-h2 { font-size: clamp(30px, 4.4vw, 50px); letter-spacing: -0.042em; line-height: 1.06; }
.sec-sub {
  margin-top: 14px;
  font-size: clamp(16.5px, 1.7vw, 19.5px);
  line-height: 1.58;
  max-width: 60ch;
}
.band-ink .sec-sub, .band-ink-alt .sec-sub { color: var(--ink-muted); }
.band-paper .sec-sub, body.theme-paper .sec-sub { color: var(--paper-muted); }

/* Tactile Highlights & Handwriting (Creator/Bundle & Founder Signature Only) */
.hl {
  background: var(--yellow);
  color: var(--yellow-ink);
  padding: 0.03em 0.24em;
  border-radius: 6px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  font-weight: inherit;
}
.hand {
  font-family: var(--font-hand);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}
.band-ink .hand, .band-ink-alt .hand { color: var(--yellow); }
.band-paper .hand { color: var(--indigo); }
.strike-red {
  color: var(--red-bright);
  text-decoration: line-through;
  text-decoration-thickness: 2.5px;
}

/* ============================================================================
   Unified 64px Sticky Header & Mobile Drawer
   ============================================================================ */
.site-nav {
  position: sticky; top: 0; z-index: 90;
  height: var(--nav-h);
  background: rgba(9, 17, 28, 0.9);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--ink-border);
  color: var(--ink-text);
}
.site-nav.nav-light {
  background: rgba(247, 245, 240, 0.92);
  border-bottom: 1px solid var(--paper-border);
  color: var(--paper-text);
}
.nav-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand-wordmark {
  display: inline-flex; align-items: center; gap: 0;
  font-size: 22px; font-weight: 800; letter-spacing: -0.04em;
  white-space: nowrap;
}
.brand-wordmark .ugc { color: var(--yellow); }
.site-nav.nav-light .brand-wordmark .ugc { color: var(--indigo); }

.nav-center {
  display: none; align-items: center; gap: 6px;
}
.nav-right {
  display: none; align-items: center; gap: 10px;
}
.nav-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 9px;
  font-size: 14.5px; font-weight: 650;
  color: var(--ink-body);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
  white-space: nowrap;
}
.nav-link:hover, .nav-link[aria-current="page"] {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.site-nav.nav-light .nav-link { color: var(--paper-body); }
.site-nav.nav-light .nav-link:hover,
.site-nav.nav-light .nav-link[aria-current="page"] {
  background: rgba(17, 22, 31, 0.07);
  color: var(--paper-text);
}

.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.22);
  flex: none;
}
.site-nav.nav-light .live-dot {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

.nav-mobile-actions {
  display: flex; align-items: center; gap: 8px;
}
.nav-live-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 750;
  background: rgba(74, 222, 128, 0.14);
  color: var(--green-bright);
  border: 1px solid rgba(74, 222, 128, 0.34);
}
.site-nav.nav-light .nav-live-pill {
  background: rgba(22, 163, 74, 0.1);
  color: var(--green);
  border-color: rgba(22, 163, 74, 0.32);
}
.nav-burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--ink-border-strong);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}
.site-nav.nav-light .nav-burger {
  border-color: var(--paper-border-strong);
  background: #fff;
}

@media (min-width: 900px) {
  .nav-center, .nav-right { display: flex; }
  .nav-mobile-actions { display: none; }
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 88;
  background: rgba(9, 17, 28, 0.98);
  padding: 24px var(--gutter) 40px;
  display: none; flex-direction: column; gap: 10px;
  overflow-y: auto;
}
.mobile-drawer.open { display: flex; }
.site-nav.nav-light + .mobile-drawer {
  background: rgba(247, 245, 240, 0.99);
  color: var(--paper-text);
}
.mobile-drawer a, .mobile-drawer button.drawer-cta {
  padding: 14px 16px; border-radius: 12px;
  font-size: 17px; font-weight: 700;
  border: 1px solid var(--ink-border);
  background: var(--ink-surface);
  display: flex; align-items: center; justify-content: space-between;
}
.site-nav.nav-light + .mobile-drawer a {
  border-color: var(--paper-border);
  background: #fff;
  color: var(--paper-text);
}

/* ============================================================================
   Buttons (One Loud Creator CTA + One Solid B2B CTA)
   ============================================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px; padding: 13px 22px; max-width: 100%;
  border-radius: 12px; border: 1.5px solid transparent;
  font-size: 16px; font-weight: 800; letter-spacing: -0.015em;
  cursor: pointer; white-space: normal; text-align: center;
  transition: transform 0.14s var(--ease), box-shadow 0.18s var(--ease), background 0.16s var(--ease), border-color 0.16s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }

.btn-yellow {
  background: var(--yellow); color: var(--yellow-ink);
  box-shadow: 0 12px 28px rgba(255, 212, 59, 0.24), inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}
.btn-yellow:hover {
  background: var(--yellow-hover);
  box-shadow: 0 16px 34px rgba(255, 212, 59, 0.34), inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}

.btn-obsidian {
  background: #11161f; color: #ffffff;
  box-shadow: 0 12px 26px rgba(17, 22, 31, 0.2), inset 0 -3px 0 rgba(0, 0, 0, 0.35);
}
.btn-obsidian:hover { background: #1c2433; }

.btn-indigo {
  background: var(--indigo); color: #ffffff;
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.3), inset 0 -3px 0 rgba(0, 0, 0, 0.22);
}
.btn-indigo:hover { background: #4338ca; }

.btn-outline-dark {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--ink-border-strong);
  color: var(--ink-text);
}
.btn-outline-dark:hover { border-color: var(--yellow); background: rgba(255, 212, 59, 0.08); }

.btn-outline-light {
  background: #ffffff;
  border-color: var(--paper-border-strong);
  color: var(--paper-text);
}
.btn-outline-light:hover { border-color: #11161f; background: #faf8f4; }

.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; border-radius: 10px; }
.btn-lg { min-height: 58px; padding: 15px 28px; font-size: 17px; }
.btn-block { width: 100%; }

/* ============================================================================
   Platform Badges (Unmistakable Roblox / Fortnite / Unreal Engine 5)
   ============================================================================ */
.plat-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  line-height: 1.2; white-space: nowrap;
}
.plat-badge svg { width: 13px; height: 13px; flex: none; }

.plat-roblox {
  background: var(--plat-roblox-bg);
  color: #175cd3;
  border: 1px solid var(--plat-roblox-border);
}
.band-ink .plat-roblox, .band-ink-alt .plat-roblox {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.45);
}

.plat-fortnite {
  background: var(--plat-fortnite-bg);
  color: #6d28d9;
  border: 1px solid var(--plat-fortnite-border);
}
.band-ink .plat-fortnite, .band-ink-alt .plat-fortnite {
  background: rgba(139, 92, 246, 0.2);
  color: #ddd6fe;
  border-color: rgba(139, 92, 246, 0.48);
}

.plat-unreal {
  background: var(--plat-unreal-bg);
  color: #1e293b;
  border: 1px solid var(--plat-unreal-border);
}
.band-ink .plat-unreal, .band-ink-alt .plat-unreal {
  background: rgba(148, 163, 184, 0.16);
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.4);
}

/* Status Pills */
.status-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
}
.status-live {
  background: rgba(22, 163, 74, 0.12); color: #15803d;
  border: 1px solid rgba(22, 163, 74, 0.34);
}
.band-ink .status-live, .band-ink-alt .status-live {
  background: rgba(74, 222, 128, 0.14); color: #86efac;
  border-color: rgba(74, 222, 128, 0.38);
}
.status-ready {
  background: rgba(217, 119, 6, 0.12); color: #b45309;
  border: 1px solid rgba(217, 119, 6, 0.34);
}
.band-ink .status-ready, .band-ink-alt .status-ready {
  background: rgba(251, 191, 36, 0.14); color: #fde68a;
  border-color: rgba(251, 191, 36, 0.38);
}

/* ============================================================================
   Stars, Avatars & Video Cards
   ============================================================================ */
.stars { display: inline-flex; gap: 2px; color: var(--yellow); }
.stars svg { width: 17px; height: 17px; }
.band-paper .stars { color: #f59e0b; }

.vid-card {
  position: relative; overflow: hidden; border-radius: var(--r-md);
  background: #070e18; cursor: pointer;
}
.vid-card video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.25s ease;
}
.vid-card.is-playing video { opacity: 1; }
.vid-play-btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(9, 17, 28, 0.78); border: 2px solid rgba(255, 255, 255, 0.85);
  display: grid; place-items: center; cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.15s ease;
}
.vid-play-btn::after {
  content: ''; width: 0; height: 0; margin-left: 4px;
  border-left: 15px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent;
}
.vid-card:hover .vid-play-btn { transform: translate(-50%, -50%) scale(1.08); background: var(--yellow); border-color: var(--yellow); }
.vid-card:hover .vid-play-btn::after { border-left-color: var(--yellow-ink); }
.vid-card.is-playing .vid-play-btn { opacity: 0; pointer-events: none; }

/* ============================================================================
   2-Path Smart Qualifier Modal (Consulting Call vs Self-Serve Bundles)
   ============================================================================ */
.pmodal-backdrop {
  position: fixed; inset: 0; z-index: 140;
  background: rgba(6, 11, 19, 0.8);
  backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.pmodal-backdrop.open { display: flex; }
.pmodal {
  width: min(640px, 100%);
  max-height: 90vh; overflow-y: auto;
  background: #ffffff; color: var(--paper-text);
  border-radius: 22px; padding: 28px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
  position: relative;
}
.pmodal-close {
  position: absolute; right: 18px; top: 18px;
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--paper-border); background: var(--paper-bg);
  font-size: 20px; font-weight: 700; cursor: pointer;
  display: grid; place-items: center;
}
.pmodal-close:hover { background: var(--paper-surface-2); }
.pmodal h3 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 8px; padding-right: 40px; }
.pmodal-sub { color: var(--paper-muted); font-size: 15.5px; margin-bottom: 22px; }
.pmodal-doors { display: grid; gap: 14px; }
.pmodal-door {
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px; border-radius: 16px;
  border: 1.5px solid var(--paper-border); background: var(--paper-bg);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.pmodal-door:hover {
  border-color: var(--indigo); background: #fff;
  transform: translateY(-2px); box-shadow: var(--shadow-light);
}
.pmodal-door strong { font-size: 18px; color: var(--paper-text); }
.pmodal-door span { font-size: 14.5px; color: var(--paper-muted); line-height: 1.5; }
.pmodal-door .door-action {
  margin-top: 6px; font-weight: 800; font-size: 14.5px; color: var(--indigo);
}

/* ============================================================================
   Unified Site Footer
   ============================================================================ */
.site-footer {
  background: #060c14;
  color: var(--ink-muted);
  border-top: 1px solid var(--ink-border);
  padding: 48px 0 42px;
  font-size: 14px;
}
.footer-grid {
  display: grid; gap: 28px;
  grid-template-columns: 1.4fr repeat(3, minmax(140px, 1fr));
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-col h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-text); margin-bottom: 12px; font-weight: 800;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a:hover { color: var(--yellow); }
.footer-bottom {
  margin-top: 34px; padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 12.5px; color: #7e92aa;
}
