/* Grain/Noise Texture Overlay */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background-image: url('noise.svg');
  opacity: 0.05;
  mix-blend-mode: overlay;
}

/* --- Grimdark UI Design Tokens (aligned with GODSGLOOM APP design system) --- */
:root {
  /* Scroll Velocity Props */
  --scroll-velocity: 0;
  --scroll-skew: 0deg;
  --scroll-blur: 0px;

  /* Backgrounds — Obsidian / Graphite / Slate ramp */
  --bg-main: #1a1d21;            /* Obsidian (darkest neutral, never true black) */
  --bg-surface: #2c3036;          /* Graphite (card surface) */
  --bg-surface-hover: #34383e;    /* Graphite hover */
  --bg-surface-secondary: #383c42;/* Slate (panel-in-panel / inputs) */

  /* Accents — Relic Gold ramp */
  --accent-gold: #c0a060;         /* Relic Gold — system voice */
  --accent-gold-hover: #d4b87a;   /* Candlelit Gold */
  --accent-gold-deep: #8a7345;    /* Embered Gold — gradient bottom-right */
  --glow-gold: rgba(192, 160, 96, 0.3);

  /* Text */
  --text-primary: #e0e0e0;        /* Parchment */
  --text-secondary: #b8b8b8;      /* Ash (AAA contrast) */
  --text-on-accent: #1a1d21;

  /* Borders */
  --border-main: #4a4f56;         /* Dusk */
  --border-accent: #c0a060;

  /* Border radius scale */
  --rounded-sm: 4px;
  --rounded-md: 8px;
  --rounded-lg: 12px;             /* default for cards + buttons */
  --rounded-full: 9999px;

  /* Shadow tokens (APP design system) */
  --shadow-md: rgba(0, 0, 0, 0.3);
  --shadow-lg: rgba(0, 0, 0, 0.5);
  --shadow-card-lift: 0 8px 30px rgba(0, 0, 0, 0.6);
  --shadow-modal-drop: 0 0 30px rgba(0, 0, 0, 0.5);
  --shadow-gold-halo-ambient: 0 0 15px rgba(192, 160, 96, 0.5);
  --shadow-gold-halo-hover: 0 0 20px rgba(192, 160, 96, 0.4);
  --shadow-gold-halo-intense: 0 0 25px rgba(192, 160, 96, 0.8);

  /* Motion (house easing curve from APP) */
  --motion-ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --motion-duration-snappy: 150ms;     /* hover/focus */
  --motion-duration-standard: 300ms;   /* button halos */
  --motion-duration-entrance: 700ms;   /* card/title entrances */
}

html {
  scroll-behavior: smooth;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }

  .section-hidden,
  .section-title-animated {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 768px) {
  section {
    padding-top: 2.5rem !important;
    padding-bottom: 4rem !important;
  }
}

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-main);

  /* App-like feel: globally disable text selection. The page reads as a polished
     application, not a document. Only form inputs remain editable below. */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: default;

  /* Prevent iOS long-press text-selection callout */
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* Inherit so descendants cannot accidentally re-enable selection via UA defaults */
*, *::before, *::after {
  -webkit-user-select: inherit;
  -moz-user-select: inherit;
  -ms-user-select: inherit;
  user-select: inherit;
}

/* The ONLY places that allow selection: form inputs (must accept typing). */
input, textarea, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  cursor: text;
  -webkit-touch-callout: default;
}

/* Clickable surfaces show the hand cursor, never the I-beam */
a, button, [role="button"], .btn, .faq-question,
label[for], summary {
  cursor: pointer;
}

/* Prevent accidental image dragging on brand imgs, partner logos, etc. */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}

/* Typography */
.title-serif {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-gold);
}

/* Animated Section Titles — always visible; entrance animation runs once via
   CSS keyframe when class is added by JS, but title is never hidden by CSS. */
.section-title-animated {
  color: var(--accent-gold);
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--motion-duration-entrance) var(--motion-ease-out-expo),
              transform var(--motion-duration-entrance) var(--motion-ease-out-expo);
}

.section-title-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-subtitle {
  color: var(--text-secondary);
  text-align: center;
  font-size: 1.125rem;
  margin-top: 1rem;
  margin-bottom: 3rem;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

/* Main Card/Panel Component (aligned with APP — 12px radius, card-lift shadow) */
.ui-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--rounded-lg);
  box-shadow: var(--shadow-card-lift);
}

/* Buttons (aligned with APP — Cinzel uppercase, 12px radius, gold gradient on primary) */
.btn {
  display: inline-block;
  border-radius: var(--rounded-lg);
  padding: 0.75rem 2.5rem;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: transform var(--motion-duration-snappy) ease,
              background-color var(--motion-duration-standard) ease,
              filter var(--motion-duration-standard) ease,
              box-shadow var(--motion-duration-standard) ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 4px var(--glow-gold);
}

.btn:focus-visible {
  outline: 2px solid rgba(192, 160, 96, 0.5);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(to bottom right, var(--accent-gold), var(--accent-gold-deep));
  color: var(--text-on-accent);
  border: 1px solid var(--accent-gold);
}

.btn-primary:hover {
  filter: brightness(1.1);
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent-gold);
  border: 1px solid var(--border-accent);
}

.btn-secondary:hover {
  background-color: var(--glow-gold);
  color: var(--accent-gold-hover);
}

/* Links */
.link-acc {
  color: var(--text-secondary);
  transition: color .2s ease;
}

.link-acc:hover,
.link-acc.active {
  color: var(--accent-gold-hover);
}

.sticky-link {
  color: var(--text-secondary);
  transition: color .2s ease;
}

.sticky-link:hover {
  color: var(--accent-gold-hover);
}

.link-gold {
  color: var(--accent-gold);
  transition: color .2s ease;
}

.link-gold:hover {
  color: var(--accent-gold-hover);
}

/* Inputs (aligned with APP — 8px radius, gold focus ring) */
.input {
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-accent);
  color: var(--text-primary);
  border-radius: var(--rounded-md);
  padding: 0.875rem 1rem;
  outline: none;
  box-shadow: none;
  font-size: 16px;            /* prevent iOS auto-zoom */
  font-family: 'Inter', sans-serif;
  transition: border-color var(--motion-duration-snappy) ease, box-shadow var(--motion-duration-snappy) ease;
}

.input::placeholder {
  color: var(--text-secondary);
}

.input:focus,
.input:focus-visible {
  outline: 2px solid rgba(192, 160, 96, 0.5);
  outline-offset: 2px;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px var(--glow-gold);
}

/* Header */
header {
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

header.scrolled {
  background-color: var(--bg-main);
  border-bottom-color: var(--border-accent);
}

/* Desktop header Join Beta — hidden until hero CTA scrolls out of view */
#desktop-nav .nav-cta {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
}

#desktop-nav .nav-cta.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Header logo — hidden until hero brand scrolls out of view (mirrors nav CTA) */
.header-logo {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
}

.header-logo.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* === HERO HIERARCHY === Wordmark dominates → divider → tagline → subtitle → places → CTAs */

/* 1. Hero brand wordmark (DOMINANT — biggest visual mass).
   When scrolled past, JS adds .is-flying which morphs it toward the
   header position so it visually "flies" into the top-left corner. */
.hero-brand {
  display: block;
  margin: 0 auto;
  width: min(85vw, 640px);
  height: auto;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.6));
  transform-origin: top left;
  transition: transform 0.55s var(--motion-ease-out-expo),
              opacity   0.4s  var(--motion-ease-out-expo),
              filter    0.4s  ease;
  will-change: transform, opacity;
}

.hero-brand.is-flying {
  /* Shrink toward the header logo size (~120px wide vs ~640px = ~0.19)
     and rise upward. Header logo fades in via its own .show class so the
     visual reads as a single element moving up + shrinking. */
  animation: none;                       /* cancel any in-progress entrance animation */
  transform: translateY(-180px) scale(0.18);
  opacity: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

/* Header logo lands with a small drop-in to match the hero brand's exit */
.header-logo {
  transition: opacity 0.4s var(--motion-ease-out-expo) 250ms,
              visibility 0.4s ease 250ms,
              transform 0.4s var(--motion-ease-out-expo) 250ms;
}

/* 2. Gold gradient divider — boosted opacity for busier hero background */
.hero-divider {
  display: block;
  width: 60%;
  max-width: 280px;
  height: 2px;
  margin: 1.5rem auto 2rem auto;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  border-radius: 1px;
  opacity: 0.75;
}

/* 3. Hero tagline — small enough to support, not compete, with wordmark */
.hero-title {
  margin: 0 auto 1.5rem auto;
  font-size: clamp(1.875rem, 4vw, 2.5rem);   /* 30 → 40 px */
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-align: center;
}

/* 4. Hero subtitle — tighter container, fewer bolds (handled in HTML) */
.hero-subtitle {
  max-width: 34rem;                          /* narrower for shorter line lengths */
  margin: 0 auto 2.5rem auto;
  font-size: clamp(1rem, 1.5vw, 1.125rem);   /* 16 → 18 px */
  line-height: 1.6;
  color: var(--text-primary);
}

/* 5. Places counter (progress + label — visibly distinct from divider) */
.hero-places {
  width: 100%;
  max-width: 20rem;
  margin: 0 auto 2rem auto;
}

.hero-places #hero-places-text {
  display: block;
  margin: 0 0 0.625rem 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
  text-transform: uppercase;
}

.hero-places-track {
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(192, 160, 96, 0.25);
  border-radius: var(--rounded-full);
  height: 6px;
  overflow: hidden;
}

.hero-places-fill {
  background: linear-gradient(90deg, var(--accent-gold-deep), var(--accent-gold));
  height: 100%;
  border-radius: var(--rounded-full);
  box-shadow: 0 0 14px rgba(192, 160, 96, 0.55);
}

/* 6. CTA stack — side-by-side on desktop, stacked on mobile */
.hero-cta-stack {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* Theatrical entrance — wordmark first, rest staggered.
   Uses forwards (not both) so default CSS state is visible if animation fails. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-brand   { animation: heroFadeIn 700ms var(--motion-ease-out-expo) 0ms   forwards; }
  .js .hero-divider { animation: heroFadeIn 600ms var(--motion-ease-out-expo) 350ms forwards; }
  .js .hero-title   { animation: heroFadeIn 700ms var(--motion-ease-out-expo) 500ms forwards; }
  .js .hero-subtitle{ animation: heroFadeIn 600ms var(--motion-ease-out-expo) 700ms forwards; }
  .js .hero-places  { animation: heroFadeIn 500ms var(--motion-ease-out-expo) 850ms forwards; }
  .js .hero-cta-stack { animation: heroFadeIn 500ms var(--motion-ease-out-expo) 950ms forwards; }
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
  .hero-brand { width: min(80vw, 380px); }
  .hero-divider { margin: 1rem auto 1.5rem auto; max-width: 180px; }
  .hero-title { margin-bottom: 1rem; }
  .hero-subtitle { margin-bottom: 2rem; }
  .hero-places { margin-bottom: 1.5rem; }
  .hero-cta-stack { flex-direction: column; }     /* stack again on mobile */
}

/* Section reveal animation — always visible. Entrance is purely additive
   when JS adds .section-visible; no permanent hidden state. */
.section-hidden {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--motion-duration-entrance) var(--motion-ease-out-expo),
              transform var(--motion-duration-entrance) var(--motion-ease-out-expo);
}

.section-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Custom dark scrollbar for modals */
.overflow-y-auto {
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 100, 100, 0.5) rgba(30, 30, 30, 0.3);
}

.overflow-y-auto::-webkit-scrollbar {
  width: 8px;
}

.overflow-y-auto::-webkit-scrollbar-track {
  background: rgba(30, 30, 30, 0.3);
  border-radius: 4px;
}

.overflow-y-auto::-webkit-scrollbar-thumb {
  background: rgba(100, 100, 100, 0.5);
  border-radius: 4px;
}

.overflow-y-auto::-webkit-scrollbar-thumb:hover {
  background: rgba(140, 140, 140, 0.6);
}

/* Responsive video container */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  width: 100%;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0.5rem;
}

/* Anchor link scroll offset for sticky header */
section[id] {
  scroll-margin-top: 80px;
}

/* Gold accent divider line — all sections except hero */
section::before {
  content: '';
  display: block;
  width: 60%;
  max-width: 200px;
  height: 2px;
  margin: 0 auto 1.5rem auto;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  border-radius: 1px;
  opacity: 0.5;
}

#hero::before {
  display: none;
}

/* Scroll Progress Bar */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background-color: var(--accent-gold);
  width: 0%;
  z-index: 101;
  transition: width 0.1s linear;
}

/* Sticky Social Bar */
#sticky-social-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(44, 48, 54, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  z-index: 90;
}

#sticky-social-bar.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Floating CTA Button */
#floating-cta-button {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.9);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

#floating-cta-button.show {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

/* FAQ Accordion Styles */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.faq-answer>div {
  border-top: 1px solid var(--border-main);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Gold bullet markers across FAQ and modal content lists */
.faq-answer ul li::marker,
.faq-answer ol li::marker,
.modal-body ul li::marker,
.modal-body ol li::marker,
#privacy-modal ul li::marker,
#privacy-modal ol li::marker,
#about-modal ul li::marker,
#about-modal ol li::marker {
  color: var(--accent-gold);
  font-weight: 700;
}

/* Slight indent + tighter rhythm so gold marker reads as the system bullet */
.faq-answer ul,
.faq-answer ol {
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}

.faq-answer li {
  margin: 0.35rem 0;
  padding-left: 0.25rem;
}

.faq-icon {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
  width: 1.5rem !important;
  height: 1.5rem !important;
  flex-shrink: 0 !important;
  margin-top: 0.25rem;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--accent-gold-hover);
}

.faq-question {
  display: flex !important;
  align-items: flex-start !important;
  gap: 1rem !important;
  cursor: pointer;
  background: none;
  border: 0;
}

.faq-question span {
  flex: 1 !important;
  transition: color 0.25s ease;
}

/* Active FAQ item — title turns gold, border lifts, subtle gold tint */
.faq-item {
  background-color: var(--bg-surface) !important;
  transition: transform 0.25s ease, border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.faq-item.faq-item.active {
  border-color: var(--accent-gold) !important;
  border-top-color: var(--accent-gold) !important;
  border-right-color: var(--accent-gold) !important;
  border-bottom-color: var(--accent-gold) !important;
  border-left-color: var(--accent-gold) !important;
  background-color: rgba(192, 160, 96, 0.06) !important;
  box-shadow: 0 6px 22px rgba(192, 160, 96, 0.18), 0 0 0 1px rgba(192, 160, 96, 0.15) !important;
}

.faq-item.faq-item.active .faq-question > span:first-child {
  color: var(--accent-gold) !important;
  letter-spacing: 0.01em;
}

/* Keyboard focus ring on FAQ questions */
.faq-question:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--accent-gold);
  border-radius: 0.375rem;
}

/* How to Play — Video Accordion */
.htplay-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.htplay-icon {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
  width: 1.5rem !important;
  height: 1.5rem !important;
  flex-shrink: 0 !important;
  color: var(--accent-gold);
}

.htplay-item.active .htplay-icon {
  transform: rotate(180deg);
  color: var(--accent-gold-hover);
}

.htplay-item {
  background-color: var(--bg-surface);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.htplay-item.active {
  border-color: var(--accent-gold) !important;
  background-color: rgba(192, 160, 96, 0.06) !important;
  box-shadow: 0 6px 22px rgba(192, 160, 96, 0.18), 0 0 0 1px rgba(192, 160, 96, 0.15) !important;
}

.htplay-item.active .htplay-question > span:first-child {
  color: var(--accent-gold) !important;
}

.htplay-question {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  cursor: pointer;
  background: none;
  border: 0;
  width: 100%;
  padding: 1rem;
  text-align: left;
}

.htplay-question span {
  flex: 1;
  transition: color 0.25s ease;
}

/* Part III coming-soon placeholder */
.htplay-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.htplay-placeholder-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.htplay-placeholder-icon {
  width: 4rem;
  height: 4rem;
  color: var(--accent-gold);
  opacity: 0.4;
}

.htplay-placeholder-label {
  color: var(--accent-gold);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Scrollbar hide utility */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Partner Scroller Infinite Loop Animation
   (translates by 50% so a single cloned group seamlessly wraps) */
@keyframes scroll-loop {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* Bouncing Scroll Arrow Animation */
@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

.animate-bounce-slow {
  animation: bounce 2s infinite;
}

/* === PRO-LEVEL INTERACTIVE ENHANCEMENTS === */

/* 1. Card hover — subtle scale lift (replaces previous 3D tilt) */
.ui-card {
  transition: transform 0.3s var(--motion-ease-out-expo),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
  will-change: transform;
}

.ui-card:hover {
  transform: scale(1.015);
  box-shadow: var(--shadow-card-lift), var(--shadow-gold-halo-hover);
  border-color: var(--accent-gold-hover);
}

/* 2. Button gold halo on hover (APP shadow tokens) */
.btn-primary:hover {
  box-shadow: var(--shadow-gold-halo-hover);
}

.btn-secondary:hover {
  box-shadow: var(--shadow-gold-halo-ambient);
}

/* 3. Comparison table row hover highlight */
.grid.grid-cols-1.md\:grid-cols-2[class*="border-b"],
.grid.grid-cols-1.md\:grid-cols-2[class*="pt-5"] {
  transition: background-color 0.3s ease, border-left-color 0.3s ease;
  border-left: 3px solid transparent;
  padding-left: 0.75rem;
}

.grid.grid-cols-1.md\:grid-cols-2[class*="border-b"]:hover,
.grid.grid-cols-1.md\:grid-cols-2[class*="pt-5"]:hover {
  background-color: rgba(192, 160, 96, 0.05);
  border-left-color: var(--accent-gold);
}

/* 4. FAQ item hover lift */
.faq-item {
  transition: transform 0.25s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent-gold);
  box-shadow: 0 4px 15px rgba(192, 160, 96, 0.1);
}

/* 5. Nav link animated underline */
#desktop-nav .link-acc {
  position: relative;
  padding-bottom: 4px;
}

#desktop-nav .link-acc::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: width 0.3s ease, left 0.3s ease;
}

#desktop-nav .link-acc:hover::after,
#desktop-nav .link-acc.active::after {
  width: 100%;
  left: 0;
}

/* 6. Modal entrance animation */
.modal-content-animate {
  animation: modalEntrance 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalEntrance {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Modal close animation */
@keyframes modalExit {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }

  to {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
  }
}

.modal-content-closing {
  animation: modalExit 0.25s ease-in forwards;
}

/* Modal backdrop fade */
.modal-backdrop-closing {
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
}

/* 7. Social icon hover animation */
.link-acc svg,
.sticky-link svg {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}

.link-acc:hover svg,
.sticky-link:hover svg {
  transform: scale(1.2) rotate(-5deg);
}

/* 8. Title shimmer — REMOVED per APP design system rule:
   "Don't use gradient text (background-clip: text). Emphasis comes from
   Cinzel + gold + weight." The .title-shimmer class is now a no-op so any
   stale JS that adds it doesn't break visibility. */
.title-shimmer {
  /* intentionally empty — keep selector to defeat any cached references */
}

/* 9. Partner scroller pause on hover */
.partner-scroll-track:hover>.flex {
  animation-play-state: paused !important;
}

/* 10. Image reveal transition for cards */
.img-reveal {
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.img-revealed {
  opacity: 1;
  transform: scale(1);
}

/* 11. Stagger delay utilities for card grids */
.stagger-1 {
  transition-delay: 0s;
}

.stagger-2 {
  transition-delay: 0.15s;
}

.stagger-3 {
  transition-delay: 0.3s;
}

/* 12. Showcase lightbox */
#showcase-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#showcase-lightbox.active {
  opacity: 1;
  visibility: visible;
}

#showcase-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}

#showcase-lightbox.active img {
  transform: scale(1);
}

#showcase-lightbox img.slide-out {
  opacity: 0;
  transform: scale(0.92);
}

#showcase-lightbox .lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  background: none;
  border: none;
  line-height: 1;
}

#showcase-lightbox .lightbox-close:hover {
  color: white;
  transform: scale(1.15);
}

/* Lightbox navigation arrows */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 201;
}

.lightbox-nav:hover {
  background: rgba(192, 160, 96, 0.2);
  border-color: var(--accent-gold);
  color: white;
  box-shadow: 0 0 15px rgba(192, 160, 96, 0.3);
}

.lightbox-nav.prev {
  left: 1.5rem;
}

.lightbox-nav.next {
  right: 1.5rem;
}

.lightbox-nav svg {
  width: 24px;
  height: 24px;
}

/* Lightbox counter indicator */
.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  font-family: var(--font-sans);
  letter-spacing: 0.1em;
}

@media (max-width: 767px) {
  .lightbox-nav {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
  }

  .lightbox-nav.prev {
    left: 0.5rem;
  }

  .lightbox-nav.next {
    right: 0.5rem;
  }

  .lightbox-nav svg {
    width: 18px;
    height: 18px;
  }
}

/* 13. Showcase images cursor hint */
#showcase img {
  cursor: zoom-in;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

#showcase img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(192, 160, 96, 0.2);
}

/* 14. Hero parallax layer speed */
.hero-parallax {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* 15. Animated progress bar fill */
@keyframes progressFill {
  from {
    width: 0%;
  }
}

.progress-animate {
  animation: progressFill 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* 16. Scroll Velocity Reaction Class */
.velocity-react {
  will-change: transform, filter;
  transition: transform 0.1s cubic-bezier(0.1, 0.5, 0.5, 1), filter 0.1s linear;
  transform: skewY(var(--scroll-skew));
  filter: blur(var(--scroll-blur));
}

.counter-animate {
  display: inline-block;
}

/* === MOBILE-SPECIFIC ENHANCEMENTS === */

/* Mobile menu slide animation */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}

#mobile-menu.menu-open {
  max-height: 400px;
  opacity: 1;
}

#mobile-menu a {
  transform: translateX(-10px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#mobile-menu.menu-open a {
  transform: translateX(0);
  opacity: 1;
}

#mobile-menu.menu-open a:nth-child(1) {
  transition-delay: 0.05s;
}

#mobile-menu.menu-open a:nth-child(2) {
  transition-delay: 0.1s;
}

#mobile-menu.menu-open a:nth-child(3) {
  transition-delay: 0.15s;
}

#mobile-menu.menu-open a:nth-child(4) {
  transition-delay: 0.2s;
}

#mobile-menu.menu-open a:nth-child(5) {
  transition-delay: 0.25s;
}

#mobile-menu.menu-open a:nth-child(6) {
  transition-delay: 0.3s;
}

/* Touch ripple on buttons */
.btn {
  position: relative;
  overflow: hidden;
}

.btn .ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(192, 160, 96, 0.35);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Floating CTA pulse */
@keyframes ctaPulse {

  0%,
  100% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  }

  50% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 0 8px rgba(192, 160, 96, 0.15);
  }
}

#floating-cta-button.show {
  animation: ctaPulse 3s ease-in-out infinite 2s;
}

@media (max-width: 767px) {

  /* Card tap feedback (replaces 3D tilt on mobile) */
  .ui-card {
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.4s ease !important;
  }

  .ui-card:active {
    transform: scale(0.98) !important;
    border-color: var(--accent-gold) !important;
  }

  /* Modal slide-up on mobile */
  .modal-content-animate {
    animation: modalSlideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
  }

  @keyframes modalSlideUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* FAQ tap feedback */
  .faq-item:active {
    background-color: rgba(192, 160, 96, 0.08) !important;
  }

  /* Hero text stagger entrance */
  .hero-stagger {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .hero-stagger.hero-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .hero-stagger:nth-child(1) {
    transition-delay: 0.1s;
  }

  .hero-stagger:nth-child(2) {
    transition-delay: 0.3s;
  }

  .hero-stagger:nth-child(3) {
    transition-delay: 0.5s;
  }

  .hero-stagger:nth-child(4) {
    transition-delay: 0.7s;
  }

  .hero-stagger:nth-child(5) {
    transition-delay: 0.9s;
  }

  /* Social bar swipe-to-dismiss */
  #sticky-social-bar {
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s !important;
  }

  #sticky-social-bar.dismissed {
    transform: translateY(100%) !important;
    opacity: 0 !important;
  }

  /* Lightbox swipe indicator */
  #showcase-lightbox::after {
    content: '';
    position: absolute;
    top: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
  }
}

/* === MOBILE PREMIUM POLISH === */
@media (max-width: 767px) {

  /* Glassmorphism header on scroll */
  header.scrolled {
    background-color: rgba(26, 29, 33, 0.72) !important;
    backdrop-filter: blur(16px) saturate(1.4) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.4) !important;
    border-bottom-color: rgba(192, 160, 96, 0.25) !important;
    box-shadow: 0 1px 20px rgba(192, 160, 96, 0.08);
  }

  /* Card entrance glow pulse */
  @keyframes cardEntranceGlow {
    0% {
      border-color: var(--border-accent);
      box-shadow: 0 4px 12px var(--shadow-md);
    }

    50% {
      border-color: rgba(192, 160, 96, 0.6);
      box-shadow: 0 4px 20px rgba(192, 160, 96, 0.15), 0 0 0 1px rgba(192, 160, 96, 0.1);
    }

    100% {
      border-color: var(--border-accent);
      box-shadow: 0 4px 12px var(--shadow-md);
    }
  }

  .section-visible .ui-card {
    animation: cardEntranceGlow 1.8s ease-out 0.3s 1;
  }

  /* Improved section reveal timing */
  .section-hidden {
    transition: opacity 0.85s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
  }

  /* Mobile typography refinements */
  .title-serif {
    letter-spacing: 0.08em !important;
  }

  .section-subtitle {
    font-size: 1rem !important;
    line-height: 1.6;
  }

  /* Taller card images on mobile */
  .ui-card img[alt] {
    height: 10rem !important;
  }

  /* Gold gradient border for section separators */
  section.border-y {
    border-image: linear-gradient(90deg, transparent, rgba(192, 160, 96, 0.3), transparent) 1 !important;
  }

  /* Floating CTA smooth entrance */
  #floating-cta-button {
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    transform: translateY(20px) scale(0.9) !important;
  }

  #floating-cta-button.show {
    transform: translateY(0) scale(1) !important;
  }

  /* Progress bar subtle glow */
  #progress-bar {
    height: 3px !important;
    box-shadow: 0 1px 8px rgba(192, 160, 96, 0.35);
  }

  /* Stagger card reveals */
  .ui-card.mobile-stagger {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .ui-card.mobile-stagger.mobile-card-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .ui-card.mobile-stagger:nth-child(1) {
    transition-delay: 0s;
  }

  .ui-card.mobile-stagger:nth-child(2) {
    transition-delay: 0.15s;
  }

  .ui-card.mobile-stagger:nth-child(3) {
    transition-delay: 0.3s;
  }

  /* Subtle section background gradient on alternate sections */
  section:nth-of-type(even)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center top, rgba(192, 160, 96, 0.03), transparent 70%);
    pointer-events: none;
    z-index: -1;
  }
}

/* === PREMIUM ENHANCEMENTS === */

/* Preloader / Splash Screen */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

#preloader img {
  width: 120px;
  height: auto;
  animation: preloaderPulse 1.5s ease-in-out infinite;
}

#preloader .preloader-bar {
  width: 120px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-top: 1.5rem;
  overflow: hidden;
}

#preloader .preloader-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
  border-radius: 2px;
  animation: preloaderFill 1.2s ease-in-out forwards;
}

@keyframes preloaderPulse {

  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes preloaderFill {
  0% {
    width: 0%;
  }

  100% {
    width: 100%;
  }
}

/* Custom gold text selection */
::selection {
  background: rgba(192, 160, 96, 0.35);
  color: var(--text-primary);
}

::-moz-selection {
  background: rgba(192, 160, 96, 0.35);
  color: var(--text-primary);
}

/* Split-text word reveal — always visible (no hidden state). JS still applies
   .split-text-reveal but words don't depend on it for visibility. */
.split-text-word {
  display: inline-block;
  color: var(--accent-gold);
  font-family: inherit;
  position: relative;
  z-index: 20;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.split-text-reveal .split-text-word {
  opacity: 1;
  transform: translateY(0);
}

/* Magnetic button effect */
.btn {
  position: relative;
}
