.patient-fab-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999; /* Higher than sticky, lower than modal */
    pointer-events: auto;
}

.patient-fab-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    color: var(--t-text);
    font-family: var(--ff-sans);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-sm);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--t-glass-border);
}

/* Glassmorphism Refinement */
.patient-fab-link.glass {
    background: hsla(222, 47%, 12%, 0.4);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
}

[data-theme="light"] .patient-fab-link.glass {
    background: hsla(220, 20%, 96%, 0.6);
    border: 1px solid hsla(220, 20%, 80%, 0.3);
    color: var(--clr-gray-900);
}

.patient-fab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--clr-primary);
}

.patient-fab-text {
    letter-spacing: -0.01em;
}

/* Apple-level Hover Effects */
.patient-fab-link:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl), 0 0 20px hsla(221, 83%, 53%, 0.15);
    border-color: hsla(221, 83%, 53%, 0.4);
}

.patient-fab-link:active {
    transform: translateY(-1px) scale(0.98);
}

/* "Click Me" Visual Cues (Attention Grabbing) */

/* 1. Subtle Bobbing Animation (Very Minimal) */
@keyframes fab-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.patient-fab-container {
    animation: fab-bob 4s ease-in-out infinite;
}

/* 2. Minimal Border Shine (Tracing the edge) */
.patient-fab-link::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1.5px; /* Shine thickness */
    background: linear-gradient(
        135deg,
        transparent 0%,
        transparent 40%,
        var(--clr-primary) 50%,
        transparent 60%,
        transparent 100%
    );
    background-size: 250% 250%;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: fab-border-shine 3s ease-in-out infinite;
    opacity: 1; /* Full opacity for better visibility */
    z-index: 1;
}

@keyframes fab-border-shine {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* 3. Minimal Moving Shimmer (Occasional) */
.patient-fab-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: skewX(-25deg);
    animation: fab-shimmer 8s ease-in-out infinite;
}

[data-theme="light"] .patient-fab-link::after {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
}

@keyframes fab-shimmer {
    0% { left: -150%; }
    15%, 100% { left: 150%; }
}

/* Subtle Animated Glow */
.patient-fab-glow {
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle at center, hsla(221, 83%, 53%, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
    pointer-events: none;
}

.patient-fab-link:hover .patient-fab-glow {
    opacity: 1;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .patient-fab-container {
        bottom: 1.5rem;
        right: 1.5rem;
        /* Reduce motion on mobile slightly */
        animation-duration: 4s;
    }
    
    .patient-fab-link::before {
        animation-duration: 4s;
    }
    
    .patient-fab-link {
        padding: 0.75rem;
        gap: 0;
    }

    .patient-fab-text {
        display: inline-block; /* Keep it if possible */
    }
}

/* If wide enough on mobile, show text */
@media (min-width: 480px) and (max-width: 768px) {
    .patient-fab-text {
        display: inline-block;
        font-size: var(--fs-xs);
    }
    .patient-fab-link {
        padding: 0.6rem 1rem;
        gap: 0.5rem;
    }
}
/* ==========================================================================
   Scroll Progress — Top Bar Indicator
   ========================================================================== */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 99998;
  transform-origin: left;
  background: linear-gradient(90deg,
      hsl(221, 83%, 60%),
      hsl(262, 83%, 65%),
      hsl(0, 84%, 60%));
  border-radius: 0 2px 2px 0;
  /* PERF: Removed box-shadow — it forces repaint on every scroll tick.
     The gradient alone is visually sufficient for a 3px bar. */
  will-change: transform;
  contain: layout style;
  pointer-events: none;
}.loader-premium-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
  overflow: hidden;
}

/* Dark mode glassmorphism */
@media (prefers-color-scheme: dark) {
  .loader-premium-overlay {
    background: rgba(10, 15, 30, 0.8);
  }
}
.dark .loader-premium-overlay {
  background: rgba(10, 15, 30, 0.8);
}

.loader-premium-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Content Container */
.loader-premium-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  perspective: 1200px;
}

.loader-premium-overlay.active .loader-premium-content {
  animation: content-reveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes content-reveal {
  0% { opacity: 0; transform: translateY(40px) scale(0.95); filter: blur(15px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* ── Concentric Scanner Layout (Compact Core) ─────────────────────────── */
.scanner-wrapper {
  position: relative;
  width: 210px;
  height: 210px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Base style for the concentric circles */
.scanner-circle {
  position: absolute;
  border-radius: 50%;
}

/* Outer Blue Circle (Clockwise rotation) - Wrapped closer to the core */
.circle-outer {
  width: 210px;
  height: 210px;
  border: 2px solid rgba(59, 130, 246, 0.2);
  border-top: 3px solid #3b82f6;
  border-bottom: 3px solid #60a5fa;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.25);
  animation: spin-clockwise 6s linear infinite;
  z-index: 2;
}

/* Inner Red Circle (Counter-clockwise rotation) - Wrapped closer to the core */
.circle-inner-border {
  width: 180px;
  height: 180px;
  border: 2px dashed rgba(239, 68, 68, 0.35);
  border-left: 3px solid #ef4444;
  border-right: 3px solid #f87171;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
  animation: spin-counter 5s linear infinite;
  z-index: 3;
}

/* Static Inner Area with Tooth Image & Laser */
.scanner-inner-content {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-shadow: inset 0 0 25px rgba(59, 130, 246, 0.15), 0 10px 30px rgba(0, 0, 0, 0.05);
  z-index: 5;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

@media (prefers-color-scheme: dark) {
  .scanner-inner-content {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: inset 0 0 25px rgba(147, 197, 253, 0.15);
    border-color: rgba(255, 255, 255, 0.05);
  }
}

.dark .scanner-inner-content {
  background: rgba(15, 23, 42, 0.95);
  box-shadow: inset 0 0 25px rgba(147, 197, 253, 0.15);
  border-color: rgba(255, 255, 255, 0.05);
}

/* Tooth Image styled to fit inside container (Compact & Large fit) */
.tooth-image-scan {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.18));
  opacity: 0.98;
  user-select: none;
  transform: scale(1.15); /* Keep image large inside the compact circle */
}

/* Glowing Neon Cyan Laser Line */
.scanner-laser {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: #00f0ff;
  box-shadow: 
    0 0 10px 2px #00f0ff,
    0 0 18px 3px rgba(0, 240, 255, 0.5),
    0 0 30px 6px rgba(0, 240, 255, 0.3);
  animation: laser-scan 3s ease-in-out infinite;
  z-index: 10;
}

/* Laser sweep light trail */
.scanner-laser::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 16px;
  background: linear-gradient(to bottom, rgba(0, 240, 255, 0.15), transparent);
  transform: translateY(-100%);
  pointer-events: none;
}

/* ── Animations ─────────────────────────────────────────────────── */
@keyframes spin-clockwise {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spin-counter {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes laser-scan {
  0% { top: 0%; opacity: 0.8; }
  50% { top: 100%; opacity: 1; }
  100% { top: 0%; opacity: 0.8; }
}

/* Responsive Sizing for Mobile & Tablets */
@media (max-width: 640px) {
  .scanner-wrapper { 
    width: 170px; 
    height: 170px; 
  }
  .circle-outer { 
    width: 170px; 
    height: 170px; 
  }
  .circle-inner-border { 
    width: 145px; 
    height: 145px; 
  }
  .scanner-inner-content { 
    width: 120px; 
    height: 120px; 
  }
  .tooth-image-scan { 
    width: 90px; 
    height: 90px; 
  }
}

/* Extra Small Screens (Very small mobile) */
@media (max-width: 380px) {
  .scanner-wrapper { 
    width: 140px; 
    height: 140px; 
  }
  .circle-outer { 
    width: 140px; 
    height: 140px; 
  }
  .circle-inner-border { 
    width: 120px; 
    height: 120px; 
  }
  .scanner-inner-content { 
    width: 100px; 
    height: 100px; 
  }
  .tooth-image-scan { 
    width: 75px; 
    height: 75px; 
  }
}
/* ==========================================================================
   Global Styles — Competition-Grade Premium Landing Page
   Import order: reset → variables → design-system → global
   ========================================================================== */
/* ==========================================================================
   CSS Reset — Production-Grade Normalization
   Removes browser defaults, enforces consistent box model,
   and enables smooth font rendering across all platforms.
   ========================================================================== */
/* ---------- Box Model Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* ---------- Document Defaults ---------- */
html {
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  hanging-punctuation: first last;
}
:root {
  --hero-breakout: clamp(150px, 15vw, 250px);
}
body {
  min-height: 100vh;
  line-height: 1.6;
}
/* ---------- Typography Reset ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.2;
}
p,
li,
figcaption {
  max-width: 75ch;
  /* Prevent excessively wide text lines */
}
/* ---------- Media Defaults ---------- */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
/* ---------- Form Element Normalization ---------- */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
button {
  cursor: pointer;
}
/* ---------- Link Reset ---------- */
a {
  color: inherit;
  text-decoration: none;
}
/* ---------- List Reset ---------- */
ul,
ol {
  list-style: none;
}
/* ---------- Table Reset ---------- */
table {
  border-collapse: collapse;
  border-spacing: 0;
}
/* ---------- Misc ---------- */
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Focus ring on dark backgrounds */
[class*="fcta"] :focus-visible,
[class*="vidshow"] :focus-visible,
.footer :focus-visible {
  outline-color: hsla(0, 0%, 100%, 0.7);
}
/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    will-change: auto !important;
  }
}
/* Windows High Contrast Mode support */
@media (forced-colors: active) {
  :focus-visible {
    outline: 2px solid CanvasText;
  }
}
/* ==========================================================================
   Design Tokens — CSS Custom Properties
   Single source of truth for all visual design decisions.
   Organized by category: colors, typography, spacing, radii, shadows,
   transitions, z-index, and layout breakpoints.
   ========================================================================== */
:root {
    /* ── Color Palette ────────────────────────────────────────────────────── */
    /* Primary */
    --clr-primary: hsl(221, 83%, 53%);
    --clr-primary-light: hsl(221, 83%, 65%);
    --clr-primary-dark: hsl(221, 83%, 42%);
    --clr-primary-ghost: hsla(221, 83%, 53%, 0.08);

    /* Accent */
    --clr-accent: hsl(262, 83%, 58%);
    --clr-accent-light: hsl(262, 83%, 70%);
    --clr-accent-dark: hsl(262, 83%, 46%);

    /* Semantic */
    --clr-success: hsl(152, 69%, 44%);
    --clr-warning: hsl(38, 92%, 50%);
    --clr-error: hsl(0, 84%, 60%);
    --clr-info: hsl(199, 89%, 48%);

    /* Neutrals */
    --clr-white: hsl(0, 0%, 100%);
    --clr-gray-50: hsl(220, 20%, 97%);
    --clr-gray-100: hsl(220, 16%, 93%);
    --clr-gray-200: hsl(220, 14%, 86%);
    --clr-gray-300: hsl(220, 12%, 72%);
    --clr-gray-400: hsl(220, 10%, 55%);
    --clr-gray-500: hsl(220, 9%, 46%);
    --clr-gray-600: hsl(220, 12%, 34%);
    --clr-gray-700: hsl(220, 15%, 24%);
    --clr-gray-800: hsl(220, 20%, 16%);
    --clr-gray-900: hsl(220, 25%, 10%);
    --clr-black: hsl(220, 30%, 5%);

    /* Surface (light theme defaults) */
    --clr-bg: var(--clr-white);
    --clr-surface: var(--clr-gray-50);
    --clr-surface-elevated: var(--clr-white);
    --clr-text: var(--clr-gray-900);
    --clr-text-secondary: var(--clr-gray-500);
    --clr-text-tertiary: var(--clr-gray-400);
    --clr-border: var(--clr-gray-200);

    /* Gradient presets */
    --gradient-primary: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
    --gradient-surface: linear-gradient(135deg, var(--clr-gray-50), var(--clr-white));
    --gradient-glass: linear-gradient(135deg, hsla(0, 0%, 100%, 0.25), hsla(0, 0%, 100%, 0.05));

    /* ── Typography ───────────────────────────────────────────────────────── */
    --ff-sans: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --ff-heading: var(--ff-sans);
    --ff-mono: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;

    --fs-xs: clamp(0.70rem, 0.66rem + 0.20vw, 0.80rem);
    /* ~12-13px */
    --fs-sm: clamp(0.80rem, 0.76rem + 0.25vw, 0.925rem);
    /* ~13-15px */
    --fs-base: clamp(0.94rem, 0.88rem + 0.30vw, 1.063rem);
    /* ~15-17px */
    --fs-md: clamp(1.06rem, 0.98rem + 0.40vw, 1.25rem);
    /* ~17-20px */
    --fs-lg: clamp(1.25rem, 1.12rem + 0.65vw, 1.563rem);
    /* ~20-25px */
    --fs-xl: clamp(1.50rem, 1.28rem + 1.10vw, 2.00rem);
    /* ~24-32px */
    --fs-2xl: clamp(1.88rem, 1.50rem + 1.90vw, 2.75rem);
    /* ~30-44px */
    --fs-3xl: clamp(2.25rem, 1.70rem + 2.75vw, 3.50rem);
    /* ~36-56px */
    --fs-4xl: clamp(2.75rem, 1.90rem + 4.25vw, 4.50rem);
    /* ~44-72px */

    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extrabold: 800;

    --lh-tight: 1.15;
    --lh-snug: 1.35;
    --lh-normal: 1.6;
    --lh-relaxed: 1.8;

    /* ── Spacing Scale ────────────────────────────────────────────────────── */
    --space-3xs: clamp(0.25rem, 0.22rem + 0.15vw, 0.313rem);
    /* ~4-5px   */
    --space-2xs: clamp(0.50rem, 0.45rem + 0.25vw, 0.625rem);
    /* ~8-10px  */
    --space-xs: clamp(0.75rem, 0.68rem + 0.35vw, 0.938rem);
    /* ~12-15px */
    --space-sm: clamp(1.00rem, 0.90rem + 0.50vw, 1.25rem);
    /* ~16-20px */
    --space-md: clamp(1.50rem, 1.35rem + 0.75vw, 1.875rem);
    /* ~24-30px */
    --space-lg: clamp(2.00rem, 1.80rem + 1.00vw, 2.50rem);
    /* ~32-40px */
    --space-xl: clamp(3.00rem, 2.70rem + 1.50vw, 3.75rem);
    /* ~48-60px */
    --space-2xl: clamp(4.00rem, 3.60rem + 2.00vw, 5.00rem);
    /* ~64-80px */
    --space-3xl: clamp(6.00rem, 5.40rem + 3.00vw, 7.50rem);
    /* ~96-120px*/

    /* ── Layout Spacing ───────────────────────────────────────────────────── */
    --section-spacing: clamp(1rem, 1vw + 0.5rem, 2rem);

    /* ── Border Radius ────────────────────────────────────────────────────── */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* ── Shadows ──────────────────────────────────────────────────────────── */
    --shadow-xs: 0 1px 2px hsla(220, 20%, 10%, 0.05);
    --shadow-sm: 0 1px 3px hsla(220, 20%, 10%, 0.08),
        0 1px 2px hsla(220, 20%, 10%, 0.06);
    --shadow-md: 0 4px 6px hsla(220, 20%, 10%, 0.07),
        0 2px 4px hsla(220, 20%, 10%, 0.06);
    --shadow-lg: 0 10px 15px hsla(220, 20%, 10%, 0.08),
        0 4px 6px hsla(220, 20%, 10%, 0.05);
    --shadow-xl: 0 20px 25px hsla(220, 20%, 10%, 0.10),
        0 8px 10px hsla(220, 20%, 10%, 0.04);
    --shadow-2xl: 0 25px 50px hsla(220, 20%, 10%, 0.18);
    --shadow-glow: 0 0 20px hsla(221, 83%, 53%, 0.30);
    --shadow-inner: inset 0 2px 4px hsla(220, 20%, 10%, 0.06);

    /* ── Transitions ──────────────────────────────────────────────────────── */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 400ms;
    --duration-slower: 700ms;

    /* ── Z-Index Scale ────────────────────────────────────────────────────── */
    --z-below: -1;
    --z-base: 0;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-toast: 500;
    --z-tooltip: 600;

    /* ── Layout ───────────────────────────────────────────────────────────── */
    --container-max: 1200px;
    --container-pad: 5%;
}
/* ==========================================================================
   Dark Theme Override
   ========================================================================== */
[data-theme='dark'] {
    --clr-bg: var(--clr-gray-900);
    --clr-surface: var(--clr-gray-800);
    --clr-surface-elevated: var(--clr-gray-700);
    --clr-text: var(--clr-gray-50);
    --clr-text-secondary: var(--clr-gray-400);
    --clr-text-tertiary: var(--clr-gray-500);
    --clr-border: var(--clr-gray-700);

    --gradient-surface: linear-gradient(135deg, var(--clr-gray-900), var(--clr-gray-800));
    --gradient-glass: linear-gradient(135deg, hsla(0, 0%, 100%, 0.06), hsla(0, 0%, 100%, 0.02));

    --shadow-xs: 0 1px 2px hsla(0, 0%, 0%, 0.20);
    --shadow-sm: 0 1px 3px hsla(0, 0%, 0%, 0.28),
        0 1px 2px hsla(0, 0%, 0%, 0.22);
    --shadow-md: 0 4px 6px hsla(0, 0%, 0%, 0.24),
        0 2px 4px hsla(0, 0%, 0%, 0.20);
    --shadow-lg: 0 10px 15px hsla(0, 0%, 0%, 0.28),
        0 4px 6px hsla(0, 0%, 0%, 0.18);
    --shadow-xl: 0 20px 25px hsla(0, 0%, 0%, 0.32),
        0 8px 10px hsla(0, 0%, 0%, 0.15);
    --shadow-2xl: 0 25px 50px hsla(0, 0%, 0%, 0.40);
    --shadow-glow: 0 0 20px hsla(221, 83%, 53%, 0.20);
}
/* ==========================================================================
   LUXURY DESIGN SYSTEM — Healthcare SaaS
   ==========================================================================
   Apple-level polish · Soft lighting · Glassmorphism · Reusable utilities
   
   Table of Contents:
   1. COLOR SYSTEM
   2. TYPOGRAPHY SCALE
   3. SPACING SCALE
   4. LUXURY LIGHTING UTILITIES
   5. GLASSMORPHISM SYSTEM
   6. MOTION UTILITY CLASSES
   7. LAYOUT HELPERS
   8. DECORATIVE ELEMENTS
   ========================================================================== */
/* ==========================================================================
   1. COLOR SYSTEM
   ========================================================================== */
:root {
    /* ── Brand Primaries ──────────────────────────────────────────────────── */
    --ds-red: #FF2D3E;
    --ds-red-light: #FF5A67;
    --ds-red-dark: #D9202F;
    --ds-red-glow: rgba(255, 45, 62, 0.35);
    --ds-red-ghost: rgba(255, 45, 62, 0.08);

    --ds-blue: #0B1F5B;
    --ds-blue-light: #1A3380;
    --ds-blue-dark: #060F30;
    --ds-blue-glow: rgba(11, 31, 91, 0.25);

    /* ── Surfaces ─────────────────────────────────────────────────────────── */
    --ds-bg: #F7F8FC;
    --ds-bg-warm: #FAFBFF;
    --ds-bg-cool: #F0F2F8;
    --ds-surface: #FFFFFF;
    --ds-surface-raised: #FFFFFF;
    --ds-surface-overlay: rgba(255, 255, 255, 0.72);

    /* ── Text ─────────────────────────────────────────────────────────────── */
    --ds-text: #111111;
    --ds-text-secondary: #4A4A5A;
    --ds-text-tertiary: #8A8A9A;
    --ds-text-muted: #B0B0BE;
    --ds-text-inverse: #FFFFFF;

    /* ── Borders ──────────────────────────────────────────────────────────── */
    --ds-border: rgba(11, 31, 91, 0.08);
    --ds-border-light: rgba(11, 31, 91, 0.04);
    --ds-border-strong: rgba(11, 31, 91, 0.15);

    /* ── Semantic ─────────────────────────────────────────────────────────── */
    --ds-success: #00C48C;
    --ds-warning: #FFAB2D;
    --ds-error: #FF3B5C;
    --ds-info: #3B82F6;

    /* ── Gradients ────────────────────────────────────────────────────────── */
    --ds-gradient-hero: linear-gradient(165deg,
            #F7F8FC 0%,
            #EEF0F8 25%,
            #F7F8FC 50%,
            #FAFBFF 100%);
    --ds-gradient-red: linear-gradient(135deg, #FF2D3E, #FF5A67);
    --ds-gradient-blue: linear-gradient(135deg, #0B1F5B, #1A3380);
    --ds-gradient-premium: linear-gradient(135deg,
            #0B1F5B 0%,
            #1A3380 40%,
            #FF2D3E 100%);
    --ds-gradient-surface: linear-gradient(180deg,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(247, 248, 252, 0.6) 100%);
}
/* ==========================================================================
   2. TYPOGRAPHY SCALE
   ==========================================================================
   Fluid type that stays sharp at every viewport. Pixel targets:
   H1 → 64px · H2 → 48px · H3 → 32px · H4 → 24px · Body → 18px
   ========================================================================== */
.ds-h1 {
    font-family: var(--ff-heading);
    font-size: clamp(2.50rem, 1.80rem + 3.50vw, 4.00rem);
    /* 40→64px */
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: var(--ds-text);
}
.ds-h2 {
    font-family: var(--ff-heading);
    font-size: clamp(2.00rem, 1.50rem + 2.50vw, 3.00rem);
    /* 32→48px */
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.030em;
    color: var(--ds-text);
}
.ds-h3 {
    font-family: var(--ff-heading);
    font-size: clamp(1.50rem, 1.20rem + 1.50vw, 2.00rem);
    /* 24→32px */
    font-weight: 600;
    line-height: 1.20;
    letter-spacing: -0.022em;
    color: var(--ds-text);
}
.ds-h4 {
    font-family: var(--ff-heading);
    font-size: clamp(1.25rem, 1.10rem + 0.75vw, 1.50rem);
    /* 20→24px */
    font-weight: 600;
    line-height: 1.28;
    letter-spacing: -0.018em;
    color: var(--ds-text);
}
.ds-body {
    font-family: var(--ff-sans);
    font-size: clamp(1.00rem, 0.94rem + 0.30vw, 1.125rem);
    /* 16→18px */
    font-weight: 400;
    line-height: 1.70;
    letter-spacing: -0.006em;
    color: var(--ds-text-secondary);
}
.ds-body-lg {
    font-family: var(--ff-sans);
    font-size: clamp(1.125rem, 1.04rem + 0.45vw, 1.313rem);
    /* 18→21px */
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: -0.008em;
    color: var(--ds-text-secondary);
}
.ds-caption {
    font-family: var(--ff-sans);
    font-size: clamp(0.75rem, 0.72rem + 0.15vw, 0.813rem);
    /* 12→13px */
    font-weight: 500;
    line-height: 1.50;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ds-text-tertiary);
}
.ds-label {
    font-family: var(--ff-sans);
    font-size: 0.875rem;
    /* 14px */
    font-weight: 600;
    line-height: 1.40;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ds-red);
}
/* Text gradient — for hero headlines */
.ds-text-gradient {
    background: var(--ds-gradient-premium);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* Text balance — prevents orphans */
.ds-text-balance {
    text-wrap: balance;
}
/* ==========================================================================
   3. SPACING SCALE
   ==========================================================================
   8 · 16 · 24 · 32 · 48 · 64 · 80 · 100
   Available as both padding (.ds-p-*) and margin (.ds-m-*) utilities.
   ========================================================================== */
:root {
    --ds-space-8: 0.500rem;
    /*   8px */
    --ds-space-16: 1.000rem;
    /*  16px */
    --ds-space-24: 1.500rem;
    /*  24px */
    --ds-space-32: 2.000rem;
    /*  32px */
    --ds-space-48: 3.000rem;
    /*  48px */
    --ds-space-64: 4.000rem;
    /*  64px */
    --ds-space-80: 5.000rem;
    /*  80px */
    --ds-space-100: 6.250rem;
    /* 100px */
}
/* Padding block helpers (vertical) */
.ds-pb-8 {
    padding-block: var(--ds-space-8);
}
.ds-pb-16 {
    padding-block: var(--ds-space-16);
}
.ds-pb-24 {
    padding-block: var(--ds-space-24);
}
.ds-pb-32 {
    padding-block: var(--ds-space-32);
}
.ds-pb-48 {
    padding-block: var(--ds-space-48);
}
.ds-pb-64 {
    padding-block: var(--ds-space-64);
}
.ds-pb-80 {
    padding-block: var(--ds-space-80);
}
.ds-pb-100 {
    padding-block: var(--ds-space-100);
}
/* Margin block helpers (vertical) */
.ds-mb-8 {
    margin-block: var(--ds-space-8);
}
.ds-mb-16 {
    margin-block: var(--ds-space-16);
}
.ds-mb-24 {
    margin-block: var(--ds-space-24);
}
.ds-mb-32 {
    margin-block: var(--ds-space-32);
}
.ds-mb-48 {
    margin-block: var(--ds-space-48);
}
.ds-mb-64 {
    margin-block: var(--ds-space-64);
}
.ds-mb-80 {
    margin-block: var(--ds-space-80);
}
.ds-mb-100 {
    margin-block: var(--ds-space-100);
}
/* Gap helpers */
.ds-gap-8 {
    gap: var(--ds-space-8);
}
.ds-gap-16 {
    gap: var(--ds-space-16);
}
.ds-gap-24 {
    gap: var(--ds-space-24);
}
.ds-gap-32 {
    gap: var(--ds-space-32);
}
.ds-gap-48 {
    gap: var(--ds-space-48);
}
.ds-gap-64 {
    gap: var(--ds-space-64);
}
/* ==========================================================================
   4. LUXURY LIGHTING UTILITIES
   ==========================================================================
   Ambient radial glows that create depth and premium atmosphere.
   Apply these to section wrappers for soft light effects.
   ========================================================================== */
/* ── Section Glow ───────────────────────────────────────────────────────── */
/* Large radial ambient glow — hero/CTA sections */
.section-glow {
    position: relative;
    overflow: hidden;
}
.section-glow::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 140%;
    height: 80%;
    background: radial-gradient(ellipse at center,
            rgba(255, 45, 62, 0.06) 0%,
            rgba(255, 45, 62, 0.03) 25%,
            rgba(11, 31, 91, 0.02) 50%,
            transparent 75%);
    pointer-events: none;
    z-index: 0;
}
.section-glow::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse at center,
            rgba(11, 31, 91, 0.04) 0%,
            transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.section-glow>* {
    position: relative;
    z-index: 1;
}
/* ── Soft Light ─────────────────────────────────────────────────────────── */
/* Multi-layered shadow system for elevated elements */
.soft-light {
    box-shadow:
        0 1px 2px rgba(11, 31, 91, 0.02),
        0 2px 4px rgba(11, 31, 91, 0.02),
        0 4px 8px rgba(11, 31, 91, 0.03),
        0 8px 16px rgba(11, 31, 91, 0.03),
        0 16px 32px rgba(11, 31, 91, 0.04),
        0 32px 64px rgba(11, 31, 91, 0.05);
}
.soft-light-sm {
    box-shadow:
        0 1px 2px rgba(11, 31, 91, 0.03),
        0 2px 4px rgba(11, 31, 91, 0.02),
        0 4px 8px rgba(11, 31, 91, 0.03);
}
.soft-light-lg {
    box-shadow:
        0 2px 4px rgba(11, 31, 91, 0.01),
        0 4px 8px rgba(11, 31, 91, 0.02),
        0 8px 16px rgba(11, 31, 91, 0.03),
        0 16px 32px rgba(11, 31, 91, 0.04),
        0 32px 64px rgba(11, 31, 91, 0.05),
        0 64px 128px rgba(11, 31, 91, 0.06);
}
/* ── Atmospheric Light ──────────────────────────────────────────────────── */
/* Subtle background radial gradients for section depth */
.atmospheric-light {
    position: relative;
    overflow: hidden;
}
.atmospheric-light::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 20%,
            rgba(255, 45, 62, 0.03),
            transparent),
        radial-gradient(ellipse 60% 60% at 80% 80%,
            rgba(11, 31, 91, 0.04),
            transparent),
        radial-gradient(ellipse 70% 40% at 50% 50%,
            rgba(59, 130, 246, 0.02),
            transparent);
    pointer-events: none;
    z-index: 0;
}
.atmospheric-light>* {
    position: relative;
    z-index: 1;
}
/* ── Red Accent Glow ────────────────────────────────────────────────────── */
/* Focused brand-red halo — use behind CTAs or icons */
.red-glow {
    position: relative;
}
.red-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center,
            rgba(255, 45, 62, 0.12) 0%,
            rgba(255, 45, 62, 0.04) 35%,
            transparent 65%);
    pointer-events: none;
    z-index: 0;
}
.red-glow>* {
    position: relative;
    z-index: 1;
}
/* ── Spotlight ──────────────────────────────────────────────────────────── */
/* Top-down cone of light — great for feature cards */
.spotlight {
    position: relative;
    overflow: hidden;
}
.spotlight::before {
    content: '';
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 100%;
    background: radial-gradient(ellipse at center top,
            rgba(255, 255, 255, 0.6) 0%,
            rgba(255, 255, 255, 0.15) 30%,
            transparent 65%);
    pointer-events: none;
    z-index: 0;
}
.spotlight>* {
    position: relative;
    z-index: 1;
}
/* ==========================================================================
   5. GLASSMORPHISM SYSTEM
   ========================================================================== */
/* ── Glass Card ─────────────────────────────────────────────────────────── */
.glass-card {
    position: relative;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.65) 0%,
            rgba(255, 255, 255, 0.35) 40%,
            rgba(255, 255, 255, 0.25) 60%,
            rgba(255, 255, 255, 0.45) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.50);
    border-radius: var(--radius-xl);
    box-shadow:
        0 1px 1px rgba(11, 31, 91, 0.02),
        0 2px 4px rgba(11, 31, 91, 0.03),
        0 8px 16px rgba(11, 31, 91, 0.04),
        0 16px 48px rgba(11, 31, 91, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.70),
        inset 0 -1px 0 rgba(255, 255, 255, 0.20);
    overflow: hidden;
    transition:
        transform var(--duration-normal) var(--ease-out),
        box-shadow var(--duration-normal) var(--ease-out);
}
/* Top specular highlight — inner shine */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.80),
            transparent);
    pointer-events: none;
    z-index: 2;
}
/* Animated light sweep — diagonal reflection */
.glass-card::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 60%;
    height: 300%;
    background: linear-gradient(115deg,
            transparent 20%,
            rgba(255, 255, 255, 0.08) 35%,
            rgba(255, 255, 255, 0.20) 42%,
            rgba(255, 255, 255, 0.08) 49%,
            transparent 64%);
    transform: rotate(25deg);
    pointer-events: none;
    z-index: 2;
    animation: glassSweep 6s ease-in-out infinite;
    animation-delay: calc(var(--sweep-delay, 0) * 1s);
}
@keyframes glassSweep {

    0%,
    100% {
        transform: rotate(25deg) translateX(-30%);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        transform: rotate(25deg) translateX(180%);
        opacity: 1;
    }

    60% {
        opacity: 0;
    }
}
/* Hover state */
.glass-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 2px 2px rgba(11, 31, 91, 0.02),
        0 4px 8px rgba(11, 31, 91, 0.04),
        0 12px 24px rgba(11, 31, 91, 0.06),
        0 24px 64px rgba(11, 31, 91, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.80),
        inset 0 -1px 0 rgba(255, 255, 255, 0.25);
}
/* ── Glass Card — Dark Variant ──────────────────────────────────────────── */
.glass-card-dark {
    position: relative;
    background: linear-gradient(135deg,
            rgba(11, 31, 91, 0.85) 0%,
            rgba(11, 31, 91, 0.65) 40%,
            rgba(11, 31, 91, 0.55) 60%,
            rgba(11, 31, 91, 0.75) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-xl);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.10),
        0 8px 16px rgba(0, 0, 0, 0.12),
        0 16px 48px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(255, 255, 255, 0.03);
    overflow: hidden;
    color: var(--ds-text-inverse);
    transition:
        transform var(--duration-normal) var(--ease-out),
        box-shadow var(--duration-normal) var(--ease-out);
}
.glass-card-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.15),
            transparent);
    pointer-events: none;
    z-index: 2;
}
.glass-card-dark:hover {
    transform: translateY(-4px);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.12),
        0 12px 24px rgba(0, 0, 0, 0.15),
        0 24px 64px rgba(0, 0, 0, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}
/* ── Glass Pill — for badges, tags ──────────────────────────────────────── */
.glass-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.50),
            rgba(255, 255, 255, 0.25));
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: var(--radius-full);
    box-shadow:
        0 2px 8px rgba(11, 31, 91, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.60);
    font-size: 0.813rem;
    font-weight: 600;
    color: var(--ds-blue);
    letter-spacing: 0.01em;
}
/* ── Glass Input ────────────────────────────────────────────────────────── */
.glass-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: rgba(255, 255, 255, 0.50);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(11, 31, 91, 0.10);
    border-radius: var(--radius-lg);
    font-family: var(--ff-sans);
    font-size: 1rem;
    color: var(--ds-text);
    box-shadow:
        inset 0 1px 2px rgba(11, 31, 91, 0.04),
        0 1px 0 rgba(255, 255, 255, 0.50);
    transition:
        border-color var(--duration-fast) ease,
        box-shadow var(--duration-fast) ease;
}
.glass-input::placeholder {
    color: var(--ds-text-muted);
}
.glass-input:focus {
    border-color: var(--ds-red);
    box-shadow:
        inset 0 1px 2px rgba(11, 31, 91, 0.04),
        0 0 0 3px rgba(255, 45, 62, 0.10),
        0 1px 0 rgba(255, 255, 255, 0.50);
}
/* ==========================================================================
   6. MOTION UTILITY CLASSES
   ==========================================================================
   Pure CSS animations — no JS required. 
   Respects prefers-reduced-motion from reset.css.
   ========================================================================== */
/* ── Float Slow ────────────────────────────────────────────────────────── */
.float-slow {
    animation: dsFloat 6s ease-in-out infinite;
}
/* ── Float Medium ──────────────────────────────────────────────────────── */
.float-medium {
    animation: dsFloat 3.5s ease-in-out infinite;
}
/* ── Float Fast ────────────────────────────────────────────────────────── */
.float-fast {
    animation: dsFloat 2s ease-in-out infinite;
}
@keyframes dsFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}
/* Float with slight rotation for organic feel */
.float-organic {
    animation: dsFloatOrganic 7s ease-in-out infinite;
}
@keyframes dsFloatOrganic {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-8px) rotate(0.5deg);
    }

    50% {
        transform: translateY(-14px) rotate(-0.3deg);
    }

    75% {
        transform: translateY(-6px) rotate(0.2deg);
    }
}
/* ── Hover Lift ────────────────────────────────────────────────────────── */
.hover-lift {
    transition:
        transform var(--duration-normal) var(--ease-out),
        box-shadow var(--duration-normal) var(--ease-out);
}
.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow:
        0 4px 8px rgba(11, 31, 91, 0.04),
        0 12px 24px rgba(11, 31, 91, 0.06),
        0 24px 48px rgba(11, 31, 91, 0.08);
}
.hover-lift:active {
    transform: translateY(-2px);
    transition-duration: 100ms;
}
/* ── Hover Glow ────────────────────────────────────────────────────────── */
.hover-glow {
    transition:
        box-shadow var(--duration-normal) var(--ease-out),
        transform var(--duration-normal) var(--ease-out);
}
.hover-glow:hover {
    box-shadow:
        0 0 20px rgba(255, 45, 62, 0.15),
        0 0 40px rgba(255, 45, 62, 0.08),
        0 0 80px rgba(255, 45, 62, 0.04);
    transform: translateY(-2px);
}
/* ── Hover Scale ───────────────────────────────────────────────────────── */
.hover-scale {
    transition: transform var(--duration-normal) var(--ease-spring);
}
.hover-scale:hover {
    transform: scale(1.03);
}
.hover-scale:active {
    transform: scale(0.98);
}
/* ── Pulse ──────────────────────────────────────────────────────────────── */
.pulse {
    animation: dsPulse 2.5s ease-in-out infinite;
}
@keyframes dsPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.75;
        transform: scale(1.04);
    }
}
/* ── Shimmer Loading ───────────────────────────────────────────────────── */
.shimmer-loading {
    background: linear-gradient(90deg,
            var(--ds-bg-cool) 25%,
            rgba(255, 255, 255, 0.6) 50%,
            var(--ds-bg-cool) 75%);
    background-size: 200% 100%;
    animation: dsShimmer 1.5s linear infinite;
}
@keyframes dsShimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}
/* ── Spin ───────────────────────────────────────────────────────────────── */
.spin-slow {
    animation: dsSpin 20s linear infinite;
}
@keyframes dsSpin {
    to {
        transform: rotate(360deg);
    }
}
/* ==========================================================================
   7. LAYOUT HELPERS
   ========================================================================== */
/* ── Section wrapper ────────────────────────────────────────────────────── */
.ds-section {
    position: relative;
    padding-block: clamp(4rem, 3.5rem + 2.5vw, 6.25rem);
    overflow: hidden;
}
.ds-section--hero {
    padding-block: clamp(6rem, 5rem + 5vw, 10rem);
    background: var(--ds-gradient-hero);
}
.ds-section--dark {
    background: var(--ds-blue);
    color: var(--ds-text-inverse);
}
.ds-section--dark .ds-h1,
.ds-section--dark .ds-h2,
.ds-section--dark .ds-h3,
.ds-section--dark .ds-h4 {
    color: var(--ds-text-inverse);
}
.ds-section--dark .ds-body,
.ds-section--dark .ds-body-lg {
    color: rgba(255, 255, 255, 0.72);
}
/* ── Flex / Grid helpers ────────────────────────────────────────────────── */
.ds-flex {
    display: flex;
}
.ds-flex-col {
    display: flex;
    flex-direction: column;
}
.ds-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}
.ds-flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ds-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--ds-space-32);
}
.ds-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ds-space-32);
}
.ds-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--ds-space-24);
}
@media (max-width: 767px) {
    .ds-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .ds-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .ds-grid-2 {
        grid-template-columns: 1fr;
    }

    .ds-grid-3 {
        grid-template-columns: 1fr;
    }

    .ds-grid-4 {
        grid-template-columns: 1fr;
    }
}
/* ==========================================================================
   8. DECORATIVE ELEMENTS
   ========================================================================== */
/* ── Brand accent line ──────────────────────────────────────────────────── */
.ds-accent-line {
    width: 48px;
    height: 3px;
    border-radius: var(--radius-full);
    background: var(--ds-gradient-red);
}
.ds-accent-line--center {
    margin-inline: auto;
}
/* ── Dot grid pattern background ────────────────────────────────────────── */
.ds-dot-grid {
    position: relative;
}
.ds-dot-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle,
            rgba(11, 31, 91, 0.06) 1px,
            transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.ds-dot-grid>* {
    position: relative;
    z-index: 1;
}
/* ── Circle ornament — for floating decorations ─────────────────────────── */
.ds-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.ds-orb--red {
    background: radial-gradient(circle at 35% 35%,
            rgba(255, 45, 62, 0.18),
            rgba(255, 45, 62, 0.04) 60%,
            transparent 80%);
}
.ds-orb--blue {
    background: radial-gradient(circle at 35% 35%,
            rgba(11, 31, 91, 0.12),
            rgba(11, 31, 91, 0.03) 60%,
            transparent 80%);
}
/* ── CTA Button — Premium ───────────────────────────────────────────────── */
.ds-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.875rem 2rem;
    font-family: var(--ff-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition:
        transform var(--duration-fast) var(--ease-out),
        box-shadow var(--duration-normal) var(--ease-out),
        background var(--duration-normal) ease;
    user-select: none;
    -webkit-user-select: none;
}
.ds-btn:active {
    transform: scale(0.97);
}
.ds-btn--primary {
    background: var(--ds-gradient-red);
    color: var(--ds-text-inverse);
    box-shadow:
        0 1px 2px rgba(255, 45, 62, 0.20),
        0 4px 12px rgba(255, 45, 62, 0.20),
        0 8px 24px rgba(255, 45, 62, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);
}
.ds-btn--primary:hover {
    box-shadow:
        0 2px 4px rgba(255, 45, 62, 0.25),
        0 8px 20px rgba(255, 45, 62, 0.25),
        0 16px 40px rgba(255, 45, 62, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}
.ds-btn--secondary {
    background: var(--ds-surface);
    color: var(--ds-text);
    border: 1px solid var(--ds-border-strong);
    box-shadow:
        0 1px 2px rgba(11, 31, 91, 0.06),
        0 4px 8px rgba(11, 31, 91, 0.04);
}
.ds-btn--secondary:hover {
    background: var(--ds-bg);
    box-shadow:
        0 2px 4px rgba(11, 31, 91, 0.08),
        0 8px 16px rgba(11, 31, 91, 0.06);
    transform: translateY(-1px);
}
.ds-btn--ghost {
    background: transparent;
    color: var(--ds-text);
    padding: 0.75rem 1.5rem;
}
.ds-btn--ghost:hover {
    background: rgba(11, 31, 91, 0.04);
}
.ds-btn--lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.0625rem;
    border-radius: var(--radius-xl);
}
.ds-btn--sm {
    padding: 0.625rem 1.5rem;
    font-size: 0.8125rem;
}
/* ── Divider ────────────────────────────────────────────────────────────── */
.ds-divider {
    width: 100%;
    height: 1px;
    border: none;
    background: linear-gradient(90deg,
            transparent,
            var(--ds-border),
            transparent);
}
/* ==========================================================================
   THEME TOKEN SYSTEM
   Dark-first: :root = dark defaults.  [data-theme="light"] overrides.
   ========================================================================== */
:root {
    color-scheme: dark;

    /* ── Backgrounds ─────────────────────────────────────────────────────── */
    --t-bg: hsl(222, 47%, 6%);
    --t-bg-deep: hsl(222, 50%, 8%);
    --t-bg-alt: hsl(225, 45%, 7%);

    /* ── Surfaces ────────────────────────────────────────────────────────── */
    --t-surface: hsla(222, 47%, 12%, 0.85);
    --t-surface-card: hsla(0, 0%, 100%, 0.03);
    --t-surface-hover: hsla(0, 0%, 100%, 0.06);

    /* ── Glass ───────────────────────────────────────────────────────────── */
    --t-glass-border: hsla(0, 0%, 100%, 0.1);
    --t-glass-highlight: hsla(0, 0%, 100%, 0.06);
    --t-glass-fill: hsla(0, 0%, 100%, 0.04);

    /* ── Text ────────────────────────────────────────────────────────────── */
    --t-text: rgba(255, 255, 255, 0.95);
    --t-text-strong: rgba(255, 255, 255, 0.92);
    --t-text-secondary: rgba(255, 255, 255, 0.55);
    --t-text-muted: rgba(255, 255, 255, 0.35);
    --t-text-dim: rgba(255, 255, 255, 0.5);
    --t-text-quote: rgba(255, 255, 255, 0.6);
    --t-text-faint: rgba(255, 255, 255, 0.2);
    --t-text-label: rgba(255, 255, 255, 0.7);
    --t-text-link: rgba(255, 255, 255, 0.4);
    --t-text-link-hover: rgba(255, 255, 255, 0.8);

    /* ── Borders ─────────────────────────────────────────────────────────── */
    --t-border: hsla(0, 0%, 100%, 0.06);
    --t-border-subtle: hsla(0, 0%, 100%, 0.04);
    --t-border-strong: hsla(0, 0%, 100%, 0.1);
    --t-border-hover: hsla(0, 0%, 100%, 0.18);

    /* ── Shadows ─────────────────────────────────────────────────────────── */
    --t-shadow-color: hsla(0, 0%, 0%, 0.25);
    --t-shadow-heavy: hsla(0, 0%, 0%, 0.3);

    /* ── Effects ─────────────────────────────────────────────────────────── */
    --t-glow-opacity: 1;
    --t-icon-filter: brightness(1.1);
    --t-footer-icon-filter: brightness(1.5);
    --t-overlay-gradient: hsla(222, 47%, 6%, 0.4);

    /* ── Scrollbar ───────────────────────────────────────────────────────── */
    --t-scrollbar-track: hsl(222, 47%, 8%);
    --t-scrollbar-thumb: hsla(221, 83%, 53%, 0.3);
    --t-scrollbar-thumb-hover: hsla(221, 83%, 53%, 0.5);

    /* ── Custom Cursor ───────────────────────────────────────────────────── */
    --t-cursor-bg: white;
    --t-cursor-blend: difference;
    --t-cursor-hover-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.5);

    /* ── Misc / Preloader ────────────────────────────────────────────────── */
    --t-selection-bg: hsl(221, 83%, 53%);
    --t-selection-text: white;
}
/* ── Light Theme ─────────────────────────────────────────────────────────── */
[data-theme="light"] {
    color-scheme: light;

    /* ── Backgrounds ────────────────────────────────────────────────────── */
    --t-bg: #F7F8FC;
    --t-bg-deep: #EEF0F8;
    --t-bg-alt: #F0F2FA;

    /* ── Surfaces ───────────────────────────────────────────────────────── */
    --t-surface: hsla(220, 20%, 96%, 0.88);
    --t-surface-card: hsla(220, 25%, 98%, 0.9);
    --t-surface-hover: hsla(220, 25%, 93%, 0.7);

    /* ── Glass ──────────────────────────────────────────────────────────── */
    --t-glass-border: hsla(220, 25%, 80%, 0.35);
    --t-glass-highlight: hsla(220, 25%, 95%, 0.5);
    --t-glass-fill: hsla(220, 20%, 95%, 0.5);

    /* ── Text ───────────────────────────────────────────────────────────── */
    --t-text: rgba(17, 24, 39, 0.95);
    --t-text-strong: rgba(17, 24, 39, 0.92);
    --t-text-secondary: rgba(55, 65, 81, 0.9);
    --t-text-muted: rgba(107, 114, 128, 0.9);
    --t-text-dim: rgba(75, 85, 99, 0.75);
    --t-text-quote: rgba(55, 65, 81, 0.85);
    --t-text-faint: rgba(107, 114, 128, 0.5);
    --t-text-label: rgba(55, 65, 81, 0.85);
    --t-text-link: rgba(75, 85, 99, 0.7);
    --t-text-link-hover: rgba(17, 24, 39, 0.9);

    /* ── Borders ────────────────────────────────────────────────────────── */
    --t-border: hsla(220, 20%, 85%, 0.6);
    --t-border-subtle: hsla(220, 20%, 88%, 0.5);
    --t-border-strong: hsla(220, 20%, 78%, 0.5);
    --t-border-hover: hsla(220, 25%, 70%, 0.5);

    /* ── Shadows ────────────────────────────────────────────────────────── */
    --t-shadow-color: hsla(220, 25%, 10%, 0.08);
    --t-shadow-heavy: hsla(220, 25%, 10%, 0.12);

    /* ── Effects ────────────────────────────────────────────────────────── */
    --t-glow-opacity: 0.4;
    --t-icon-filter: brightness(1);
    --t-footer-icon-filter: brightness(0.6);
    --t-overlay-gradient: hsla(220, 20%, 96%, 0.4);

    /* ── Scrollbar ──────────────────────────────────────────────────────── */
    --t-scrollbar-track: hsl(220, 16%, 93%);
    --t-scrollbar-thumb: hsla(221, 83%, 53%, 0.35);
    --t-scrollbar-thumb-hover: hsla(221, 83%, 53%, 0.55);

    /* ── Custom Cursor ──────────────────────────────────────────────────── */
    --t-cursor-bg: hsl(222, 47%, 11%);
    --t-cursor-blend: normal;
    --t-cursor-hover-shadow: 0 0 0 1.5px rgba(17, 24, 39, 0.4);

    /* ── Misc ───────────────────────────────────────────────────────────── */
    --t-selection-bg: hsl(221, 83%, 53%);
    --t-selection-text: white;
}
/* ── Theme Transition ────────────────────────────────────────────────────── */
/* Smooth color transition when toggling themes — skipped for reduced-motion */
html:not([data-no-transition]) body,
html:not([data-no-transition]) .navbar,
html:not([data-no-transition]) .nav-glass {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
@media (prefers-reduced-motion: reduce) {

    html body,
    html .navbar,
    html .nav-glass {
        transition: none !important;
    }
}
/* ── Base Body ──────────────────────────────────────────────────────────── */
html,
body {
    overflow-x: clip;
}
body {
    font-family: var(--ff-sans);
    font-size: var(--fs-base);
    font-weight: var(--fw-regular);
    line-height: var(--lh-normal);
    color: var(--t-text);
    background-color: var(--t-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
/* ── Film Grain / Noise Texture ──────────────────────────────────────────── */
/* PERF: Only render on devices with perf-film-grain class (high tier).
   This SVG filter + fixed overlay causes a full-viewport repaint layer. */
html.perf-film-grain body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 99990;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
    mix-blend-mode: overlay;
}
/* ── Subtle Gradient Background ──────────────────────────────────────── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, hsla(221, 83%, 53%, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 20% 80%, hsla(262, 83%, 58%, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 80% 60%, hsla(0, 84%, 60%, 0.03) 0%, transparent 50%),
        linear-gradient(180deg, var(--t-bg) 0%, var(--t-bg-deep) 50%, var(--t-bg-alt) 100%);
}
/* ── Layout Utilities ───────────────────────────────────────────────────── */
.container {
    width: min(var(--container-max), 90%);
    margin-inline: auto;
}
/* Keep app containers stable even when Tailwind CDN injects a global .container rule. */
.app .container {
    width: min(var(--container-max), 90%);
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: 0;
}
/* Ensure homepage layout stays stable even if Tailwind's global .container is present. */
body.theme-white .container {
    width: min(var(--container-max), 90%);
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: 0;
}
.container--narrow {
    width: min(840px, 90%);
    margin-inline: auto;
}
.container--wide {
    width: min(1440px, 95%);
    margin-inline: auto;
}
/* ── Section Spacing ────────────────────────────────────────────────────── */
.section {
    padding-block: var(--space-3xl);
}
.section--sm {
    padding-block: var(--space-xl);
}
.section--lg {
    padding-block: clamp(8rem, 7rem + 5vw, 12rem);
}
/* ── Typography Utilities ───────────────────────────────────────────────── */
.heading-1 {
    font-family: var(--ff-heading);
    font-size: var(--fs-4xl);
    font-weight: var(--fw-extrabold);
    line-height: var(--lh-tight);
    letter-spacing: -0.025em;
    color: var(--t-text);
}
.heading-2 {
    font-family: var(--ff-heading);
    font-size: var(--fs-3xl);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    letter-spacing: -0.02em;
    color: var(--t-text-strong);
}
.heading-3 {
    font-family: var(--ff-heading);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-snug);
    letter-spacing: -0.015em;
    color: var(--t-text-strong);
}
.text-gradient {
    background: linear-gradient(135deg, hsl(221, 83%, 65%), hsl(262, 83%, 70%), hsl(0, 84%, 65%));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-balance {
    text-wrap: balance;
}
.text-muted {
    color: var(--t-text-dim);
}
/* ── Glassmorphism Utility ──────────────────────────────────────────────── */
.glass {
    background: linear-gradient(135deg,
            var(--t-glass-highlight) 0%,
            var(--t-glass-fill) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--t-glass-border);
    border-radius: var(--radius-lg);
}
/* ── Visually Hidden (SR Only) ──────────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* ── Selection ──────────────────────────────────────────────────────────── */
::selection {
    background-color: var(--t-selection-bg);
    color: var(--t-selection-text);
}
/* ── Scrollbar (Webkit) ─────────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--t-scrollbar-track);
}
::-webkit-scrollbar-thumb {
    background-color: var(--t-scrollbar-thumb);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background-color: var(--t-scrollbar-thumb-hover);
}
/* ── Root Mounting Point ────────────────────────────────────────────────── */
#root {
    isolation: isolate;
}
/* ── App Wrapper — GPU Layer ────────────────────────────────────────────── */
.app {
    position: relative;
}
/* ── Section Divider ────────────────────────────────────────────────────── */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            hsla(221, 83%, 53%, 0.2) 20%,
            hsla(262, 83%, 65%, 0.15) 50%,
            hsla(221, 83%, 53%, 0.2) 80%,
            transparent 100%);
    margin: 0;
    border: none;
}
/* ==========================================================================
   CINEMATIC SECTION TRANSITIONS
   Each section reveals like a chapter — clean clip + fade entrance.
   ========================================================================== */
/* ── Performance: Content-Visibility + Containment ─────────────────────── */
.chapter {
    /* Paint isolation — prevents off-screen sections from triggering repaints */
    contain: layout style paint;
}
/* ── Reduced motion — kill body animations ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

    body::before,
    body::after {
        animation: none !important;
    }
}
/* ── White Homepage Override ────────────────────────────────────────────── */
body.theme-white {
    --t-bg: #FFFFFF;
    --t-bg-deep: #F8F9FA;
    --t-bg-alt: #F1F3F5;
    background-color: var(--t-bg);
}
body.theme-white::after {
    background: linear-gradient(180deg, var(--t-bg) 0%, var(--t-bg-deep) 50%, var(--t-bg-alt) 100%);
}
/* ── Print safe ─────────────────────────────────────────────────────────── */
@media print {

    body::before,
    body::after {
        display: none;
    }
}
/* ── Skeletons / Loaders ────────────────────────────────────────────────── */
.skeleton-pulse {
    background: linear-gradient(90deg, 
        var(--t-surface) 25%, 
        var(--t-surface-hover) 50%, 
        var(--t-surface) 75%);
    background-size: 200% 100%;
    animation: pulse-shimmer 1.5s infinite;
}
@keyframes pulse-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
/* TABLET GLOBAL SCALE FIX FOR RESOURCES PAGES */
@media (min-width: 768px) and (max-width: 1024px) {
  .resources-tablet-zoom {
    zoom: calc(100vw / 1280);
    -moz-transform: scale(calc(100vw / 1280));
    -moz-transform-origin: top center;
  }
}
