/* ===========================================
   THE CHASE - MAIN STYLESHEET
   Mobile-First Responsive Design
   Modern Gamified Design with Detective Vibes
   =========================================== */

/* Import Design Tokens */
@import 'variables.css';

/* ===========================================
   CSS RESET & BASE
   =========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth !important;
  -webkit-text-size-adjust: 100%;
  /* Dark background for iOS safe areas */
  background-color: #02161B;
  /* Prevent zoom on mobile */
  touch-action: manipulation;
}

html, body, * {
  scroll-behavior: smooth !important;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  /* Transparent to allow page-background to show through */
  background-color: transparent;
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for mobile */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Prevent overscroll bounce on iOS/mobile */
  overscroll-behavior: none;
  overscroll-behavior-y: none;
  /* iOS safe area handling - only top, footer handles bottom */
  padding-top: env(safe-area-inset-top);
}

/* ===========================================
   FIXED BACKGROUND WITH OVERLAY
   =========================================== */
.page-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Extend beyond viewport for iOS safe areas */
  top: calc(-1 * env(safe-area-inset-top, 0px));
  bottom: calc(-1 * env(safe-area-inset-bottom, 0px));
  z-index: -2;
  pointer-events: none;
  /* Prevent any transform/scroll issues */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.page-background__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/images/map_bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll; /* Fixed causes issues on iOS */
  /* GPU acceleration for smooth rendering */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.page-background__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(18, 18, 18, 0.98) 0%,
    rgba(18, 18, 18, 0.85) 100%
  );
  /* GPU acceleration */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* ===========================================
   MAIN CONTENT WRAPPER
   =========================================== */
.page-content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ===========================================
   TYPOGRAPHY
   =========================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--text-heading);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h1 {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
}

h2 {
  font-size: var(--text-2xl);
}

h3 {
  font-size: var(--text-xl);
}

h4 {
  font-size: var(--text-lg);
}

h5, h6 {
  font-size: var(--text-base);
}

/* Desktop Typography */
@media (min-width: 1024px) {
  h1 {
    font-size: var(--text-6xl);
  }

  h2 {
    font-size: var(--text-4xl);
  }

  h3 {
    font-size: var(--text-2xl);
  }

  h4 {
    font-size: var(--text-xl);
  }
}

p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

.lead {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
}

@media (min-width: 1024px) {
  .lead {
    font-size: var(--text-xl);
  }
}

a {
  color: var(--text-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-teal-100);
}

strong, b {
  font-weight: var(--font-bold);
  color: var(--text-primary);
}

em, i {
  font-style: italic;
}

/* Highlight Text */
.text-highlight {
  color: var(--color-teal-accent);
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-teal-accent), var(--color-teal-100));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===========================================
   CONTAINER
   =========================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

@media (min-width: 640px) {
  .container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }
}

.container-sm {
  max-width: 800px;
}

.container-lg {
  max-width: 1440px;
}

/* ===========================================
   BUTTONS
   =========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.4);
}

/* Primary Button */
.btn-primary {
  background-color: var(--button-primary-bg);
  color: var(--button-primary-text);
  border-color: var(--button-primary-bg);
}

.btn-primary:hover {
  background-color: var(--button-primary-hover);
  border-color: var(--button-primary-hover);
  color: var(--color-nearly-white);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* Secondary Button */
.btn-secondary {
  background-color: var(--button-secondary-bg);
  color: var(--button-secondary-text);
  border-color: var(--button-secondary-border);
}

.btn-secondary:hover {
  background-color: var(--button-secondary-hover-bg);
  color: var(--button-secondary-hover-text);
  transform: translateY(-2px);
}

/* Button Sizes */
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

/* Full Width Button */
.btn-block {
  width: 100%;
}

@media (min-width: 640px) {
  .btn-block-mobile {
    width: auto;
  }
}

/* Icon Button */
.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* ===========================================
   FORMS
   =========================================== */
.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-primary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  color: var(--input-text);
  background-color: var(--input-background);
  border: 2px solid var(--input-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--input-placeholder);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--input-focus-border);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Dark Form Inputs */
.form-input-dark,
.form-textarea-dark {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.form-input-dark::placeholder,
.form-textarea-dark::placeholder {
  color: var(--text-secondary);
}

.form-input-dark:focus,
.form-textarea-dark:focus {
  border-color: var(--color-teal-accent);
  background-color: rgba(255, 255, 255, 0.15);
}

/* ===========================================
   CARDS
   =========================================== */
.card {
  background-color: var(--card-background);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  color: var(--card-text);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.card-alt {
  background-color: var(--card-background-alt);
}

/* Glass Card - unified style for all cards */
.card-glass {
  background: rgba(8, 64, 75, var(--glass-opacity));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(20, 184, 166, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Feature Card with Icon */
.feature-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--glass-background);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-normal);
}

.feature-card:hover {
  border-color: var(--color-teal-accent);
  box-shadow: var(--shadow-glow);
}

.feature-card__icon {
  flex-shrink: 0;
}

.feature-card__content h4 {
  font-family: var(--font-primary);
  font-weight: var(--font-semibold);
  text-transform: none;
  margin-bottom: var(--space-2);
}

.feature-card__content p {
  margin-bottom: 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ===========================================
   ICON BOXES (Game Actions)
   =========================================== */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  font-size: 1.5rem;
  color: var(--color-nearly-white);
  flex-shrink: 0;
}

.icon-box-sm {
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
}

.icon-box-lg {
  width: 72px;
  height: 72px;
  font-size: 2rem;
}

.icon-box img,
.icon-box svg {
  width: 60%;
  height: 60%;
  object-fit: contain;
  /* Make SVG icons white/nearly-white */
  filter: brightness(0) invert(1);
}

/* Icon Colors - Solid backgrounds to prevent transparency issues when stacked */
.icon-box-freeze { background-color: rgb(1, 121, 173); border: 1px solid rgba(1, 121, 173, 0.7); }
.icon-box-surveillance { background-color: rgb(185, 1, 10); border: 1px solid rgba(185, 1, 10, 0.7); }
.icon-box-scenic { background-color: rgb(170, 10, 170); border: 1px solid rgba(170, 10, 170, 0.7); }
.icon-box-transport { background-color: rgb(14, 134, 62); border: 1px solid rgba(14, 134, 62, 0.7); }
.icon-box-escaper { background-color: rgb(18, 18, 18); border: 1px solid rgba(255, 255, 255, 0.3); }
.icon-box-chaser { background-color: rgb(20, 100, 95); border: 1px solid rgba(20, 184, 166, 0.6); }
.icon-box-time { background-color: rgb(20, 100, 95); border: 1px solid rgba(20, 184, 166, 0.6); }
.icon-box-teal { background-color: rgb(20, 100, 95); border: 1px solid rgba(20, 184, 166, 0.6); }

/* ===========================================
   FREE TESTING BANNER
   =========================================== */
.free-testing-banner {
  position: fixed;
  top: 80px; /* Below navigation */
  left: 0;
  right: 0;
  z-index: calc(var(--z-fixed) - 1);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.95) 0%, rgba(14, 134, 62, 0.95) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(20, 184, 166, 0.3);
  text-decoration: none;
  transition: all var(--transition-normal);
  animation: bannerPulse 2s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  box-sizing: border-box;
}

.free-testing-banner:hover {
  background: linear-gradient(135deg, rgba(20, 184, 166, 1) 0%, rgba(14, 134, 62, 1) 100%);
  box-shadow: 0 4px 20px rgba(20, 184, 166, 0.4);
  transform: translateY(-2px);
}

.free-testing-banner .container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.free-testing-banner__content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  letter-spacing: 0.5px;
  line-height: 1;
}

.free-testing-banner__content i {
  font-size: var(--text-lg);
  animation: iconBounce 1s ease-in-out infinite;
  display: flex;
  align-items: center;
}

.free-testing-banner__content span {
  display: flex;
  align-items: center;
}

@keyframes bannerPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.9; }
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Adjust hero section to account for banner */
.hero {
  padding-top: calc(80px + 48px + var(--space-10)); /* nav + banner + spacing */
}

@media (max-width: 768px) {
  .free-testing-banner {
    top: 72px; /* Adjusted for mobile nav height */
    height: 52px;
  }

  .free-testing-banner__content {
    font-size: 0.95rem;
    gap: var(--space-2);
  }

  .free-testing-banner__content i {
    font-size: 1.1rem;
  }

  .free-testing-banner__content span {
    font-size: 0.95rem;
  }
  
  .hero {
    padding-top: calc(72px + 52px + var(--space-8)); /* mobile nav + banner + spacing */
  }
}

/* ===========================================
   NAVIGATION
   =========================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: rgba(2, 22, 27, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(20, 184, 166, 0.15);
  transition: background var(--transition-normal), box-shadow var(--transition-normal);
}

.nav.scrolled {
  background: rgba(2, 22, 27, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(20, 184, 166, 0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.nav-logo img {
  height: 48px;
  width: auto;
  border-radius: var(--radius-lg);
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--nav-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-logo:hover .nav-logo-text {
  color: var(--color-teal-accent);
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--nav-text);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

/* Navigation Links - Mobile Sidebar */
.nav-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: linear-gradient(135deg, rgba(2, 22, 27, 0.98) 0%, rgba(8, 64, 75, 0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 100px var(--space-6) var(--space-8);
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: var(--space-2);
  border-left: none;
  overflow-y: auto;
  z-index: 9999;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu.active {
  display: flex;
  right: 0;
}

/* Mobile Nav Close Button */
.nav-close {
  position: absolute;
  top: var(--space-6);
  left: var(--space-6);
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: var(--nav-text);
  font-size: var(--text-xl);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 10;
}

.nav-close:hover {
  color: var(--color-teal-accent);
  transform: scale(1.1);
}

@media (min-width: 1024px) {
  .nav-close {
    display: none;
  }
}

/* Sidebar backdrop overlay */
.nav-menu::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 280px;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.nav-menu.active::before {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
    position: static;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    flex-direction: row;
    gap: var(--space-8);
    align-items: center;
    border-left: none;
  }
}

@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
    position: static;
    width: auto;
    height: auto;
    right: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    flex-direction: row;
    gap: var(--space-8);
    align-items: center;
    border-left: none;
    box-shadow: none;
  }
  
  .nav-menu::before {
    display: none;
  }
}

.nav-link {
  display: block;
  padding: var(--space-3) var(--space-4);
  color: var(--nav-text);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-fast);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--nav-text-hover);
  background: rgba(20, 184, 166, 0.1);
  border-color: rgba(20, 184, 166, 0.3);
}

@media (min-width: 1024px) {
  .nav-link {
    padding: var(--space-2) 0;
    font-size: var(--text-lg);
    border: none;
    border-radius: 0;
    background: none;
    position: relative;
    width: auto;
    text-align: left;
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-teal-accent);
    transition: width var(--transition-fast);
  }

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
  }
  
  .nav-link:hover,
  .nav-link.active {
    background: none;
    border-color: transparent;
  }
}

/* Instagram Social Link in Nav */
.nav-social {
  display: block;
  padding: var(--space-3);
  margin: var(--space-2) 0;
  color: var(--nav-text);
  font-size: var(--text-xl);
  text-align: center;
  background: rgba(20, 184, 166, 0.1);
  border: none;
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.nav-social:hover {
  color: var(--color-teal-accent);
  background: rgba(20, 184, 166, 0.2);
  transform: scale(1.05);
}

@media (min-width: 1024px) {
  .nav-social {
    padding: var(--space-2);
    margin: 0;
    background: rgba(20, 184, 166, 0.15);
    border-radius: var(--radius-full);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
  }
}

.nav-cta {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(20, 184, 166, 0.2);
}

.nav-cta .btn {
  width: 100%;
  overflow: visible;
}

@media (min-width: 1024px) {
  .nav-cta {
    margin-top: 0;
    margin-left: var(--space-4);
    padding-top: 0;
    border-top: none;
    width: auto;
  }
  
  .nav-cta .btn {
    width: auto;
    max-width: none;
    white-space: nowrap;
  }
}

/* ===========================================
   SECTIONS
   =========================================== */
.section {
  padding: var(--space-10) 0;
}

.section-sm {
  padding: var(--space-8) 0;
}

.section-lg {
  padding: var(--space-16) 0;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-12);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ===========================================
   HERO SECTION
   =========================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(72px + var(--space-10)) var(--space-4) var(--space-10);
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(20, 184, 166, 0.2);
  border: 2px solid var(--color-teal-accent);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-teal-accent);
  margin-bottom: var(--space-6);
  box-shadow: 0 0 20px rgba(20, 184, 166, 0.4), 0 0 40px rgba(20, 184, 166, 0.2);
  animation: badgeGlow 2s ease-in-out infinite;
}

@keyframes badgeGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.4), 0 0 40px rgba(20, 184, 166, 0.2);
    border-color: var(--color-teal-accent);
  }
  50% {
    box-shadow: 0 0 30px rgba(20, 184, 166, 0.8), 0 0 60px rgba(20, 184, 166, 0.4), 0 0 80px rgba(20, 184, 166, 0.2);
    border-color: rgba(20, 184, 166, 1);
  }
}

.hero-badge i {
  font-size: var(--text-xs);
}

.hero-title {
  font-size: var(--text-4xl);
  line-height: 1.1;
  margin-bottom: var(--space-6);
}

.hero-title span {
  color: var(--color-teal-accent);
}

@media (min-width: 640px) {
  .hero-title {
    font-size: var(--text-5xl);
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .hero-subtitle {
    font-size: var(--text-xl);
  }
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  position: relative;
  z-index: 10;
}

@media (min-width: 640px) {
  .hero-cta {
    flex-direction: row;
    justify-content: center;
  }
}

/* ===========================================
   VIDEO CAROUSEL
   =========================================== */
.video-carousel {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background-color: var(--color-nearly-black);
  box-shadow: var(--shadow-glow-strong);
}

.video-carousel__container {
  position: relative;
  aspect-ratio: 9/16;
  overflow: hidden;
}

.video-carousel__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.video-carousel__slide.active {
  opacity: 1;
}

.video-carousel__slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-carousel__controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 var(--space-3);
  pointer-events: none;
}

.video-carousel__btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: var(--radius-full);
  color: var(--color-nearly-white);
  font-size: var(--text-xl);
  cursor: pointer;
  pointer-events: auto;
  transition: all var(--transition-fast);
}

.video-carousel__btn:hover {
  background: var(--color-teal-accent);
  color: var(--color-nearly-black);
}

.video-carousel__dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4);
  background: rgba(0, 0, 0, 0.3);
}

.video-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.video-carousel__dot.active {
  background: var(--color-teal-accent);
  width: 24px;
}

/* Phone Frame */
.phone-frame {
  position: relative;
  max-width: 300px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .phone-frame {
    max-width: 340px;
  }
}

.phone-frame__border {
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border: 3px solid var(--color-grey-dark);
  border-radius: 44px;
  pointer-events: none;
}

.phone-frame__notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: var(--color-nearly-black);
  border-radius: 0 0 20px 20px;
  z-index: 10;
}

/* ===========================================
   FOOTER
   =========================================== */
.footer {
  background: linear-gradient(180deg, transparent 0%, var(--footer-background) 100%);
  padding: var(--space-16) 0 var(--space-6);
  color: var(--footer-text);
}

.footer-grid {
  display: grid;
  gap: var(--space-10);
  margin-bottom: var(--space-10);
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  }
}

.footer-brand p {
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
  color: var(--footer-text);
}

.footer-links {
  list-style: none;
}

.footer-link {
  display: inline-block;
  color: var(--footer-link);
  margin-bottom: var(--space-3);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--footer-link-hover);
}

.footer-contact a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--footer-link);
  margin-bottom: var(--space-3);
}

.footer-contact a:hover {
  color: var(--color-teal-accent);
}

/* Contact Link */
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.2) 0%, rgba(8, 64, 75, 0.4) 100%);
  border: 1px solid rgba(20, 184, 166, 0.4);
  border-radius: var(--radius-lg);
  color: var(--color-teal-accent);
  font-weight: var(--font-medium);
  transition: all var(--transition-fast);
}

.contact-link:hover {
  background: rgba(20, 184, 166, 0.3);
  border-color: var(--color-teal-accent);
  color: var(--color-nearly-white);
  transform: translateY(-2px);
}

.contact-link i {
  font-size: 1.25rem;
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
}

/* ===========================================
   SOCIAL ICONS
   =========================================== */
.social-links {
  display: flex;
  gap: var(--space-3);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-size: var(--text-xl);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background-color: var(--color-teal-accent);
  color: var(--color-nearly-black);
  transform: translateY(-2px);
}

/* ===========================================
   NEWSLETTER FORM
   =========================================== */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .newsletter-form--inline {
    flex-direction: row;
  }

  .newsletter-form--inline .form-input {
    flex: 1;
  }
}

/* ===========================================
   GAME RULES SECTION
   =========================================== */
.rules-grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .rules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.rule-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  background: rgba(8, 64, 75, var(--glass-opacity));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(20, 184, 166, 0.25);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all var(--transition-normal);
}

.rule-card:hover {
  border-color: rgba(20, 184, 166, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(20, 184, 166, 0.15);
  transform: translateY(-2px);
}

.rule-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rule-card__content p {
  margin: 0;
  color: var(--text-secondary);
}

.rule-card__content strong {
  color: var(--text-primary);
}

.rule-card__icon-group {
  display: flex;
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.rule-card__icon-group .icon-box {
  position: absolute;
  transition: transform var(--transition-normal);
}

.rule-card__icon-group .icon-box:nth-child(1) {
  left: 0;
  z-index: 1;
}

.rule-card__icon-group .icon-box:nth-child(2) {
  left: 12px;
  z-index: 2;
}

.rule-card__icon-group .icon-box:nth-child(3) {
  left: 24px;
  z-index: 3;
}

.rule-card:hover .rule-card__icon-group .icon-box:nth-child(1) {
  transform: translateX(-2px);
}

.rule-card:hover .rule-card__icon-group .icon-box:nth-child(3) {
  transform: translateX(2px);
}

/* Add spacing when rule card has icon group */
.rule-card__icon-group + .rule-card__content {
  margin-left: var(--space-3);
}

/* ===========================================
   ACTION CARDS GRID
   =========================================== */
.actions-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .actions-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.action-card {
  text-align: center;
  padding: var(--space-6);
  background: rgba(8, 64, 75, var(--glass-opacity));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(20, 184, 166, 0.25);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all var(--transition-normal);
}

.action-card:hover {
  border-color: rgba(20, 184, 166, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 30px rgba(20, 184, 166, 0.2);
  transform: translateY(-4px);
}

.action-card__icon {
  margin: 0 auto var(--space-4);
}

.action-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.action-card__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
}

/* ===========================================
   EXPERIENCE SECTION (Ever been chased)
   =========================================== */
.experience-section {
  max-width: 1000px;
  margin: 0 auto;
}

.experience-header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.experience-header h2 {
  margin-bottom: var(--space-3);
}

.experience-tagline {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  font-style: italic;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

@media (min-width: 768px) {
  .experience-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
  }
}

.experience-item-card {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  background: rgba(8, 64, 75, var(--glass-opacity));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(20, 184, 166, 0.25);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all var(--transition-normal);
}

.experience-item-card:hover {
  border-color: rgba(20, 184, 166, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(20, 184, 166, 0.15);
}

.experience-item-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
  display: block;
  color: var(--color-teal-accent);
}

.experience-item-icon i {
  color: var(--color-teal-accent);
}

.experience-item-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .experience-item-card p {
    font-size: var(--text-base);
  }
}

.experience-highlight {
  text-align: center;
  padding: var(--space-8);
  background: rgba(8, 64, 75, var(--glass-opacity));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(20, 184, 166, 0.3);
  border-radius: var(--radius-2xl);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.experience-question {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--color-teal-accent);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

.experience-closing {
  font-size: var(--text-lg);
  color: var(--text-primary);
  margin: 0;
  line-height: 1.7;
}

/* ===========================================
   CITIES SECTION
   =========================================== */
.cities-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .cities-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.city-card {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(8, 64, 75, 0.6) 0%, rgba(8, 64, 75, 0.4) 100%);
  border: 1px solid rgba(20, 184, 166, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-normal);
}

.city-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 30px rgba(20, 184, 166, 0.2);
  border-color: rgba(20, 184, 166, 0.4);
}

.city-card__image {
  position: relative;
  height: 280px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .city-card__image {
    height: 250px;
  }
}

.city-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.city-card:hover .city-card__image img {
  transform: scale(1.1);
}

.city-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(2, 22, 27, 0.95) 100%);
}

/* Live city (Stockholm) - slightly brighter but still readable */
.city-card--live .city-card__overlay {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(2, 22, 27, 0.85) 100%);
}

/* Coming soon cities (Berlin, Munich) - darker overlay */
.city-card--coming .city-card__overlay {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(2, 22, 27, 0.95) 100%);
}

/* Mobile: even darker overlays for better text readability */
@media (max-width: 767px) {
  .city-card__overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(2, 22, 27, 0.95) 100%);
  }
  
  .city-card--live .city-card__overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(2, 22, 27, 0.9) 100%);
  }
}

.city-card__center-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
}

.city-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  color: var(--color-nearly-white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 4px 16px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.05em;
  -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.3);
}

@media (min-width: 640px) {
  .city-card__title {
    font-size: var(--text-3xl);
  }
}

@media (min-width: 768px) {
  .city-card__title {
    font-size: var(--text-4xl);
  }
}

.city-card__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.city-card__badge--live {
  background: rgba(20, 184, 166, 0.3);
  color: var(--color-teal-accent);
  border: 2px solid var(--color-teal-accent);
  box-shadow: 0 0 20px rgba(20, 184, 166, 0.4);
}

.city-card__badge--coming {
  background: rgba(252, 189, 62, 0.2);
  color: var(--color-warning);
  border: 2px solid var(--color-warning);
}

.city-card__content {
  padding: var(--space-5);
  text-align: center;
}

.city-card__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.city-card--coming .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===========================================
   TRANSPORTATION SECTION
   =========================================== */
.transport-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .transport-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
  }
}

/* 5-column grid for how-it-works page */
.transport-grid--five {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .transport-grid--five {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .transport-grid--five {
    grid-template-columns: repeat(5, 1fr);
  }
}

.transport-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(8, 64, 75, 0.5) 0%, rgba(8, 64, 75, 0.3) 100%);
  border: 1px solid rgba(20, 184, 166, 0.2);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-normal);
}

.transport-card:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 184, 166, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(20, 184, 166, 0.15);
}

.transport-card__image {
  position: relative;
  height: 120px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .transport-card__image {
    height: 150px;
  }
}

.transport-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.transport-card:hover .transport-card__image img {
  transform: scale(1.1);
}

.transport-card__overlay {
  position: absolute;
  inset: 0;
  background: none;
  /* Overlay removed for better image visibility */
}

.transport-card__content {
  padding: var(--space-4);
  text-align: center;
}

.transport-card__icon {
  font-size: 1.5rem;
  color: var(--color-teal-accent);
  margin-bottom: var(--space-2);
}

.transport-card__content h4 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  margin-bottom: var(--space-1);
  color: var(--color-nearly-white);
}

.transport-card__content p {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .transport-card__content p {
    font-size: var(--text-sm);
  }
}

/* ===========================================
   TWO COLUMN LAYOUT
   =========================================== */
.two-col {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 1024px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

.two-col--reverse {
  direction: rtl;
}

.two-col--reverse > * {
  direction: ltr;
}

/* ===========================================
   UTILITY CLASSES
   =========================================== */

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Text Colors */
.text-white { color: var(--color-nearly-white); }
.text-muted { color: var(--text-muted); }
.text-teal { color: var(--color-teal-accent); }

/* Spacing */
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* Display */
.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }

/* Flex Utilities */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* Max Width */
.max-w-sm { max-width: 400px; }
.max-w-md { max-width: 600px; }
.max-w-lg { max-width: 800px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Screen Reader Only */
.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;
}

/* ===========================================
   ANIMATIONS
   =========================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes glow {
  0%, 100% { box-shadow: var(--shadow-glow); }
  50% { box-shadow: var(--shadow-glow-strong); }
}

.animate-fade-in {
  animation: fadeIn var(--transition-slow) ease-out;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

/* Scroll Animation Classes */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delays */
[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }
[data-animate-delay="4"] { transition-delay: 0.4s; }

/* ===========================================
   NEWSLETTER POPUP MODAL
   =========================================== */
.newsletter-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.newsletter-popup.active {
  opacity: 1;
  visibility: visible;
}

.newsletter-popup__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.newsletter-popup__content {
  position: relative;
  width: 90%;
  max-width: 420px;
  padding: var(--space-8);
  background: rgba(8, 64, 75, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(20, 184, 166, 0.4);
  border-radius: var(--radius-2xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(20, 184, 166, 0.2);
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.newsletter-popup.active .newsletter-popup__content {
  transform: scale(1) translateY(0);
}

.newsletter-popup__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: var(--text-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.newsletter-popup__close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.newsletter-popup__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 184, 166, 0.2);
  border: 2px solid var(--color-teal-accent);
  border-radius: var(--radius-full);
  color: var(--color-teal-accent);
  font-size: 2rem;
}

.newsletter-popup__content h3 {
  margin-bottom: var(--space-2);
}

.newsletter-popup__content > p {
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

.newsletter-popup .newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.newsletter-popup .form-input {
  text-align: center;
}

.newsletter-popup__note {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-4);
  margin-bottom: 0;
}

/* ===========================================
   APP REVIEW POPUP
   =========================================== */
.app-review-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.app-review-popup.active {
  opacity: 1;
  visibility: visible;
}

.app-review-popup__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.app-review-popup__content {
  position: relative;
  width: 90%;
  max-width: 420px;
  padding: var(--space-8);
  background: rgba(8, 64, 75, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(20, 184, 166, 0.4);
  border-radius: var(--radius-2xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(20, 184, 166, 0.2);
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.app-review-popup.active .app-review-popup__content {
  transform: scale(1) translateY(0);
}

.app-review-popup__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 184, 166, 0.2);
  border: 2px solid var(--color-teal-accent);
  border-radius: var(--radius-full);
  color: var(--color-teal-accent);
  font-size: 2rem;
  animation: pulse 2s ease-in-out infinite;
}

.app-review-popup__content h3 {
  margin-bottom: var(--space-3);
}

.app-review-popup__content > p {
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.app-review-popup__note {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

.app-review-popup__close {
  margin-top: var(--space-2);
}

/* ===========================================
   FORM SUCCESS/ERROR ANIMATIONS
   =========================================== */
.form-submitting {
  pointer-events: none;
}

.form-submitting .form-input,
.form-submitting .form-textarea {
  opacity: 0.6;
}

/* Container that holds both form and success message */
.form-container {
  position: relative;
}

/* Keep form visible but hidden for layout purposes */
.form-hidden {
  visibility: hidden;
  position: absolute;
  pointer-events: none;
}

.form-success-message {
  text-align: center;
  padding: var(--space-6);
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 150px;
}

.form-success-message.form-success-visible {
  opacity: 1;
  transform: scale(1);
}

.form-success-icon {
  font-size: 3rem;
  color: var(--color-teal-accent);
  margin-bottom: var(--space-3);
  animation: successBounce 0.6s ease;
}

@keyframes successBounce {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.form-success-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.form-success-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
}

.form-error-message {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  max-height: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

.form-error-message.form-error-visible {
  opacity: 1;
  transform: translateY(0);
  max-height: 100px;
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-4);
}

/* Footer newsletter success - inline style */
.newsletter-form .form-success-message {
  padding: var(--space-4);
  min-height: auto;
}

.newsletter-form .form-success-icon {
  font-size: 2rem;
  margin-bottom: var(--space-2);
}

.newsletter-form .form-success-title {
  font-size: var(--text-lg);
}

/* ===========================================
   COOKIE CONSENT BANNER (EU GDPR Compliant)
   Full-screen overlay style - users must interact
   =========================================== */
.cookie-banner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.4s ease;
}

.cookie-banner-overlay.cookie-banner-overlay--visible {
  opacity: 1;
  visibility: visible;
  /* Keep pointer-events: none so users can click through overlay */
}

.cookie-banner {
  position: fixed;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, 50%) scale(0.9);
  z-index: 10000;
  background: rgba(18, 18, 18, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(20, 184, 166, 0.4);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  max-width: 520px;
  width: calc(100% - var(--space-8));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(20, 184, 166, 0.15);
}

.cookie-banner.cookie-banner--visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 50%) scale(1);
}

.cookie-banner__container {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  text-align: center;
}

.cookie-banner__buttons {
  flex-direction: column;
}

.cookie-banner__content {
  flex: 1;
}

.cookie-banner__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.cookie-banner__title i {
  color: var(--color-teal-accent);
  font-size: var(--text-2xl);
}

.cookie-banner__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.cookie-banner__text a {
  color: var(--color-teal-accent);
  text-decoration: underline;
}

.cookie-banner__text a:hover {
  color: var(--color-teal-100);
}

.cookie-banner__buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex-shrink: 0;
}

@media (min-width: 480px) {
  .cookie-banner__buttons {
    flex-direction: row;
  }
}

.cookie-banner__btn {
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  border: 2px solid transparent;
}

.cookie-banner__btn--accept {
  background: var(--color-teal-accent);
  color: var(--color-nearly-black);
  border-color: var(--color-teal-accent);
}

.cookie-banner__btn--accept:hover {
  background: var(--color-teal-500);
  border-color: var(--color-teal-500);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(20, 184, 166, 0.4);
}

.cookie-banner__btn--reject {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--text-muted);
}

.cookie-banner__btn--reject:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
  transform: translateY(-2px);
}

.cookie-banner__btn--settings {
  background: transparent;
  color: var(--color-teal-accent);
  border-color: transparent;
  text-decoration: underline;
  padding: var(--space-2) var(--space-3);
}

.cookie-banner__btn--settings:hover {
  color: var(--color-teal-100);
}

/* Cookie Settings Modal */
.cookie-settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cookie-settings-modal.cookie-settings-modal--visible {
  opacity: 1;
  visibility: visible;
}

.cookie-settings-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.cookie-settings-modal__content {
  position: relative;
  background: var(--color-nearly-black);
  border: 1px solid rgba(20, 184, 166, 0.3);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.cookie-settings-modal--visible .cookie-settings-modal__content {
  transform: scale(1);
}

.cookie-settings-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-settings-modal__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin: 0;
}

.cookie-settings-modal__close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: var(--text-xl);
  cursor: pointer;
  padding: var(--space-2);
  transition: color var(--transition-fast);
}

.cookie-settings-modal__close:hover {
  color: var(--text-primary);
}

.cookie-settings__option {
  padding: var(--space-4) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cookie-settings__option:last-child {
  border-bottom: none;
}

.cookie-settings__option-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.cookie-settings__option-title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

.cookie-settings__option-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Toggle Switch */
.cookie-toggle {
  position: relative;
  width: 48px;
  height: 26px;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle__slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-grey-dark);
  border-radius: 26px;
  transition: all 0.3s ease;
}

.cookie-toggle__slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: var(--text-primary);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.cookie-toggle input:checked + .cookie-toggle__slider {
  background: var(--color-teal-accent);
}

.cookie-toggle input:checked + .cookie-toggle__slider::before {
  transform: translateX(22px);
}

.cookie-toggle input:disabled + .cookie-toggle__slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-settings__buttons {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-settings__buttons .cookie-banner__btn {
  flex: 1;
}