/* ============================================
   OPAL DRAGONFLY GAMES — Design System
   "Clean Sci-Fi" Visual Identity
   ============================================ */

/* ============================================
   1. CUSTOM PROPERTIES
   ============================================ */
:root {
  /* Backgrounds */
  --bg-primary:     #0a0e17;
  --bg-surface:     #111827;
  --bg-elevated:    #1a2332;
  --bg-subtle:      #243044;

  /* Accents */
  --accent-opal:    #60a5fa;
  --accent-ember:   #818cf8;
  --accent-shimmer: linear-gradient(135deg, #60a5fa, #a5b4fc, #818cf8, #93c5fd);

  /* Text */
  --text-primary:   #eef2ff;
  --text-secondary: #94a3b8;
  --text-muted:     #475569;

  /* Semantic */
  --coming-soon:    #38bdf8;
  --success:        #34d399;

  /* Borders & Glows */
  --border-subtle:  rgba(96, 165, 250, 0.10);
  --border-medium:  rgba(96, 165, 250, 0.20);
  --glow-warm:      rgba(129, 140, 248, 0.15);
  --glow-opal:      rgba(96, 165, 250, 0.15);

  /* Spacing */
  --container-max:     1100px;
  --container-narrow:  720px;
  --section-padding:   6rem;
  --nav-height:        72px;

  /* Typography */
  --font-heading: 'Anybody', 'Arial Black', sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Easing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-base: 0.3s ease;
}


/* ============================================
   2. RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Noise texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

::selection {
  background: rgba(96, 165, 250, 0.3);
  color: var(--text-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-opal);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--accent-ember);
}

ul, ol {
  list-style: none;
}


/* ============================================
   3. TYPOGRAPHY
   ============================================ */
@font-face {
  font-family: 'Anybody';
  src: url('../fonts/Anybody-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 75% 150%;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

.heading-xl {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  font-stretch: 110%;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  font-variation-settings: 'wght' 700, 'wdth' 110;
  transition: font-variation-settings 0.6s var(--ease-out-expo);
}

.heading-xl.in-view {
  font-variation-settings: 'wght' 800, 'wdth' 120;
}

.heading-lg {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  font-stretch: 105%;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.heading-md {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
}

.body-lg {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.body-md {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-opal);
  margin-bottom: 0.75rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-opal), #a5b4fc, var(--accent-ember));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease infinite;
}


/* ============================================
   4. LAYOUT UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.container--narrow {
  max-width: var(--container-narrow);
}

section {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  position: relative;
}

.section-bg-surface {
  background-color: var(--bg-surface);
}


/* ============================================
   5. SKIP LINK (Accessibility)
   ============================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background: var(--accent-ember);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}


/* ============================================
   6. NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background: rgba(10, 14, 23, 0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border-subtle);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav__logo {
  height: 48px;
  width: auto;
  transition: filter 0.3s ease;
}

.nav__logo:hover {
  filter: brightness(1.1);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-base), border-color var(--transition-base);
}

.nav__links a:hover,
.nav__links a.nav-active {
  color: var(--accent-opal);
  border-bottom-color: var(--accent-opal);
}

/* Hamburger toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ============================================
   7. BUTTONS
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--accent-ember);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out-back), box-shadow 0.25s ease, background 0.25s ease;
  text-decoration: none;
}

.btn-primary:hover {
  transform: scale(1.04);
  background: #6d72e0;
  box-shadow: 0 4px 24px var(--glow-warm), 0 0 48px rgba(129, 140, 248, 0.1);
  color: #fff;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-opal);
  background: transparent;
  border: 1.5px solid var(--accent-opal);
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out-back), background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.btn-outline:hover {
  transform: scale(1.04);
  background: rgba(96, 165, 250, 0.08);
  box-shadow: 0 0 24px var(--glow-opal);
  color: var(--accent-opal);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: color var(--transition-base), background var(--transition-base);
  text-decoration: none;
}

.btn-ghost:hover {
  color: var(--accent-opal);
  background: rgba(96, 165, 250, 0.05);
}


/* ============================================
   8. CARDS
   ============================================ */

/* Value Card (About section) */
.value-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-medium);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 40px var(--glow-opal);
}

.value-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  color: var(--accent-opal);
}

.value-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.value-card__desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* Game Card */
.game-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.game-card:hover {
  border-color: var(--border-medium);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4), 0 0 60px var(--glow-opal);
}

.game-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.game-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.game-card__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--text-primary);
}

.game-card__desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Community Card */
.community-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.community-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-medium);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.community-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--accent-opal);
}

.community-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.community-card__desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}


/* ============================================
   9. BADGES & CHIPS
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coming-soon);
}

.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coming-soon);
  animation: blink 2.5s ease-in-out infinite;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.feature {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
}


/* ============================================
   10. FORMS
   ============================================ */
.form-card {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 2.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.form-group:has(:focus) .form-label {
  color: var(--accent-opal);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1.5px solid var(--border-subtle);
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent-opal);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Inline email signup */
.signup-row {
  display: flex;
  gap: 0.75rem;
  max-width: 420px;
}

.signup-row .form-input {
  flex: 1;
  border-radius: 50px;
  padding-left: 1.25rem;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.5rem;
}


/* ============================================
   11. FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0;
  position: relative;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__logo {
  height: 40px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
}

.footer__desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 280px;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__nav a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition-base);
}

.footer__nav a:hover {
  color: var(--accent-opal);
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: color var(--transition-base), border-color var(--transition-base), background var(--transition-base);
}

.footer__social a:hover {
  color: var(--accent-opal);
  border-color: var(--border-medium);
  background: var(--bg-elevated);
}

.footer__social svg {
  width: 20px;
  height: 20px;
}

.footer__copy {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}


/* ============================================
   12. HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

/* Warm ambient glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(ellipse at 50% 40%, rgba(96, 165, 250, 0.10) 0%, rgba(129, 140, 248, 0.05) 30%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 700px;
  padding: 0 2rem;
}

.hero__logo {
  width: 500px;
  height: auto;
  filter: drop-shadow(0 0 60px rgba(96, 165, 250, 0.088)) drop-shadow(0 0 120px rgba(129, 140, 248, 0.053));
  animation: fadeIn 1s ease both;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.042), 0 0 80px rgba(96, 165, 250, 0.028);
}

.hero__title {
  animation: fadeSlideUp 0.8s ease both 0.2s;
}

.hero__tagline {
  max-width: 500px;
  animation: fadeSlideUp 0.8s ease both 0.35s;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  animation: fadeSlideUp 0.8s ease both 0.5s;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2.5s ease-in-out infinite, fadeIn 1s ease both 1s;
  color: var(--text-muted);
  z-index: 1;
}

.hero__scroll svg {
  width: 28px;
  height: 28px;
}


/* ============================================
   13. FEATURED GAME SECTION
   ============================================ */
.featured-game {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: center;
}

.featured-game__card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.featured-game__card img {
  width: 100%;
  display: block;
}

.featured-game__info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.featured-game__info .heading-lg {
  color: var(--accent-opal);
}

.featured-game__actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}


/* ============================================
   14. VALUES GRID
   ============================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}


/* ============================================
   15. COMMUNITY HUB
   ============================================ */
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}


/* ============================================
   16. GAMES CATALOG (games.html)
   ============================================ */
.page-header {
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 2rem;
  text-align: center;
}

.page-header .body-lg {
  max-width: 600px;
  margin: 1rem auto 0;
}

.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.games-grid .game-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  max-width: 720px;
}

.games-grid .game-card__image {
  aspect-ratio: 3 / 4;
  height: 100%;
}

.games-grid .game-card__body {
  justify-content: center;
}

.games-grid .game-card__desc {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
}

/* More Coming Soon teaser */
.teaser {
  text-align: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.teaser .heading-lg {
  margin-bottom: 1rem;
}

.teaser .body-md {
  max-width: 480px;
  margin: 0 auto 1.5rem;
}


/* ============================================
   16b. IDENTITY GRID (What We Do section)
   ============================================ */
.identity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.identity-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.identity-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-medium);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 40px var(--glow-opal);
}

.identity-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  color: var(--accent-opal);
}

.identity-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.identity-card__desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-secondary);
}


/* ============================================
   16c. FILTER TABS (Games page)
   ============================================ */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: none;
  border: 1.5px solid transparent;
  border-radius: 50px;
  cursor: pointer;
  transition: color var(--transition-base), border-color var(--transition-base), background var(--transition-base);
}

.filter-tab:hover {
  color: var(--text-secondary);
  background: rgba(96, 165, 250, 0.04);
}

.filter-tab.active {
  color: var(--accent-opal);
  border-color: var(--accent-opal);
  background: rgba(96, 165, 250, 0.06);
}


/* ============================================
   16d. BADGE VARIANTS
   ============================================ */
.badge--tabletop {
  color: var(--accent-opal);
}

.badge--tabletop .badge__dot {
  background: var(--accent-opal);
}

.badge--digital {
  color: var(--accent-ember);
}

.badge--digital .badge__dot {
  background: var(--accent-ember);
}

.game-card[data-type].hidden {
  display: none;
}


/* ============================================
   16e. HERO TAGLINE CORE
   ============================================ */
.hero__tagline-core {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-style: italic;
  font-weight: 300;
  color: var(--accent-opal);
  letter-spacing: 0.02em;
  animation: fadeSlideUp 0.8s ease both 0.25s;
}


/* ============================================
   16f. SECTION DIVIDER
   ============================================ */
.section-divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 3rem;
  margin: 0 auto;
  max-width: var(--container-max);
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-medium), transparent);
}

.divider-gem {
  width: 8px;
  height: 8px;
  background: var(--accent-opal);
  transform: rotate(45deg);
  box-shadow: 0 0 12px var(--glow-opal);
}


/* ============================================
   16g. ABOUT SECTION (Pillars layout)
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text p {
  color: var(--text-secondary);
  line-height: 1.85;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.about-tagline-narrative {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 300;
  color: var(--accent-opal);
  border-left: 2px solid var(--accent-opal);
  padding-left: 1.5rem;
  margin: 2rem 0;
  line-height: 1.5;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pillar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem 1.75rem;
  border-radius: 8px;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}

.pillar::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
  background: var(--accent-opal);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s;
}

.pillar:hover {
  border-color: var(--border-medium);
  transform: translateX(4px);
}

.pillar:hover::before {
  transform: scaleY(1);
}

.pillar__title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-opal);
  margin-bottom: 0.5rem;
}

.pillar__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}


/* ============================================
   16h. HORIZONTAL GAME CARDS
   ============================================ */
.game-card--horizontal {
  display: grid;
  grid-template-columns: 220px 1fr;
}

.game-card--horizontal .game-card__image {
  aspect-ratio: 3 / 4;
  height: 100%;
  object-fit: cover;
}

.game-card--horizontal .game-card__body {
  justify-content: center;
}

.game-card--horizontal .game-card__desc {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
}

.game-card__sub {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-opal);
  margin-bottom: 0.25rem;
}

.game-card__link {
  font-size: 0.8rem;
  color: var(--accent-opal);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s, color 0.3s;
  font-weight: 500;
}

.game-card:hover .game-card__link {
  gap: 0.9rem;
}

.game-card__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

.game-card__visual--travel {
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
}

.game-card__visual--digital {
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.08) 0%, var(--bg-surface) 100%);
}

.game-card__art {
  width: 80px;
  height: 80px;
  opacity: 0.7;
}


/* ============================================
   16i. PLATFORMS SPLIT
   ============================================ */
.platforms-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 3rem;
}

.platform-half {
  padding: 3rem;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.platform-half--analog {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.08) 0%, rgba(96, 165, 250, 0.02) 100%);
  border: 1px solid var(--border-subtle);
}

.platform-half--digital {
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.06) 0%, rgba(129, 140, 248, 0.02) 100%);
  border: 1px solid rgba(129, 140, 248, 0.12);
}

.platform-half:hover {
  transform: scale(1.01);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.platform-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.platform-half__title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.platform-half--analog .platform-half__title {
  color: var(--accent-opal);
}

.platform-half--digital .platform-half__title {
  color: var(--accent-ember);
}

.platform-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.platform-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.platform-list li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  flex-shrink: 0;
}

.platform-half--analog .platform-list li::before {
  background: var(--accent-opal);
}

.platform-half--digital .platform-list li::before {
  background: var(--accent-ember);
}


/* ============================================
   16j. STUDIO SECTION
   ============================================ */
.studio-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: start;
}

.studio-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}

.studio-mark {
  margin-bottom: 2rem;
}

.studio-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
}

.studio-stat {
  padding: 1.5rem 1rem;
  background: var(--bg-elevated);
  text-align: center;
}

.studio-stat__num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--accent-opal);
  display: block;
}

.studio-stat__label {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.studio-action-line {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-style: italic;
  font-weight: 300;
  color: var(--accent-opal);
  margin: 2.5rem 0;
  line-height: 1.3;
}


/* ============================================
   16k. CTA BAND
   ============================================ */
.cta-band {
  background: var(--accent-ember);
  padding: 5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(0,0,0,0.2) 0%, transparent 50%, rgba(0,0,0,0.1) 100%);
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.cta-band .heading-lg {
  color: #fff;
  margin-bottom: 1rem;
}

.cta-band .body-md {
  color: rgba(255, 255, 255, 0.80);
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

.btn-cta-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2.25rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ember);
  background: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s var(--ease-out-back), background 0.25s ease, color 0.25s ease;
}

.btn-cta-white:hover {
  transform: scale(1.04);
  background: var(--bg-primary);
  color: #fff;
}

.footer__tagline {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-style: italic;
  color: var(--accent-opal);
  opacity: 0.7;
  margin-top: 0.25rem;
}


/* ============================================
   17. DRAGONFLY WATERMARK
   ============================================ */
.dragonfly-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 3rem 0;
  color: var(--text-muted);
  opacity: 0.3;
}

.dragonfly-divider::before,
.dragonfly-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-medium), transparent);
}

.dragonfly-divider svg {
  width: 32px;
  height: 20px;
  flex-shrink: 0;
}


/* ============================================
   18. ANIMATIONS & KEYFRAMES
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.15; }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40%  { transform: translateX(-50%) translateY(-8px); }
  60%  { transform: translateX(-50%) translateY(-4px); }
}


/* ============================================
   19. SCROLL-DRIVEN ANIMATIONS (Modern CSS)
   ============================================ */

/* Base state for reveal elements */
.reveal {
  opacity: 0;
  transform: translateY(2rem);
}

/* CSS scroll-driven animation for supporting browsers */
@supports (animation-timeline: view()) {
  .reveal {
    animation: fadeSlideUp 1s ease both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }

  .reveal--d1 { animation-delay: 0.05s; }
  .reveal--d2 { animation-delay: 0.1s; }
  .reveal--d3 { animation-delay: 0.15s; }
  .reveal--d4 { animation-delay: 0.2s; }
}

/* JS fallback class (added by IntersectionObserver) */
.revealed {
  animation: fadeSlideUp 0.8s var(--ease-out-expo) both;
}

.revealed.reveal--d1 { animation-delay: 0.1s; }
.revealed.reveal--d2 { animation-delay: 0.2s; }
.revealed.reveal--d3 { animation-delay: 0.3s; }
.revealed.reveal--d4 { animation-delay: 0.4s; }


/* ============================================
   20. VIEW TRANSITIONS
   ============================================ */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: fadeOut 0.15s ease;
}

::view-transition-new(root) {
  animation: fadeIn 0.25s ease;
}

@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}


/* ============================================
   21. FOCUS INDICATORS (Accessibility)
   ============================================ */
:focus-visible {
  outline: 2px solid var(--accent-opal);
  outline-offset: 2px;
}

/* Remove default outline for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}


/* ============================================
   22. MEDIA QUERIES
   ============================================ */

/* Tablet Landscape */
@media (max-width: 1024px) {
  :root {
    --section-padding: 5rem;
  }

  .featured-game {
    grid-template-columns: 240px 1fr;
    gap: 2rem;
  }
}

/* Tablet Portrait — Hamburger Nav */
@media (max-width: 768px) {
  :root {
    --section-padding: 4rem;
  }

  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  /* Nav collapses to hamburger */
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1.5rem 2rem;
    background: rgba(10, 14, 23, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    gap: 1rem;
  }

  .nav__links.open {
    display: flex;
  }

  /* Grids stack */
  .identity-grid,
  .values-grid,
  .community-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .featured-game {
    grid-template-columns: 1fr;
    text-align: center;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .featured-game__card {
    max-width: 240px;
    margin: 0 auto;
  }

  .featured-game__info {
    align-items: center;
  }

  .featured-game__actions {
    justify-content: center;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__desc {
    max-width: 100%;
  }

  .footer__social {
    justify-content: center;
  }

  .footer__nav {
    align-items: center;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .games-grid .game-card {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .signup-row {
    flex-direction: column;
    align-items: center;
  }

  /* About grid stacks */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Horizontal game cards stack */
  .game-card--horizontal {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Platforms stack */
  .platforms-split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Studio stacks */
  .studio-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .studio-sidebar {
    position: static;
    max-width: 280px;
    margin: 0 auto;
  }

  /* Section divider */
  .section-divider {
    padding: 0 1.5rem;
  }

  /* CTA band */
  .cta-band {
    padding: 3.5rem 1.5rem;
  }
}

/* Mobile */
@media (max-width: 480px) {
  :root {
    --section-padding: 3rem;
    --nav-height: 60px;
  }

  .container {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .nav__logo {
    height: 36px;
  }

  .hero__logo {
    width: 300px;
  }

  .form-card {
    padding: 1.5rem;
  }

  .btn-primary,
  .btn-outline {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}
