/* PocketGlobe Website Styles */

/* ===== DESIGN TOKENS ===== */
:root {
  /* Brand palette */
  --royal-blue: #1320A6;
  --royal-blue-light: #1E2BB8;
  --brand-red: #FF3B30;
  --brand-red-light: #FF6B5A;
  --deep-aqua: #0799AA;
  --deep-aqua-light: #0FB9C6;
  --bright-emerald: #0AFA5F;
  --bright-emerald-light: #5BFFC4;
  --oxford-blue: #0B132B;
  --oxford-blue-light: #1F2A4C;
  --night: #0E0E10;
  --charcoal: #121213;
  --jet: #1A1A1A;
  --white: #FFFFFF;
  --white-soft: #FAFBFC;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  --surface-1: #FFFFFF;
  --surface-1a: rgba(255, 255, 255, 0.92);
  --surface-2a: rgba(255, 255, 255, 0.88);
  --surface-3a: rgba(255, 255, 255, 0.75);
  --surface-dark: #050812;
  --surface-dark-a: rgba(5, 8, 18, 0.92);
  --surface-hero-scrim: rgba(11, 19, 43, 0.55);
  --fg-strong: #0B132B;
  --fg-muted: #30406A;
  --fg-soft: #4C5B84;
  --fg-on-dark: #FFFFFF;
  --fg-on-dark-muted: rgba(255, 255, 255, 0.85);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* Layout */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 40px rgba(19, 32, 166, 0.18);
  --shadow-xl: 0 30px 70px rgba(11, 19, 43, 0.25);
  --shadow-colored: 0 18px 45px rgba(19, 32, 166, 0.35);

  --primary-gradient: linear-gradient(135deg, #1320A6 0%, #1E2BB8 60%, #0799AA 100%);
  --primary-gradient-soft: linear-gradient(135deg, rgba(19, 32, 166, 0.15), rgba(7, 153, 170, 0.1));
  --hero-gradient: linear-gradient(135deg, rgba(19, 32, 166, 0.92), rgba(7, 153, 170, 0.85));
  --dark-gradient: linear-gradient(135deg, rgba(14, 14, 16, 0.95), rgba(26, 26, 26, 0.95));
}

body.dark {
  --white: #0E0E10;
  --white-soft: #111218;
  --oxford-blue: #FFFFFF;
  --gray-200: #282833;
  --gray-400: #6E7186;
  --surface-1: #111218;
  --surface-1a: rgba(17, 18, 24, 0.94);
  --surface-2a: rgba(22, 24, 36, 0.9);
  --surface-dark: #050812;
  --surface-dark-a: rgba(5, 8, 18, 0.92);
  --fg-strong: #FFFFFF;
  --fg-muted: rgba(255, 255, 255, 0.82);
  --fg-soft: rgba(255, 255, 255, 0.65);
  --fg-on-dark: #FFFFFF;
  --fg-on-dark-muted: rgba(255, 255, 255, 0.85);
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--oxford-blue);
  background: var(--white);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

a:hover {
  color: var(--royal-blue);
}

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

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -60px;
  background: var(--royal-blue);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: var(--font-medium);
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: top 0.3s ease;
  z-index: 1050;
}

.skip-link:focus {
  top: var(--space-4);
}

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

.main-content {
  padding-top: 110px;
}

.container {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ===== PAGE LOADER ===== */
.page-loader {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 25% 25%, rgba(19, 32, 166, 0.2), transparent 60%),
              radial-gradient(circle at 75% 75%, rgba(7, 153, 170, 0.18), transparent 55%),
              rgba(11, 19, 43, 0.95);
  color: var(--white);
  z-index: 2000;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(19, 32, 166, 0.42), transparent 65%);
  filter: blur(38px);
  opacity: 0.8;
  animation: loader-glow 3.4s ease-in-out infinite;
}

.loader-planet {
  position: relative;
  width: 130px;
  height: 130px;
  display: grid;
  place-items: center;
  margin-bottom: var(--space-4);
}

.loader-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: rgba(255, 255, 255, 0.85);
  animation: loader-spin 1.8s linear infinite;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.22);
}

.loader-core {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--primary-gradient);
  animation: loader-pulse 1.8s ease-in-out infinite;
  box-shadow: 0 0 25px rgba(19, 32, 166, 0.4), 0 0 40px rgba(7, 153, 170, 0.3);
}

.loader-label {
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: var(--space-4);
}

/* ===== BUTTONS ===== */
.btn-primary,
.btn-secondary,
.btn-outline,
.subscribe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-weight: var(--font-semibold);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-6);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--white);
  box-shadow: var(--shadow-colored);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: var(--fg-on-dark);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.22);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: var(--fg-on-dark);
}

.btn-outline:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.12);
}

.subscribe-btn {
  background: var(--royal-blue);
  color: var(--fg-on-dark);
  padding-inline: var(--space-5);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.subscribe-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* Torch + background variables (JS-controlled) */
  --torch-x: 50%;
  --torch-y: 50%;
  --header-bg-opacity: 0.28;
  --header-bg-position: center;
  --pg-header-bg: none;
  background: var(--surface-1a);
  color: rgba(11, 19, 43, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(19, 32, 166, 0.08);
  z-index: 1200;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

/* Header background image layer (no markup changes) */
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--pg-header-bg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: var(--header-bg-position);
  opacity: var(--header-bg-opacity);
  mix-blend-mode: multiply;
  z-index: 0;
  pointer-events: none;
}

/* Torchlight overlay mask following cursor */
.header::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: none; /* torchlight disabled on header */
}

.header.scrolled {
  background: var(--surface-1);
  color: rgba(11, 19, 43, 0.92);
  box-shadow: var(--shadow-md);
}

body.dark .header {
  background: var(--surface-1a);
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.dark .header.scrolled {
  background: rgba(12, 15, 26, 0.94);
  box-shadow: var(--shadow-md);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  position: relative;
  z-index: 2; /* ensure content stays above overlays */
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: var(--font-extrabold);
  color: var(--royal-blue);
  text-decoration: none;
  font-size: var(--text-xl);
}

body.dark .logo {
  color: var(--fg-on-dark);
}

.logo-icon {
  font-size: var(--text-2xl);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  position: relative;
  font-weight: var(--font-medium);
  color: rgba(11, 19, 43, 0.92);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}


body.dark .nav-link {
  color: rgba(255, 255, 255, 0.88);
}

body.dark .nav-link:hover,
body.dark .nav-link:focus-visible {
  color: var(--fg-on-dark);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--royal-blue);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--royal-blue);
  opacity: 1;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  width: 100%;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(19, 32, 166, 0.08);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--royal-blue);
  margin-left: var(--space-6);
  transition: background 0.3s ease;
}

body.dark .theme-toggle {
  background: rgba(255, 255, 255, 0.12);
  color: var(--fg-on-dark);
}

.theme-toggle:hover {
  background: rgba(19, 32, 166, 0.16);
}

.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(19, 32, 166, 0.08);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--royal-blue);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: var(--space-20) 0 var(--space-16);
  background: var(--hero-gradient);
  color: var(--fg-on-dark);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--surface-hero-scrim) 0%, rgba(11, 19, 43, 0.35) 45%, rgba(0, 0, 0, 0) 100%),
              radial-gradient(circle at 75% 15%, rgba(7, 153, 170, 0.25), transparent 65%),
              radial-gradient(circle at 10% 85%, rgba(10, 250, 95, 0.18), transparent 55%);
  opacity: 1;
  z-index: 0;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 3;
}

/* Torchlight overlay moved to hero middle area */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2; /* above image, below content */
  pointer-events: none;
  background: radial-gradient(
    circle 160px at var(--torch-x, 50%) var(--torch-y, 50%),
    rgba(255, 255, 255, 0.18) 0,
    rgba(255, 255, 255, 0.10) 120px,
    rgba(255, 255, 255, 0.0) 200px
  );
  transition: background-position 0.08s linear;
}

/* Image layer behind hero, revealed by eraser clip */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1; /* above overlay, below glow and content */
  pointer-events: none;
  background-image: var(--hero-bg-image, url('../images/PocketGlobe.in - BG.png'));
  background-size: cover;
  background-position: center;
  opacity: 0.9;
  /* Soft masked eraser with feathered (gaussian-like) falloff */
  -webkit-mask-image: radial-gradient(
    circle at var(--torch-x, 50%) var(--torch-y, 50%),
    rgba(255, 255, 255, 1) 0,
    rgba(255, 255, 255, 1) var(--erase-radius, 0px),
    rgba(255, 255, 255, 0) calc(var(--erase-radius, 0px) + 180px)
  );
  mask-image: radial-gradient(
    circle at var(--torch-x, 50%) var(--torch-y, 50%),
    rgba(255, 255, 255, 1) 0,
    rgba(255, 255, 255, 1) var(--erase-radius, 0px),
    rgba(255, 255, 255, 0) calc(var(--erase-radius, 0px) + 180px)
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: cover;
  mask-size: cover;
  transition: -webkit-mask-image 0.06s linear, mask-image 0.06s linear;
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-12);
  align-items: center;
}

.hero-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: var(--font-extrabold);
  font-size: var(--text-5xl);
  margin-bottom: var(--space-3);
  color: var(--fg-on-dark);
  text-shadow: 0 6px 18px rgba(6, 11, 26, 0.45);
}

.globe-icon {
  font-size: 3rem;
}

.brand-gradient {
  background: linear-gradient(135deg, #FFFFFF, #C5D4FF);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-4);
}

.hero-description {
  font-size: var(--text-lg);
  max-width: 520px;
  margin-bottom: var(--space-5);
  color: rgba(255, 255, 255, 0.9);
}

.hero-badges {
  list-style: none;
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.badge {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  letter-spacing: 0.04em;
  color: var(--fg-on-dark);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.hero-buttons {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.hero-badges--locked {
  justify-content: flex-start;
}

.hero-badges--locked .badge-locked {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  letter-spacing: 0.08em;
}

.hero-buttons--locked {
  align-items: center;
  gap: var(--space-3);
}

.hero-buttons--locked .locked-note {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.phone-mockup {
  perspective: 1400px;
}

.phone-frame {
  width: 280px;
  height: 560px;
  border-radius: 38px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transform: rotateY(-15deg) rotateX(5deg);
  transition: transform 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* ensure children never paint outside the rounded shell */
  contain: paint; /* isolate painting for safety */
}

.phone-frame:hover {
  transform: rotateY(-5deg) rotateX(0deg) scale(1.03);
}

.phone-display {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 65%),
    radial-gradient(circle at 75% 80%, rgba(7, 153, 170, 0.25), rgba(7, 153, 170, 0) 60%),
    linear-gradient(200deg, rgba(12, 21, 55, 0.85), rgba(12, 21, 55, 0.55));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  box-shadow: 0 18px 35px rgba(6, 11, 26, 0.35);
  position: relative;
  overflow: hidden; /* clip animated taglines within screen */
  contain: paint; /* avoids overflow artifacts during transforms */
}

.phone-display::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  pointer-events: none;
}

.phone-lockup {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
  color: var(--fg-on-dark);
}

.phone-lock-icon {
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.12);
  color: var(--fg-on-dark);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(12, 21, 55, 0.35);
}

.phone-status {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.75);
}

.phone-tagline-wrapper {
  position: relative;
  width: min(220px, 90%);
  height: 64px; /* allow up to two lines without clipping */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 6px; /* small side padding to avoid edge clipping */
}

.phone-tagline {
  position: absolute;
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  line-height: 1.3; /* balanced line height */
  width: 100%;
  left: 0;
  right: 0;
  text-align: center;
  white-space: normal; /* allow wrapping inside wrapper */
  overflow-wrap: anywhere;
  opacity: 0;
  transform: translateY(16px);
  animation: phoneTagline 16s ease-in-out infinite;
  color: rgba(255, 255, 255, 0.92);
}

.phone-tagline:nth-child(2) { animation-delay: 4s; }

.phone-tagline:nth-child(3) { animation-delay: 8s; }

.phone-tagline:nth-child(4) { animation-delay: 12s; }

.phone-progress {
  width: 160px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
  margin-top: var(--space-2);
}

.phone-progress-bar {
  display: block;
  width: 35%;
  height: 100%;
  background: var(--bright-emerald);
  border-radius: inherit;
  animation: phoneProgress 3s ease-in-out infinite;
  transform: translateX(-100%);
}

.phone-reveal {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
}

.phone-screen {
  height: 100%;
  border-radius: 28px;
  background: #FFFFFF;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--oxford-blue);
}

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  font-size: var(--text-sm);
  background: rgba(19, 32, 166, 0.08);
}

.status-icons {
  display: flex;
  gap: 0.4rem;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  font-weight: var(--font-semibold);
}

.app-header .compass-icon,
.app-header .location-indicator {
  font-size: 1.1rem;
  color: var(--royal-blue);
}

.chip-row {
  display: flex;
  gap: 0.6rem;
  padding: 0 1rem 1rem;
  overflow-x: auto;
}

.chip {
  border: none;
  background: rgba(19, 32, 166, 0.08);
  color: var(--royal-blue);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.chip.active {
  background: var(--royal-blue);
  color: var(--white);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(19, 32, 166, 0.12);
}

.search-icon {
  font-size: var(--text-lg);
  color: var(--royal-blue);
}

.search-input {
  flex: 1;
  border: none;
  font-size: var(--text-sm);
}

.search-input:focus {
  outline: none;
}

.search-btn {
  border: none;
  background: var(--royal-blue);
  color: var(--white);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
}

.map-preview {
  position: relative;
  flex: 1;
  margin: 0 1rem 1.5rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(19, 32, 166, 0.08), rgba(7, 153, 170, 0.12));
  padding: 1.5rem;
  overflow: hidden;
}

.map-markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.marker {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--bright-emerald);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(10, 250, 95, 0.6);
}

.marker-1 { top: 30%; left: 50%; }
.marker-2 { top: 48%; left: 30%; }
.marker-3 { top: 62%; left: 40%; }
.marker-4 { top: 70%; left: 65%; }
.marker-5 { top: 38%; left: 75%; }

.map-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  color: var(--oxford-blue);
}

.map-legend {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--royal-blue);
}

.poi-card {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.95);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.poi-card h3 {
  font-size: var(--text-lg);
  margin-bottom: 0.25rem;
  font-weight: var(--font-semibold);
}

.poi-card p {
  font-size: var(--text-sm);
  color: var(--gray-600);
  margin-bottom: 0.35rem;
}

.rating {
  font-weight: var(--font-medium);
  color: var(--royal-blue);
}

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.75;
  font-size: var(--text-sm);
}

.scroll-cue .mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  position: relative;
}

.scroll-cue .mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  animation: scroll 1.6s ease-in-out infinite;
}

/* ===== FEATURES ===== */
.features {
  padding: var(--space-20) 0;
  background: var(--surface-dark);
  position: relative;
  color: var(--fg-on-dark);
}

.section-title {
  text-align: center;
  font-size: var(--text-4xl);
  font-family: var(--font-display);
  font-weight: var(--font-extrabold);
  color: var(--fg-on-dark);
}

.section-subtitle {
  text-align: center;
  max-width: 640px;
  margin: var(--space-4) auto var(--space-8);
  font-size: var(--text-lg);
  color: var(--fg-on-dark-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

.feature-card {
  background: var(--surface-1);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  color: var(--fg-strong);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(19, 32, 166, 0.12);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  color: var(--royal-blue);
  box-shadow: 0 12px 24px rgba(19, 32, 166, 0.12);
}

.feature-card h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
}

.feature-card p {
  color: var(--fg-muted);
  font-size: var(--text-base);
}

.feature-card--locked {
  position: relative;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
}

.feature-lock-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: rgba(19, 32, 166, 0.14);
  color: var(--royal-blue);
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  box-shadow: 0 12px 30px rgba(19, 32, 166, 0.15);
}

.feature-card--locked h3 {
  color: var(--fg-on-dark);
}

.feature-locked-copy {
  color: rgba(255, 255, 255, 0.65);
}

/* ===== DOWNLOAD ===== */
.download {
  position: relative;
  padding: var(--space-20) 0;
  background: linear-gradient(135deg, rgba(19, 32, 166, 0.05), rgba(7, 153, 170, 0.12));
}

.download::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(19, 32, 166, 0.12), transparent 55%),
              radial-gradient(circle at 80% 80%, rgba(7, 153, 170, 0.12), transparent 60%);
  pointer-events: none;
}

.download .container {
  position: relative;
  z-index: 1;
}

.download-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-12);
  align-items: stretch;
}

.download-copy {
  background: var(--surface-2a);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
  color: var(--fg-strong);
}

.download-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(19, 32, 166, 0.1);
  color: var(--royal-blue);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: var(--space-4);
}

.download-copy h2 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
}

.download-copy p {
  font-size: var(--text-lg);
  color: var(--fg-muted);
  margin-bottom: var(--space-6);
  max-width: 520px;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.store-button {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: var(--space-4) var(--space-6);
  min-width: 220px;
  border-radius: var(--radius-xl);
  background: var(--royal-blue);
  color: var(--fg-on-dark);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 30px rgba(19, 32, 166, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.store-button:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.store-button small {
  text-transform: uppercase;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  opacity: 0.75;
}

.download-card {
  position: relative;
  background: var(--primary-gradient);
  color: var(--fg-on-dark);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.download-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.32), rgba(7, 153, 170, 0.12));
  opacity: 0.65;
}

.download-card h3 {
  position: relative;
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
  color: var(--fg-on-dark);
}

.download-card ul {
  position: relative;
  list-style: none;
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  color: var(--fg-on-dark-muted);
}

.download-card li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--fg-on-dark-muted);
}

.download-card li::before {
  content: '\2713';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  font-size: 0.75rem;
  color: var(--fg-on-dark);
}

.download-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: var(--text-sm);
  background: rgba(255, 255, 255, 0.22);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  margin-bottom: var(--space-4);
  color: var(--fg-on-dark);
}

#download-cta {
  position: relative;
  width: 100%;
  background: var(--bright-emerald);
  color: var(--fg-strong);
  border: 2px solid rgba(255, 255, 255, 0.45);
}

/* ===== SIGNUP ===== */
.signup {
  background: linear-gradient(180deg, #08101F 0%, #050812 100%);
  color: var(--fg-on-dark);
  padding: var(--space-20) 0;
}

.signup-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: rgba(19, 32, 166, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
  color: var(--fg-on-dark);
}

.signup-title {
  font-size: var(--text-4xl);
  font-family: var(--font-display);
  margin-bottom: var(--space-4);
  color: var(--fg-on-dark);
}

.signup-description {
  font-size: var(--text-lg);
  margin-bottom: var(--space-6);
  color: var(--fg-on-dark-muted);
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.input-group {
  display: flex;
  gap: var(--space-3);
  background: rgba(255, 255, 255, 0.15);
  padding: var(--space-2);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.email-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--fg-on-dark);
  padding: 0 var(--space-3);
  font-size: var(--text-base);
}

.email-input::placeholder {
  color: rgba(255, 255, 255, 0.9);
}

.email-input:focus {
  outline: none;
}

.privacy-note {
  font-size: var(--text-sm);
  opacity: 0.7;
}

.signup-success {
  display: none;
  margin-top: var(--space-6);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  color: var(--fg-on-dark);
}

.signup-success.active {
  display: block;
}

.success-icon {
  font-size: 2rem;
  margin-bottom: var(--space-3);
}

/* ===== FOOTER ===== */
.footer {
  background: #05060F;
  color: rgba(255, 255, 255, 0.88);
  padding: var(--space-16) 0 var(--space-10);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: var(--space-10);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.footer-info h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
  color: var(--fg-on-dark);
}

.footer-links {
  display: flex;
  gap: var(--space-10);
}

.footer-section h4 {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}

.footer-section a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.social-links {
  display: flex;
  gap: var(--space-3);
}

.social-link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-sm);
  transition: color 0.2s ease;
}

.social-link:hover {
  color: var(--fg-on-dark);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
}

/* ===== ANIMATION TRIGGERS ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== KEYFRAMES ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes loader-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

@keyframes loader-glow {
  0%, 100% {
    transform: scale(0.95);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
}

/* ===== ACCESSIBILITY ===== */
button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid var(--bright-emerald);
  outline-offset: 3px;
}

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

  .phone-tagline,
  .phone-progress-bar {
    animation: none !important;
  }
}

@keyframes phoneTagline {
  0%, 14% { opacity: 1; transform: translateY(0); }
  20%, 100% { opacity: 0; transform: translateY(-14px); }
}

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