/* 
 * Lingo Theme - Elite Foundation v3
 * High-Fidelity Restoration • No-Framework • Pixel-Perfect
 */

:root {
    /* Design Tokens from tailwind.config.ts */
    --bg: #0F0F0F;
    --surface: #1A1A1A;
    --primary: #783AFB;
    --secondary: #FF5B49;
    --text-primary: #FFFFFF;
    --text-secondary: #E0E0E0;

    --brand-purple: #793cfb;
    --brand-orange: #ff8a00;
    --bg-light: #f6f5f8;
    --bg-dark: #150f23;
    --surface-dark: #1a1528;

    --gradient-brand: linear-gradient(135deg, #FF5B49 0%, #783AFB 100%);
    --logo-gradient: linear-gradient(135deg, #793cfb 0%, #ff8a00 100%);
    --progress-gradient: linear-gradient(to right, #793cfb, #ff8a00);
    --hero-glow: radial-gradient(circle at 50% 0%, rgba(120, 58, 251, 0.15) 0%, rgba(15, 15, 15, 0) 70%);

    /* Tailwind Spacing Scale Mapping */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-7: 1.75rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-14: 3.5rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;
    --space-40: 10rem;
    --space-48: 12rem;
}

/* --- Base Reset --- */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

body {
    background-color: #0F0F0F;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

body:not(.dark) {
    background-color: #ffffff;
    color: #334155;
}

body.dark,
.home body {
    background-color: #0F0F0F;
}

/* Base Link Resets */
header a,
header a:hover {
    text-decoration: none !important;
}

.no-underline {
    text-decoration: none !important;
}

/* Global Content Safety */
img,
video,
iframe,
pre,
code,
table {
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
}

pre,
code {
    overflow-x: auto;
}

table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.site-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    overflow-x: hidden;
}


/* --- Layout System --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
}

.max-w-7xl {
    max-width: 75rem;
}

.max-w-6xl {
    max-width: 62rem;
}

.max-w-5xl {
    max-width: 64rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.inset-x-0 {
    left: 0;
    right: 0;
}

.top-0 {
    top: 0;
}

.bottom-0 {
    bottom: 0;
}

.left-0 {
    left: 0;
}

.right-0 {
    right: 0;
}

.z-0 {
    z-index: 0;
}

.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}

.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.inline-block {
    display: inline-block;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.overflow-hidden {
    overflow: hidden;
}

.w-full {
    width: 100%;
}

.h-auto {
    height: auto;
}

.h-full {
    height: 100%;
}

.object-cover {
    object-fit: cover;
}

.text-white {
    color: #FFFFFF !important;
}

/* Padding & Margin Polyfills */
.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-20 {
    margin-bottom: 5rem;
}

.pt-44 {
    padding-top: 11rem;
}

.pt-16 {
    padding-top: 4rem;
}

.pb-32 {
    padding-bottom: 8rem;
}

.inline-flex {
    display: inline-flex;
}

.shrink-0 {
    flex-shrink: 0;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gap-2 {
    gap: var(--space-2);
}

.gap-3 {
    gap: var(--space-3);
}

.gap-4 {
    gap: var(--space-4);
}

.gap-6 {
    gap: var(--space-6);
}

.gap-8 {
    gap: var(--space-8);
}

.gap-12 {
    gap: var(--space-12);
}

.gap-20 {
    gap: var(--space-20);
}

.gap-x-6 {
    column-gap: var(--space-6);
}

@media (min-width: 640px) {
    .sm\:flex-row {
        flex-direction: row;
    }

    .sm\:space-y-0>*+* {
        margin-top: 0;
    }

    .sm\:space-x-6>*+* {
        margin-left: var(--space-6);
    }

    .sm\:w-auto {
        width: auto;
    }
}

@media (min-width: 768px) {
    .md\:flex {
        display: flex;
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:items-end {
        align-items: flex-end;
    }

    .md\:text-left {
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lg\:grid-cols-6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .lg\:px-28 {
        padding-left: 7rem;
        padding-right: 7rem;
    }
}

/* --- Spacing --- */
.p-2 {
    padding: var(--space-2);
}

.p-3 {
    padding: var(--space-3);
}

.p-4 {
    padding: var(--space-4);
}

.p-5 {
    padding: var(--space-5);
}

.p-10 {
    padding: var(--space-10);
}

.p-12 {
    padding: var(--space-12);
}

.px-6 {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
}

.px-10 {
    padding-left: var(--space-10);
    padding-right: var(--space-10);
}

.py-2 {
    padding-top: var(--space-2);
    padding-bottom: var(--space-2);
}

.py-3 {
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
}

.py-4 {
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
}

.py-6 {
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
}

.py-24 {
    padding-top: var(--space-24);
    padding-bottom: var(--space-24);
}

.py-32 {
    padding-top: var(--space-32);
    padding-bottom: var(--space-32);
}

.pt-16 {
    padding-top: var(--space-16);
}

.pt-20 {
    padding-top: var(--space-20);
}

.pt-24 {
    padding-top: var(--space-24);
}

.pt-32 {
    padding-top: var(--space-32);
}

.pt-40 {
    padding-top: var(--space-40);
}

.pb-20 {
    padding-bottom: var(--space-20);
}

.pb-32 {
    padding-bottom: var(--space-32);
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-6 {
    margin-bottom: var(--space-6);
}

.mb-8 {
    margin-bottom: var(--space-8);
}

.mb-7 {
    margin-bottom: var(--space-7);
}

.mb-10 {
    margin-bottom: var(--space-10);
}

.mb-12 {
    margin-bottom: var(--space-12);
}

.mb-16 {
    margin-bottom: var(--space-16);
}

.mb-20 {
    margin-bottom: var(--space-20);
}

.ml-2 {
    margin-left: var(--space-2);
}

.ml-3 {
    margin-left: var(--space-3);
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* --- Space System (Lobotomized Owl) --- */
.space-x-2>*+* {
    margin-left: var(--space-2);
}

.space-x-3>*+* {
    margin-left: var(--space-3);
}

.space-x-8>*+* {
    margin-left: var(--space-8);
}

.space-x-6>*+* {
    margin-left: var(--space-6);
}

.space-y-4>*+* {
    margin-top: var(--space-4);
}

.space-y-6>*+* {
    margin-top: var(--space-6);
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
    font-family: -apple-system, Nunito, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1A1A1A;
    /* Default dark color for white pages */
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
}

.dark h1,
.dark h2,
.dark h3,
.dark h4,
.dark h5,
.dark h6,
.dark .font-heading {
    color: var(--text-primary);
}

.text-center {
    text-align: center;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.3rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 2.6rem;
}

@media (min-width: 768px) {
    .md\:text-xl {
        font-size: 1.25rem;
    }

    .md\:text-4xl {
        font-size: 2.2rem;
    }

    .md\:text-5xl {
        font-size: 2.6rem;
    }

    .md\:text-6xl {
        font-size: 2.8rem;
    }

    .md\:text-7xl {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .lg\:text-8xl {
        font-size: 3.2rem;
    }
}

.font-medium {
    font-weight: 500;
}

.font-bold {
    font-weight: 700;
}

.font-extrabold {
    font-weight: 800;
}

.font-black {
    font-weight: 900;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.tracking-tighter {
    letter-spacing: -0.02em;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.tracking-\[0\.2em\] {
    letter-spacing: 0.2em;
}

.tracking-\[0\.3em\] {
    letter-spacing: 0.3em;
}

.tracking-\[0\.4em\] {
    letter-spacing: 0.4em;
}

.text-white {
    color: #fff;
}

.text-white\/40 {
    color: rgba(255, 255, 255, 0.4);
}

.text-white\/80 {
    color: rgba(255, 255, 255, 0.8);
}

.text-white\/90 {
    color: rgba(255, 255, 255, 0.9);
}

.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

.text-text-secondary {
    color: var(--text-secondary);
}

.text-transparent {
    color: transparent;
}

.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.bg-gradient-brand {
    background: var(--gradient-brand);
}

.logo-svg-text {
    height: 1.5rem;
    width: auto;
    vertical-align: bottom;
    margin-bottom: -0.4rem;
    padding-left: 0.02rem;
}


/* --- UI Elements --- */
.glass-panel {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
    .glass-panel.p-10 {
        padding: 1.5rem !important;
    }

    .glass-panel.p-14 {
        padding: 2rem !important;
    }
}

.rounded-sm {
    border-radius: 0.125rem;
}

.rounded-lg {
    border-radius: 0.5rem;
    margin-right: 0.2rem;
}


.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-3xl {
    border-radius: 1.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.rounded-\[2\.5rem\] {
    border-radius: 2.5rem;
}

.rounded-\[2\.4rem\] {
    border-radius: 2.4rem;
}

.rounded-\[2rem\] {
    border-radius: 2rem;
}

.bg-white\/5 {
    background-color: rgba(255, 255, 255, 0.05);
}

.border-white\/5 {
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.border-white\/10 {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.border-y {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bg-black {
    background-color: #000;
}

.site-footer {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.bg-\[\#050505\] {
    background-color: #050505;
}

.bg-\[\#0F0F0F\] {
    background-color: #0f0f0f;
}

.bg-\[\#0A0A0A\] {
    background-color: #0a0a0a;
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.shadow-primary\/30 {
    box-shadow: 0 10px 30px rgba(120, 58, 251, 0.3);
}

.opacity-5 {
    opacity: 0.05;
}

.opacity-10 {
    opacity: 0.1;
}

.opacity-15 {
    opacity: 0.15;
}

.opacity-20 {
    opacity: 0.2;
}

.opacity-40 {
    opacity: 0.4;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-60 {
    opacity: 0.6;
}

.opacity-80 {
    opacity: 0.8;
}

.opacity-90 {
    opacity: 0.9;
}

.overflow-hidden {
    overflow: hidden;
}

.min-h-90vh {
    min-height: 90vh;
}

.w-full {
    width: 100%;
}

.h-auto {
    height: auto;
}

.w-10 {
    width: 2.5rem;
}

.h-10 {
    height: 2.5rem;
}

.w-12 {
    width: 3rem;
}

.h-12 {
    height: 3rem;
}

.w-16 {
    width: 4rem;
}

.h-16 {
    height: 4rem;
}

.w-20 {
    width: 5rem;
}

.h-20 {
    height: 5rem;
}

/* Restoration of Hero Background Canvas */
.hero-canvas-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
    display: block !important;
}

/* Polyfill for Tailwind-style classes in front-page.php */
.bg-\[\#0F0F0F\] {
    background-color: #0F0F0F !important;
}

.bg-\[\#0A0A0A\] {
    background-color: #0A0A0A !important;
}

.bg-\[\#050505\] {
    background-color: #050505 !important;
}

.bg-\[\#111111\] {
    background-color: #111111 !important;
}

/* Dedicated Hero Typography */
.text-hero-h1 {
    font-size: 60px !important;
    line-height: 0.95 !important;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.text-hero-h1-sub {
    font-size: 40px !important;
    /* Slightly smaller than previous attempt for better balance */
    line-height: 1.2 !important;
    display: inline-block;
}

.text-hero-hook {
    font-size: 17px !important;
    line-height: 1.6 !important;
}

@media (max-width: 768px) {
    .text-hero-h1-sub {
        font-size: 32px !important;
    }
}

/* Animations matching original specs */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes ping {

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.animate-ping {
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pulse {
    50% {
        opacity: .5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.duration-1000 {
    transition-duration: 1000ms;
}

.duration-700 {
    transition-duration: 700ms;
}

.duration-500 {
    transition-duration: 500ms;
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

.hover\:scale-110:hover {
    transform: scale(1.1);
}

.hover\:-translate-y-2:hover {
    transform: translateY(-0.5rem);
}

/* Glow Utilities */
.blur-\[120px\] {
    filter: blur(120px);
}

.blur-\[100px\] {
    filter: blur(100px);
}

.blur-3xl {
    filter: blur(64px);
}

.bg-primary\/20 {
    background-color: rgba(120, 58, 251, 0.2);
}

.bg-secondary\/10 {
    background-color: rgba(255, 91, 73, 0.1);
}

/* Custom Buttons matching Hero.tsx */
.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    font-weight: 700;
    transition: all 0.5s ease;
    cursor: pointer;
    text-decoration: none;
    border: none;
    height: 3.5rem;
    padding: 0 2rem;
}

@media (max-width: 640px) {
    #home .btn-premium {
        width: 100%;
    }
}

.btn-primary-gradient {
    background: var(--gradient-brand);
    color: white;
}

.btn-outline-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

/* Scroll effect for Nav */
header.scrolled {
    background-color: rgba(15, 15, 15, 0.8) !important;
    backdrop-filter: blur(10px);
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Footer Menu Fixes - Nuclear Response */
.footer-links {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.footer-links li {
    display: block !important;
    white-space: normal !important;
}

.footer-links li a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem 0.75rem !important;
    display: inline-block !important;
    white-space: normal !important;
    font-size: 0.75rem !important;
}

.footer-links li a:hover {
    color: #fff;
}

.pt-24 {
    padding-top: 6rem;
}

/* --- Kadence/WordPress Single Post/Dark Page Overrides --- */

/* Fix white content area background - Only in Dark Mode */
.dark .content-container,
.dark .site-container,
.dark .entry-hero-container-inner,
.dark .entry-content-wrap {
    background-color: var(--bg) !important;
}

/* Fix title visibility and "White Box" issue */
.dark .entry-header {
    background: transparent !important;
    padding-top: 4rem !important;
}

.dark .entry-title {
    color: white !important;
}

/* Ensure body text is readable */
.dark .entry-content {
    color: var(--text-secondary) !important;
}

/* Fix header overlap on single posts */
.dark.single-post #primary {
    padding-top: 8rem !important;
}

/* Featured images and background overlays */
.dark .entry-hero {
    background-color: var(--bg) !important;
}

.dark .entry-hero .entry-hero-container-inner {
    padding-top: 8rem !important;
}

/* Fix overlay issues on single post layouts */
.dark .content-area,
.dark #main {
    background-color: var(--bg) !important;
}

/* --- archive & Category Specific Styles --- */
.archive h2.entry-title a,
.blog h2.entry-title a {
    color: #1DA1F2 !important;
    /* Elite Blue for links */
    transition: color 0.3s ease;
}

.archive h2.entry-title a:hover,
.blog h2.entry-title a:hover {
    color: var(--primary) !important;
}

/* Clear Hero Overlays on Non-Dark Pages */
:not(.dark) .entry-hero,
:not(.dark) .entry-header {
    background: transparent !important;
    color: #1A1A1A !important;
}

:not(.dark) .entry-hero::before,
:not(.dark) .entry-hero::after {
    display: none !important;
}

/* Metadata and other text */
.entry-meta,
.footer-links-container {
    color: #626467 !important;
    display: flex;
    justify-content: center !important;
}

/* Global Footer Centering & Safety */
.site-footer .container {
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    flex-direction: column !important;
    max-width: 100% !important;
    overflow: hidden;
}

@media (min-width: 1200px) {
    .site-footer .container {
        max-width: 1200px !important;
    }
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: var(--space-8);
    right: var(--space-8);
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    background: var(--gradient-brand);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px -5px rgba(120, 58, 251, 0.4);
}

.back-to-top .material-symbols-outlined {
    font-size: 2rem;
    line-height: 1;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 35px -10px rgba(120, 58, 251, 0.6);
    filter: brightness(1.1);
}

.back-to-top:active {
    transform: translateY(0) scale(0.95);
}

@media (max-width: 768px) {
    .back-to-top {
        display: none !important;
    }
}

/* --- Elite Table of Contents Widget --- */
.elite-toc-container {
    position: fixed;
    top: 20%;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
}

.toc-tab {
    background: var(--gradient-brand);
    color: white;
    border: none;
    padding: 1.2rem 0.6rem;
    border-radius: 0 12px 12px 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toc-tab:hover {
    padding-left: 0.8rem;
    box-shadow: 6px 0 20px rgba(120, 58, 251, 0.3);
}

.toc-tab .material-symbols-outlined {
    font-size: 1.4rem;
}

.toc-tab-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: capitalize;
}

.toc-panel {
    position: fixed;
    top: 0;
    left: -350px;
    width: 320px;
    height: 100vh;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s, opacity 0.6s;
    display: flex;
    flex-direction: column;
    z-index: 10000;
    /* Extremely high to clear EVERYTHING */
    visibility: hidden;
    opacity: 0;
}

.toc-active .toc-panel {
    transform: translateX(350px);
    visibility: visible;
    opacity: 1;
}

.toc-active .toc-tab {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-20px);
}

.toc-header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.toc-header h3 {
    font-size: 1.15rem;
    margin: 0;
    color: white;
    font-weight: 700;
}

.toc-close {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.toc-close:hover {
    background: var(--secondary);
    transform: rotate(90deg);
}

.toc-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.toc-item {
    padding: 1.2rem 2rem;
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.90rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.toc-item:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.toc-item:hover {
    background: rgba(120, 58, 251, 0.1);
    color: white;
    border-left-color: var(--primary);
    padding-left: 2.25rem;
}

.toc-item.active {
    color: var(--primary);
    font-weight: 700;
}

@media (max-width: 768px) {
    .elite-toc-container {
        top: auto;
        bottom: 5.5rem;
        /* Above social bar */
        left: 0;
        transform: none;
        width: auto;
        z-index: 9999;
    }

    .toc-tab {
        border-radius: 0 12px 12px 0;
        flex-direction: column;
        padding: 1.2rem 0.6rem;
        gap: 0.8rem;
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2);
    }

    .toc-panel {
        width: 320px;
        height: 100vh;
        left: -320px;
        top: 0;
        bottom: 0;
        transform: none;
        border-radius: 0;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-top: none;
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s, opacity 0.6s;
        visibility: hidden;
        opacity: 0;
    }

    .toc-active .toc-panel {
        transform: translateX(320px);
        visibility: visible;
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .toc-panel {
        width: 100%;
    }
}

/* --- Elite Social Share Bar --- */
.elite-social-container {
    position: fixed;
    top: 60%;
    left: 0;
    z-index: 1000;
    pointer-events: none;
}

.social-inner {
    display: flex;
    flex-direction: column;
    pointer-events: auto;
}

.social-btn {
    width: 2.8rem;
    height: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border-radius: 0;
}

.social-btn:first-child {
    border-top-right-radius: 8px;
}

.social-btn:last-child {
    border-bottom-right-radius: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.social-btn svg {
    width: 1.2rem;
    height: 1.2rem;
    transition: transform 0.3s;
}

@media (min-width: 769px) {
    .social-btn:hover {
        width: 3.5rem;
        color: white;
    }

    .social-btn.facebook:hover {
        background: #1877F2;
    }

    .social-btn.x-twitter:hover {
        background: #000000;
    }

    .social-btn.linkedin:hover {
        background: #0A66C2;
    }

    .social-btn.pinterest:hover {
        background: #BD081C;
    }
}

/* Mobile Sticky Footer Transformation */
@media (max-width: 768px) {
    .elite-social-container {
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(15, 15, 15, 0.95);
        backdrop-filter: blur(15px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0.5rem 0;
        pointer-events: auto;
    }

    .social-inner {
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .social-btn {
        background: transparent;
        backdrop-filter: none;
        width: auto;
        height: 3rem;
        flex: 1;
        border: none;
        border-radius: 0 !important;
    }

    .social-btn:hover {
        width: auto;
        background: transparent;
        transform: translateY(-3px);
    }

    .social-btn.facebook:hover {
        color: #1877F2;
    }

    .social-btn.x-twitter:hover {
        color: #ffffff;
    }

    .social-btn.linkedin:hover {
        color: #0A66C2;
    }

    .social-btn.pinterest:hover {
        color: #BD081C;
    }

    /* Adjust padding for other components if needed */
    body {
        padding-bottom: 4rem;
    }
}

/* --- Image Share Icons --- */
.img-share-wrapper {
    position: relative;
    display: inline-block;
    line-height: 0;
    width: 100%;
    margin-bottom: 1.5rem;
}

.img-share-wrapper img {
    width: 100%;
    height: auto;
    margin-bottom: 0 !important;
}

.img-share-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 10;
    pointer-events: none;
    transform: translateY(10px);
}

.img-share-wrapper.is-in-view .img-share-overlay {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .img-share-overlay {
        display: none !important;
    }
}

.img-share-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #c04867;
    /* Solid surface color for high visibility */
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.img-share-btn svg {
    width: 16px;
    height: 16px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.img-share-btn:hover {
    transform: scale(1.15) translateY(-2px);
    border-color: var(--primary);
    background: #252525;
}

.img-share-btn.pin:hover {
    color: #BD081C;
    border-color: #BD081C;
}

.img-share-btn.fb:hover {
    color: #1877F2;
    border-color: #1877F2;
}

.img-share-btn.x:hover {
    color: #ffffff;
    border-color: #ffffff;
}

.img-share-btn.li:hover {
    color: #0A66C2;
    border-color: #0A66C2;
}

/* --- Elite Header & Navigation --- */
#main-nav.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 1.5rem 0;
    background: #1a1a1a !important;
    /* Default isolated background */
    border-bottom: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Ensure toggle stays on top of the overlay */
body.nav-active #main-nav.site-header {
    z-index: 210 !important;
    background: transparent !important;
    border-bottom: none !important;
}

.site-header.scrolled {
    background: rgba(15, 15, 15, 0.9) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Header Background Fix - Home Page (Overrides isolated ID) */
.home #main-nav:not(.scrolled) {
    background: transparent !important;
    border-bottom: none !important;
}

/* 3D Transform Utilities */
.perspective-1000 {
    perspective: 1000px;
}

.rotate-y-2 {
    transform: rotateY(2deg);
}

.group:hover .group-hover\:rotate-y-2 {
    transform: rotateY(2deg);
}

.group:hover .group-hover\:scale-\[1\.01\] {
    transform: scale(1.01);
}

#main-nav:not(.dark):not(.scrolled) {
    background: #0f0f0f !important;
}

.header-inner {
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .header-inner {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .header-inner {
        padding-left: 7rem;
        padding-right: 7rem;
    }
}

/* Logo Styles */
.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none !important;
    transition: opacity 0.3s ease;
}

.site-logo:hover {
    opacity: 0.9;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}

.site-logo:hover .logo-icon {
    transform: rotate(12deg);
}

.logo-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    display: flex;
    align-items: center;
}

/* Desktop Navigation - Elite Reset */
.main-navigation {
    display: none;
    align-items: center;
}

.nav-menu-elite {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 2rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

@media (min-width: 768px) {
    .main-navigation {
        display: flex;
    }
}

.nav-link,
.main-navigation a,
.nav-menu-elite a {
    color: #FFFFFF !important;
    font-size: 14px !important;
    font-weight: 500;
    text-decoration: none !important;
    transition: color 0.3s ease;
    white-space: normal !important;
}

.nav-link:hover,
.main-navigation a:hover,
.nav-menu-elite a:hover {
    color: #d63638 !important;
    text-decoration: none !important;
}

/* Header CTA */
.header-cta {
    display: none;
}

@media (min-width: 768px) {
    .header-cta {
        display: block;
    }
}

.btn-elite-header {
    background: var(--gradient-brand);
    color: #FFFFFF !important;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(120, 58, 251, 0.3);
    transition: all 0.3s ease;
    text-decoration: none !important;
    display: inline-block;
}

.btn-elite-header:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(120, 58, 251, 0.4);
}

/* Mobile Toggle */
.mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    color: #FFFFFF;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    z-index: 201;
}

@media (min-width: 768px) {
    .mobile-nav-toggle {
        display: none;
    }
}

.mobile-nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu Overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: #0F0F0F !important;
    /* Force opaque dark background */
    z-index: 200;
    /* Higher than toggle to sit on top if needed, but below toggle if used as a close btn */
    padding: 8rem 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transform: translateX(100%);
    /* Slide from right is more modern */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
    overflow-y: auto;
}

body.nav-active .mobile-overlay {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.mobile-nav-menu-elite {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.mobile-nav-link,
.mobile-nav-links a,
.mobile-nav-menu-elite a {
    font-size: 16px !important;
    font-weight: 600;
    color: #FFFFFF !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
    display: block !important;
    padding: 0.5rem 0;
    white-space: normal !important;
}

.mobile-nav-link:hover,
.mobile-nav-links a:hover,
.mobile-nav-menu-elite a:hover {
    color: #d63638 !important;
}

.mobile-nav-cta {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}

/* Landscape Mode Optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .mobile-overlay {
        padding-top: 4rem;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
    }

    .mobile-nav-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
        width: 100%;
    }

    .mobile-nav-cta {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }
}

/* Scroll Progress Bar Consolidation */
.scroll-indicator-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-brand);
    width: 0%;
    z-index: 101;
    transition: width 0.1s linear;
}

/* Micro-Commitment Cards (Hero Overlays) */
.micro-card {
    position: absolute;
    z-index: 30;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.25rem;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    animation: micro-float 6s ease-in-out infinite;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.micro-card:hover {
    transform: scale(1.05) translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.micro-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.icon-glow-green {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
}

.icon-glow-purple {
    background: rgba(120, 58, 251, 0.15);
    color: #a78bfa;
    box-shadow: 0 0 15px rgba(120, 58, 251, 0.3);
}

.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
    /* Prevent horizontal scroll without breaking sticky */
}

.micro-card-content {
    display: flex;
    flex-direction: column;
}

.micro-card-label {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.micro-card-value {
    font-size: 1.25rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
}

@keyframes micro-float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-15px) translateX(5px);
    }
}

/* Specific Positions */
.micro-card-left {
    top: 10%;
    bottom: auto;
    left: 5%;
    animation-delay: 0s;
}

.micro-card-right {
    top: 10%;
    bottom: auto;
    left: auto;
    right: 5%;
    animation-delay: -3s;
}

.landing-icon-glow {
    text-shadow: 0 0 10px rgba(120, 58, 251, 0.5);
    filter: drop-shadow(0 0 5px rgba(120, 58, 251, 0.3));
}

@media (max-width: 1024px) {
    .micro-card {
        display: none;
        /* Hide on small screens to prevent overlap */
    }
}

/* --- CTA Eye-Leader Macro Enhancement --- */
.btn-eye-leader {
    position: relative;
    overflow: hidden;
    animation: cta-bounce-subtle 4s infinite ease-in-out;
}

.btn-eye-leader::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transform: skewX(-25deg);
    animation: cta-shimmer 6s infinite ease-in-out;
}

@keyframes cta-shimmer {
    0% {
        left: -100%;
    }

    20% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

@keyframes cta-bounce-subtle {

    0%,
    100% {
        transform: translateY(0);
    }

    10%,
    20% {
        transform: translateY(-3px);
    }

    15% {
        transform: translateY(0);
    }
}