/* ==========================================================================
   SnapMark Pro — Design System & Core Styles (Liquid Glass Aesthetic)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette - Deep Space Dark Theme */
  --text-primary:       #FFFFFF;
  --bg-void:            #04020E;
  
  --bg-dark: #04020E;           /* Core deep space background */
  --bg-dark-secondary: #080C24; /* Secondary section backgrounds */
  
  /* Liquid Glass Panel Settings - Mobile First (No heavy blurs for smooth mobile scrolling) */
  --glass-surface: rgba(10, 15, 43, 0.95);
  --glass-bg: rgba(10, 15, 43, 0.95);
  --glass-bg-hover: rgba(15, 22, 60, 0.98);
  --glass-border: rgba(79, 140, 255, 0.12);
  --glass-border-hover: rgba(79, 140, 255, 0.3);
  --glass-blur: 0px;
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --glass-highlight: rgba(255, 255, 255, 0.03);
  --glass-highlight-grad: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 60%);
  --nav-bg: rgba(5, 8, 22, 0.96);
  --footer-bg: rgba(5, 8, 22, 0.98);

  /* Accents */
  --accent-primary: #4F8CFF;
  --accent-primary-rgb: 79, 140, 255;
  --accent-secondary: #8B5CF6;
  --accent-secondary-rgb: 139, 92, 246;
  --accent-cyan: #00E5FF;
  --accent-cyan-rgb: 0, 229, 255;
  --accent-emerald: #10B981;
  --accent-emerald-rgb: 16, 185, 129;
  --accent-purple: #A855F7;
  --accent-purple-rgb: 168, 85, 247;
  --accent-orange: #f97316;
  --accent-orange-rgb: 249, 115, 22;
  
  --accent-glow: rgba(79, 140, 255, 0.15);
  --accent-glow-hover: rgba(79, 140, 255, 0.3);

  /* Text Colors */
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-inverse: #0A0E1A;

  /* Font Families */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Animation Settings & Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.15s ease-in-out;
  --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  /* Heading Gradient for dark theme */
  --heading-gradient: linear-gradient(135deg, #FFFFFF 20%, var(--accent-primary) 80%, var(--accent-purple) 100%);
}

/* Light Theme Variables Override - Replicating Premium Pastel Lavender/Blue Light Theme from the screenshot */
html.light-theme, html.light-theme body {
  --text-primary:       #0F172A; /* Slate-900 (almost black) */
  --bg-void:            #F3F4FD; /* Soft Lavender/Light-Blue background base */
  
  --bg-dark: #FFFFFF;           /* Main section background / white panels */
  --bg-dark-secondary: #F8FAFC; /* Secondary section backgrounds */
  
  /* Glass Card Settings customized for light theme */
  --glass-surface: #FFFFFF;
  --glass-bg: #FFFFFF;
  --glass-bg-hover: #FFFFFF;
  --glass-border: rgba(99, 102, 241, 0.08); /* Delicate indigo border tint */
  --glass-border-hover: rgba(99, 102, 241, 0.25);
  --glass-blur: 0px;
  --glass-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.05), 0 8px 10px -6px rgba(99, 102, 241, 0.05);
  --glass-highlight: rgba(255, 255, 255, 0.8);
  --glass-highlight-grad: linear-gradient(135deg, rgba(255, 255, 255, 0.9), transparent 60%);
  --nav-bg: rgba(243, 244, 253, 0.85);
  --footer-bg: rgba(243, 244, 253, 0.95);

  /* Accents */
  --accent-primary: #4F46E5; /* Royal Indigo */
  --accent-primary-rgb: 79, 70, 229;
  --accent-secondary: #8B5CF6; /* Violet */
  --accent-secondary-rgb: 139, 92, 246;
  --accent-cyan: #06B6D4;
  --accent-cyan-rgb: 6, 182, 212;
  --accent-emerald: #10B981;
  --accent-emerald-rgb: 16, 185, 129;
  --accent-purple: #A855F7;
  --accent-purple-rgb: 168, 85, 247;
  --accent-orange: #F97316;
  --accent-orange-rgb: 249, 115, 22;
  
  --accent-glow: rgba(99, 102, 241, 0.08);
  --accent-glow-hover: rgba(99, 102, 241, 0.15);

  /* Text Colors */
  --text-secondary: #475569; /* Slate-600 */
  --text-muted: #64748B; /* Slate-500 */
  --text-inverse: #FFFFFF;

  /* Heading Gradient for light theme - starts dark instead of white */
  --heading-gradient: linear-gradient(135deg, #0F172A 20%, var(--accent-primary) 80%, var(--accent-purple) 100%);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  background-color: var(--bg-dark);
  background-image: radial-gradient(1px 1px at 30px 40px, #ffffff, rgba(0,0,0,0)),
                    radial-gradient(1.5px 1.5px at 150px 90px, #ffffff, rgba(0,0,0,0)),
                    radial-gradient(1px 1px at 280px 220px, #ffffff, rgba(0,0,0,0)),
                    radial-gradient(1.5px 1.5px at 460px 140px, #ffffff, rgba(0,0,0,0)),
                    radial-gradient(1px 1px at 620px 380px, #ffffff, rgba(0,0,0,0)),
                    radial-gradient(2px 2px at 780px 160px, rgba(255,255,255,0.7), rgba(0,0,0,0)),
                    radial-gradient(1px 1px at 910px 270px, #ffffff, rgba(0,0,0,0)),
                    radial-gradient(1.5px 1.5px at 1080px 80px, #ffffff, rgba(0,0,0,0)),
                    radial-gradient(ellipse at 0% 0%, rgba(79, 140, 255, 0.07) 0%, transparent 50%),
                    radial-gradient(ellipse at 100% 0%, rgba(0, 229, 255, 0.05) 0%, transparent 50%),
                    radial-gradient(ellipse at 50% 100%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
  background-size: 350px 350px, 450px 450px, 280px 280px, 500px 500px, 400px 400px, 600px 600px, 300px 300px, 550px 550px, 100% 100%, 100% 100%, 100% 100%;
  background-attachment: fixed;
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
  transition: background var(--transition-smooth), color var(--transition-smooth);
}

html.light-theme body {
  background-attachment: fixed;
  background-image: radial-gradient(ellipse at 0% 0%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
                    radial-gradient(ellipse at 100% 0%, rgba(139, 92, 246, 0.04) 0%, transparent 50%),
                    radial-gradient(ellipse at 50% 100%, rgba(34, 211, 238, 0.03) 0%, transparent 50%);
  background-color: var(--bg-void);
}

/* Scrollbar Custom Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-void);
}
::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 4px;
  border: 2px solid var(--bg-void);
  transition: var(--transition-fast);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--glass-border) var(--bg-void);
}

/* ==========================================================================
   Typography & Flow
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

h1 {
  font-size: clamp(1.85rem, 1.5rem + 2vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.4rem, 1.2rem + 1.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.4rem, 1.35rem + 0.75vw, 2.25rem);
  font-weight: 600;
  line-height: 1.3;
}

/* Prismatic head gradient styling rules */
h1, h2, h3, .text-gradient {
  background-image: var(--heading-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  text-fill-color: transparent;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  color: var(--text-secondary);
  font-size: 1rem;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

@media (hover: hover) {
  a:hover {
    color: var(--accent-secondary);
  }
}

code, pre, .font-mono {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 0.825rem + 0.125vw, 0.95rem);
}

/* Accessibility Focus States */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 4px;
}

/* ==========================================================================
   Layout & Container Utilities (Mobile First)
   ========================================================================== */
.container {
  width: 100%;
  padding-right: 1.25rem;
  padding-left: 1.25rem;
  margin-right: auto;
  margin-left: auto;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

/* ==========================================================================
   Liquid Glass & Card Components
   ========================================================================== */
.glass-card {
  position: relative;
  background: var(--glass-surface);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  transition: transform var(--transition-smooth), 
              border-color var(--transition-smooth), 
              box-shadow var(--transition-smooth), 
              background var(--transition-smooth);
}

/* Highlight reflection border effect */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--glass-highlight-grad);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Cards Lift interaction hover */
@media (hover: hover) {
  .glass-card-hover:hover {
    transform: translateY(-6px);
    border-color: var(--glass-border-hover);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 
                0 0 30px rgba(99, 102, 241, 0.15);
    background: var(--glass-bg-hover);
  }
}

/* Nested/Inner layout cards */
.feature-inner-card {
  position: relative;
  background: rgba(7, 8, 14, 0.45);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

@media (hover: hover) {
  .feature-inner-card:hover {
    border-color: var(--accent-cyan);
    background: rgba(7, 8, 14, 0.65);
    transform: translateY(-2px);
  }
}

/* Background Glowing Orbs - Disabled on Mobile for performance */
.bg-orb {
  display: none;
}

html.light-theme .bg-orb {
  opacity: 0.15;
  filter: blur(min(8vw, 110px));
}

.bg-orb-1 {
  background: var(--accent-primary);
}

.bg-orb-2 {
  background: var(--accent-secondary);
}

.bg-orb-3 {
  background: var(--accent-cyan);
}

/* ==========================================================================
   Animations & Transitions
   ========================================================================== */

/* Slow organic floating background orbs */
@keyframes float-orb {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.08); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
  100% { transform: translate(0, 0) scale(1); }
}

.animate-float-orb {
  animation: float-orb 20s infinite ease-in-out;
}

/* Endless sliding marquee */
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.marquee-container {
  overflow: hidden;
  display: flex;
  white-space: nowrap;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.marquee-content {
  display: flex;
  gap: 3rem;
  animation: marquee 35s linear infinite;
  width: max-content;
}

/* Scroll reveal system CSS hook */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal--left {
  transform: translateX(-40px);
}

.reveal--right {
  transform: translateX(40px);
}

.reveal.revealed {
  opacity: 1;
  transform: translate(0) !important;
}

/* Sticky Navigation rules */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  height: 58px !important;
}

section[id] {
  scroll-margin-top: 80px; /* Offset to prevent sticky header from covering details card when scrolling via anchors */
}

section:not(#hero) {
  padding: 3rem 0 !important;
}

/* Helper class to hide mobile theme toggle on desktop */
@media (min-width: 768px) {
  .mobile-theme-toggle {
    display: none !important;
  }
}

/* Responsive sidebar navigation layout helper */
.hidden-md-down {
  display: none !important;
}

@media (min-width: 768px) {
  .hidden-md-down {
    display: flex !important;
  }
}

.side-nav-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 768px) {
  .side-nav-layout {
    grid-template-columns: 240px 1fr;
  }
}

/* ==========================================================================
   Interactive UI Components Support
   ========================================================================== */

/* Hamburger Navigation menu drawer styles */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.nav-toggle span {
  width: 2rem;
  height: 0.25rem;
  background: var(--text-primary);
  border-radius: 10px;
  transition: var(--transition-smooth);
  position: relative;
  transform-origin: 1px;
}

.nav-toggle--active span:first-child {
  transform: rotate(45deg);
}

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

.nav-toggle--active span:nth-child(3) {
  transform: rotate(-45deg);
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(80vw, 400px);
  height: 100vh;
  background: var(--glass-surface);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-left: 1px solid var(--glass-border);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  z-index: 100;
  padding: 6rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transition: var(--transition-smooth);
}

.nav-drawer--open {
  right: 0;
}

.nav-drawer a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

@media (hover: hover) {
  .nav-drawer a:hover {
    color: var(--text-primary);
  }
}

.nav-drawer a.active {
  color: var(--accent-cyan) !important;
  font-weight: 700;
}

.body-scroll-lock {
  overflow: hidden !important;
}

.nav-desktop-menu {
  display: none !important;
}

/* Pricing Switch transitions hook */
[data-price-monthly] {
  transition: opacity 150ms ease-in-out;
}

/* FAQ Accordions */
.faq-item {
  border-bottom: 1px solid var(--glass-border);
  padding: 1.5rem 0;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question::after {
  content: '';
  width: 1.25rem;
  height: 1.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23818cf8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: var(--transition-smooth);
}

.faq-item--open .faq-question::after {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.faq-answer-inner {
  padding-top: 1rem;
  color: var(--text-secondary);
}

/* Table of Contents & ScrollSpy */
.toc-container {
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.toc-title {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toc-item--h2 {
  padding-left: 0;
}

.toc-item--h3 {
  padding-left: 1.25rem;
  font-size: 0.9em;
}

.toc-link {
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.toc-link--active {
  color: var(--accent-primary);
  font-weight: 500;
}

@media (hover: hover) {
  .toc-link:hover {
    color: var(--accent-primary);
    font-weight: 500;
  }
}

/* World Map Tooltip */
.map-tooltip {
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  border-radius: 8px;
  pointer-events: none;
  white-space: nowrap;
}

.map-tooltip strong {
  color: var(--text-primary);
}

.map-tooltip span {
  color: var(--accent-cyan);
}

.map-dot {
  cursor: pointer;
  transition: r var(--transition-fast), fill var(--transition-fast), filter var(--transition-fast);
}

@media (hover: hover) {
  .map-dot:hover {
    r: 8px !important;
    fill: var(--accent-cyan) !important;
    filter: drop-shadow(0 0 8px var(--accent-cyan));
  }
}

/* ==========================================================================
   Responsive Grid & Utility Rules (Mobile First)
   ========================================================================== */

/* 1. Base Mobile: 320px (Default styles) */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
.grid-cols-2-md, .grid-cols-3-md, .grid-cols-2-lg, .grid-cols-3-lg, .grid-cols-4-lg, .grid-cols-5-lg {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

/* 2. Mobile Medium: 375px */
@media (min-width: 375px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* 3. Tablet: 768px */
@media (min-width: 768px) {
  :root {
    --glass-surface: rgba(10, 15, 43, 0.65);
    --glass-bg: rgba(10, 15, 43, 0.65);
    --glass-bg-hover: rgba(15, 22, 60, 0.8);
    --glass-blur: 20px;
    --nav-bg: rgba(5, 8, 22, 0.9);
    --footer-bg: rgba(5, 8, 22, 0.95);
  }

  /* Enable Glowing Orbs on desktop viewports */
  .bg-orb {
    display: block;
    position: absolute;
    width: min(35vw, 400px);
    height: min(35vw, 400px);
    border-radius: 50%;
    filter: blur(min(8vw, 100px));
    opacity: 0.12;
    pointer-events: none;
    z-index: -1;
    transition: opacity var(--transition-smooth), filter var(--transition-smooth);
  }

  .grid-cols-2-md { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .grid-cols-3-md { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .col-span-2-md { grid-column: span 2; }
  
  .nav-drawer {
    display: none !important;
  }
  .nav-desktop-menu {
    display: flex !important;
    gap: 2rem;
    list-style: none;
    align-items: center;
  }
  .nav-desktop-menu a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color var(--transition-fast), transform var(--transition-fast);
    position: relative;
    padding: 0.35rem 0;
    display: inline-block;
  }
  .nav-desktop-menu a:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
  }
  .nav-desktop-menu a.active {
    color: var(--accent-cyan) !important;
    font-weight: 600;
  }
  .nav-desktop-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-primary));
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
    border-radius: 2px;
    animation: navIndicatorReveal 0.3s ease-out forwards;
  }
  .nav-toggle {
    display: none;
  }
}

@keyframes navIndicatorReveal {
  from { width: 0; left: 50%; opacity: 0; }
  to { width: 100%; left: 0; opacity: 1; }
}

/* 4. Small Desktop / Laptop: 1024px */
@media (min-width: 1024px) {
  .grid-cols-2-lg { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .grid-cols-3-lg { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .grid-cols-4-lg { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .grid-cols-5-lg { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
  .container {
    max-width: 960px;
  }
}

/* 5. Large Desktop: 1440px */
@media (min-width: 1440px) {
  .container {
    max-width: 1200px;
  }
}

/* 6. Ultra-wide: 1920px */
@media (min-width: 1920px) {
  .container {
    max-width: 1600px;
  }
}

/* ==========================================================================
   Accessibility & Reduced Motion resets
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  
  .animate-float-orb {
    animation: none !important;
  }
  
  .marquee-content {
    animation: none !important;
    overflow-x: auto;
    white-space: normal;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   Premium Card Icon Container & Accent Styles (Replicating Attached Light Mode Theme)
   ========================================================================== */
.feature-icon-container {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  position: relative;
  transition: transform var(--transition-smooth);
}

/* Matching glow behind container */
.feature-icon-container::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  background: inherit;
  filter: blur(12px);
  opacity: 0.45;
  z-index: -1;
  border-radius: inherit;
  transition: opacity var(--transition-smooth);
}

.feature-icon-container svg {
  width: 22px;
  height: 22px;
  stroke: #FFFFFF;
}

/* Gradients for icon containers matching the screenshot exactly */
.icon-grad-purple {
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
}
.icon-grad-teal {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}
.icon-grad-blue {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}
.icon-grad-pink {
  background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
}
.icon-grad-rose {
  background: linear-gradient(135deg, #fb7185 0%, #f43f5e 100%);
}
.icon-grad-emerald {
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
}
.icon-grad-indigo {
  background: linear-gradient(135deg, #818cf8 0%, #4f46e5 100%);
}
.icon-grad-cyan {
  background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
}
.icon-grad-orange {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

/* Top-right card accent decoration pill from screenshot */
.glass-card::after {
  content: '';
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 44px;
  border-radius: 10px;
  background: #6366F1;
  opacity: 0.04;
  pointer-events: none;
  transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

html.light-theme .glass-card::after {
  background: #6366F1;
  opacity: 0.08;
}

@media (hover: hover) {
  .glass-card:hover::after {
    transform: scale(1.05);
  }
}

/* Hide theme toggles globally */
.theme-toggle-btn {
  display: none !important;
}

/* Mobile-First Layout & Performance Optimizations */
@media (max-width: 767px) {
  /* Disable runtime scroll reveal animations on mobile to guarantee smooth scrolling */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Swap heavy 3D canvas globe with static vector SVG world map on mobile */
  #globe-container {
    display: none !important;
  }
  #hidden-svg-map {
    display: block !important;
    max-width: 90%;
    margin: 0 auto;
    height: auto;
    opacity: 0.75;
  }
  #hidden-svg-map path {
    stroke: var(--accent-cyan);
    fill: rgba(0, 229, 255, 0.02);
    stroke-width: 1px;
  }
}

/* ==========================================================================
   3D Liquid-Glass Theme Icons
   ========================================================================== */
@keyframes float-icon {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(2deg) scale(1.02); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.liquid-glass-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  position: relative;
  background: rgba(10, 12, 22, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition-smooth);
  animation: float-icon 4s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  user-select: none;
  flex-shrink: 0;
  color: var(--accent-cyan);
}

.liquid-glass-icon .svg-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.2;
  color: inherit;
  filter: drop-shadow(0 0 4px currentColor);
  display: block;
}

.liquid-glass-icon[style*="width: 24px"] {
  border-radius: 8px;
  border-width: 1px;
}
.liquid-glass-icon[style*="width: 24px"] .svg-icon {
  width: 12px;
  height: 12px;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 3px currentColor);
}

.liquid-glass-icon[style*="width: 28px"] {
  border-radius: 10px;
  border-width: 1.2px;
}
.liquid-glass-icon[style*="width: 28px"] .svg-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
  filter: drop-shadow(0 0 3px currentColor);
}

/* Accent Colors */
.liquid-glass-icon.cyan {
  color: var(--accent-cyan);
  border-color: rgba(0, 229, 255, 0.15);
  background: radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.04) 0%, transparent 80%), rgba(10, 12, 22, 0.6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 
              0 0 12px rgba(0, 229, 255, 0.05),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.liquid-glass-icon.pink {
  color: var(--accent-secondary);
  border-color: rgba(244, 114, 182, 0.15);
  background: radial-gradient(circle at 50% 50%, rgba(244, 114, 182, 0.04) 0%, transparent 80%), rgba(10, 12, 22, 0.6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 
              0 0 12px rgba(244, 114, 182, 0.05),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.liquid-glass-icon.purple {
  color: var(--accent-purple);
  border-color: rgba(168, 85, 247, 0.15);
  background: radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.04) 0%, transparent 80%), rgba(10, 12, 22, 0.6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 
              0 0 12px rgba(168, 85, 247, 0.05),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.liquid-glass-icon.emerald {
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.15);
  background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.04) 0%, transparent 80%), rgba(10, 12, 22, 0.6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 
              0 0 12px rgba(16, 185, 129, 0.05),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.liquid-glass-icon.blue {
  color: var(--accent-primary);
  border-color: rgba(79, 140, 255, 0.15);
  background: radial-gradient(circle at 50% 50%, rgba(79, 140, 255, 0.04) 0%, transparent 80%), rgba(10, 12, 22, 0.6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 
              0 0 12px rgba(79, 140, 255, 0.05),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.liquid-glass-icon.orange {
  color: var(--accent-orange);
  border-color: rgba(249, 115, 22, 0.15);
  background: radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.04) 0%, transparent 80%), rgba(10, 12, 22, 0.6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 
              0 0 12px rgba(249, 115, 22, 0.05),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Light Theme Variables Override */
html.light-theme .liquid-glass-icon {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(99, 102, 241, 0.12);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.06), 
              inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

html.light-theme .liquid-glass-icon.cyan {
  background: radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.06) 0%, transparent 80%), rgba(255, 255, 255, 0.85);
  border-color: rgba(6, 182, 212, 0.2);
}

html.light-theme .liquid-glass-icon.pink {
  background: radial-gradient(circle at 50% 50%, rgba(244, 114, 182, 0.06) 0%, transparent 80%), rgba(255, 255, 255, 0.85);
  border-color: rgba(244, 114, 182, 0.2);
}

html.light-theme .liquid-glass-icon.purple {
  background: radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.06) 0%, transparent 80%), rgba(255, 255, 255, 0.85);
  border-color: rgba(168, 85, 247, 0.2);
}

html.light-theme .liquid-glass-icon.emerald {
  background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.06) 0%, transparent 80%), rgba(255, 255, 255, 0.85);
  border-color: rgba(16, 185, 129, 0.2);
}

html.light-theme .liquid-glass-icon.blue {
  background: radial-gradient(circle at 50% 50%, rgba(79, 70, 229, 0.06) 0%, transparent 80%), rgba(255, 255, 255, 0.85);
  border-color: rgba(79, 70, 229, 0.2);
}

html.light-theme .liquid-glass-icon.orange {
  background: radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.06) 0%, transparent 80%), rgba(255, 255, 255, 0.85);
  border-color: rgba(249, 115, 22, 0.2);
}

@media (hover: hover) {
  .liquid-glass-icon:hover {
    transform: translateY(-6px) scale(1.08) rotate(3deg);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 
                0 0 18px currentColor,
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
}
