/**
 * TriAstra Design System
 * ======================
 * A comprehensive CSS framework implementing the "Logical Mysticism" aesthetic.
 * Based on Co-Star's Noir/Brutalist approach, adapted for the Triple Cross-Check system.
 *
 * Display Order: Western → Vedic → Saju
 * Chart Types: Circular (Western, Vedic), Square (Saju)
 *
 * ============================================================================
 * COLOR USAGE: THE 90/8/2 RULE (STRICTLY ENFORCED)
 * ============================================================================
 *
 * 90% NEUTRAL (Structure)
 * -----------------------
 * - Backgrounds: --color-void-black, --color-surface-dark, --color-surface-card
 * - Borders: --alpha-white-10, --alpha-white-20, --alpha-white-30
 * - Text: --color-starlight-white, --color-text-secondary, --color-text-muted
 * - Shadows: Use neutral rgba(0,0,0,x) shadows, NEVER colored shadows
 *
 * 8% PRIMARY ACCENT (CTAs & Emphasis)
 * -----------------------------------
 * - Buttons: background: var(--color-starlight-white); color: var(--color-void-black);
 * - Hover: background: transparent; border-color: var(--alpha-white-30);
 * - NO gradient buttons, NO colored button shadows
 *
 * 2% SYSTEM COLORS (Identification ONLY)
 * --------------------------------------
 * ALLOWED uses of --color-western, --color-vedic, --color-saju:
 *   ✓ Text labels: .label-western, .label-vedic, .label-saju
 *   ✓ Small indicator dots/badges (< 12px)
 *   ✓ Progress bars showing system-specific data
 *   ✓ Chart data points where color-coding aids comprehension
 *
 * FORBIDDEN uses of system colors:
 *   ✗ Card backgrounds or borders
 *   ✗ Button backgrounds or shadows
 *   ✗ Multi-color gradients (western + vedic + saju)
 *   ✗ Decorative orbs, glows, or blurs
 *   ✗ Hover states on generic elements
 *   ✗ Large text (use white instead)
 *
 * When in doubt: USE NEUTRAL. The goal is a calm, sophisticated interface
 * where system colors ONLY appear next to system-specific information.
 * ============================================================================
 */

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ========================================================================== */

:root {
    /* -------------------------------------------------------------------------
     1.1 Color System: "The Void & The Stars"
     ------------------------------------------------------------------------- */

    /* Primary Colors */
    --color-void-black: #050505;
    --color-starlight-white: #fafafa;
    --color-paper-gray: #e5e5e5;
    --color-border-gray: #333;
    --color-surface-dark: #0a0a0a;
    --color-surface-card: #111;

    /* System Accent Colors (Display Order: Western → Vedic → Saju) */
    --color-western: #3b82f6;

    /* Celestial Blue - Western Astrology */
    --color-vedic: #f59e0b;

    /* Sacred Saffron - Vedic Astrology */
    --color-saju: #14b8a6;

    /* Jade Teal - Saju/Eastern Wisdom */

    /* Muted Accent Colors - For backgrounds, glows (only saju-muted is actively used) */
    --color-saju-muted: rgb(20 184 166 / 15%);

    /* Semantic Colors */
    --color-text-primary: var(--color-starlight-white);
    --color-text-secondary: #888;
    --color-text-muted: #555;
    --color-border: var(--color-border-gray);
    --color-focus: var(--color-western);

    /* White Alpha Scale - For overlays, borders, backgrounds on dark surfaces */
    --alpha-white-2: rgb(255 255 255 / 2%);
    --alpha-white-3: rgb(255 255 255 / 3%);
    --alpha-white-4: rgb(255 255 255 / 4%);
    --alpha-white-5: rgb(255 255 255 / 5%);
    --alpha-white-6: rgb(255 255 255 / 6%);
    --alpha-white-8: rgb(255 255 255 / 8%);
    --alpha-white-10: rgb(255 255 255 / 10%);
    --alpha-white-15: rgb(255 255 255 / 15%);
    --alpha-white-20: rgb(255 255 255 / 20%);
    --alpha-white-30: rgb(255 255 255 / 30%);

    /* Western Alpha Scale - Starlight Silver (160, 160, 176) */
    --alpha-western-2: rgb(160 160 176 / 2%);
    --alpha-western-3: rgb(160 160 176 / 3%);
    --alpha-western-4: rgb(160 160 176 / 4%);
    --alpha-western-5: rgb(160 160 176 / 5%);
    --alpha-western-8: rgb(160 160 176 / 8%);
    --alpha-western-10: rgb(160 160 176 / 10%);
    --alpha-western-15: rgb(160 160 176 / 15%);
    --alpha-western-20: rgb(160 160 176 / 20%);
    --alpha-western-25: rgb(160 160 176 / 25%);
    --alpha-western-30: rgb(160 160 176 / 30%);
    --alpha-western-40: rgb(160 160 176 / 40%);
    --alpha-western-50: rgb(160 160 176 / 50%);
    --alpha-western-60: rgb(160 160 176 / 60%);
    --alpha-western-80: rgb(160 160 176 / 80%);

    /* Vedic Alpha Scale - Golden Wisdom (197, 179, 88) */
    --alpha-vedic-3: rgb(197 179 88 / 3%);
    --alpha-vedic-4: rgb(197 179 88 / 4%);
    --alpha-vedic-5: rgb(197 179 88 / 5%);
    --alpha-vedic-6: rgb(197 179 88 / 6%);
    --alpha-vedic-10: rgb(197 179 88 / 10%);
    --alpha-vedic-15: rgb(197 179 88 / 15%);
    --alpha-vedic-20: rgb(197 179 88 / 20%);
    --alpha-vedic-25: rgb(197 179 88 / 25%);
    --alpha-vedic-30: rgb(197 179 88 / 30%);
    --alpha-vedic-40: rgb(197 179 88 / 40%);
    --alpha-vedic-50: rgb(197 179 88 / 50%);
    --alpha-vedic-60: rgb(197 179 88 / 60%);
    --alpha-vedic-80: rgb(197 179 88 / 80%);

    /* Saju Alpha Scale - Slate Blue (90, 99, 120) */
    --alpha-saju-5: rgb(90 99 120 / 5%);
    --alpha-saju-10: rgb(90 99 120 / 10%);
    --alpha-saju-15: rgb(90 99 120 / 15%);
    --alpha-saju-20: rgb(90 99 120 / 20%);
    --alpha-saju-25: rgb(90 99 120 / 25%);
    --alpha-saju-30: rgb(90 99 120 / 30%);
    --alpha-saju-40: rgb(90 99 120 / 40%);
    --alpha-saju-50: rgb(90 99 120 / 50%);
    --alpha-saju-60: rgb(90 99 120 / 60%);
    --alpha-saju-80: rgb(90 99 120 / 80%);

    /* Success/CTA Alpha Scale - Emerald Green (46, 213, 115) */
    --color-success: #2ed573;
    --color-success-dark: #27ae60;
    --alpha-success-5: rgb(46 213 115 / 5%);
    --alpha-success-10: rgb(46 213 115 / 10%);
    --alpha-success-20: rgb(46 213 115 / 20%);
    --alpha-success-30: rgb(46 213 115 / 30%);
    --alpha-success-40: rgb(46 213 115 / 40%);
    --alpha-success-60: rgb(46 213 115 / 60%);
    --alpha-success-80: rgb(46 213 115 / 80%);

    /* Surface Alpha Scale - Card (17, 17, 17) and Dark (10, 10, 10) */
    --alpha-card-60: rgb(17 17 17 / 60%);
    --alpha-card-80: rgb(17 17 17 / 80%);
    --alpha-card-90: rgb(17 17 17 / 90%);
    --alpha-dark-80: rgb(10 10 10 / 80%);
    --alpha-dark-90: rgb(10 10 10 / 90%);
    --alpha-dark-100: rgb(10 10 10 / 100%);

    /* Semantic Status Colors */
    --color-error: #ef4444;
    --color-error-light: #f87171;
    --color-success-alt: #4caf50;
    --color-success-teal: #10b981;
    --color-warning: #ffa500;
    --color-premium-gold: #ffd700;

    /* Compatibility Theme Colors */
    --color-love-rose: #c4a7a7;
    --color-love-burgundy: #6b2d3c;
    --color-love-gold: #d4af37;
    --color-love-cream: #f5f0e8;

    /* Specialty Colors */
    --color-coral: #ff6b6b;

    /* -------------------------------------------------------------------------
     1.2 Typography System
     ------------------------------------------------------------------------- */

    /* Font Families */
    --font-serif: "Playfair Display", "Noto Serif KR", georgia, serif;
    --font-mono: "JetBrains Mono", "SF Mono", "Consolas", monospace;
    --font-sans: "Inter", -apple-system, blinkmacsystemfont, sans-serif;

    /* Font Sizes (Mobile-first, rem-based) */
    --text-xs: 0.75rem;

    /* 12px - Labels, metadata */
    --text-sm: 0.875rem;

    /* 14px - Secondary text */
    --text-base: 1rem;

    /* 16px - Body text */
    --text-lg: 1.125rem;

    /* 18px - Lead text */
    --text-xl: 1.25rem;

    /* 20px - Section titles */
    --text-2xl: 1.5rem;

    /* 24px - Card titles */
    --text-3xl: 1.875rem;

    /* 30px - Page headers */
    --text-4xl: 2.25rem;

    /* 36px - Hero text */
    --text-5xl: 3rem;

    /* 48px - Display text */

    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* Line Heights */
    --leading-tight: 1.2;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;

    /* Letter Spacing */
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;

    /* -------------------------------------------------------------------------
     1.3 Spacing System (8px base grid)
     ------------------------------------------------------------------------- */

    --space-0: 0;
    --space-1: 0.25rem;

    /* 4px */
    --space-2: 0.5rem;

    /* 8px */
    --space-3: 0.75rem;

    /* 12px */
    --space-4: 1rem;

    /* 16px */
    --space-5: 1.25rem;

    /* 20px */
    --space-6: 1.5rem;

    /* 24px */
    --space-8: 2rem;

    /* 32px */
    --space-10: 2.5rem;

    /* 40px */
    --space-12: 3rem;

    /* 48px */
    --space-16: 4rem;

    /* 64px */
    --space-20: 5rem;

    /* 80px */
    --space-24: 6rem;

    /* 96px */

    /* -------------------------------------------------------------------------
     1.4 Border & Radius
     ------------------------------------------------------------------------- */

    --border-width-hairline: 1px;
    --border-width-thin: 2px;
    --border-width-medium: 4px;
    --radius-none: 0;
    --radius-sm: 0.25rem;

    /* 4px - Subtle rounding */
    --radius-md: 0.5rem;

    /* 8px - Cards */
    --radius-lg: 0.75rem;

    /* 12px - Modals */
    --radius-xl: 1rem;

    /* 16px - Large containers */
    --radius-full: 9999px;

    /* Pill shapes */

    /* -------------------------------------------------------------------------
     1.5 Shadows & Effects
     ------------------------------------------------------------------------- */

    --shadow-sm: 0 1px 2px rgb(0 0 0 / 50%);
    --shadow-md: 0 4px 6px rgb(0 0 0 / 50%);
    --shadow-lg: 0 10px 15px rgb(0 0 0 / 50%);
    --shadow-xl: 0 20px 25px rgb(0 0 0 / 50%);
    --shadow-2xl: 0 30px 60px rgb(0 0 0 / 50%);

    /* Elevation shadows with softer opacity (for hover states) */
    --shadow-elevation-sm: 0 4px 12px rgb(0 0 0 / 20%);
    --shadow-elevation-md: 0 8px 24px rgb(0 0 0 / 25%);
    --shadow-elevation-lg: 0 12px 32px rgb(0 0 0 / 30%);
    --shadow-elevation-xl: 0 20px 60px rgb(0 0 0 / 30%);

    /* Glow effects (for accent highlights) */
    --glow-sm: 0 0 8px;
    --glow-md: 0 0 15px;
    --glow-lg: 0 0 30px;
    --glow-xl: 0 0 60px;

    /* Film grain overlay opacity */
    --grain-opacity: 0.03;

    /* -------------------------------------------------------------------------
     1.6 Animation & Transitions
     ------------------------------------------------------------------------- */

    /* Durations */
    --duration-instant: 0ms;
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;
    --duration-slower: 700ms;

    /* Easing (Cinema-style smooth transitions) */
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Animation Stagger (for sequential element reveals) */
    --stagger-base: 100ms;
    --stagger-1: 100ms;
    --stagger-2: 200ms;
    --stagger-3: 300ms;
    --stagger-4: 400ms;
    --stagger-5: 500ms;
    --stagger-6: 600ms;
    --stagger-8: 800ms;
    --stagger-10: 1000ms;
    --stagger-12: 1200ms;

    /* -------------------------------------------------------------------------
     1.7 Z-Index Scale
     ------------------------------------------------------------------------- */

    --z-base: 0;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal-backdrop: 300;
    --z-modal: 400;
    --z-toast: 500;
    --z-tooltip: 600;
    --z-beta-banner: 700;

    /* Beta banner height (padding + content) */
    --beta-banner-height: 40px;
}

/* ==========================================================================
   2. BASE STYLES
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizelegibility;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
    color: var(--color-text-primary);
    background-color: var(--color-void-black);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Film Grain Overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: var(--grain-opacity);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   3. TYPOGRAPHY UTILITIES
   ========================================================================== */

/* Headlines - Serif (The "Voice") */
.text-headline {
    font-family: var(--font-serif);
    font-weight: var(--font-bold);
    letter-spacing: var(--tracking-tight);
    line-height: var(--leading-tight);
}

/* Data/Technical - Monospace (The "Evidence") */
.text-data {
    font-family: var(--font-mono);
    font-weight: var(--font-normal);
    letter-spacing: var(--tracking-wide);
    font-feature-settings: "tnum" 1;

    /* Tabular numbers */
}

/* Body Text - Sans */
.text-body {
    font-family: var(--font-sans);
    font-weight: var(--font-normal);
    line-height: var(--leading-relaxed);
}

/* Astrological Degrees */
.text-degrees {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

/* System Labels */
.label-western {
    color: var(--color-western);
}

.label-vedic {
    color: var(--color-vedic);
}

.label-saju {
    color: var(--color-saju);
}

/* ==========================================================================
   4. COMPONENT LIBRARY
   ========================================================================== */

/* -------------------------------------------------------------------------
   4.1 Cards
   ------------------------------------------------------------------------- */

.card {
    background-color: var(--color-surface-card);
    border: var(--border-width-hairline) solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
}

.card-header {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-3);
    border-bottom: var(--border-width-hairline) solid var(--color-border);
    padding-bottom: var(--space-3);
}

.card-body {
    font-family: var(--font-sans);
    color: var(--color-text-secondary);
}

/* -------------------------------------------------------------------------
   4.2 Buttons
   ------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    border: var(--border-width-hairline) solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    text-decoration: none;
}

/* Size variants */
.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
}

.btn-primary {
    background-color: var(--color-starlight-white);
    color: var(--color-void-black);
    border-color: var(--color-starlight-white);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-starlight-white);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-starlight-white);
    border-color: var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-starlight-white);
}

.btn-ghost {
    background-color: transparent;
    color: var(--color-text-secondary);
    border-color: transparent;
}

.btn-ghost:hover {
    color: var(--color-starlight-white);
}

.btn-cta {
    background-color: var(--color-western);
    color: var(--color-void-black);
    border-color: var(--color-western);
}

.btn-cta:hover {
    background-color: transparent;
    color: var(--color-western);
}

/* Gradient button variant - for hero CTAs */
.btn-gradient {
    position: relative;
    background: var(--color-starlight-white);
    color: var(--color-void-black);
    border: none;
    font-weight: var(--font-semibold);
    overflow: hidden;
}

.btn-gradient::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent,
        rgb(255 255 255 / 20%),
        transparent
    );
    transform: translateX(-100%);
    transition: transform var(--duration-slow);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgb(160 160 176 / 30%);
}

.btn-gradient:hover::before {
    transform: translateX(100%);
}

/* Extra large button variant */
.btn-xl {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-lg);
}

/* Full width button */
.btn-block {
    width: 100%;
}

/* -------------------------------------------------------------------------
   4.3 Inputs
   ------------------------------------------------------------------------- */

.input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    color: var(--color-text-primary);
    background-color: var(--color-surface-dark);
    border: var(--border-width-hairline) solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: border-color var(--duration-fast) var(--ease-out);
}

.input:focus {
    outline: none;
    border-color: var(--color-focus);
}

.input::placeholder {
    color: var(--color-text-muted);
}

/* -------------------------------------------------------------------------
   4.4 Tabs (Chart Type Switcher)
   ------------------------------------------------------------------------- */

.tabs {
    display: flex;
    gap: var(--space-6);
    border-bottom: var(--border-width-hairline) solid var(--color-border);
    padding-bottom: var(--space-3);
}

.tab {
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    background: none;
    border: none;
    padding: var(--space-2) 0;
    cursor: pointer;
    position: relative;
    transition: color var(--duration-fast) var(--ease-out);
}

.tab::after {
    content: "";
    position: absolute;
    bottom: calc(-1 * var(--space-3) - var(--border-width-hairline));
    left: 0;
    right: 0;
    height: var(--border-width-thin);
    background-color: var(--color-starlight-white);
    transform: scaleX(0);
    transition: transform var(--duration-normal) var(--ease-out);
}

.tab:hover {
    color: var(--color-text-primary);
}

.tab.active {
    color: var(--color-text-primary);
}

.tab.active::after {
    transform: scaleX(1);
}

/* -------------------------------------------------------------------------
   4.5 Progress Bars (Compatibility Scores)
   ------------------------------------------------------------------------- */

.progress {
    width: 100%;
    height: 4px;
    background-color: var(--color-border);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress__bar {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width var(--duration-slow) var(--ease-out);
}

.progress__bar--western {
    background-color: var(--color-western);
}

.progress__bar--vedic {
    background-color: var(--color-vedic);
}

.progress__bar--saju {
    background-color: var(--color-saju);
}

/* ==========================================================================
   5. ANIMATION CLASSES
   ========================================================================== */

/* Fade In (Cinema-style slow reveal) */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn var(--duration-slow) var(--ease-out) forwards;
}

/* Pulse (Loading states) */
@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s var(--ease-in-out) infinite;
}

/* Slide Up (Modal entrance) */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideUp var(--duration-normal) var(--ease-out) forwards;
}

/* -------------------------------------------------------------------------
   5.3 Enhanced Navigation & Mobile Menu Transitions
   ------------------------------------------------------------------------- */

.nav__mobile-menu {
    transform: translateY(-10px);
    opacity: 0;
    transition: all var(--duration-normal) var(--ease-out);
}

.nav__mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.nav__mobile-link {
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--duration-fast) var(--ease-out);
}

.nav__mobile-menu.active .nav__mobile-link {
    opacity: 1;
    transform: translateX(0);
}

.nav__mobile-menu.active .nav__mobile-link:nth-child(1) {
    animation-delay: 0ms;
}

.nav__mobile-menu.active .nav__mobile-link:nth-child(2) {
    animation-delay: 50ms;
}

.nav__mobile-menu.active .nav__mobile-link:nth-child(3) {
    animation-delay: 100ms;
}

.nav__mobile-menu.active .nav__mobile-link:nth-child(4) {
    animation-delay: 150ms;
}

.nav__mobile-menu.active .nav__mobile-link:nth-child(5) {
    animation-delay: 200ms;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* -------------------------------------------------------------------------
   5.4 Enhanced Button Hover Effects
   ------------------------------------------------------------------------- */

.btn {
    position: relative;
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
}

.btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgb(255 255 255 / 10%);
    transform: translate(-50%, -50%);
    transition: width var(--duration-normal) var(--ease-out), height
        var(--duration-normal) var(--ease-out);
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgb(0 0 0 / 30%);
}

.btn:active {
    transform: translateY(0);
    transition-duration: var(--duration-fast);
}

.btn-primary:hover {
    box-shadow: 0 4px 16px rgb(250 250 250 / 30%);
}

.btn-cta {
    animation: ctaPulse 2s var(--ease-in-out) infinite;
}

@keyframes ctaPulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgb(160 160 176 / 70%);
    }

    50% {
        box-shadow: 0 0 0 8px rgb(160 160 176 / 0%);
    }
}

.btn-cta:hover {
    animation: none;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 20px rgb(160 160 176 / 40%);
}

/* -------------------------------------------------------------------------
   5.5 Enhanced Card Hover Effects
   ------------------------------------------------------------------------- */

.card,
.feature-card,
.stat-card,
.problem-card {
    transition: all var(--duration-normal) var(--ease-out);
    transform: translateZ(0);
}

.card:hover,
.feature-card:hover,
.stat-card:hover,
.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-text-secondary);
}

.feature-card--western:hover {
    border-left-color: var(--color-western);
    box-shadow: -4px 0 0 0 var(--color-western), var(--shadow-lg);
}

.feature-card--vedic:hover {
    border-left-color: var(--color-vedic);
    box-shadow: -4px 0 0 0 var(--color-vedic), var(--shadow-lg);
}

.feature-card--saju:hover {
    border-left-color: var(--color-saju);
    box-shadow: -4px 0 0 0 var(--color-saju), var(--shadow-lg);
}

/* -------------------------------------------------------------------------
   5.7 Toast Banner Entrance/Exit Animations
   ------------------------------------------------------------------------- */

.toast-banner {
    animation: slideDown var(--duration-normal) var(--ease-out) forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast-banner.hiding {
    animation: slideUp var(--duration-normal) var(--ease-in) forwards;
}

/* -------------------------------------------------------------------------
   5.8 Page Section Entrance Animations (Scroll-triggered)
   ------------------------------------------------------------------------- */

.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--duration-slow) var(--ease-out), transform
        var(--duration-slow) var(--ease-out);
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero sections with parallax-like effect */
.hero {
    opacity: 0;
    animation: heroEntrance var(--duration-slower) var(--ease-out) forwards;
}

@keyframes heroEntrance {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__title {
    opacity: 0;
    animation: fadeInUp var(--duration-slow) var(--ease-out) forwards;
    animation-delay: 200ms;
}

.hero__subtitle {
    opacity: 0;
    animation: fadeInUp var(--duration-slow) var(--ease-out) forwards;
    animation-delay: 400ms;
}

.hero__description {
    opacity: 0;
    animation: fadeInUp var(--duration-slow) var(--ease-out) forwards;
    animation-delay: 600ms;
}

.hero__cta {
    opacity: 0;
    animation: fadeInUp var(--duration-slow) var(--ease-out) forwards;
    animation-delay: 800ms;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -------------------------------------------------------------------------
   5.9 Staggered Grid Item Animations
   ------------------------------------------------------------------------- */

.features__grid,
.stats-grid,
.problem-cards {
    perspective: 1000px;
}

.feature-card,
.stat-card,
.problem-card,
/* Staggered delays for grid items */
    .feature-card:nth-child(1),
.stat-card:nth-child(1),
.problem-card:nth-child(1) {
    animation-delay: 100ms;
}

.feature-card:nth-child(2),
.stat-card:nth-child(2),
.problem-card:nth-child(2) {
    animation-delay: 200ms;
}

.feature-card:nth-child(3),
.stat-card:nth-child(3),
.problem-card:nth-child(3) {
    animation-delay: 300ms;
}

.feature-card:nth-child(4),
.stat-card:nth-child(4),
.problem-card:nth-child(4) {
    animation-delay: 400ms;
}

.feature-card:nth-child(5),
.stat-card:nth-child(5),
.problem-card:nth-child(5) {
    animation-delay: 500ms;
}

.feature-card:nth-child(6),
.stat-card:nth-child(6),
.problem-card:nth-child(6) {
    animation-delay: 600ms;
}

/* -------------------------------------------------------------------------
   5.10 Smooth Color Transitions on Interactive Elements
   ------------------------------------------------------------------------- */

a,
button,
.nav__link,
.footer__link,
.tab,
input,
textarea,
select {
    transition: color var(--duration-fast) var(--ease-out), border-color
        var(--duration-fast) var(--ease-out), background-color
        var(--duration-fast) var(--ease-out), opacity var(--duration-fast)
        var(--ease-out);
}

/* -------------------------------------------------------------------------
   5.11 Progress Bar Fill Animations
   ------------------------------------------------------------------------- */

.progress__bar {
    animation: progressFill var(--duration-slower) var(--ease-out) forwards;
    transform-origin: left;
}

@keyframes progressFill {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.weight-bar__fill {
    animation: progressFill var(--duration-slower) var(--ease-out) forwards;
}

/* -------------------------------------------------------------------------
   5.13 Input Focus Glow Effect
   ------------------------------------------------------------------------- */

.input:focus,
.form-input:focus {
    box-shadow: 0 0 0 3px rgb(160 160 176 / 20%);
}

/* -------------------------------------------------------------------------
   5.15 Utility Animation Classes
   ------------------------------------------------------------------------- */

/* Delay utilities for staggered animations */
.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

.delay-500 {
    animation-delay: 500ms;
}

.delay-600 {
    animation-delay: 600ms;
}

.delay-700 {
    animation-delay: 700ms;
}

.delay-800 {
    animation-delay: 800ms;
}

/* -------------------------------------------------------------------------
   5.16 Gradient Text Animation
   ------------------------------------------------------------------------- */

.text-gradient-animated {
    background: linear-gradient(
        90deg,
        var(--color-starlight-white) 0%,
        var(--color-cosmic-purple) 25%,
        var(--color-mystic-gold) 50%,
        var(--color-cosmic-purple) 75%,
        var(--color-starlight-white) 100%
    );
    background-size: 200% auto;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s linear infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* -------------------------------------------------------------------------
   5.17 Glowing Border Effect
   ------------------------------------------------------------------------- */

.glow-border {
    position: relative;
}

.glow-border::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(
        45deg,
        var(--color-cosmic-purple),
        var(--color-mystic-gold),
        var(--color-vedic),
        var(--color-western),
        var(--color-cosmic-purple)
    );
    background-size: 300% 300%;
    animation: glowRotate 4s ease infinite;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.glow-border:hover::before {
    opacity: 1;
}

@keyframes glowRotate {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* -------------------------------------------------------------------------
   5.18 Floating Elements Animation
   ------------------------------------------------------------------------- */

.float {
    animation: float 6s ease-in-out infinite;
}

.float-slow {
    animation: float 8s ease-in-out infinite;
}

.float-fast {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-10px) rotate(1deg);
    }

    75% {
        transform: translateY(5px) rotate(-1deg);
    }
}

/* -------------------------------------------------------------------------
   5.19 Text Reveal Animation (Clip Path)
   ------------------------------------------------------------------------- */

.text-reveal {
    clip-path: inset(0 100% 0 0);
    animation: textReveal 0.8s var(--ease-out) forwards;
}

@keyframes textReveal {
    to {
        clip-path: inset(0 0 0 0);
    }
}

.text-reveal-up {
    clip-path: inset(100% 0 0 0);
    animation: textRevealUp 0.6s var(--ease-out) forwards;
}

@keyframes textRevealUp {
    to {
        clip-path: inset(0 0 0 0);
    }
}

/* -------------------------------------------------------------------------
   5.20 3D Card Tilt Effect
   ------------------------------------------------------------------------- */

.card-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-3d-inner {
    transition: transform 0.6s var(--ease-out);
    transform-style: preserve-3d;
}

.card-3d:hover .card-3d-inner {
    transform: rotateY(5deg) rotateX(5deg);
}

/* -------------------------------------------------------------------------
   5.22 Starfield Background Animation
   ------------------------------------------------------------------------- */

.starfield {
    position: relative;
    overflow: hidden;
}

.starfield::before,
.starfield::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.starfield::before {
    background-image: radial-gradient(
            2px 2px at 20px 30px,
            rgb(255 255 255 / 80%),
            transparent
        ),
        radial-gradient(
            2px 2px at 40px 70px,
            rgb(255 255 255 / 50%),
            transparent
        ),
        radial-gradient(
            1px 1px at 90px 40px,
            rgb(255 255 255 / 60%),
            transparent
        ),
        radial-gradient(
            2px 2px at 130px 80px,
            rgb(255 255 255 / 40%),
            transparent
        ),
        radial-gradient(
            1px 1px at 160px 120px,
            rgb(255 255 255 / 70%),
            transparent
        );
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: starTwinkle 4s ease-in-out infinite;
}

.starfield::after {
    background-image: radial-gradient(
            1px 1px at 50px 50px,
            rgb(255 255 255 / 40%),
            transparent
        ),
        radial-gradient(
            2px 2px at 100px 20px,
            rgb(255 255 255 / 30%),
            transparent
        ),
        radial-gradient(
            1px 1px at 150px 90px,
            rgb(255 255 255 / 50%),
            transparent
        );
    background-repeat: repeat;
    background-size: 250px 250px;
    animation: starTwinkle 6s ease-in-out infinite reverse;
}

@keyframes starTwinkle {
    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* -------------------------------------------------------------------------
   5.23 Number Counter Animation
   ------------------------------------------------------------------------- */

.counter {
    display: inline-block;
}

.counter.animate {
    animation: countUp 2s var(--ease-out) forwards;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stat card value animation */
.stat-card__value {
    background: linear-gradient(
        135deg,
        var(--color-starlight-white) 0%,
        var(--color-text-secondary) 100%
    );
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card:hover .stat-card__value {
    animation: statPop 0.4s var(--ease-out);
}

@keyframes statPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* -------------------------------------------------------------------------
   5.24 Image Reveal Animation
   ------------------------------------------------------------------------- */

.img-reveal {
    position: relative;
    overflow: hidden;
}

.img-reveal::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--color-surface-dark);
    transform: scaleX(1);
    transform-origin: right;
    animation: imgReveal 0.8s var(--ease-out) forwards;
}

@keyframes imgReveal {
    to {
        transform: scaleX(0);
    }
}

.img-reveal img {
    animation: imgZoom 1.2s var(--ease-out) forwards;
}

@keyframes imgZoom {
    from {
        transform: scale(1.2);
    }

    to {
        transform: scale(1);
    }
}

/* -------------------------------------------------------------------------
   5.25 Magnetic Hover Effect (CSS Approximation)
   ------------------------------------------------------------------------- */

.magnetic {
    transition: transform 0.3s var(--ease-out);
}

.magnetic:hover {
    transform: scale(1.02);
}

/* -------------------------------------------------------------------------
   5.26 Scroll Progress Indicator
   ------------------------------------------------------------------------- */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--color-western),
        var(--color-vedic),
        var(--color-saju)
    );
    transform-origin: left;
    z-index: 9999;
}

/* -------------------------------------------------------------------------
   5.28 Shake Animation (for errors/attention)
   ------------------------------------------------------------------------- */

.shake {
    animation: shake 0.5s var(--ease-out);
}

@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

/* -------------------------------------------------------------------------
   5.29 Bounce Animation
   ------------------------------------------------------------------------- */

.bounce {
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}

/* -------------------------------------------------------------------------
   5.30 Spin Animation (for loading icons)
   ------------------------------------------------------------------------- */

.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* -------------------------------------------------------------------------
   5.31 Scale In Animation
   ------------------------------------------------------------------------- */

.scale-in {
    animation: scaleIn 0.5s var(--ease-out) forwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* -------------------------------------------------------------------------
   5.32 Slide Animations (all directions)
   ------------------------------------------------------------------------- */

.slide-in-left {
    animation: slideInLeft 0.5s var(--ease-out) forwards;
}

.slide-in-right {
    animation: slideInRight 0.5s var(--ease-out) forwards;
}

.slide-in-up {
    animation: slideInUp 0.5s var(--ease-out) forwards;
}

.slide-in-down {
    animation: slideInDown 0.5s var(--ease-out) forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -------------------------------------------------------------------------
   5.33 Glow Pulse for Interactive Elements
   ------------------------------------------------------------------------- */

.glow-pulse {
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%,
    100% {
        box-shadow: 0 0 5px rgb(160 160 176 / 20%), 0 0 10px
            rgb(160 160 176 / 10%);
    }

    50% {
        box-shadow: 0 0 20px rgb(160 160 176 / 40%), 0 0 40px
            rgb(160 160 176 / 20%);
    }
}

/* -------------------------------------------------------------------------
   5.34 Parallax Scroll Effect (CSS only)
   ------------------------------------------------------------------------- */

.parallax-container {
    perspective: 1px;
    height: 100vh;
    overflow: hidden auto;
}

.parallax-layer {
    position: absolute;
    inset: 0;
}

.parallax-layer--back {
    transform: translateZ(-1px) scale(2);
}

.parallax-layer--front {
    transform: translateZ(0);
}

/* -------------------------------------------------------------------------
   5.35 Underline Animation for Links
   ------------------------------------------------------------------------- */

.link-underline {
    position: relative;
    text-decoration: none;
}

.link-underline::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-vedic);
    transition: width 0.3s var(--ease-out);
}

.link-underline:hover::after {
    width: 100%;
}

/* -------------------------------------------------------------------------
   5.36 Badge Pulse Animation
   ------------------------------------------------------------------------- */

.badge--ai {
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgb(160 160 176 / 40%);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 4px rgb(160 160 176 / 0%);
    }
}

/* -------------------------------------------------------------------------
   5.37 Section Divider Animation
   ------------------------------------------------------------------------- */

.divider-animated {
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--color-border),
        var(--color-text-secondary),
        var(--color-border),
        transparent
    );
    background-size: 200% 100%;
    animation: dividerShift 3s ease-in-out infinite;
}

@keyframes dividerShift {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

/* -------------------------------------------------------------------------
   5.38 Focus Ring Animation
   ------------------------------------------------------------------------- */

*:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--color-surface-dark), 0 0 0 4px
        var(--color-cosmic-purple);
    transition: box-shadow 0.2s var(--ease-out);
}

/* -------------------------------------------------------------------------
   5.39 Twinkle Animation (for starfield)
   ------------------------------------------------------------------------- */

@keyframes twinkle {
    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.starfield {
    position: relative;
    overflow: hidden;
}

/* -------------------------------------------------------------------------
   5.40 Animation Visibility Trigger
   ------------------------------------------------------------------------- */

/* Elements start hidden and animate when .animate-visible is added */
.fade-in-up,
.slide-in-left,
.slide-in-right,
.slide-in-up,
.image-reveal,
.bounce-in {
    opacity: 0;
}

.fade-in-up.animate-visible {
    animation: fadeInUp 0.8s var(--ease-out) forwards;
}

.slide-in-left.animate-visible {
    animation: slideInLeft 0.8s var(--ease-out) forwards;
}

.slide-in-right.animate-visible {
    animation: slideInRight 0.8s var(--ease-out) forwards;
}

.slide-in-up.animate-visible {
    animation: slideInUp 0.8s var(--ease-out) forwards;
}

.bounce-in.animate-visible {
    animation: bounceIn 0.6s var(--ease-spring) forwards;
}

.image-reveal.animate-visible {
    animation: imageReveal 0.8s var(--ease-out) forwards;
}

/* Stagger children animations */
.stagger-fade-in.animate-visible > * {
    animation: fadeInUp 0.6s var(--ease-out) forwards;
}

.stagger-fade-in.animate-visible > *:nth-child(1) {
    animation-delay: 0s;
}

.stagger-fade-in.animate-visible > *:nth-child(2) {
    animation-delay: 0.1s;
}

.stagger-fade-in.animate-visible > *:nth-child(3) {
    animation-delay: 0.2s;
}

.stagger-fade-in.animate-visible > *:nth-child(4) {
    animation-delay: 0.3s;
}

.stagger-fade-in.animate-visible > *:nth-child(5) {
    animation-delay: 0.4s;
}

.stagger-fade-in.animate-visible > *:nth-child(6) {
    animation-delay: 0.5s;
}

/* -------------------------------------------------------------------------
   5.41 Bounce In Keyframes
   ------------------------------------------------------------------------- */

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.1);
    }

    80% {
        opacity: 1;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* -------------------------------------------------------------------------
   5.42 Image Reveal Keyframes
   ------------------------------------------------------------------------- */

@keyframes imageReveal {
    from {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
        transform: translateX(0);
    }
}

/* -------------------------------------------------------------------------
   5.43 3D Card Tilt Effect (CSS-only)
   ------------------------------------------------------------------------- */

.card-3d-tilt {
    transform-style: preserve-3d;
    transition: transform var(--duration-normal) var(--ease-out), box-shadow
        var(--duration-normal) var(--ease-out);
}

.card-3d-tilt:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateY(-4px);
    box-shadow: var(--shadow-lg), 8px 8px 0 rgb(0 0 0 / 10%);
}

/* -------------------------------------------------------------------------
   5.44 Parallax Scroll Effect Section
   ------------------------------------------------------------------------- */

.parallax-scroll {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

.parallax-scroll::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        var(--color-void-black) 0%,
        transparent 20%,
        transparent 80%,
        var(--color-void-black) 100%
    );
    pointer-events: none;
}

/* -------------------------------------------------------------------------
   5.45 Link Underline Animation
   ------------------------------------------------------------------------- */

.link-underline-animation {
    position: relative;
    text-decoration: none;
}

.link-underline-animation::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--color-western),
        var(--color-vedic),
        var(--color-saju)
    );
    transform: translateX(-50%);
    transition: width var(--duration-normal) var(--ease-out);
}

.link-underline-animation:hover::after {
    width: 100%;
}

/* -------------------------------------------------------------------------
   5.46 Enhanced Glow Border with Color Variable
   ------------------------------------------------------------------------- */

.glow-border {
    --glow-color: var(--color-western);

    position: relative;
    overflow: hidden;
}

.glow-border::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        transparent 40%,
        var(--glow-color) 50%,
        transparent 60%
    );
    background-size: 300% 300%;
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
    animation: glowSweep 3s ease-in-out infinite;
    z-index: -1;
    border-radius: inherit;
}

@keyframes glowSweep {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.glow-border:hover::before {
    opacity: 0.15;
}

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

    .fade-in-up,
    .slide-in-left,
    .slide-in-right,
    .slide-in-up,
    .image-reveal,
    .bounce-in,
    .stagger-fade-in > * {
        opacity: 1 !important;
    }
}

/* ==========================================================================
   6. UTILITY CLASSES
   ========================================================================== */

/* Text Alignment */
.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* Display */
.hidden {
    display: none;
}

.block {
    display: block;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

/* Flexbox */
.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: var(--space-2);
}

.gap-4 {
    gap: var(--space-4);
}

.gap-6 {
    gap: var(--space-6);
}

/* Spacing */
.p-4 {
    padding: var(--space-4);
}

.p-6 {
    padding: var(--space-6);
}

.mt-4 {
    margin-top: var(--space-4);
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.my-4 {
    margin-top: var(--space-4);
    margin-bottom: var(--space-4);
}

/* Borders */
.border {
    border: var(--border-width-hairline) solid var(--color-border);
}

.border-b {
    border-bottom: var(--border-width-hairline) solid var(--color-border);
}

/* Border Radius */
.rounded {
    border-radius: var(--radius-md);
}

.rounded-full {
    border-radius: var(--radius-full);
}

/* Width */
.w-full {
    width: 100%;
}

.max-w-md {
    max-width: 28rem;
}

.max-w-lg {
    max-width: 32rem;
}

.max-w-xl {
    max-width: 36rem;
}

/* ==========================================================================
   7. LAYOUT COMPONENTS
   ========================================================================== */

/* -------------------------------------------------------------------------
   7.1 Navigation
   ------------------------------------------------------------------------- */

.nav {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background-color: var(--color-void-black);
    border-bottom: var(--border-width-hairline) solid var(--color-border);
    backdrop-filter: blur(8px);
}

.nav__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-4) var(--space-6);
    position: relative;
}

.nav__logo {
    text-decoration: none;
    color: var(--color-text-primary);
    font-size: var(--text-xl);
    z-index: 1;
}

.nav__center {
    display: flex;
    justify-content: center;
    gap: var(--space-6);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav__right {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    z-index: 1;
}

.nav__links {
    display: flex;
    gap: var(--space-6);
}

.nav__link {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    transition: color var(--duration-fast) var(--ease-out);
}

.nav__link:hover {
    color: var(--color-text-primary);
}

.nav__link--desktop {
    display: inline;
}

/* Hamburger Menu Button */
.nav__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-primary);
    transition: all var(--duration-fast) var(--ease-out);
}

.nav__hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.nav__hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.nav__mobile-menu {
    display: none;
    flex-direction: column;
    background-color: var(--color-surface-dark);
    border-bottom: var(--border-width-hairline) solid var(--color-border);
    padding: var(--space-4) var(--space-6);
    gap: var(--space-2);
}

.nav__mobile-menu.active {
    display: flex;
}

.nav__mobile-link {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    padding: var(--space-3) 0;
    border-bottom: var(--border-width-hairline) solid var(--color-border);
    transition: color var(--duration-fast) var(--ease-out);
}

.nav__mobile-link:last-child {
    border-bottom: none;
}

.nav__mobile-link:hover {
    color: var(--color-text-primary);
}

/* Mobile Responsive Navigation */
@media (width <= 768px) {
    .nav__center {
        display: none;
    }

    .nav__link--desktop {
        display: none;
    }

    .nav__hamburger {
        display: flex;
    }

    .btn-cta {
        padding: var(--space-2) var(--space-4);
        font-size: var(--text-xs);
    }
}

/* -------------------------------------------------------------------------
   7.2 Footer
   ------------------------------------------------------------------------- */

.footer {
    background-color: var(--color-surface-dark);
    border-top: var(--border-width-hairline) solid var(--color-border);
    padding: var(--space-12) var(--space-6);
    margin-top: var(--space-24);
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
    text-align: center;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

.footer__tagline {
    color: var(--color-text-muted);
    font-size: var(--text-xs);
}

.footer__nav {
    display: flex;
    gap: var(--space-6);
}

.footer__link {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    transition: color var(--duration-fast) var(--ease-out);
}

.footer__link:hover {
    color: var(--color-text-primary);
}

.footer__copyright {
    color: var(--color-text-muted);
    font-size: var(--text-xs);
}

/* -------------------------------------------------------------------------
   7.3 Page Sections
   ------------------------------------------------------------------------- */

.main {
    min-height: calc(100vh - 200px);
}

.section {
    padding: var(--space-20) var(--space-6);
}

.section--hero {
    padding: var(--space-24) var(--space-6);
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
    width: 100%;
    box-sizing: border-box;
}

@media (width >= 768px) {
    .container {
        padding: 0 var(--space-6);
    }
}

/* -------------------------------------------------------------------------
   7.4 Hero Section
   ------------------------------------------------------------------------- */

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-24) var(--space-6);
    min-height: 70vh;
}

.hero__title {
    font-family: var(--font-serif);
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    letter-spacing: var(--tracking-tight);
    margin-bottom: var(--space-4);
}

.hero__subtitle {
    font-family: var(--font-mono);
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    margin-bottom: var(--space-6);
}

.hero__description {
    font-family: var(--font-sans);
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-8);
    line-height: var(--leading-relaxed);
}

.hero__cta {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
}

/* -------------------------------------------------------------------------
   7.5 Feature Grid
   ------------------------------------------------------------------------- */

.features {
    padding: var(--space-16) var(--space-6);
}

.features__title {
    font-family: var(--font-serif);
    font-size: var(--text-3xl);
    text-align: center;
    margin-bottom: var(--space-12);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    max-width: 1000px;
    margin: 0 auto;
}

@media (width <= 768px) {
    .features__grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background-color: var(--color-surface-card);
    border: var(--border-width-hairline) solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    text-align: center;
    transition: border-color var(--duration-fast) var(--ease-out);
}

.feature-card:hover {
    border-color: var(--color-text-secondary);
}

.feature-card__icon {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
}

.feature-card__label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    margin-bottom: var(--space-2);
}

.feature-card__title {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
}

.feature-card__description {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
}

/* System-specific accent borders */
.feature-card--western {
    border-left: 3px solid var(--color-western);
}

.feature-card--vedic {
    border-left: 3px solid var(--color-vedic);
}

.feature-card--saju {
    border-left: 3px solid var(--color-saju);
}

/* ==========================================================================
   8. MARKETING WEBSITE COMPONENTS
   ========================================================================== */

/* -------------------------------------------------------------------------
   8.1 Toast Banner (Smart Localization)
   ------------------------------------------------------------------------- */

.toast-banner {
    position: sticky;
    top: 60px;
    z-index: var(--z-toast);
    background: linear-gradient(135deg, var(--color-vedic), #d4c56a);
    color: var(--color-void-black);
    padding: var(--space-3) var(--space-6);
    text-align: center;
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-3);
}

.toast-banner__text {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.toast-banner__close {
    background: rgb(0 0 0 / 10%);
    border: none;
    color: var(--color-void-black);
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    line-height: 1;
    transition: background var(--duration-fast) var(--ease-out);
}

.toast-banner__close:hover {
    background: rgb(0 0 0 / 20%);
}

/* -------------------------------------------------------------------------
   8.1.1 Beta Testing Banner
   ------------------------------------------------------------------------- */

.beta-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-beta-banner);
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: var(--color-starlight-white);
    padding: var(--space-2) var(--space-12) var(--space-2) var(--space-6);
    text-align: center;
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    display: none;
    justify-content: center;
    align-items: center;
}

/* Show beta banner when body has the class */
body.has-beta-banner .beta-banner {
    display: flex;
}

/* Offset nav when beta banner is visible */
body.has-beta-banner .nav-premium {
    top: var(--beta-banner-height);
}

/* Offset main content when beta banner is visible */
body.has-beta-banner .main {
    padding-top: var(--beta-banner-height);
}

/* Offset toast banner when beta banner is visible */
body.has-beta-banner .toast-banner {
    top: calc(60px + var(--beta-banner-height));
}

/* Mobile: extra padding for hero sections when beta banner is visible */
@media (width <= 768px) {
    body.has-beta-banner .main {
        padding-top: calc(var(--beta-banner-height) + var(--space-4));
    }
}

.beta-banner__content {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.beta-banner__icon {
    font-size: var(--text-lg);
}

.beta-banner__text {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.beta-banner__text strong {
    font-weight: var(--font-semibold);
}

.beta-banner__badge {
    background: rgb(255 255 255 / 20%);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
}

.beta-banner__close {
    position: absolute;
    right: var(--space-4);
    background: rgb(255 255 255 / 10%);
    border: none;
    color: var(--color-starlight-white);
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    line-height: 1;
    transition: background var(--duration-fast) var(--ease-out);
}

.beta-banner__close:hover {
    background: rgb(255 255 255 / 20%);
}

/* Beta banner mobile layout */
@media (width <= 480px) {
    .beta-banner {
        padding: var(--space-2) var(--space-10) var(--space-2) var(--space-3);
        font-size: var(--text-xs);
    }

    .beta-banner__content {
        gap: var(--space-2);
    }

    .beta-banner__icon {
        display: none;
    }

    .beta-banner__text {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-1);
    }

    .beta-banner__badge {
        font-size: 9px;
        padding: 2px 6px;
    }

    .beta-banner__close {
        right: var(--space-2);
        width: 22px;
        height: 22px;
        font-size: var(--text-base);
    }
}

/* -------------------------------------------------------------------------
   8.2 Badge Component (AI Badge for Navigation)
   ------------------------------------------------------------------------- */

.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-2);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    border-radius: var(--radius-sm);
}

.badge--ai {
    background-color: #6366f1;
    color: var(--color-starlight-white);
}

.badge--new {
    background-color: var(--color-vedic);
    color: var(--color-void-black);
}

.badge--beta {
    background-color: var(--color-western);
    color: var(--color-void-black);
}

/* -------------------------------------------------------------------------
   8.4 Calculator Component (Affiliate Revenue)
   ------------------------------------------------------------------------- */

.calculator {
    background-color: var(--color-surface-card);
    border: var(--border-width-hairline) solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    max-width: 500px;
    margin: 0 auto;
}

.calculator__title {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    text-align: center;
    margin-bottom: var(--space-6);
}

.calculator__slider-container {
    margin-bottom: var(--space-6);
}

.calculator__label {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2);
    display: flex;
    justify-content: space-between;
}

.calculator__slider {
    width: 100%;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--color-border);
    outline: none;
    appearance: none;
}

.calculator__slider::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background: var(--color-vedic);
    cursor: pointer;
    transition: transform var(--duration-fast) var(--ease-out);
}

.calculator__slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.calculator__result {
    text-align: center;
    padding: var(--space-6);
    background: var(--color-surface-dark);
    border-radius: var(--radius-md);
}

.calculator__result-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    color: var(--color-text-muted);
    margin-bottom: var(--space-2);
}

.calculator__result-value {
    font-family: var(--font-serif);
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--color-vedic);
}

/* Responsive Table Wrapper - Horizontal scroll on mobile */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: var(--space-4);
}

.table-responsive table {
    min-width: 600px;
}

/* Auto-apply scroll to all tables on mobile */
@media (width <= 640px) {
    .specs-table,
    table:not(.no-scroll) {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    /* Scroll hint shadow */
    .table-responsive::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 30px;
        background: linear-gradient(
            to right,
            transparent,
            var(--color-surface-card)
        );
        pointer-events: none;
        opacity: 0;
        transition: opacity var(--duration-fast);
    }

    .table-responsive.has-scroll::after {
        opacity: 1;
    }
}

/* -------------------------------------------------------------------------
   8.7 Stats Cards (Social Proof / Affiliate)
   ------------------------------------------------------------------------- */

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

@media (width <= 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background-color: var(--color-surface-card);
    border: var(--border-width-hairline) solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    text-align: center;
}

.stat-card__value {
    font-family: var(--font-serif);
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--color-vedic);
    margin-bottom: var(--space-2);
}

.stat-card__label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    color: var(--color-text-secondary);
}

.steps {
    display: flex;
    gap: var(--space-6);
    justify-content: center;
}

@media (width <= 768px) {
    .steps {
        flex-direction: column;
    }
}

/* -------------------------------------------------------------------------
   8.9 Problem/Solution Cards
   ------------------------------------------------------------------------- */

.problem-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    max-width: 1000px;
    margin: 0 auto;
}

@media (width <= 768px) {
    .problem-cards {
        grid-template-columns: 1fr;
    }
}

.problem-card {
    background-color: var(--color-surface-card);
    border: var(--border-width-hairline) solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    text-align: center;
}

.problem-card__icon {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
}

.problem-card__system {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    margin-bottom: var(--space-2);
}

.problem-card__strength {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    color: #10b981;
    margin-bottom: var(--space-2);
}

.problem-card__weakness {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    color: #ef4444;
    font-weight: var(--font-medium);
}

/* -------------------------------------------------------------------------
   8.12 Specs Table (Features Page)
   ------------------------------------------------------------------------- */

.specs-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.specs-row {
    display: flex;
    gap: var(--space-6);
    padding: var(--space-4) 0;
    border-bottom: var(--border-width-hairline) solid var(--color-border);
}

.specs-row:last-child {
    border-bottom: none;
}

.specs-row__label {
    flex: 0 0 200px;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--color-text-muted);
}

.specs-row__value {
    flex: 1;
    font-family: var(--font-sans);
    font-size: var(--text-base);
    color: var(--color-text-primary);
}

.specs-row__value strong {
    color: var(--color-vedic);
}

.specs-row__note {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-top: var(--space-1);
}

/* -------------------------------------------------------------------------
   8.13 Equalizer / Weight Bars (Algorithm Section)
   ------------------------------------------------------------------------- */

.weight-bars {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    max-width: 500px;
    margin: 0 auto;
}

.weight-bar {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.weight-bar__label {
    flex: 0 0 80px;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.weight-bar__track {
    flex: 1;
    height: 8px;
    background-color: var(--color-border);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.weight-bar__fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width var(--duration-slow) var(--ease-out);
}

.weight-bar__fill--saju {
    background-color: var(--color-saju);
}

.weight-bar__fill--vedic {
    background-color: var(--color-vedic);
}

.weight-bar__fill--western {
    background-color: var(--color-western);
}

.weight-bar__value {
    flex: 0 0 50px;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    text-align: right;
}

.store-badges {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.store-badge {
    display: inline-block;
    height: 50px;
}

.store-badge img {
    height: 100%;
    width: auto;
}

/* Show QR on desktop, badges on mobile */
@media (width <= 768px) {
    .qr-container {
        display: none;
    }
}

@media (width >= 769px) {
    .store-badges {
        display: none;
    }
}

/* -------------------------------------------------------------------------
   8.15 Language Flags Component
   ------------------------------------------------------------------------- */

.lang-flags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-top: var(--space-3);
}

.lang-flags__icons {
    display: flex;
    gap: var(--space-1);
    font-size: var(--text-lg);
}

/* -------------------------------------------------------------------------
   8.16 Section Headers
   ------------------------------------------------------------------------- */

.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-header__title {
    font-family: var(--font-serif);
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
}

.section-header__subtitle {
    font-family: var(--font-sans);
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: var(--leading-relaxed);
}

.section-header__tag {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    color: var(--color-vedic);
    margin-bottom: var(--space-2);
}

/* -------------------------------------------------------------------------
   8.18 Form Components (Affiliate Apply)
   ------------------------------------------------------------------------- */

.form-group {
    margin-bottom: var(--space-4);
}

.form-label {
    display: block;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2);
}

.form-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    color: var(--color-text-primary);
    background-color: var(--color-surface-dark);
    border: var(--border-width-hairline) solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: border-color var(--duration-fast) var(--ease-out);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-vedic);
}

.form-input::placeholder {
    color: var(--color-text-muted);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--color-vedic);
}

.form-checkbox__text {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
}

.form-error {
    color: #ef4444;
    font-size: var(--text-sm);
    margin-top: var(--space-2);
}

.form-success {
    color: #10b981;
    font-size: var(--text-sm);
    margin-top: var(--space-2);
}

/* -------------------------------------------------------------------------
   8.19 Dashboard Components (Affiliate Dashboard)
   ------------------------------------------------------------------------- */

.dashboard {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--space-6);
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-6);
}

@media (width <= 768px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
}

.dashboard__sidebar {
    background-color: var(--color-surface-card);
    border: var(--border-width-hairline) solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
}

.dashboard__nav-item {
    display: block;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) var(--ease-out);
}

.dashboard__nav-item:hover,
.dashboard__nav-item.active {
    background-color: var(--color-surface-dark);
    color: var(--color-text-primary);
}

.dashboard__main {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.dashboard__card {
    background-color: var(--color-surface-card);
    border: var(--border-width-hairline) solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
}

.dashboard__card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
}

.dashboard__card-title {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
}

/* -------------------------------------------------------------------------
   8.21 Referral Link Component
   ------------------------------------------------------------------------- */

.referral-link {
    display: flex;
    gap: var(--space-3);
    align-items: stretch;
}

.referral-link__input {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--color-text-primary);
    background-color: var(--color-surface-dark);
    border: var(--border-width-hairline) solid var(--color-border);
    border-radius: var(--radius-sm);
}

.referral-link__copy {
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    background-color: var(--color-vedic);
    color: var(--color-void-black);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: opacity var(--duration-fast) var(--ease-out);
}

.referral-link__copy:hover {
    opacity: 0.9;
}

/* -------------------------------------------------------------------------
   8.24 Enhanced Footer (Multi-column)
   ------------------------------------------------------------------------- */

.footer__container--expanded {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-8);
    padding: var(--space-12) var(--space-6);
    text-align: left;
}

@media (width <= 768px) {
    .footer__container--expanded {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-6);
    }
}

@media (width <= 480px) {
    .footer__container--expanded {
        grid-template-columns: 1fr;
    }
}

.footer__logo {
    font-size: var(--text-2xl);
    display: block;
    margin-bottom: var(--space-2);
}

.footer__slogan {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: var(--space-4);
}

.footer__instagram {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    text-decoration: none;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    transition: all 0.2s ease;
}

.footer__instagram:hover {
    color: var(--color-text-primary);
    border-color: var(--color-text-muted);
    background: linear-gradient(
        135deg,
        rgb(131 58 180 / 10%),
        rgb(253 29 29 / 10%),
        rgb(252 176 69 / 10%)
    );
}

.footer__instagram svg {
    flex-shrink: 0;
}

.footer__column {
    display: flex;
    flex-direction: column;
}

.footer__column-title {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
}

.footer__column-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer__link--highlight {
    color: var(--color-vedic) !important;
    font-weight: var(--font-medium);
}

.footer__bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-6);
    border-top: var(--border-width-hairline) solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

@media (width <= 480px) {
    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

.footer__contact {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.footer__contact a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

.footer__contact a:hover {
    color: var(--color-text-primary);
}

/* -------------------------------------------------------------------------
   8.25 Nav Link with Badge
   ------------------------------------------------------------------------- */

.nav__link .badge {
    margin-left: var(--space-1);
    vertical-align: middle;
}

.nav__mobile-link .badge {
    margin-left: var(--space-2);
}

/* -------------------------------------------------------------------------
   8.26 Phone Mockup Frame (Hero Carousel)
   ------------------------------------------------------------------------- */

.phone-mockup {
    position: relative;
    width: 280px;
    height: 580px;
    margin: 0 auto;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 50px 100px -20px rgb(0 0 0 / 50%), 0 30px 60px -30px
        rgb(0 0 0 / 40%), inset 0 1px 0 rgb(255 255 255 / 10%);
}

.phone-mockup::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #000;
    border-radius: 12px;
    z-index: 10;
}

.phone-mockup__screen {
    width: 100%;
    height: 100%;
    background: var(--color-surface-dark);
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

.phone-mockup__screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (width <= 480px) {
    .phone-mockup {
        width: 220px;
        height: 460px;
        border-radius: 32px;
        padding: 8px;
    }

    .phone-mockup::before {
        width: 60px;
        height: 18px;
        top: 14px;
    }

    .phone-mockup__screen {
        border-radius: 26px;
    }
}

/* -------------------------------------------------------------------------
   8.27 Floating Action Button (Tally Feedback Widget)
   ------------------------------------------------------------------------- */

.fab {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    z-index: 100;
}

.fab__button {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgb(99 102 241 / 40%), 0 4px 12px rgb(0 0 0 / 30%);
    transition: all var(--duration-normal) var(--ease-out);
    color: white;
}

.fab__button:hover {
    transform: scale(1.1);
    box-shadow: 0 14px 50px rgb(99 102 241 / 50%), 0 6px 16px rgb(0 0 0 / 40%);
}

.fab__button:active {
    transform: scale(0.95);
}

.fab__button svg {
    width: 24px;
    height: 24px;
}

.fab__tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-surface-card);
    border: var(--border-width-hairline) solid var(--color-border);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    color: var(--color-text-primary);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-fast) var(--ease-out);
    box-shadow: var(--shadow-lg);
}

.fab:hover .fab__tooltip {
    opacity: 1;
    visibility: visible;
}

@media (width <= 480px) {
    .fab {
        bottom: var(--space-4);
        right: var(--space-4);
    }

    .fab__button {
        width: 48px;
        height: 48px;
    }

    .fab__tooltip {
        display: none;
    }
}

/* Glitch effect for matrix text */

/* -------------------------------------------------------------------------
   8.32 Enhanced 3D Tilt Card Styles
   ------------------------------------------------------------------------- */

.card-3d-tilt {
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.card-3d-tilt::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--glow-x, 50%) var(--glow-y, 50%),
        rgb(255 255 255 / 10%) 0%,
        transparent 60%
    );
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease-out;
    pointer-events: none;
}

.card-3d-tilt:hover::before {
    opacity: 1;
}

.card-3d-tilt:hover {
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 50%), 0 0 30px
        rgb(99 102 241 / 10%);
}

/* -------------------------------------------------------------------------
   8.33 Bounce Animation for Icons
   ------------------------------------------------------------------------- */

.bounce-in {
    opacity: 0;
    transform: scale(0);
}

.bounce-in.animate-visible {
    animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* -------------------------------------------------------------------------
   8.34 Pulse Glow Effect for CTAs
   ------------------------------------------------------------------------- */

.glow-pulse {
    position: relative;
}

.glow-pulse::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: linear-gradient(45deg, #6366f1, #8b5cf6, #6366f1);
    background-size: 200% 200%;
    animation: glowPulseRing 2s ease-in-out infinite;
    opacity: 0;
    z-index: -1;
    filter: blur(8px);
}

.glow-pulse:hover::after {
    opacity: 0.6;
}

@keyframes glowPulseRing {
    0%,
    100% {
        background-position: 0% 50%;
        transform: scale(1);
    }

    50% {
        background-position: 100% 50%;
        transform: scale(1.05);
    }
}

/* -------------------------------------------------------------------------
   8.35 Slide Animations
   ------------------------------------------------------------------------- */

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
}

.slide-in-left.animate-visible {
    animation: slideInLeft 0.6s ease-out forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    opacity: 0;
    transform: translateX(30px);
}

.slide-in-right.animate-visible {
    animation: slideInRight 0.6s ease-out forwards;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-up {
    opacity: 0;
    transform: translateY(30px);
}

.slide-in-up.animate-visible {
    animation: slideInUp 0.6s ease-out forwards;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -------------------------------------------------------------------------
   8.36 Badge Pulse Animation (AI Badge)
   ------------------------------------------------------------------------- */

.badge-pulse {
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgb(99 102 241 / 40%);
    }

    50% {
        box-shadow: 0 0 0 8px rgb(99 102 241 / 0%);
    }
}

.badge--ai {
    animation: badgePulse 2s ease-in-out infinite;
}

/* ==========================================================================
   9. PREMIUM NAVIGATION (Header)
   ========================================================================== */

.nav-premium {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    padding: 1rem 0;
    transition: all var(--duration-normal) var(--ease-out);
}

.nav-premium--scrolled {
    background: rgb(5 5 5 / 85%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgb(255 255 255 / 6%);
    padding: 0.75rem 0;
}

.nav-premium__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.nav-premium__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity var(--duration-fast) var(--ease-out);
}

.nav-premium__logo:hover {
    opacity: 0.85;
}

.nav-premium__logo-icon {
    width: 32px;
    height: 28px;
    transition: transform var(--duration-fast) var(--ease-spring);
}

.nav-premium__logo:hover .nav-premium__logo-icon {
    transform: scale(1.08);
}

.nav-premium__logo-text {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--color-text-primary);
    letter-spacing: var(--tracking-wide);
}

/* Center Navigation Links */
.nav-premium__center {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-premium__link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--color-text-secondary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: var(--tracking-wide);
    padding: 0.5rem 0;
    transition: color var(--duration-fast) var(--ease-out);
}

.nav-premium__link:hover {
    color: var(--color-text-primary);
}

.nav-premium__link-text {
    position: relative;
}

.nav-premium__link-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-vedic);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--duration-normal) var(--ease-out);
}

.nav-premium__link:hover .nav-premium__link-underline {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-premium__link-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--color-void-black);
    background: linear-gradient(135deg, var(--color-vedic) 0%, #d4c76e 100%);
    border-radius: var(--radius-sm);
    box-shadow: 0 0 10px rgb(197 179 88 / 30%);
}

.nav-premium__link--featured .nav-premium__link-text {
    color: var(--color-vedic);
}

.nav-premium__link--featured:hover .nav-premium__link-text {
    color: #d4c76e;
}

/* Right Section */
.nav-premium__right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-premium__link--secondary {
    opacity: 0.7;
}

.nav-premium__link--secondary:hover {
    opacity: 1;
}

/* CTA Button */
.nav-premium__cta {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: transparent;
    border: 1px solid var(--color-text-primary);
    border-radius: var(--radius-full);
    text-decoration: none;
    color: var(--color-text-primary);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: var(--tracking-wide);
    overflow: hidden;
    transition: all var(--duration-fast) var(--ease-out);
}

.nav-premium__cta:hover {
    background: var(--color-text-primary);
    color: var(--color-void-black);
    transform: translateY(-1px);
}

.nav-premium__cta-icon {
    display: flex;
    transition: transform var(--duration-fast) var(--ease-out);
}

.nav-premium__cta:hover .nav-premium__cta-icon {
    transform: translateY(2px);
}

.nav-premium__cta-glow {
    position: absolute;
    inset: -2px;
    background: var(--color-vedic);
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    filter: blur(10px);
    transition: opacity var(--duration-normal) var(--ease-out);
}

.nav-premium__cta:hover .nav-premium__cta-glow {
    opacity: 0.4;
}

.nav-premium__cta--large {
    padding: 1rem 2rem;
    font-size: 1rem;
    width: 100%;
    justify-content: center;
}

/* Hamburger Menu - Elevated Cosmic Design */
.nav-premium__hamburger {
    display: none;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background: rgb(10 10 10 / 85%);
    backdrop-filter: blur(12px);
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: var(--radius-lg);
    cursor: pointer;
    padding: 0;
    gap: 6px;
    z-index: calc(var(--z-modal) + 10);
    transition: all var(--duration-normal) var(--ease-out);
    -webkit-tap-highlight-color: transparent;
}

/* Glow effect container */
.nav-premium__hamburger::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgb(59 130 246 / 30%),
        rgb(245 158 11 / 30%),
        rgb(20 184 166 / 30%)
    );
    opacity: 0;
    filter: blur(8px);
    transition: opacity var(--duration-normal) var(--ease-out);
    z-index: -1;
}

.nav-premium__hamburger:hover,
.nav-premium__hamburger:focus-visible {
    background: rgb(20 20 20 / 90%);
    border-color: rgb(255 255 255 / 20%);
    transform: scale(1.05);
}

.nav-premium__hamburger:hover::before,
.nav-premium__hamburger:focus-visible::before {
    opacity: 1;
}

.nav-premium__hamburger:active {
    transform: scale(0.95);
}

/* Active state (menu open) */
.nav-premium__hamburger.active {
    background: rgb(20 20 25 / 95%);
    border-color: rgb(160 160 176 / 40%);
}

.nav-premium__hamburger.active::before {
    opacity: 0.6;
}

/* Hamburger lines - refined spacing */
.nav-premium__hamburger-line {
    position: absolute;
    width: 20px;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: 2px;
    transition: all var(--duration-normal) cubic-bezier(0.68, -0.6, 0.32, 1.6);
    transform-origin: center;
}

/* Line positions - stacked vertically with precise spacing */
.nav-premium__hamburger-line:nth-child(1) {
    transform: translateY(-7px);
}

.nav-premium__hamburger-line:nth-child(2) {
    transform: translateY(0);
}

.nav-premium__hamburger-line:nth-child(3) {
    transform: translateY(7px);
}

/* Active state - morph to X with bounce */
.nav-premium__hamburger.active .nav-premium__hamburger-line:nth-child(1) {
    transform: rotate(45deg) translateY(0);
    background: var(--color-western);
}

.nav-premium__hamburger.active .nav-premium__hamburger-line:nth-child(2) {
    transform: scaleX(0);
    opacity: 0;
}

.nav-premium__hamburger.active .nav-premium__hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translateY(0);
    background: var(--color-vedic);
}

/* Hover effect on lines */
.nav-premium__hamburger:hover .nav-premium__hamburger-line:nth-child(1) {
    width: 16px;
    transform: translateY(-7px) translateX(-2px);
}

.nav-premium__hamburger:hover .nav-premium__hamburger-line:nth-child(3) {
    width: 16px;
    transform: translateY(7px) translateX(2px);
}

/* Reset hover effect when active */
.nav-premium__hamburger.active:hover .nav-premium__hamburger-line:nth-child(1) {
    width: 20px;
    transform: rotate(45deg) translateY(0);
}

.nav-premium__hamburger.active:hover .nav-premium__hamburger-line:nth-child(3) {
    width: 20px;
    transform: rotate(-45deg) translateY(0);
}

/* Mobile Menu - Full Screen Overlay */
.nav-premium__mobile {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: var(--z-modal);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration-normal) var(--ease-out), visibility
        var(--duration-normal);
}

.nav-premium__mobile.active {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.nav-premium__mobile-bg {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 1;
}

.nav-premium__mobile-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 2rem 3rem;
}

.nav-premium__mobile-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nav-premium__mobile-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    text-decoration: none;
    color: var(--color-text-primary);
    border-bottom: 1px solid rgb(255 255 255 / 8%);
    transition: all var(--duration-fast) var(--ease-out);
}

.nav-premium__mobile-link:hover {
    padding-left: 0.5rem;
    background: rgb(255 255 255 / 2%);
}

.nav-premium__mobile-link-number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    min-width: 2rem;
}

.nav-premium__mobile-link-text {
    flex: 1;
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 500;
    letter-spacing: var(--tracking-tight);
}

.nav-premium__mobile-link--featured .nav-premium__mobile-link-text {
    color: var(--color-vedic);
}

.nav-premium__mobile-link-arrow {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    color: var(--color-text-muted);
    transition: transform var(--duration-fast) var(--ease-out);
}

.nav-premium__mobile-link:hover .nav-premium__mobile-link-arrow {
    transform: translateX(4px);
    color: var(--color-text-primary);
}

.nav-premium__mobile-footer {
    margin-top: auto;
    padding-top: 2rem;
}

.nav-premium__mobile-systems {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.nav-premium__mobile-system {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
}

.nav-premium__mobile-system--western {
    color: var(--color-western);
    background: rgb(59 130 246 / 10%);
    border: 1px solid rgb(59 130 246 / 30%);
}

.nav-premium__mobile-system--vedic {
    color: var(--color-vedic);
    background: rgb(245 158 11 / 10%);
    border: 1px solid rgb(245 158 11 / 30%);
}

.nav-premium__mobile-system--saju {
    color: var(--color-saju);
    background: rgb(20 184 166 / 10%);
    border: 1px solid rgb(20 184 166 / 30%);
}

/* Mobile Responsive */
@media (width <= 900px) {
    .nav-premium__center {
        display: none;
    }

    .nav-premium__link--secondary {
        display: none;
    }

    .nav-premium__hamburger {
        display: flex;
    }
}

@media (width <= 600px) {
    .nav-premium__container {
        padding: 0 1rem;
    }

    .nav-premium__cta {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .nav-premium__cta-icon {
        display: none;
    }

    /* Hamburger - slightly smaller but still touch-friendly */
    .nav-premium__hamburger {
        width: 44px;
        height: 44px;
    }

    .nav-premium__hamburger-line {
        width: 18px;
    }

    .nav-premium__hamburger-line:nth-child(1) {
        transform: translateY(-6px);
    }

    .nav-premium__hamburger-line:nth-child(3) {
        transform: translateY(6px);
    }

    .nav-premium__hamburger:hover .nav-premium__hamburger-line:nth-child(1) {
        width: 14px;
        transform: translateY(-6px) translateX(-2px);
    }

    .nav-premium__hamburger:hover .nav-premium__hamburger-line:nth-child(3) {
        width: 14px;
        transform: translateY(6px) translateX(2px);
    }

    .nav-premium__mobile-link-text {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   10. PREMIUM FOOTER
   ========================================================================== */

.footer-premium {
    position: relative;
    background: var(--color-void-black);
    margin-top: auto;
}

.footer-premium__border {
    display: flex;
    height: 3px;
}

.footer-premium__border-line {
    flex: 1;
}

.footer-premium__border-line--western {
    background: linear-gradient(
        90deg,
        transparent,
        var(--color-western),
        var(--color-western)
    );
}

.footer-premium__border-line--vedic {
    background: var(--color-vedic);
}

.footer-premium__border-line--saju {
    background: linear-gradient(
        90deg,
        var(--color-saju),
        var(--color-saju),
        transparent
    );
}

.footer-premium__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
}

/* Top Section */
.footer-premium__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgb(255 255 255 / 6%);
    margin-bottom: 3rem;
}

.footer-premium__brand {
    max-width: 320px;
}

.footer-premium__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: opacity var(--duration-fast) var(--ease-out);
}

.footer-premium__logo:hover {
    opacity: 0.85;
}

.footer-premium__logo-text {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--color-text-primary);
    letter-spacing: var(--tracking-wide);
}

.footer-premium__tagline {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-style: italic;
    color: var(--color-text-secondary);
    margin-bottom: 0.75rem;
}

.footer-premium__description {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
}

/* Social Links */
.footer-premium__social {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.footer-premium__social-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.footer-premium__social-links {
    display: flex;
    gap: 0.75rem;
}

.footer-premium__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgb(255 255 255 / 4%);
    border: 1px solid rgb(255 255 255 / 8%);
    color: var(--color-text-secondary);
    transition: all var(--duration-fast) var(--ease-out);
}

.footer-premium__social-link:hover {
    background: rgb(255 255 255 / 10%);
    border-color: rgb(255 255 255 / 20%);
    color: var(--color-text-primary);
    transform: translateY(-2px);
}

/* Navigation Grid */
.footer-premium__nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.footer-premium__column-title {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-primary);
    letter-spacing: var(--tracking-wide);
    margin-bottom: 1.25rem;
}

.footer-premium__column-number {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--color-text-muted);
}

.footer-premium__column-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-premium__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

.footer-premium__link:hover {
    color: var(--color-text-primary);
}

.footer-premium__link--highlight {
    color: var(--color-vedic);
}

.footer-premium__link--highlight:hover {
    color: #d4c76e;
}

.footer-premium__link-badge {
    display: inline-flex;
    padding: 2px 5px;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--color-void-black);
    background: var(--color-vedic);
    border-radius: 3px;
}

/* Systems Column */
.footer-premium__column--systems {
    padding-left: 1rem;
    border-left: 1px solid rgb(255 255 255 / 6%);
}

.footer-premium__systems {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-premium__system {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-premium__system-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.footer-premium__system-dot--western {
    background: var(--color-western);
    box-shadow: 0 0 10px rgb(59 130 246 / 40%);
}

.footer-premium__system-dot--vedic {
    background: var(--color-vedic);
    box-shadow: 0 0 10px rgb(245 158 11 / 40%);
}

.footer-premium__system-dot--saju {
    background: var(--color-saju);
    box-shadow: 0 0 10px rgb(20 184 166 / 40%);
}

.footer-premium__system-name {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-primary);
    min-width: 60px;
}

.footer-premium__system-desc {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-text-muted);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
}

/* Bottom Bar */
.footer-premium__bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgb(255 255 255 / 6%);
}

.footer-premium__bottom-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-premium__copyright {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.footer-premium__bottom-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-premium__tech,
.footer-premium__languages {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-text-muted);
    letter-spacing: var(--tracking-wider);
}

.footer-premium__separator {
    color: var(--color-text-muted);
    opacity: 0.3;
}

/* Footer Mobile Responsive */
@media (width <= 900px) {
    .footer-premium__nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-premium__column--systems {
        border-left: none;
        padding-left: 0;
        grid-column: span 2;
        padding-top: 1.5rem;
        border-top: 1px solid rgb(255 255 255 / 6%);
    }

    .footer-premium__systems {
        flex-direction: row;
        gap: 2rem;
    }
}

@media (width <= 600px) {
    .footer-premium__container {
        padding: 3rem 1rem 2rem;
    }

    .footer-premium__top {
        flex-direction: column;
        align-items: stretch;
        gap: 2rem;
    }

    .footer-premium__social {
        align-items: flex-start;
    }

    .footer-premium__nav {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .footer-premium__column--systems {
        grid-column: span 2;
    }

    .footer-premium__systems {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .footer-premium__bottom-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 0 1rem;
    }

    .footer-premium__bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ==========================================================================
   FEEDBACK FAB (Floating Action Button)
   Tally form integration for user feedback
   ========================================================================== */

.feedback-fab {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-3);
}

.feedback-fab__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-starlight-white);
    color: var(--color-void-black);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all var(--duration-normal) var(--ease-in-out);
}

.feedback-fab__button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.feedback-fab__button:active {
    transform: scale(0.95);
}

.feedback-fab__icon {
    width: 24px;
    height: 24px;
}

/* Expanded state with label */
.feedback-fab__label {
    position: absolute;
    right: 100%;
    margin-right: var(--space-3);
    padding: var(--space-2) var(--space-4);
    background: var(--color-surface-card);
    border: 1px solid var(--alpha-white-10);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--color-text-primary);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--duration-normal) var(--ease-in-out);
    pointer-events: none;
}

.feedback-fab__button:hover + .feedback-fab__label,
.feedback-fab:hover .feedback-fab__label {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .feedback-fab {
        bottom: var(--space-4);
        right: var(--space-4);
    }

    .feedback-fab__button {
        width: 48px;
        height: 48px;
    }

    .feedback-fab__icon {
        width: 20px;
        height: 20px;
    }

    .feedback-fab__label {
        display: none;
    }
}

/* ==========================================================================
   ACCESSIBILITY - Skip to Content Link
   ========================================================================== */

.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    padding: var(--space-3) var(--space-6);
    background: var(--color-starlight-white);
    color: var(--color-void-black);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    text-decoration: none;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: top var(--duration-fast) var(--ease-out);
}

.skip-link:focus {
    top: var(--space-4);
    outline: 2px solid var(--color-western);
    outline-offset: 2px;
}
