/* ============================================================
   FALVIX · COLOR SYSTEM V2.0 · LIQUID GLASS MASTER ENGINE
   Obsidian Green stage · Sage Glow · Mint Spark Result Accent
   Apple-grade Spring Physics & Liquid Glass Architecture
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* 01 · CORE PALETTE (Falvix V2.0) */
  --obsidian: #0B0F0D;
  --obsidian-rgb: 11, 15, 13;
  --deep-forest: #16241D;
  --deep-forest-rgb: 22, 36, 29;
  --sage: #8FA98C;
  --sage-rgb: 143, 169, 140;
  --mint-spark: #7EF0C2;
  --mint-spark-rgb: 126, 240, 194;
  --terracotta: #D9825F;
  --terracotta-rgb: 217, 130, 95;
  --pearl: #F3F5F0;
  --pearl-secondary: #A9B3AB;

  /* 02 · GLASS TOKENS */
  --glass: rgba(255, 255, 255, 0.07);
  --glass-dense: rgba(11, 15, 13, 0.58);
  --glass-line: rgba(255, 255, 255, 0.16);
  --glass-blur: blur(24px) saturate(160%);
  --glass-blur-mobile: blur(18px);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  --glass-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius-card: 20px;
  --radius-pill: 999px;
  --cta: #7EF0C2;
  --on-cta: #0B0F0D;

  /* THEME SYSTEM VARIABLE OVERRIDES */
  --background: #0B0F0D !important;
  --color-background: #0B0F0D !important;
  --void-black: #0B0F0D !important;
  --color-void-black: #0B0F0D !important;
  --charcoal: #16241D !important;
  --color-charcoal: #16241D !important;
  --smoke: #16241D !important;
  --color-smoke: #16241D !important;
  
  --foreground: #F3F5F0 !important;
  --color-foreground: #F3F5F0 !important;
  --ash: #A9B3AB !important;
  --color-ash: #A9B3AB !important;

  /* BRAND ACCENT COLOR BRIDGES */
  --arca-blue: #7EF0C2 !important;
  --color-arca-blue: #7EF0C2 !important;
  --arca-purple: #8FA98C !important;
  --color-arca-purple: #8FA98C !important;
  --arca-orange: #D9825F !important;
  --color-arca-orange: #D9825F !important;
  --holo-blue: #8FA98C !important;
  --color-holo-blue: #8FA98C !important;

  /* PILL NAV VARIABLES */
  --base: #0B0F0D !important;
  --pill-bg: rgba(255, 255, 255, 0.07) !important;
  --pill-text: #F3F5F0 !important;
  --hover-bg: #8FA98C !important;
  --hover-text: #0B0F0D !important;

  /* APPLE PHYSICS */
  --apple-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --apple-spring: cubic-bezier(0.25, 1, 0.5, 1);
  --apple-snap: cubic-bezier(0.2, 0, 0, 1);
}

/* ============================================================
   03 · GLOBAL BASE STYLES & GROUND
   ============================================================ */
html {
  background-color: #0B0F0D !important;
  color: #F3F5F0 !important;
  scroll-behavior: smooth !important;
}

body {
  background-color: #0B0F0D !important;
  color: #F3F5F0 !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  overflow-x: hidden !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

/* All headings in Pearl */
h1, h2, h3, h4, h5, h6 {
  color: #F3F5F0 !important;
  font-family: 'Outfit', 'Inter', -apple-system, sans-serif !important;
  letter-spacing: -0.025em !important;
}

/* Secondary Pearl Copy */
p, span.text-ash, .text-ash, .text-slate-400, .text-gray-400, .text-zinc-400 {
  color: #A9B3AB !important;
}

/* Prevent white or off-white grounds */
main, section, div[class*="bg-[#050508]"], div[class*="bg-[#020205]"], div[class*="bg-[#06090c]"] {
  background-color: #0B0F0D !important;
}

/* ============================================================
   04 · AMBIENT SAGE & TERRACOTTA COLOR ORBS
   2-3 blurred color orbs behind glass (Rule 05)
   ============================================================ */
.falvix-ambient-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.falvix-orb-1 {
  position: absolute;
  top: 5%;
  left: 15%;
  width: 580px;
  height: 580px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 169, 140, 0.16) 0%, rgba(143, 169, 140, 0) 70%);
  filter: blur(80px);
  animation: orbDrift1 26s ease-in-out infinite alternate;
  will-change: transform;
}

.falvix-orb-2 {
  position: absolute;
  top: 45%;
  right: 10%;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 130, 95, 0.08) 0%, rgba(217, 130, 95, 0) 70%);
  filter: blur(85px);
  animation: orbDrift2 32s ease-in-out infinite alternate;
  will-change: transform;
}

.falvix-orb-3 {
  position: absolute;
  bottom: 8%;
  left: 25%;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 36, 29, 0.45) 0%, rgba(22, 36, 29, 0) 70%);
  filter: blur(90px);
  animation: orbDrift3 28s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes orbDrift1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(35px, -30px) scale(1.06); }
  100% { transform: translate(-20px, 25px) scale(0.96); }
}

@keyframes orbDrift2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 35px) scale(1.08); }
  100% { transform: translate(25px, -20px) scale(0.95); }
}

@keyframes orbDrift3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, 30px) scale(1.05); }
  100% { transform: translate(-30px, -25px) scale(0.98); }
}

/* ============================================================
   05 · LIQUID GLASS SURFACES & CARDS (Rule 02)
   ============================================================ */
.glass-card,
.glass-card-dark,
.stat-card,
.eco-card,
div[class*="rounded-2xl"][class*="border-white"],
div[class*="rounded-3xl"][class*="border-white"],
div[class*="bg-white/[0.03]"],
div[class*="bg-white/[0.02]"] {
  background: rgba(11, 15, 13, 0.58) !important;
  backdrop-filter: blur(24px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease,
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.35s ease !important;
}

.glass-card:hover,
.glass-card-dark:hover,
.stat-card:hover,
.eco-card:hover,
div[class*="rounded-2xl"][class*="border-white"]:hover,
div[class*="rounded-3xl"][class*="border-white"]:hover,
div[class*="bg-white/[0.03]"]:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(143, 169, 140, 0.4) !important;
  background: rgba(22, 36, 29, 0.65) !important;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45),
              0 0 35px rgba(143, 169, 140, 0.14),
              inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

/* Dense glass behind paragraphs, plans, and forms (Rule 05) */
form, .form-container, [class*="plan-card"], [class*="pricing-card"] {
  background: rgba(11, 15, 13, 0.65) !important;
  backdrop-filter: blur(24px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

/* ============================================================
   06 · PRIMARY CTA & MINT SPARK BUTTONS (Rule 01, 05)
   One solid mint CTA per screen. Under 5%.
   High contrast #0B0F0D text on Mint Spark (13.9:1 AAA)
   ============================================================ */
.bg-arca-blue,
a.bg-arca-blue,
button.bg-arca-blue,
.btn-primary,
.cta-mint,
.btn-depth,
.next-button,
a[href*="/contact"].rounded-full,
a[href*="/contact"][class*="px-"][class*="py-"] {
  background-color: #7EF0C2 !important;
  background-image: none !important;
  color: #0B0F0D !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  border-radius: 999px !important;
  border: 1px solid rgba(126, 240, 194, 0.5) !important;
  box-shadow: 0 4px 22px rgba(126, 240, 194, 0.28), 0 0 35px rgba(126, 240, 194, 0.15) !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.2s ease !important;
}

.bg-arca-blue:hover,
a.bg-arca-blue:hover,
button.bg-arca-blue:hover,
.btn-primary:hover,
.cta-mint:hover,
.btn-depth:hover,
.next-button:hover,
a[href*="/contact"].rounded-full:hover,
a[href*="/contact"][class*="px-"][class*="py-"]:hover {
  background-color: #9cf5d3 !important;
  color: #0B0F0D !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 8px 32px rgba(126, 240, 194, 0.45), 0 0 55px rgba(126, 240, 194, 0.25) !important;
}

.bg-arca-blue:active,
a.bg-arca-blue:active,
button.bg-arca-blue:active,
.btn-primary:active,
.next-button:active {
  transform: scale(0.97) !important;
  transition: transform 0.1s cubic-bezier(0.2, 0, 0, 1) !important;
}

/* Ensure text and icon inside Mint button are Obsidian #0B0F0D */
.bg-arca-blue *,
a.bg-arca-blue *,
button.bg-arca-blue *,
.btn-primary *,
.next-button * {
  color: #0B0F0D !important;
  fill: #0B0F0D !important;
}

/* ============================================================
   07 · SECONDARY GLASS BUTTONS & PILLS (Page 2 Reference)
   See plans / Learn more glass pill buttons
   ============================================================ */
.btn-secondary,
.glass-pill-btn,
a[href*="#plans"],
a[href*="/pricing"][class*="rounded-full"],
a[href*="/work"][class*="rounded-full"],
button.glass-btn {
  background: rgba(255, 255, 255, 0.07) !important;
  color: #F3F5F0 !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 999px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 10px 30px rgba(0, 0, 0, 0.25) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  font-weight: 600 !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.25s ease,
              border-color 0.25s ease,
              box-shadow 0.3s ease !important;
}

.btn-secondary:hover,
.glass-pill-btn:hover,
a[href*="#plans"]:hover,
a[href*="/pricing"][class*="rounded-full"]:hover,
a[href*="/work"][class*="rounded-full"]:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(143, 169, 140, 0.5) !important;
  color: #FFFFFF !important;
  transform: translateY(-2px) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 14px 40px rgba(0, 0, 0, 0.35), 0 0 20px rgba(143, 169, 140, 0.15) !important;
}

/* ============================================================
   08 · LIQUID GLASS NAVBAR (Page 2 Reference)
   ============================================================ */
.pill-nav-container {
  z-index: 100 !important;
}

.pill-nav-items {
  background: rgba(11, 15, 13, 0.72) !important;
  backdrop-filter: blur(24px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 999px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

.pill-logo {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 50% !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.pill-logo:hover {
  transform: scale(1.05) !important;
  border-color: rgba(143, 169, 140, 0.5) !important;
}

.pill {
  background: transparent !important;
  color: #F3F5F0 !important;
  border-radius: 999px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.pill:hover {
  color: #0B0F0D !important;
}

.pill .hover-circle {
  background: #8FA98C !important;
}

.pill.is-active:after {
  background: #7EF0C2 !important;
}

.nav-scrolled {
  background: rgba(11, 15, 13, 0.82) !important;
  backdrop-filter: blur(24px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(160%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4) !important;
}

/* ============================================================
   09 · ERADICATE BLUE & VIOLET GLOWS (Rule 06: NEVER AI LOOK)
   ============================================================ */
[class*="shadow-[0_0_40px_rgba(124,58,237"],
[class*="shadow-[0_0_40px_rgba(79,70,229"],
[class*="shadow-[0_0_30px_rgba(37,99,235"],
[class*="shadow-[0_10px_30px_rgba(124,58,237"],
[class*="shadow-[0_0_60px_rgba(79,70,229"],
[class*="shadow-[0_30px_70px_rgba(37,99,235"],
[class*="shadow-[0_0_30px_rgba(59,130,246"],
[class*="shadow-[0_0_15px_rgba(79,70,229"] {
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35), 0 0 30px rgba(143, 169, 140, 0.12) !important;
}

.border-arca-purple\/20,
.border-arca-blue\/20,
.border-indigo-500\/20,
.border-violet-500\/20,
.border-blue-500\/20 {
  border-color: rgba(255, 255, 255, 0.16) !important;
}

/* Luxury Divider */
.luxury-divider {
  background: linear-gradient(90deg, transparent, rgba(143, 169, 140, 0.25) 20%, rgba(126, 240, 194, 0.35) 50%, rgba(143, 169, 140, 0.25) 80%, transparent) !important;
  height: 1px !important;
}

/* Gradient text in Pearl -> Sage -> Mint */
.text-gradient,
.gradient-text,
[class*="bg-gradient-to-r"][class*="text-transparent"] {
  background: linear-gradient(135deg, #F3F5F0 0%, #8FA98C 60%, #7EF0C2 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.text-gradient-orange {
  background: linear-gradient(135deg, #D9825F 0%, #8FA98C 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* ============================================================
   10 · FORM INPUTS & INTERACTIVE ELEMENTS
   ============================================================ */
input, select, textarea {
  background-color: rgba(11, 15, 13, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #F3F5F0 !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  font-size: 15px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

input:focus, select:focus, textarea:focus {
  border-color: #7EF0C2 !important;
  background-color: rgba(22, 36, 29, 0.8) !important;
  box-shadow: 0 0 0 3px rgba(126, 240, 194, 0.22) !important;
  outline: none !important;
}

input::placeholder, textarea::placeholder {
  color: #A9B3AB !important;
  opacity: 0.7 !important;
}

/* ============================================================
   11 · MOBILE PERFORMANCE & CLAMP (Rule 06)
   Blur above 18px on mobile NEVER. No animated blur on mobile.
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --glass-blur: blur(18px) saturate(140%) !important;
  }
  
  .glass-card,
  .glass-card-dark,
  .stat-card,
  .eco-card,
  .pill-nav-items,
  form,
  .form-container {
    backdrop-filter: blur(18px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
  }
  
  .falvix-orb-1, .falvix-orb-2, .falvix-orb-3 {
    filter: blur(45px) !important;
    animation: none !important;
  }
}

/* ============================================================
   12 · BUTTERY SCROLLBAR & SELECTION
   ============================================================ */
::selection {
  background: rgba(126, 240, 194, 0.3);
  color: #F3F5F0;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0B0F0D;
}
::-webkit-scrollbar-thumb {
  background: rgba(143, 169, 140, 0.35);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(126, 240, 194, 0.6);
}


/* ============================================================
   04 · PERSISTENT AMBIENT SAGE & TERRACOTTA COLOR ORBS
   2-3 blurred color orbs behind glass (Rule 05)
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  inset: -80px;
  background: radial-gradient(circle 650px at 18% 22%, rgba(143, 169, 140, 0.16) 0%, rgba(143, 169, 140, 0) 70%);
  pointer-events: none;
  z-index: 0;
  animation: orbSageFloat 28s ease-in-out infinite alternate;
  will-change: transform;
}

body::after {
  content: '';
  position: fixed;
  inset: -80px;
  background: 
    radial-gradient(circle 520px at 82% 58%, rgba(217, 130, 95, 0.09) 0%, rgba(217, 130, 95, 0) 65%),
    radial-gradient(circle 750px at 30% 88%, rgba(22, 36, 29, 0.5) 0%, rgba(22, 36, 29, 0) 70%);
  pointer-events: none;
  z-index: 0;
  animation: orbCounterFloat 34s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes orbSageFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(35px, -30px) scale(1.07); }
  100% { transform: translate(-25px, 25px) scale(0.96); }
}

@keyframes orbCounterFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 35px) scale(1.05); }
  100% { transform: translate(25px, -20px) scale(0.95); }
}

#__next, main {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  body::before, body::after {
    animation: none !important;
  }
}


/* Video Editing & Project Cards Liquid Glass */
.project-card-anim,
button.project-card-anim,
.video-card,
.process-step,
.pricing-tier {
  background: rgba(11, 15, 13, 0.58) !important;
  backdrop-filter: blur(24px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.project-card-anim:hover,
button.project-card-anim:hover,
.video-card:hover,
.process-step:hover,
.pricing-tier:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(143, 169, 140, 0.45) !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45), 0 0 30px rgba(143, 169, 140, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* Secondary Button glass pills */
.bg-gray-950,
a[class*="bg-gray-950"],
button[class*="bg-gray-950"],
a.rounded-xl[class*="tracking-widest"] {
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 10px 30px rgba(0, 0, 0, 0.25) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  color: #F3F5F0 !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.bg-gray-950:hover,
a[class*="bg-gray-950"]:hover,
button[class*="bg-gray-950"]:hover,
a.rounded-xl[class*="tracking-widest"]:hover {
  background: rgba(255, 255, 255, 0.13) !important;
  border-color: rgba(143, 169, 140, 0.45) !important;
  color: #FFFFFF !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 14px 40px rgba(0, 0, 0, 0.35), 0 0 25px rgba(143, 169, 140, 0.15) !important;
}


/* ============================================================
   13 · NEW FALVIX LIQUID GLASS PRELOADER
   ============================================================ */
#falvix-preloader-root {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: #0B0F0D;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
}

#falvix-preloader-root.falvix-preloader-dismiss {
  opacity: 0;
  transform: scale(1.04);
  filter: blur(10px);
  pointer-events: none;
}

.falvix-preloader-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(22, 36, 29, 0.6) 0%, rgba(11, 15, 13, 0.95) 75%);
}

.falvix-preloader-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.falvix-preloader-orb.falvix-orb-sage {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(143, 169, 140, 0.22) 0%, transparent 70%);
  filter: blur(75px);
  animation: preloaderOrb 8s ease-in-out infinite alternate;
}
.falvix-preloader-orb.falvix-orb-terracotta {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(217, 130, 95, 0.12) 0%, transparent 70%);
  filter: blur(80px);
  bottom: 15%;
  right: 20%;
  animation: preloaderOrb 10s ease-in-out infinite alternate-reverse;
}

@keyframes preloaderOrb {
  0% { transform: scale(0.95) translate(-20px, 15px); }
  100% { transform: scale(1.08) translate(25px, -20px); }
}

.falvix-preloader-glass-card {
  position: relative;
  z-index: 2;
  background: rgba(11, 15, 13, 0.68);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  padding: 44px 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-width: 90vw;
  width: 420px;
  text-align: center;
  animation: cardEnter 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardEnter {
  0% { opacity: 0; transform: scale(0.92) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.falvix-preloader-ring-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.falvix-preloader-ring-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #7EF0C2;
  border-right-color: rgba(143, 169, 140, 0.5);
  box-shadow: 0 0 20px rgba(126, 240, 194, 0.4);
  animation: preloaderSpin 1.1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.falvix-preloader-ring-inner {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-bottom-color: #8FA98C;
  border-left-color: rgba(126, 240, 194, 0.3);
  animation: preloaderSpinRev 1.6s linear infinite;
}

.falvix-preloader-spark-core {
  position: relative;
  z-index: 3;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: sparkPulse 1.8s ease-in-out infinite;
}

.falvix-logo-spark {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 12px rgba(126, 240, 194, 0.8));
}

@keyframes preloaderSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes preloaderSpinRev {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}
@keyframes sparkPulse {
  0%, 100% { transform: scale(0.95); opacity: 0.85; }
  50% { transform: scale(1.15); opacity: 1; }
}

.falvix-preloader-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.falvix-preloader-title {
  font-family: 'Outfit', sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 0.32em !important;
  color: #F3F5F0 !important;
  text-transform: uppercase !important;
  margin: 0 !important;
}

.falvix-preloader-bar-wrap {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.falvix-preloader-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #8FA98C 0%, #7EF0C2 100%);
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(126, 240, 194, 0.7);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.falvix-preloader-status {
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.16em !important;
  color: #8FA98C !important;
  text-transform: uppercase !important;
  margin: 0 !important;
}

/* ============================================================
   14 · CTA PROXIMITY LIGHTNING ATTRACTION
   ============================================================ */
.falvix-cta-lightning-target {
  position: relative !important;
  overflow: visible !important;
  will-change: transform, box-shadow !important;
  --lightning-intensity: 0;
  --lightning-angle: 0deg;
  --magnetic-x: 0px;
  --magnetic-y: 0px;
  transform: translate3d(var(--magnetic-x), var(--magnetic-y), 0) !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease !important;
}

/* Conical Lightning Aura pointing at cursor */
.falvix-lightning-aura {
  position: absolute;
  inset: -16px;
  border-radius: 999px;
  pointer-events: none;
  opacity: var(--lightning-intensity);
  background: radial-gradient(circle at 50% 50%, rgba(126, 240, 194, 0.35) 0%, rgba(143, 169, 140, 0.15) 45%, transparent 70%);
  filter: blur(12px);
  z-index: -1;
  transition: opacity 0.2s ease;
}

/* Electric Lightning Border Glow */
.falvix-lightning-border {
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  pointer-events: none;
  border: 2px solid transparent;
  border-color: rgba(126, 240, 194, calc(var(--lightning-intensity) * 0.9));
  box-shadow: 0 0 calc(var(--lightning-intensity) * 28px) rgba(126, 240, 194, calc(var(--lightning-intensity) * 0.75)),
              inset 0 0 12px rgba(126, 240, 194, calc(var(--lightning-intensity) * 0.4));
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Fully energized CTA on near approach or hover */
.falvix-cta-energized,
.falvix-cta-lightning-target:hover {
  box-shadow: 0 4px 25px rgba(126, 240, 194, 0.45), 
              0 0 45px rgba(126, 240, 194, 0.3),
              0 0 70px rgba(143, 169, 140, 0.18) !important;
  transform: translate3d(var(--magnetic-x), var(--magnetic-y), 0) scale(1.02) !important;
}

/* Mobile ambient neon lightning tracer */
@media (max-width: 1024px) {
  .falvix-cta-lightning-target .falvix-lightning-border {
    border-color: rgba(126, 240, 194, 0.4);
    box-shadow: 0 0 15px rgba(126, 240, 194, 0.3);
    animation: mobileNeonPulse 3s ease-in-out infinite;
  }
}

@keyframes mobileNeonPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(126, 240, 194, 0.25); border-color: rgba(126, 240, 194, 0.35); }
  50% { box-shadow: 0 0 24px rgba(126, 240, 194, 0.55), 0 0 38px rgba(143, 169, 140, 0.3); border-color: #7EF0C2; }
}

.falvix-electric-ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, #7EF0C2 0%, rgba(143, 169, 140, 0.4) 50%, transparent 75%);
  transform: translate(-50%, -50%) scale(0);
  animation: electricRippleAnim 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes electricRippleAnim {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(9); opacity: 0; }
}

/* ============================================================
   15 · APPLE SLIDING NAV INDICATOR
   ============================================================ */
.falvix-apple-nav-slider {
  position: absolute;
  top: 3px;
  left: 0;
  height: calc(100% - 6px);
  border-radius: 999px;
  background: rgba(143, 169, 140, 0.22);
  border: 1px solid rgba(126, 240, 194, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 16px rgba(126, 240, 194, 0.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  will-change: transform, width;
}

/* ============================================================
   16 · APPLE POPPY CLICK EFFECT FOR ALL BUTTONS
   ============================================================ */
.falvix-poppy-press {
  transform: scale(0.93) translateY(1px) !important;
  transition: transform 0.08s cubic-bezier(0.2, 0, 0, 1) !important;
}

.falvix-poppy-release {
  transform: scale(1.03) translateY(-1px) !important;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* ============================================================
   17 · TEXTCURSOR ("SAVE big" case-sensitive)
   ============================================================ */
.falvix-text-cursor-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
  overflow: hidden;
}

.falvix-text-cursor-item {
  position: absolute;
  top: 0;
  left: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #7EF0C2;
  text-shadow: 0 0 18px rgba(126, 240, 194, 0.65), 0 2px 8px rgba(0, 0, 0, 0.8);
  letter-spacing: -0.01em;
  white-space: pre;
  will-change: transform, opacity;
  pointer-events: none;
  user-select: none;
}

/* ============================================================
   18 · FAULTY TERMINAL WEBGL2 CRT PHOSPHOR CANVAS
   ============================================================ */
.faulty-terminal-mount {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 16px !important;
  background: #0B0F0D !important;
}

.faulty-terminal-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  pointer-events: auto !important;
}

/* Ensure pill-nav items remain on top of sliding liquid glass indicator */
.pill-list {
  position: relative !important;
}

.pill-list .pill {
  position: relative !important;
  z-index: 2 !important;
}

.pill-list .falvix-apple-nav-slider {
  z-index: 1 !important;
}

/* ============================================================
   19 · COMMAND OS & ACTIVE MODULES LIQUID GLASS PANELS
   ============================================================ */
main.bg-white,
main[class*="bg-white"],
.command-os-main {
  background-color: #0B0F0D !important;
  color: #F3F5F0 !important;
}

/* Fix Active Modules Cards: Deep Forest dense liquid glass instead of harsh white */
.command-os-card,
div[class*="hover:bg-white"][class*="rounded-xl"],
div[class*="bg-gray-50"][class*="rounded-xl"] {
  background: rgba(22, 36, 29, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(24px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(160%) !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.command-os-card:hover,
div[class*="hover:bg-white"][class*="rounded-xl"]:hover,
div[class*="bg-gray-50"][class*="rounded-xl"]:hover {
  background: rgba(22, 36, 29, 0.9) !important;
  border-color: rgba(126, 240, 194, 0.4) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 30px rgba(126, 240, 194, 0.18) !important;
  transform: translateY(-2px) !important;
}

/* Card Titles */
.command-os-card h3,
div[class*="bg-gray-50"] h3,
div[class*="hover:bg-white"] h3 {
  color: #F3F5F0 !important;
  font-weight: 800 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6) !important;
}

/* Card Descriptions */
.command-os-card p,
div[class*="bg-gray-50"] p,
div[class*="hover:bg-white"] p {
  color: #A9B3AB !important;
  font-weight: 500 !important;
  line-height: 1.6 !important;
}

/* Active Status Pill */
span[class*="bg-green-500"],
span[class*="text-green-400"] {
  background: rgba(126, 240, 194, 0.15) !important;
  color: #7EF0C2 !important;
  border: 1px solid rgba(126, 240, 194, 0.35) !important;
  box-shadow: 0 0 12px rgba(126, 240, 194, 0.2) !important;
}

/* Standby Status Pill */
span[class*="text-amber"],
span[class*="bg-amber"],
span[class*="border-amber"] {
  background: rgba(217, 130, 95, 0.15) !important;
  color: #D9825F !important;
  border: 1px solid rgba(217, 130, 95, 0.35) !important;
}

/* Icon Containers in Cards */
div[class*="bg-gray-50"] div[class*="w-10"],
div[class*="hover:bg-white"] div[class*="w-10"] {
  background: rgba(143, 169, 140, 0.18) !important;
  border: 1px solid rgba(126, 240, 194, 0.25) !important;
  color: #7EF0C2 !important;
}

/* ============================================================
   20 · HEADER LOGO BRILLIANCE & GLOW (LIQUID GLASS V2.0)
   ============================================================ */
nav a img[src*="logo"],
header img[src*="logo"],
.pill-logo img,
img[alt*="Falvix"] {
  filter: drop-shadow(0 0 12px rgba(126, 240, 194, 0.6)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8)) !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  object-fit: contain !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

/* Brand name text next to logo */
nav a span,
header a span,
.font-heading {
  color: #F3F5F0 !important;
  font-weight: 900 !important;
}

/* ============================================================
   21 · VIDEO EDITING STACK (LIQUID GLASS V2.0 COLOR CORRECTION)
   ============================================================ */

/* Top and bottom gradient fade masks: Replace stark white from-gray-50 with obsidian liquid glass fade */
.from-gray-50.bg-gradient-to-b,
div[class*="from-gray-50"][class*="bg-gradient-to-b"] {
  background-image: linear-gradient(to bottom, #0B0F0D 0%, rgba(11, 15, 13, 0.8) 45%, transparent 100%) !important;
}

.from-gray-50.bg-gradient-to-t,
div[class*="from-gray-50"][class*="bg-gradient-to-t"] {
  background-image: linear-gradient(to top, #0B0F0D 0%, rgba(11, 15, 13, 0.8) 45%, transparent 100%) !important;
}

/* Editing Stack Unselected Buttons */
button[class*="rounded-xl"][class*="bg-white"],
button[class*="border-gray-100"] {
  background: rgba(22, 36, 29, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #F3F5F0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

button[class*="rounded-xl"][class*="bg-white"] span,
button[class*="border-gray-100"] span {
  color: #F3F5F0 !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
}

button[class*="rounded-xl"][class*="bg-white"]:hover,
button[class*="border-gray-100"]:hover {
  background: rgba(22, 36, 29, 0.92) !important;
  border-color: rgba(126, 240, 194, 0.45) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 24px rgba(126, 240, 194, 0.16) !important;
  transform: translateY(-1px) scale(1.01) !important;
}

/* Editing Stack Selected / Active Button */
button[class*="rounded-xl"][class*="bg-arca-blue"],
button[class*="border-arca-blue"] {
  background: linear-gradient(135deg, rgba(126, 240, 194, 0.22) 0%, rgba(22, 36, 29, 0.9) 100%) !important;
  border: 1px solid #7EF0C2 !important;
  color: #7EF0C2 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 35px rgba(126, 240, 194, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

button[class*="rounded-xl"][class*="bg-arca-blue"] span,
button[class*="border-arca-blue"] span {
  color: #7EF0C2 !important;
  font-weight: 800 !important;
  text-shadow: 0 0 15px rgba(126, 240, 194, 0.5) !important;
}

/* Check Circle Icon inside buttons */
button[class*="rounded-xl"] svg {
  color: #8FA98C !important;
}

button[class*="rounded-xl"][class*="bg-arca-blue"] svg,
button[class*="border-arca-blue"] svg {
  color: #7EF0C2 !important;
  filter: drop-shadow(0 0 8px #7EF0C2) !important;
  opacity: 1 !important;
}
