/* =========================================================
   POLAROIDX CINEMA — Design system
   Palette : BLACK · WHITE · TURQUOISE (#2DD4BF)
   Aesthetic: WIDGETS in Liquid Glass · BACKGROUND in photoreal cinema
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@500;600;700;800;900&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* ---------- PALETTE ---------- */
  --ink:           #000000;
  --ink-2:         #0A0A0A;
  --ink-3:         #141414;
  --paper:         #FFFFFF;
  --paper-dim:     rgba(255, 255, 255, 0.72);
  --paper-mut:     rgba(255, 255, 255, 0.48);
  --paper-faint:   rgba(255, 255, 255, 0.18);
  --turquoise:     #2DD4BF;
  --turquoise-2:   #14B8A6;
  --turquoise-glow: rgba(45, 212, 191, 0.55);
  --turquoise-soft: rgba(45, 212, 191, 0.14);
  --line:          rgba(255, 255, 255, 0.10);
  --line-2:        rgba(255, 255, 255, 0.20);

  /* ---------- LIQUID GLASS TOKENS ---------- */
  --glass-bg:           rgba(255, 255, 255, 0.06);
  --glass-bg-strong:    rgba(255, 255, 255, 0.10);
  --glass-bg-deeper:    rgba(255, 255, 255, 0.14);
  --glass-border:       rgba(255, 255, 255, 0.16);
  --glass-border-bright: rgba(255, 255, 255, 0.32);
  --glass-highlight:    rgba(255, 255, 255, 0.22);    /* inner top edge */
  --glass-shade:        rgba(0, 0, 0, 0.18);          /* inner bottom edge */
  --glass-blur:         24px;
  --glass-blur-strong:  44px;
  --glass-radius:       18px;
  --glass-radius-lg:    28px;
  --glass-radius-pill:  999px;

  /* ---------- TYPE ---------- */
  --font-display: 'Inter Tight', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* ---------- MOTION ---------- */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-fluid:  cubic-bezier(0.65, 0.05, 0.36, 1);

  /* ---------- LAYOUT ---------- */
  --pad-x: clamp(20px, 4vw, 56px);
  --pad-y: clamp(20px, 3vw, 40px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-y: hidden;       /* full-viewport states; no page scroll on lobby */
}
body.allow-scroll { overflow-y: auto; }

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--turquoise); color: var(--ink); }

/* =========================================================
   LIQUID GLASS UTILITY
   Apply .glass to any container to give it the iOS-26 / Apple-style
   translucent feel — top-edge inner highlight + bottom-edge shade
   + backdrop blur + saturation boost.
   ========================================================= */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    inset 0 -1px 0 var(--glass-shade),
    0 8px 32px rgba(0, 0, 0, 0.28);
  position: relative;
  isolation: isolate;
}
.glass--strong {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur-strong)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur-strong)) saturate(180%);
  border-color: var(--glass-border-bright);
}
/* Specular edge sheen — a faint diagonal highlight across the top of the glass */
.glass--sheen::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.10) 18%,
    transparent 38%,
    transparent 100%
  );
  mix-blend-mode: overlay;
  opacity: 0.7;
}

/* =========================================================
   TYPE
   ========================================================= */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.045em;
  line-height: 0.85;
  font-size: clamp(56px, 12vw, 220px);
  color: var(--paper);
}

.h1 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: 0.92;
  font-size: clamp(40px, 6vw, 96px);
}

.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 1;
  font-size: clamp(28px, 3.4vw, 52px);
}

.lead {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.55;
  color: var(--paper-dim);
  max-width: 56ch;
}

.eyebrow, .mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-mut);
}
.mono--bright { color: var(--paper); }
.mono--turquoise { color: var(--turquoise); }

/* =========================================================
   GLASS PILL BUTTON
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius-pill);
  cursor: pointer;
  transition:
    background 320ms var(--ease-out),
    border-color 320ms var(--ease-out),
    color 320ms var(--ease-out),
    transform 280ms var(--ease-out),
    box-shadow 400ms var(--ease-out);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    inset 0 -1px 0 var(--glass-shade),
    0 4px 18px rgba(0, 0, 0, 0.28);
  white-space: nowrap;
  position: relative;
  isolation: isolate;
}
.btn:hover {
  background: var(--glass-bg-strong);
  border-color: var(--turquoise);
  color: var(--turquoise);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 0 0 1px var(--turquoise-glow),
    0 0 24px var(--turquoise-glow),
    0 6px 24px rgba(0, 0, 0, 0.35);
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--turquoise); outline-offset: 4px; }
.btn .arrow { transition: transform 320ms var(--ease-fluid); }
.btn:hover .arrow { transform: translate(2px, -2px); }

/* =========================================================
   ACCESSIBILITY / MOTION
   ========================================================= */
:focus-visible {
  outline: 2px solid var(--turquoise);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
