/* ========================================
   Self-Hosted Fonts (eliminates external CDN requests)
   ======================================== */

/* Inter - Latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter - Latin Extended (Croatian: č, ć, š, ž, đ) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Satoshi */
@font-face {
  font-family: 'Satoshi';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/satoshi-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Satoshi';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/satoshi-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Satoshi';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/satoshi-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Satoshi';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/satoshi-800.woff2') format('woff2');
}




/* ========================================
   PathRa Design System V3
   ======================================== */

/* Register accent colours as animatable so theme swaps cross-fade */
@property --accent-300 {
  syntax: '<color>';
  inherits: true;
  initial-value: #fde047;
}

@property --accent-400 {
  syntax: '<color>';
  inherits: true;
  initial-value: #facc15;
}

@property --accent-500 {
  syntax: '<color>';
  inherits: true;
  initial-value: #eab308;
}

@property --accent-600 {
  syntax: '<color>';
  inherits: true;
  initial-value: #ca8a04;
}

@property --accent-glow {
  syntax: '<color>';
  inherits: true;
  initial-value: rgba(234, 179, 8, 0.6);
}

:root {
  color-scheme: dark;
  transition: --accent-300 0.6s ease, --accent-400 0.6s ease, --accent-500 0.6s ease, --accent-600 0.6s ease, --accent-glow 0.6s ease;
  /* Brand Colors - Golden (always available) */
  --gold-300: #fde047;
  --gold-400: #facc15;
  --gold-500: #eab308;
  --gold-600: #ca8a04;
  --gold-glow: rgba(234, 179, 8, 0.6);

  /* Per-page accent (defaults to gold) */
  --accent-300: #fde047;
  --accent-400: #facc15;
  --accent-500: #eab308;
  --accent-600: #ca8a04;
  --accent-glow: rgba(234, 179, 8, 0.6);
  --accent-rgb: 234, 179, 8;
  --gradient-accent: linear-gradient(135deg, #fef08a 0%, #facc15 50%, #ca8a04 100%);
  --gradient-accent-text: linear-gradient(135deg, #fef9c3 0%, #facc15 40%, #a16207 100%);

  /* Deep Space Backgrounds */
  --dark-800: #1a1625;
  --dark-850: #13101c;
  --dark-900: #0d0b14;
  --dark-950: #05040a;

  /* Accent - Muted Steel Blue */
  --accent-blue: #7c9cbf;
  --accent-blue-glow: rgba(124, 156, 191, 0.4);

  /* Typography */
  --font-heading: 'Satoshi', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Gradients (brand - always gold for logo etc.) */
  --gradient-gold: linear-gradient(135deg, #fef08a 0%, #facc15 50%, #ca8a04 100%);
  --gradient-gold-text: linear-gradient(135deg, #fef9c3 0%, #facc15 40%, #a16207 100%);
  --gradient-glass: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);

  /* Spacing */
  --section-padding: clamp(3.5rem, 6vw, 6rem);
  --container-max: 1200px;

  /* Radius */
  --radius-sm: 0.75rem;
  --radius-md: 1.25rem;
  --radius-lg: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ── Theme: Lime-Sage (Golf) ── */
.theme-green {
  --accent-300: #b5d45e;
  --accent-400: #8fb835;
  --accent-500: #739a26;
  --accent-600: #5c7e1c;
  --accent-glow: rgba(143, 184, 53, 0.6);
  --accent-rgb: 143, 184, 53;
  --gradient-accent: linear-gradient(135deg, #b5d45e 0%, #8fb835 50%, #5c7e1c 100%);
  --gradient-accent-text: linear-gradient(135deg, #d0e88a 0%, #8fb835 40%, #4a6816 100%);
}

/* ── Theme: Purple (Festivals) ── */
.theme-purple {
  --accent-300: #d8b4fe;
  --accent-400: #c084fc;
  --accent-500: #a855f7;
  --accent-600: #9333ea;
  --accent-glow: rgba(168, 85, 247, 0.6);
  --accent-rgb: 168, 85, 247;
  --gradient-accent: linear-gradient(135deg, #e9d5ff 0%, #a855f7 50%, #7e22ce 100%);
  --gradient-accent-text: linear-gradient(135deg, #f3e8ff 0%, #a855f7 40%, #7e22ce 100%);
}

/* ── Theme: Sunset Orange (Resorts & Campsites) ── */
.theme-amber {
  --accent-300: #fdba74;
  --accent-400: #fb923c;
  --accent-500: #f97316;
  --accent-600: #ea580c;
  --accent-glow: rgba(249, 115, 22, 0.6);
  --accent-rgb: 249, 115, 22;
  --gradient-accent: linear-gradient(135deg, #fdba74 0%, #f97316 50%, #ea580c 100%);
  --gradient-accent-text: linear-gradient(135deg, #fed7aa 0%, #f97316 40%, #c2410c 100%);
}

/* ── Theme: Cyan (Ski Resorts) - placeholder ── */
/* --- Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  overflow-y: scroll;
  /* Always reserve scrollbar gutter - prevents navbar shift on lazy load */
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

body {
  font-family: var(--font-body);
  background-color: #070a12;
  color: #e2e8f0;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#root {
  width: 100%;
}

::selection {
  background: rgba(var(--accent-rgb), 0.3);
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  padding-bottom: 0.05em;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.text-gold {
  background: linear-gradient(135deg, var(--accent-300) 0%, var(--accent-400) 40%, var(--accent-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  padding-bottom: 0.15em;
}



.section-marker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.section-marker-line {
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-500), var(--accent-400));
  transform-origin: left;
  border-radius: 1px;
}

.section-marker-number {
  font-family: 'Courier New', 'Consolas', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-400);
  letter-spacing: 0.02em;
}

.section-marker-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #64748b;
}

/* Center variant for section headers */
.section-header .section-marker {
  justify-content: center;
}

/* --- Animations --- */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}



/* Blob drift animations - 4 unique patterns at different speeds */
@keyframes blob-drift-1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(40px, -50px) scale(1.05);
  }

  50% {
    transform: translate(-30px, -80px) scale(0.95);
  }

  75% {
    transform: translate(50px, -30px) scale(1.03);
  }
}

@keyframes blob-drift-2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(-50px, 40px) scale(1.06);
  }

  66% {
    transform: translate(35px, -60px) scale(0.94);
  }
}

@keyframes blob-drift-3 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  20% {
    transform: translate(60px, 25px) scale(1.04);
  }

  40% {
    transform: translate(-20px, -70px) scale(0.96);
  }

  60% {
    transform: translate(-45px, 15px) scale(1.07);
  }

  80% {
    transform: translate(30px, -40px) scale(0.95);
  }
}

@keyframes blob-drift-4 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-40px, -55px) scale(1.08);
  }
}

.blob-drift-1 {
  animation: blob-drift-1 8s ease-in-out infinite;
  will-change: transform;
}

.blob-drift-2 {
  animation: blob-drift-2 12s ease-in-out infinite;
  will-change: transform;
}

.blob-drift-3 {
  animation: blob-drift-3 16s ease-in-out infinite;
  will-change: transform;
}

.blob-drift-4 {
  animation: blob-drift-4 22s ease-in-out infinite;
  will-change: transform;
}

/* --- Scroll-reveal animations (replaces Framer Motion) --- */
.reveal-section {
  /* Wrapper is always visible - only triggers observer.
     Children (.reveal-item) animate in when .revealed is added. */
}

.reveal-section.revealed {
  /* no-op */
}

.reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.revealed .reveal-item {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children inside a revealed section */
.revealed .reveal-item:nth-child(1) {
  transition-delay: 0s;
}

.revealed .reveal-item:nth-child(2) {
  transition-delay: 0.25s;
}

.revealed .reveal-item:nth-child(3) {
  transition-delay: 0.5s;
}

.revealed .reveal-item:nth-child(4) {
  transition-delay: 0.75s;
}

.revealed .reveal-item:nth-child(5) {
  transition-delay: 1.0s;
}

.revealed .reveal-item:nth-child(6) {
  transition-delay: 1.25s;
}

.revealed .reveal-item:nth-child(7) {
  transition-delay: 1.5s;
}

.revealed .reveal-item:nth-child(8) {
  transition-delay: 1.75s;
}

.revealed .reveal-item:nth-child(9) {
  transition-delay: 2.0s;
}

.revealed .reveal-item:nth-child(10) {
  transition-delay: 2.25s;
}

.revealed .reveal-item:nth-child(11) {
  transition-delay: 2.5s;
}

.revealed .reveal-item:nth-child(12) {
  transition-delay: 2.75s;
}

.reveal-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Page transitions --- */
@keyframes page-enter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.page-transition {
  animation: page-enter 0.6s ease-out both;
}

/* --- Hero entrance stagger --- */
@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-scale-in {
  from {
    opacity: 0;
    transform: scale(0.85);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-stagger-1 {
  animation: hero-scale-in 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.hero-stagger-2 {
  animation: hero-fade-up 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
}

.hero-stagger-3 {
  animation: hero-fade-up 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.9s both;
}

.hero-stagger-4 {
  animation: hero-fade-up 1.4s cubic-bezier(0.4, 0, 0.2, 1) 1.4s both;
}

.hero-stagger-5 {
  animation: hero-fade-up 1.4s cubic-bezier(0.4, 0, 0.2, 1) 2.0s both;
}


/* --- Timeline animations (circle → line → content) --- */
.timeline-circle {
  opacity: 0;
  transform: scale(0);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-circle:hover {
  transform: scale(1.2);
  box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.6);
}

.timeline-line {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 3.0s cubic-bezier(0.16, 1, 0.3, 1) 0.8s;
}

.timeline-content {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.5s,
    transform 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

.timeline-step.in-view .timeline-circle {
  opacity: 1;
  transform: scale(1);
}

.timeline-step.in-view .timeline-line {
  transform: scaleY(1);
}

.timeline-step.in-view .timeline-content {
  opacity: 1;
  transform: translateX(0);
}

/* --- Glass Cards --- */
.glass-card {
  background: var(--gradient-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: border-color 0.4s var(--ease-smooth), background 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
  overflow: hidden;
  contain: layout style paint;
}

.glass-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  transform: skewX(-25deg);
  transition: 0.5s;
  pointer-events: none;
}

.glass-card:hover::after {
  left: 150%;
  transition: 0.7s ease-in-out;
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.4);
}

/* --- Vertical Cards (Live vs Coming Soon) --- */
.vertical-card {
  text-align: center;
  padding-top: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.4s var(--ease-smooth),
    box-shadow 0.5s var(--ease-smooth),
    background 0.4s var(--ease-smooth);
}

/* ── LIVE card hover ── */
.vertical-card--live {
  cursor: pointer;
}

.vertical-card--live:hover {
  transform: scale(1.035) translateY(-6px);
  border-color: rgba(var(--card-accent), 0.6) !important;
  box-shadow: 0 24px 60px -12px rgba(var(--card-accent), 0.2),
    0 0 30px -5px rgba(var(--card-accent), 0.1);
}

/* Accent-colored shimmer for live cards */
.vertical-card--live::after {
  background: linear-gradient(90deg, transparent, rgba(var(--card-accent), 0.08), transparent) !important;
}

/* ── COMING SOON card — completely inert ── */
.vertical-card--soon {
  cursor: default;
}

.vertical-card--soon:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

/* Kill shimmer on soon cards */
.vertical-card--soon::after {
  display: none !important;
}

/* ── Badge styles ── */
.vertical-card__badge {
  display: inline-block;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 0.3rem 0.9rem;
  border-radius: 1rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}

.vertical-card__badge--live {
  background: var(--gradient-gold);
  border: none;
  color: #000;
  box-shadow: 0 0 15px rgba(234, 179, 8, 0.3);
}

/* ── Icon circle ── */
.vertical-card__icon {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s var(--ease-smooth),
    border-color 0.4s var(--ease-smooth);
}

/* Live card hover → icon scales + rotates + glows */
.vertical-card--live:hover .vertical-card__icon {
  transform: scale(1.15) rotate(8deg);
  box-shadow: 0 0 20px rgba(var(--card-accent), 0.25);
  border-color: rgba(var(--card-accent), 0.5) !important;
}

/* ── "Learn More" CTA ── */
.vertical-card__cta {
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  transition: gap 0.35s var(--ease-smooth), color 0.3s;
}

.vertical-card__arrow {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vertical-card--live:hover .vertical-card__cta {
  color: var(--gold-300);
  gap: 0.55rem;
}

.vertical-card--live:hover .vertical-card__arrow {
  transform: translateX(3px);
}


/* --- Gold Hover Cards (reusable for any active/live card) --- */
.gold-hover-card {
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.4s var(--ease-smooth),
    box-shadow 0.5s var(--ease-smooth);
}

.gold-hover-card:hover {
  transform: scale(1.03) translateY(-6px);
  border-color: rgba(var(--accent-rgb), 0.45) !important;
  box-shadow: 0 20px 50px -10px rgba(var(--accent-rgb), 0.15),
    0 0 25px -5px rgba(var(--accent-rgb), 0.08);
}

/* Gold-colored shimmer sweep */
.gold-hover-card::after {
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.06), transparent) !important;
}

/* Icon hover within gold cards */
.gold-hover-card__icon {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s var(--ease-smooth),
    border-color 0.4s var(--ease-smooth);
}

.gold-hover-card:hover .gold-hover-card__icon {
  transform: scale(1.12) rotate(6deg);
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.2);
  border-color: rgba(var(--accent-rgb), 0.4) !important;
}

/* --- Problem Cards (responsive layout) --- */
.problem-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
}

.problem-card-icon {
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}


.problem-card-text {
  min-width: 0;
}

/* On wider screens (2-col / 4-col grid), switch to centered vertical */
@media (min-width: 640px) {
  .problem-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .problem-card-icon {
    margin-bottom: 0.5rem;
  }
}

/* --- Feature Cards --- */
/* Mobile-first: compact horizontal layout */
.feature-card {
  background: rgba(13, 11, 20, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  transition: border-color 0.4s var(--ease-smooth), background 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
  position: relative;
  height: 100%;
}

.feature-card:hover {
  background: rgba(13, 11, 20, 0.8);
  border-color: rgba(var(--accent-rgb), 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.feature-card-icon {
  width: 2.25rem;
  height: 2.25rem;
  min-width: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent-400);
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  margin-bottom: 0;
  transition: 0.3s;
}

.feature-card:hover .feature-card-icon {
  background: rgba(var(--accent-rgb), 0.15);
  border-color: rgba(var(--accent-rgb), 0.3);
  box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.15);
}

.feature-card-text {
  min-width: 0;
}

.feature-card-text h3 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.feature-card-text p {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #94a3b8;
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }

  .features-grid>* {
    flex: 0 0 calc(50% - 0.375rem);
  }
}

/* Desktop: upgrade to premium glass-card style, vertical layout */
@media (min-width: 960px) {
  .features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
  }

  .features-grid>* {
    flex: 0 0 calc(33.333% - 0.84rem);
  }

  .feature-card {
    background: var(--gradient-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    overflow: hidden;
  }

  .feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
    pointer-events: none;
  }

  .feature-card:hover::after {
    left: 150%;
    transition: 0.7s ease-in-out;
  }

  .feature-card:hover {
    border-color: rgba(var(--accent-rgb), 0.4);
    box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.4);
  }

  .feature-card-icon {
    width: 3.25rem;
    height: 3.25rem;
    min-width: 3.25rem;
    border-radius: 50%;
    border: 1px solid rgba(var(--accent-rgb), 0.15);
    margin-bottom: 1.25rem;
  }

  .feature-card-text h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
  }

  .feature-card-text p {
    font-size: 0.85rem;
    line-height: 1.55;
  }
}

/* --- Buttons --- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-300) 0%, var(--accent-400) 50%, var(--accent-600) 100%);
  color: #000;
  border: none;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-400);
  filter: blur(20px);
  opacity: 0.3;
  z-index: -1;
  border-radius: inherit;
  transition: opacity 0.3s, background 0.6s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-primary:hover::before {
  opacity: 0.5;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* --- Layout --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}



.section {
  padding: var(--section-padding) 0;
  position: relative;
  overflow-x: hidden;
  scroll-margin-top: 5rem;
  /* Offset for fixed navbar */
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-inline: auto;
}

.section-header p {
  font-size: 1.1rem;
  color: #94a3b8;
  margin-top: 1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* ── Verticals Grid (Homepage) ── */
.responsive-verticals {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.responsive-verticals>* {
  flex: 0 0 100%;
  min-width: 0;
}

@media (min-width: 640px) {
  .responsive-verticals>* {
    flex: 0 0 calc(50% - 0.75rem);
  }
}

@media (min-width: 960px) {
  .responsive-verticals>* {
    flex: 0 0 calc(33.333% - 1rem);
  }
}

/* Destination pill grid - responsive columns */
.destination-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  gap: 0.75rem;
  margin: 0 auto;
  max-width: 500px;
}

.destination-grid .destination-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  background: rgba(234, 179, 8, 0.04);
  border: 1px solid rgba(234, 179, 8, 0.12);
  border-radius: 3rem;
  cursor: default;
  height: 100%;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.destination-grid .destination-pill:hover {
  border-color: rgba(234, 179, 8, 0.4);
  box-shadow: 0 8px 25px rgba(234, 179, 8, 0.15);
}

.destination-grid .pill-icon {
  color: var(--gold-400);
  flex-shrink: 0;
  display: flex;
}

.destination-grid .pill-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #cbd5e1;
  line-height: 1.3;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }

  .grid-3>* {
    flex: 0 0 calc(50% - 0.75rem);
  }

  .grid-4 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }

  .grid-4>* {
    flex: 0 0 calc(50% - 0.75rem);
  }


  .destination-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    max-width: 700px;
  }

  .destination-grid .destination-pill {
    padding: 0.8rem 1.25rem;
  }

  .destination-grid .pill-label {
    font-size: 0.9rem;
  }
}

/* Tablet verticals handled by grid above - no flex override needed */

@media (min-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }


  .destination-grid {
    max-width: 800px;
    gap: 1rem;
  }

  .destination-grid .destination-pill {
    padding: 0.85rem 1.5rem;
  }

  .destination-grid .pill-label {
    font-size: 0.95rem;
  }
}

/* ======================================== 
   NAVBAR - Standard SOP Pattern
   Desktop: Logo | centered links | CTA
   Mobile:  Logo | hamburger → fullscreen menu
   ======================================== */

.navbar {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(95%, 1100px);
  padding: 0.6rem 1.5rem;
  background: rgba(10, 10, 15, 0.65);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  border-radius: 1.5rem;
  z-index: 1000;
  box-shadow:
    0 0 12px rgba(var(--accent-rgb), 0.1),
    0 0 30px rgba(var(--accent-rgb), 0.04),
    0 8px 32px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(5, 5, 8, 0.85);
  border-color: rgba(var(--accent-rgb), 0.25);
  box-shadow:
    0 0 18px rgba(var(--accent-rgb), 0.15),
    0 0 40px rgba(var(--accent-rgb), 0.06),
    0 8px 32px rgba(0, 0, 0, 0.4);
}

.navbar-inner {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 1rem;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.navbar-logo-text {
  display: flex;
}

.logo-path {
  background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-ra {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-links {
  display: none;
  flex: 1;
  justify-content: center;
  gap: 2rem;
  list-style: none;
}

.navbar-links a {
  color: #94a3b8;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.navbar-links a:hover {
  color: #fff;
}

.navbar-actions {
  display: none;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
  min-width: 120px;
}

.btn-nav {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

.navbar-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #e2e8f0;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.navbar-hamburger:hover {
  color: #fff;
}

@media (min-width: 769px) {
  .navbar-links {
    display: flex;
  }

  .navbar-actions {
    display: flex;
  }

  .navbar-hamburger {
    display: none !important;
  }

  .navbar-expand {
    display: none !important;
  }

  .navbar-backdrop {
    display: none !important;
  }
}

/* ========================================
   MOBILE: Expanding Pill Menu
   The navbar pill morphs into a card showing
   all navigation items inside
   ======================================== */

/* Backdrop dim overlay */
.navbar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.navbar-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* Expanding section inside the pill */
.navbar-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.2s ease;
  opacity: 0;
  padding: 0 0.25rem;
}

.navbar.expanded .navbar-expand {
  max-height: calc(100dvh - 4rem);
  overflow-y: auto;
  opacity: 1;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease 0.05s;
}

/* Thin scrollbar for the expanded menu */
.navbar-expand::-webkit-scrollbar {
  width: 3px;
}

.navbar-expand::-webkit-scrollbar-track {
  background: transparent;
}

.navbar-expand::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

/* When expanded - fully opaque, subdue glow */
.navbar.expanded {
  padding-bottom: 1rem;
  background: rgba(5, 4, 10, 0.98) !important;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-color: rgba(var(--accent-rgb), 0.15) !important;
  border-radius: 1.25rem;
  max-height: calc(100dvh - 1rem);
  overflow: hidden;
  box-shadow:
    0 0 12px rgba(var(--accent-rgb), 0.08),
    0 8px 32px rgba(0, 0, 0, 0.6) !important;
}

.navbar-expand-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0.4rem 0;
}

.navbar-expand-section {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.15rem 0;
}

.navbar-expand-label {
  color: #64748b;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.5rem 0.25rem;
  font-family: var(--font-body);
}

.navbar-expand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.5rem;
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.navbar-expand-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.navbar-expand-link.active {
  color: var(--accent-400);
  background: rgba(var(--accent-rgb), 0.08);
}

.navbar-expand-indicator {
  margin-left: auto;
  color: var(--accent-400);
  opacity: 0.6;
}

.navbar-expand-cta {
  padding: 0.4rem 0 0.35rem;
}

.btn-expand-cta {
  width: 100%;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  font-size: 0.85rem;
}


/* --- Hero --- */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 22vh 1.25rem 4rem;
  position: relative;
  text-align: center;
  overflow-x: hidden;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  width: 100%;
}

/* --- Scroll Reveal --- */
/* Framer Motion now handles all scroll reveal animations */

/* --- Homepage Step Cards (Horizontal 3-card layout) --- */
.home-steps-row {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  max-width: 1050px;
  margin: 0 auto;
}

.home-step-card {
  background: var(--gradient-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.home-step-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  transform: skewX(-25deg);
  transition: 0.5s;
  pointer-events: none;
}

.home-step-card:hover::after {
  left: 150%;
  transition: 0.7s ease-in-out;
}

.home-step-number {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-400), var(--accent-600));
  color: #000;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.35);
  cursor: default;
}

.home-step-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), 0.08);
  border-radius: 50%;
  color: var(--accent-400);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
}

.home-step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  align-self: center;
}

/* Mobile: stack vertically, hide connectors */
@media (max-width: 768px) {
  .home-steps-row {
    flex-direction: column;
    gap: 1.25rem;
  }

  .home-step-connector {
    display: none;
  }

  .home-step-card {
    padding: 1.75rem 1.25rem;
  }
}


/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--dark-950);
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}

/* --- Mobile-specific overrides --- */
@media (max-width: 639px) {
  .container {
    padding: 0 1rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  .glass-card {
    padding: 1.5rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* --- Mobile Content Overrides (≤768px) --- */
@media (max-width: 768px) {

  /* Hero: reduce padding for mobile */
  .hero {
    min-height: auto;
    padding: 18vh 1rem 3rem;
  }

  /* Stat strips: 3-col → 1-col */
  .responsive-stat-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Comparison split card: 3-col → 1-col vertical stack */
  .responsive-comparison {
    grid-template-columns: 1fr !important;
  }

  .responsive-comparison .comparison-divider {
    width: 100% !important;
    height: 1px !important;
    margin: 0 !important;
  }

  /* Journey cards: 3-col → 1-col */
  .responsive-journey-grid {
    grid-template-columns: 1fr !important;
  }

  /* Verticals are CSS grid now - 1-col handled by base rule */

  /* 2x2 capability grid → 1-col on mobile */
  .responsive-cap-grid {
    grid-template-columns: 1fr !important;
  }

  /* Pilot form 2-col → 1-col is already handled by grid-2, but ensure gap is tighter */
  .grid-2 {
    gap: 1.5rem;
  }

  /* Destination pill grid - compact on mobile */
  .destination-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.6rem !important;
    max-width: none !important;
  }

  .destination-grid .destination-pill {
    padding: 0.6rem 0.75rem !important;
    gap: 0.4rem !important;
  }

  .destination-grid .destination-pill .pill-label {
    font-size: 0.78rem !important;
  }

  /* Built-to-last / Asset callout banner: tighter on mobile */
  .responsive-callout-banner {
    padding: 1.75rem 1.25rem !important;
  }

  .responsive-callout-banner p:first-child {
    font-size: 1.15rem !important;
  }

  .responsive-callout-banner p:last-child {
    font-size: 0.95rem !important;
  }

  /* Section spacing: tighten for mobile */
  .section {
    padding: 3.5rem 0;
  }
}


/* --- Mobile Navbar Overrides --- */
@media (max-width: 768px) {
  .navbar {
    background: rgba(5, 4, 10, 0.92);
    padding: 0.65rem 1rem;
    top: 0.5rem;
    width: 92%;
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    border-radius: 1.5rem;
    /* Fixed value - same corner curve open or closed */
    box-shadow:
      0 0 15px rgba(var(--accent-rgb), 0.15),
      0 0 40px rgba(var(--accent-rgb), 0.06),
      0 4px 20px rgba(0, 0, 0, 0.4);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  }

  .navbar.scrolled {
    background: rgba(5, 5, 8, 0.96);
    border-color: rgba(var(--accent-rgb), 0.3);
    box-shadow:
      0 0 20px rgba(var(--accent-rgb), 0.2),
      0 0 50px rgba(var(--accent-rgb), 0.08),
      0 4px 20px rgba(0, 0, 0, 0.5);
  }

  /* Push logo left, hamburger right */
  .navbar-inner {
    justify-content: space-between;
  }

  .navbar-logo {
    font-size: 1.15rem;
    gap: 0.35rem;
  }

  .navbar-logo-icon {
    flex-shrink: 0;
  }

  .navbar-hamburger {
    margin-left: auto;
    padding: 0.4rem;
  }
}

/* =====================================================
   TOUCH-DEVICE PERFORMANCE
   Disable backdrop-filter on touch devices (iPads, iPhones, Android)
   to eliminate WebKit's expensive per-frame blur recomposition.
   Desktop users with hover-capable devices keep the full frosted effect.
   ===================================================== */
@media (hover: none) {

  .glass-card,
  .feature-card,
  .home-step-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(10, 10, 15, 0.82);
  }

  .navbar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(10, 10, 15, 0.9);
  }

  .navbar.expanded {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .mobile-bottom-nav {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(10, 10, 15, 0.92);
  }

  .btn-primary::before {
    filter: none !important;
  }

  /* Kill GPU-heavy animations on touch to free compositing budget */
  .blob-drift-1,
  .blob-drift-2,
  .blob-drift-3,
  .blob-drift-4 {
    animation: none !important;
  }
}

/* --- Demo Embed: fullscreen transition --- */
.demo-transition-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #070a12;
  opacity: 0;
  animation: demo-backdrop-in 0.5s ease-in forwards;
}

@keyframes demo-backdrop-in {
  50% {
    opacity: 0.7;
  }

  to {
    opacity: 1;
  }
}

.demo-transition-card {
  position: fixed;
  z-index: 10000;
  overflow: hidden;
  border-radius: var(--radius-lg);

  /* Start at captured card position */
  top: var(--card-top);
  left: var(--card-left);
  width: var(--card-width);
  height: var(--card-height);

  animation: demo-card-expand 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes demo-card-expand {
  to {
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }
}

/* Inner overlay that fades the card image to black during expansion */
.demo-transition-card .demo-transition-darken {
  position: absolute;
  inset: 0;
  background: #070a12;
  opacity: 0.5;
  animation: demo-darken 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  z-index: 1;
}

@keyframes demo-darken {
  to {
    opacity: 1;
  }
}

/* Subtle hover lightening on the demo card overlay */
*:hover>.demo-card-overlay {
  background: rgba(0, 0, 0, 0.35) !important;
}