/* ==========================================================================
   iWave Games – Base Reset (Preflight) & Clean Logo-Derived Design System
   Palette: Crisp White, Wave Blue (#0072CE), Crown Gold (#F5A623), Charcoal (#181E25)
   ========================================================================== */

/* 1. Base Preflight Reset (Loaded BEFORE component & utility rules) */
*,::before,::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1}
html{line-height:1.5;-webkit-text-size-adjust:100%;tab-size:4}
body{margin:0;line-height:inherit}
hr{height:0;color:inherit;border-top-width:1px}
h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}
a{color:inherit;text-decoration:inherit}
b,strong{font-weight:bolder}
code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:1em}
small{font-size:80%}
table{text-indent:0;border-color:inherit;border-collapse:collapse}
button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}
button,select{text-transform:none}
button,[type='button'],[type='reset'],[type='submit']{-webkit-appearance:button;background-color:transparent;background-image:none}
summary{display:list-item}
blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}
fieldset{margin:0;padding:0}
legend{padding:0}
ol,ul,menu{list-style:none;margin:0;padding:0}
textarea{resize:vertical}
input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}
button,[role="button"]{cursor:pointer}
:disabled{cursor:default}
img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}
img,video{max-width:100%;height:auto}
[hidden]{display:none}
summary::-webkit-details-marker{display:none}

/* 2. Brand Tokens & Base Document Surface */
:root {
  --brand-white: #FFFFFF;
  --surface-soft: #F7FAFC;
  --surface-tint-blue: #EFF6FF;
  --surface-tint-gold: #FFFBEB;

  --brand-blue: #0072CE;
  --brand-blue-dark: #00529B;
  --brand-sky: #0EA5E9;

  --brand-gold: #F5A623;
  --brand-gold-dark: #D9820B;

  --text-primary: #181E25;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --border-light: #E2E8F0;

  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--brand-white);
  color: var(--text-primary);
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--brand-white);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

/* Font family only — inherits text color cleanly so .text-white / .text-wave-blue always work */
h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
}

/* Accessible Skip-to-Content Link */
.skip-link {
  position: fixed;
  top: -120px;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1.1rem;
  border-radius: 0.65rem;
  background-color: var(--brand-blue);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 114, 206, 0.3);
  transition: top 0.2s ease;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.85rem;
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
}

/* Subtle Brand Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-blue);
}

/* Sticky Clean Header */
.site-nav {
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.site-nav-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.07);
}

/* Logo-Inspired Subtle Wave Accent Hero Backdrop */
.hero-wave-surface {
  position: relative;
  background:
    radial-gradient(ellipse 65% 55% at 10% 100%, rgba(14, 165, 233, 0.10) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 92% 95%, rgba(245, 166, 35, 0.12) 0%, transparent 65%),
    linear-gradient(180deg, #FFFFFF 0%, #F8FBFF 100%);
}

/* Logo Gradient Hairline Accent Bar */
.logo-accent-bar {
  height: 3px;
  background: linear-gradient(90deg, #0072CE 0%, #0EA5E9 45%, #F5A623 100%);
}

/* Crisp Elevated Cards */
.simple-card {
  background-color: var(--brand-white);
  border: 1px solid #DBE4EE;
  border-radius: 18px;
  box-shadow: 0 6px 18px -4px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.simple-card:hover {
  border-color: #93C5FD;
  box-shadow: 0 18px 36px -8px rgba(0, 114, 206, 0.15), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
  transform: translateY(-4px);
}

.simple-card-static {
  background-color: var(--brand-white);
  border: 1px solid #DBE4EE;
  border-radius: 18px;
  box-shadow: 0 6px 18px -4px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
}

/* Clean Buttons */
.btn-base {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: 11px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-base:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--brand-blue);
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(0, 114, 206, 0.24);
}

.btn-primary:hover {
  background-color: var(--brand-blue-dark);
  box-shadow: 0 8px 18px rgba(0, 114, 206, 0.30);
}

.btn-gold {
  background-color: var(--brand-gold);
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(245, 166, 35, 0.28);
}

.btn-gold:hover {
  background-color: var(--brand-gold-dark);
  box-shadow: 0 8px 18px rgba(245, 166, 35, 0.36);
}

.btn-outline {
  background-color: #FFFFFF;
  color: var(--text-primary);
  border: 1px solid #CBD5E1;
}

.btn-outline:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background-color: var(--surface-tint-blue);
}

/* Status Pills */
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background-color: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}

.badge-online {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background-color: #F0F9FF;
  color: #0369A1;
  border: 1px solid #BAE6FD;
}

.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background-color: #FFFBEB;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.badge-blue {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background-color: #EFF6FF;
  color: #0072CE;
  border: 1px solid #BFDBFE;
}

/* Legal Prose Typography (Zero-specificity :where() children so utilities always win) */
.legal-prose :where(h2) {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  scroll-margin-top: 6rem;
}

.legal-prose :where(h3) {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-prose :where(p) {
  color: var(--text-secondary);
  font-size: 0.935rem;
  line-height: 1.75;
  margin-bottom: 0.9rem;
}

.legal-prose :where(ul, ol) {
  color: var(--text-secondary);
  font-size: 0.935rem;
  line-height: 1.75;
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

.legal-prose :where(li) {
  margin-bottom: 0.4rem;
}

.legal-prose a:not(.btn-base) {
  color: var(--brand-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-prose a:not(.btn-base):hover {
  color: var(--brand-blue-dark);
}

/* ==========================================================================
   GPU-Accelerated Parallax Sections & Curated Photo Cards
   Positive z-index layering (0 = bg, 1 = scrim, 10 = content) avoids
   Safari/WebKit negative-z-index compositing glitches.
   ========================================================================== */

.parallax-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.parallax-bg {
  position: absolute;
  top: -26%;
  left: 0;
  width: 100%;
  height: 152%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  pointer-events: none;
  user-select: none;
}

.parallax-scrim-light {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 12% 100%, rgba(0, 114, 206, 0.16) 0%, transparent 65%),
    radial-gradient(ellipse 65% 55% at 90% 95%, rgba(245, 166, 35, 0.18) 0%, transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(248, 251, 255, 0.74) 100%);
}

.parallax-scrim-blue {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(0, 68, 132, 0.78) 0%, rgba(0, 102, 188, 0.68) 55%, rgba(15, 23, 42, 0.76) 100%);
}

.parallax-scrim-soft {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.80) 0%, rgba(247, 250, 252, 0.72) 55%, rgba(239, 246, 255, 0.76) 100%);
}

.photo-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: #F1F5F9;
  border-bottom: 1px solid #EDF2F7;
}

.photo-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.simple-card:hover .photo-card-media img {
  transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .parallax-bg {
    top: 0;
    left: 0;
    height: 100%;
    transform: none !important;
    will-change: auto;
  }
}
