/* ============================================
   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:   3rem;
  --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;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ============================================
   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);
}

.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;
}

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: 72px;
  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);
}


/* ============================================
   8. 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;
}

.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);
}


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

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer__logo {
  height: 56px;
  width: auto;
  object-fit: contain;
}

.footer__heading {
  display: none;
}

.footer__nav {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
}

.footer__nav a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-base);
}

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

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

.footer__copy {
  width: 100%;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}


/* ============================================
   10. PAGE HEADER
   ============================================ */
.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;
}


/* ============================================
   11. 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-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;
}


/* ============================================
   12. 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);
}


/* ============================================
   13. FEATURED GAME CARD — Big hero card
   ============================================ */
.featured-card {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.4s, box-shadow 0.4s;
}

.featured-card:hover {
  border-color: var(--accent-opal);
  box-shadow: 0 0 60px rgba(96, 165, 250, 0.12), 0 20px 60px rgba(0, 0, 0, 0.4);
}

.featured-card__visual {
  background: radial-gradient(circle at 50% 30%, rgba(96, 165, 250, 0.08), transparent 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 2rem 1.5rem;
}

.featured-card__wall {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-opal);
  box-shadow: 0 0 40px rgba(96, 165, 250, 0.25);
  flex-shrink: 0;
}

.featured-card__sled {
  width: 80%;
  max-width: 220px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 20px rgba(96, 165, 250, 0.2));
  animation: sledFloat 3s ease-in-out infinite;
}

.featured-card__body {
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
}

.featured-card__body .heading-xl {
  margin-bottom: 0.25rem;
}

.featured-card__ctas {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-card__visual {
    min-height: auto;
    padding: 1.5rem;
    flex-direction: row;
    gap: 1.5rem;
  }
  .featured-card__wall { width: 100px; height: 100px; }
  .featured-card__sled { max-width: 160px; }
  .featured-card__body { padding: 1.5rem; }
}


/* ============================================
   14. CARD ART STRIP — Infinite scroll marquee
   ============================================ */
.card-strip {
  overflow: hidden;
  padding: 3rem 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-surface) 50%, var(--bg-primary) 100%);
}

.card-strip__track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.card-strip__track img {
  width: 160px;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border-medium);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s var(--ease-out-back), box-shadow 0.3s;
  flex-shrink: 0;
}

.card-strip__track img:hover {
  transform: scale(1.08) translateY(-8px);
  box-shadow: 0 12px 40px rgba(96, 165, 250, 0.25);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .card-strip__track { animation: none; }
}

@media (max-width: 600px) {
  .card-strip__track img { width: 110px; height: 152px; }
  .card-strip__track { gap: 1rem; }
}


/* ============================================
   15. GAME SHOWCASE
   ============================================ */
.game-showcase {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
}

.game-showcase__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.feature-pill {
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  color: var(--accent-opal);
  font-family: var(--font-body);
  font-weight: 500;
}

.wall-portrait {
  width: 100%;
  border-radius: 12px;
  border: 2px solid var(--border-medium);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.wall-portrait--hover {
  display: none;
}

.game-showcase__wall:hover .wall-portrait:first-child {
  display: none;
}
.game-showcase__wall:hover .wall-portrait--hover {
  display: block;
}

@media (max-width: 768px) {
  .game-showcase { grid-template-columns: 1fr; }
  .game-showcase__wall { max-width: 200px; margin: 0 auto; }
}


/* ============================================
   16. HOW IT WORKS GRID
   ============================================ */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.how-step {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.how-step:hover {
  border-color: var(--accent-opal);
  box-shadow: 0 0 20px var(--glow-opal);
}

.how-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-opal), var(--accent-ember));
  color: var(--bg-primary);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.how-step h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.how-step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .how-grid { grid-template-columns: 1fr; }
}


/* ============================================
   17. CARD SHOWCASE — FAN OF CARDS
   ============================================ */
.card-showcase {
  margin: 3rem 0;
  display: flex;
  justify-content: center;
}

.card-fan {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  height: 320px;
  width: 100%;
  max-width: 700px;
}

.card-art {
  width: 140px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--border-medium);
  position: absolute;
  bottom: 0;
  transition: transform 0.4s var(--ease-out-back), box-shadow 0.3s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.card-art:hover {
  transform: translateY(-20px) scale(1.08) !important;
  box-shadow: 0 16px 48px rgba(96, 165, 250, 0.3);
  z-index: 10;
}

.card-art--1 { left: 10%; transform: rotate(-12deg); }
.card-art--2 { left: 22%; transform: rotate(-6deg); }
.card-art--3 { left: 50%; transform: translateX(-50%); z-index: 2; }
.card-art--4 { right: 22%; transform: rotate(6deg); }
.card-art--5 { right: 10%; transform: rotate(12deg); }

@media (max-width: 600px) {
  .card-art { width: 90px; height: 128px; }
  .card-fan { height: 200px; }
}


/* ============================================
   18. CARD TYPES GRID
   ============================================ */
.card-types-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.card-type {
  background: var(--bg-elevated);
  border-radius: 8px;
  padding: 1.25rem;
  border-left: 3px solid;
  transition: box-shadow 0.3s;
}

.card-type:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.card-type--special { border-color: #a78bfa; }
.card-type--bailout { border-color: #f87171; }
.card-type--assist  { border-color: #4ade80; }
.card-type--impede  { border-color: #fb923c; }

.card-type__label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.card-type--special .card-type__label { color: #a78bfa; }
.card-type--bailout .card-type__label { color: #f87171; }
.card-type--assist .card-type__label  { color: #4ade80; }
.card-type--impede .card-type__label  { color: #fb923c; }

.card-type p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .card-types-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .card-types-grid { grid-template-columns: 1fr; }
}


/* ============================================
   19. EDITIONS GRID
   ============================================ */
.editions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.edition-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.edition-card:hover {
  border-color: var(--accent-opal);
}

.edition-card__image {
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: var(--bg-surface);
  padding: 1rem;
}

.edition-card__body {
  padding: 1.5rem;
}

.edition-card__body h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-primary);
  margin: 0.75rem 0 0.5rem;
}

.edition-card__body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.edition-components {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.edition-components li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.4;
}

.edition-components li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-opal);
  opacity: 0.6;
}

@media (max-width: 768px) {
  .editions-grid { grid-template-columns: 1fr; }
}


/* ============================================
   20. ONLINE SHOWCASE
   ============================================ */
.online-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
}

.online-showcase__screenshot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
}

.screenshot-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.6;
}

.online-screenshot {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-medium);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), 0 0 40px rgba(96, 165, 250, 0.08);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
}

.online-screenshot:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(96, 165, 250, 0.12);
}

@media (max-width: 768px) {
  .online-showcase { grid-template-columns: 1fr; }
}


/* ============================================
   21. MEET ARLO
   ============================================ */
.arlo-section {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2rem 0;
}

.arlo-main-img {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(96, 165, 250, 0.3);
  box-shadow: 0 0 80px rgba(96, 165, 250, 0.15);
}

.arlo-moods {
  margin-top: 3rem;
  text-align: center;
}

.arlo-moods__title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-opal);
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

.arlo-moods__grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.arlo-mood {
  text-align: center;
}

.arlo-mood img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-subtle);
  transition: transform 0.3s var(--ease-out-back), border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.arlo-mood img:hover {
  transform: scale(1.1);
  border-color: var(--accent-opal);
  box-shadow: 0 0 30px rgba(96, 165, 250, 0.25);
}

.arlo-mood span {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 768px) {
  .arlo-section { grid-template-columns: 1fr; text-align: center; }
  .arlo-main-img { width: 180px; height: 180px; margin: 0 auto; }
  .arlo-mood img { width: 80px; height: 80px; }
}


/* ============================================
   22. CLOSING STATEMENT
   ============================================ */
.closing-statement {
  padding: 5rem 2rem;
  text-align: center;
}

.closing-statement__text {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  color: var(--text-primary);
  opacity: 0.65;
  font-weight: 600;
  font-style: italic;
}


/* ============================================
   23. DHTW GAME TITLE
   ============================================ */
.dhtw-gold-outline {
  -webkit-text-stroke: 1px #d4a030;
  text-shadow: 0 0 15px rgba(212, 160, 48, 0.12);
}


/* ============================================
   24. GOLD TEXT
   ============================================ */
.gold-text {
  color: #ffd54f;
}


/* ============================================
   25. TAGLINE STYLED — Matches index.html opal gradient
   ============================================ */
.tagline-styled {
  font-family: var(--font-heading);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #4fc3f7, #b388ff, #4fc3f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ============================================
   26. SCROLL ARROW INDICATOR
   ============================================ */
.scroll-arrow {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  animation: scrollArrowBounce 2s ease-in-out infinite;
}

@keyframes scrollArrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}


/* ============================================
   27. TILT CARD (3D effect)
   ============================================ */
.tilt-card {
  transition: transform 0.3s ease;
}


/* ============================================
   28. 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); }
}

@keyframes sledFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}


/* ============================================
   29. 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; }


/* ============================================
   30. 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; }
}


/* ============================================
   31. 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;
}


/* ============================================
   32. ANIMATED LOGO INTRO OVERLAY
   ============================================ */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease;
}

.intro-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.intro-video {
  max-width: 80vw;
  max-height: 80vh;
  object-fit: contain;
}


/* ============================================
   33. CIRCUIT CANVAS BACKGROUND
   ============================================ */
.circuit-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.25;
}

/* Ensure page content stacks above the fixed circuit canvas */
main, footer, .nav {
  position: relative;
  z-index: 1;
}


/* ============================================
   34. MEDIA QUERIES
   ============================================ */

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

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

  .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;
  }

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

  .footer__nav {
    align-items: center;
  }

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

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

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

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

  .nav__logo {
    height: 36px;
  }

  .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;
  }

  .intro-overlay { display: none; }
}
