/* ============================================
   TRANSMISSION CRYPTO™ V2 - MAIN STYLESHEET
   Best Practices UI 2026 - Premium Design
   ============================================ */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    /* Colors */
    --color-obsidian: #050505;
    --color-charcoal: #0A0A0A;
    --color-charcoal-light: #0F0F0F;
    --color-surface-1: rgba(255, 255, 255, 0.02);
    --color-surface-2: rgba(255, 255, 255, 0.04);
    --color-surface-3: rgba(255, 255, 255, 0.06);
    --color-gold-400: #D4AF37;
    --color-gold-300: #E5C158;
    --color-gold-500: #B8962F;
    --color-gold-900: #2A230B;
    
    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-default: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.20);
    --border-gold: rgba(212, 175, 55, 0.30);
    --border-gold-strong: rgba(212, 175, 55, 0.50);
    
    /* Text colors with WCAG AA compliance */
    --text-primary: #FFFFFF;
    --text-secondary: #B8B8B8;
    --text-tertiary: #8A8A8A;
    --text-muted: #6E6E6E;
    
    /* 8px Spacing System */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 1rem;      /* 16px */
    --space-4: 1.5rem;    /* 24px */
    --space-5: 2rem;      /* 32px */
    --space-6: 2.5rem;    /* 40px */
    --space-7: 3rem;      /* 48px */
    --space-8: 4rem;      /* 64px */
    --space-9: 5rem;      /* 80px */
    --space-10: 6rem;     /* 96px */
    --space-11: 8rem;     /* 128px */
    
    /* Typography - Fluid scales */
    --font-size-xs: clamp(0.625rem, 0.6rem + 0.1vw, 0.75rem);
    --font-size-sm: clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem);
    --font-size-base: clamp(0.875rem, 0.8rem + 0.3vw, 1rem);
    --font-size-lg: clamp(1rem, 0.9rem + 0.4vw, 1.125rem);
    --font-size-xl: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
    --font-size-2xl: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    --font-size-3xl: clamp(2rem, 1.5rem + 1.5vw, 2.5rem);
    --font-size-4xl: clamp(2.5rem, 1.8rem + 2.5vw, 3.5rem);
    --font-size-5xl: clamp(3rem, 2rem + 3.5vw, 4.5rem);
    --font-size-6xl: clamp(3.5rem, 2.2rem + 4.5vw, 6rem);
    
    /* Line Heights */
    --leading-tight: 1.1;
    --leading-snug: 1.3;
    --leading-normal: 1.5;
    --leading-relaxed: 1.7;
    --leading-loose: 2;
    
    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: 150ms;
    --transition-base: 300ms;
    --transition-slow: 500ms;
    --transition-slower: 700ms;
    
    /* Touch Targets */
    --touch-target-min: 44px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 0 40px rgba(212, 175, 55, 0.15);
    --shadow-gold-strong: 0 0 60px rgba(212, 175, 55, 0.25);
}

/* ===== BASE STYLES ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    background-color: var(--color-obsidian);
    color: var(--text-secondary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: var(--font-size-base);
    line-height: var(--leading-relaxed);
    letter-spacing: 0.01em;
}

/* ===== TYPOGRAPHY HIERARCHY ===== */
h1, .h1 {
    font-size: var(--font-size-6xl);
    line-height: var(--leading-tight);
    letter-spacing: -0.02em;
    text-wrap: balance;
    color: var(--text-primary);
}

h2, .h2 {
    font-size: var(--font-size-4xl);
    line-height: var(--leading-tight);
    letter-spacing: -0.01em;
    text-wrap: balance;
    color: var(--text-primary);
}

h3, .h3 {
    font-size: var(--font-size-2xl);
    line-height: var(--leading-snug);
    text-wrap: balance;
    color: var(--text-primary);
}

h4, .h4 {
    font-size: var(--font-size-xl);
    line-height: var(--leading-snug);
    color: var(--text-primary);
}

p {
    max-width: 65ch;
    text-wrap: pretty;
}

.text-center p,
p.text-center {
    max-width: 75ch;
    margin-inline: auto;
}

.text-xs {
    font-size: var(--font-size-xs);
    line-height: var(--leading-normal);
}

.text-sm {
    font-size: var(--font-size-sm);
    line-height: var(--leading-relaxed);
}

/* ===== IMPROVED CONTRAST ===== */
.text-gray-300 {
    color: var(--text-secondary) !important;
}

.text-gray-400 {
    color: #A3A3A3 !important;
}

.text-gray-500 {
    color: var(--text-tertiary) !important;
}

.text-gray-600 {
    color: var(--text-muted) !important;
}

/* ===== SECTION BACKGROUNDS - ALTERNANCE ===== */
.bg-obsidian {
    background-color: var(--color-obsidian);
}

.bg-charcoal {
    background-color: var(--color-charcoal);
}

.bg-charcoal-light {
    background-color: var(--color-charcoal-light);
}

/* Section with subtle gradient overlay */
.section-gradient-dark {
    background: linear-gradient(180deg, var(--color-obsidian) 0%, var(--color-charcoal) 100%);
}

.section-gradient-gold {
    background: 
        radial-gradient(ellipse at 50% 100%, rgba(212, 175, 55, 0.05) 0%, transparent 60%),
        var(--color-obsidian);
}

/* ===== DECORATIVE DIVIDERS ===== */
.section-divider {
    position: relative;
    height: 1px;
    width: 100%;
    background: var(--border-subtle);
    overflow: visible;
}

.section-divider::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold-400), transparent);
}

.section-divider-gold {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-gold), var(--color-gold-400), var(--border-gold), transparent);
}

.section-divider-fade {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border-default) 20%, var(--border-default) 80%, transparent 100%);
}

/* Diamond divider */
.section-divider-diamond {
    position: relative;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-divider-diamond::before,
.section-divider-diamond::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-default));
}

.section-divider-diamond::after {
    background: linear-gradient(90deg, var(--border-default), transparent);
}

.section-divider-diamond span {
    width: 8px;
    height: 8px;
    background: var(--color-gold-400);
    transform: rotate(45deg);
    margin: 0 16px;
    flex-shrink: 0;
}

/* ===== SECTION LABELS (Numérotés) ===== */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--color-gold-400);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin-bottom: 1.5rem;
}

.section-label-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-gold);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-gold-400);
    background: rgba(212, 175, 55, 0.05);
}

.section-label-line {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, var(--color-gold-400), transparent);
}

/* Full width section header with lines */
.section-header-full {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 64px;
}

.section-header-full .line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}

.section-header-full .label {
    color: var(--color-gold-400);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    white-space: nowrap;
}

/* ===== SKIP LINK (Accessibility) ===== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    background: var(--color-gold-400);
    color: #000;
    font-weight: bold;
    text-decoration: none;
    z-index: 10000;
    transition: top var(--transition-fast) ease;
}

.skip-link:focus {
    top: 1rem;
}

/* ===== FOCUS STATES (Accessibility) ===== */
:focus-visible {
    outline: 2px solid var(--color-gold-400);
    outline-offset: 4px;
    border-radius: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--color-gold-400);
    outline-offset: 4px;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-obsidian);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold-400);
}

/* ===== TOOLTIP ===== */
.tech-term {
    cursor: help;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.5);
    transition: all var(--transition-base) ease;
    position: relative;
    display: inline-block;
}

.tech-term:hover {
    color: var(--color-gold-400);
    border-bottom-color: var(--color-gold-400);
}

#custom-tooltip {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    transition: all var(--transition-fast) ease;
    max-width: 280px;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-gold);
    padding: 14px 16px;
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
}

#custom-tooltip::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--color-gold-400);
    border-radius: 3px 0 0 3px;
}

#custom-tooltip.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ===== NAVIGATION ===== */
#navbar {
    backdrop-filter: blur(0);
    transition: all var(--transition-base) ease;
}

#navbar.scrolled {
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(16px);
}

.nav-link {
    position: relative;
    transition: color var(--transition-fast) ease;
    min-height: var(--touch-target-min);
    display: inline-flex;
    align-items: center;
    padding: var(--space-2) var(--space-1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold-400);
    transition: width var(--transition-base) var(--ease-out-expo);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--color-gold-400);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 110;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all var(--transition-base) ease;
    transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(16px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base) ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu .nav-link {
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .desktop-menu {
        display: none;
    }
}

/* ===== HERO VIDEO ===== */
#top video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    will-change: transform;
}

@media (max-width: 768px) {
    #top video {
        min-width: 100%;
        min-height: 100%;
    }
}

/* ===== HERO CANVAS ===== */
.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0.3;
    pointer-events: none;
}

/* ===== PREMIUM CARDS ===== */
.card-premium {
    position: relative;
    background: var(--color-surface-2);
    border: 1px solid var(--border-default);
    transition: all var(--transition-slow) var(--ease-out-expo);
    overflow: hidden;
}

.card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-gold-400), transparent);
    opacity: 0;
    transition: opacity var(--transition-base) ease;
}

.card-premium:hover {
    border-color: var(--border-gold);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), var(--shadow-gold);
}

.card-premium:hover::before {
    opacity: 1;
}

/* Card with corner accents */
.card-accent {
    position: relative;
    background: var(--color-surface-1);
    border: 1px solid var(--border-default);
    transition: all var(--transition-slow) var(--ease-out-expo);
}

.card-accent::before,
.card-accent::after {
    content: '';
    position: absolute;
    background: var(--color-gold-400);
    opacity: 0;
    transition: opacity var(--transition-base) ease;
}

.card-accent::before {
    top: 0;
    left: 0;
    width: 24px;
    height: 1px;
}

.card-accent::after {
    top: 0;
    left: 0;
    width: 1px;
    height: 24px;
}

.card-accent:hover {
    border-color: var(--border-gold);
    background: var(--color-surface-2);
}

.card-accent:hover::before,
.card-accent:hover::after {
    opacity: 1;
}

/* Gold highlighted card */
.card-gold {
    position: relative;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(212, 175, 55, 0.02) 100%);
    border: 1px solid var(--border-gold);
    transition: all var(--transition-slow) var(--ease-out-expo);
}

.card-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-gold-400), transparent);
}

.card-gold:hover {
    border-color: var(--border-gold-strong);
    box-shadow: var(--shadow-gold-strong);
    transform: translateY(-4px);
}

/* Grid Items */
.grid-item {
    border-right: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
    transition: all var(--transition-slow) ease;
}

.grid-item:hover {
    background-color: var(--color-surface-2);
}

.grid-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold-400);
    transition: width var(--transition-slow) ease;
}

.grid-item:hover::after {
    width: 100%;
}

@media (max-width: 48rem) {
    .grid-item {
        border-right: none;
    }
}

/* ===== PROOF CARDS ===== */
.proof-card {
    position: relative;
    border: 1px solid var(--border-default);
    background: linear-gradient(135deg, var(--color-obsidian) 0%, var(--color-charcoal-light) 100%);
    transition: all var(--transition-base) ease;
}

.proof-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
}

.proof-card-h0 {
    border-left: 3px solid var(--border-strong);
}

.proof-card-h1 {
    border-left: 3px solid var(--color-gold-400);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
}

.proof-card-h1:hover {
    border-color: var(--border-gold-strong);
    box-shadow: var(--shadow-gold);
}

/* ===== SUCCESSION COLUMNS ===== */
.succession-col {
    border: 1px solid var(--border-default);
    transition: all var(--transition-base) ease;
}

.succession-col:hover {
    border-color: var(--border-strong);
}

.succession-col-ts {
    background: var(--color-surface-1);
}

.succession-col-tnc {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
    border-color: var(--border-gold);
}

.succession-col-tnc:hover {
    border-color: var(--border-gold-strong);
    box-shadow: var(--shadow-gold);
}

/* ===== PROCEDURE STEPS ===== */
.procedure-container {
    position: relative;
}

.procedure-container::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, var(--border-gold) 0%, var(--color-gold-400) 50%, var(--border-gold) 100%);
    z-index: 1;
}

@media (min-width: 640px) {
    .procedure-container::before {
        left: 32px;
    }
}

@media (max-width: 639px) {
    .procedure-container::before {
        display: none;
    }
}

/* ===== HASH DISPLAY ===== */
.hash-display {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem 1.25rem;
    border-left: 2px solid var(--border-gold);
    border-radius: 0 4px 4px 0;
    transition: all var(--transition-base) ease;
}

.hash-display:hover {
    background: rgba(0, 0, 0, 0.6);
    border-left-color: var(--color-gold-400);
}

/* ===== BUTTONS ===== */
.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-5);
    background: var(--color-gold-400);
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: var(--font-size-sm);
    border: 1px solid var(--color-gold-400);
    overflow: hidden;
    transition: all var(--transition-base) ease;
    min-height: var(--touch-target-min);
    min-width: var(--touch-target-min);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #000;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base) var(--ease-out-expo);
    z-index: 0;
}

.btn-primary:hover {
    border-color: #fff;
}

.btn-primary:hover::before {
    transform: scaleX(1);
}

.btn-primary span {
    position: relative;
    z-index: 1;
    transition: color var(--transition-base) ease;
}

.btn-primary:hover span {
    color: var(--color-gold-400);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    transition: color var(--transition-fast) ease;
    min-height: var(--touch-target-min);
    min-width: var(--touch-target-min);
}

.btn-secondary:hover {
    color: var(--color-gold-400);
}

.btn-secondary svg {
    transition: transform var(--transition-base) ease;
}

.btn-secondary:hover svg {
    transform: translateX(4px);
}

/* ===== TOUCH TARGETS ===== */
a, button, [role="button"], input, select, textarea {
    min-height: var(--touch-target-min);
}

p a, li a, span a {
    min-height: auto;
    display: inline;
}

/* ===== TEXT GRADIENT ===== */
.text-gradient-gold {
    background: linear-gradient(135deg, #FBF5D5 0%, #D4AF37 50%, #AA8C2C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-gold-400), #F4D03F);
    z-index: 9999;
    transition: width 50ms linear;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUpScale {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse-gold {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(212, 175, 55, 0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes lineGrow {
    from {
        transform: scaleY(0);
    }
    to {
        transform: scaleY(1);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
}

.animate-pulse-gold {
    animation: pulse-gold 2s ease-in-out infinite;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* ===== INTRO SECTION ANIMATIONS ===== */
.intro-section {
    position: relative;
    isolation: isolate;
}

.intro-statement-1 {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s var(--ease-out-expo) 0.2s forwards;
}

.intro-statement-2 {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s var(--ease-out-expo) 0.4s forwards;
}

.intro-key-statement {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    animation: fadeInUpScale 1.2s var(--ease-out-expo) 0.6s forwards;
}

.intro-benefit-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-slow) var(--ease-out-expo);
}

.intro-benefit-item:nth-child(1) {
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.8s forwards;
}

.intro-benefit-item:nth-child(2) {
    animation: fadeInUp 0.8s var(--ease-out-expo) 1s forwards;
}

.intro-benefit-item:nth-child(3) {
    animation: fadeInUp 0.8s var(--ease-out-expo) 1.2s forwards;
}

.intro-benefit-item:hover {
    transform: translateY(-4px);
    border-color: var(--border-gold) !important;
    background: var(--color-surface-2) !important;
}

.intro-benefit-item:hover .w-1 {
    background: linear-gradient(to bottom, var(--color-gold-400), var(--color-gold-400));
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

/* ===== HERO CARDS ===== */
.hero-card {
    position: relative;
    text-align: center;
    padding: 24px;
    border: 1px solid var(--border-default);
    background: var(--color-surface-1);
    transition: all var(--transition-slow) var(--ease-out-expo);
}

.hero-card:hover {
    border-color: var(--border-gold);
    background: var(--color-surface-2);
    transform: translateY(-4px);
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--color-gold-400);
    opacity: 0;
    transition: opacity var(--transition-base) ease;
}

.hero-card:hover::before {
    opacity: 1;
}

/* ===== STEP CARDS ===== */
.step-card {
    position: relative;
    padding: 32px;
    border: 1px solid var(--border-default);
    background: var(--color-surface-1);
    transition: all var(--transition-slow) var(--ease-out-expo);
}

.step-card:hover {
    border-color: var(--border-strong);
    background: var(--color-surface-2);
}

.step-card-gold {
    border-color: var(--border-gold);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
}

.step-card-gold::before,
.step-card-gold::after {
    content: '';
    position: absolute;
    background: var(--color-gold-400);
}

.step-card-gold::before {
    top: 0;
    left: 0;
    width: 24px;
    height: 1px;
}

.step-card-gold::after {
    top: 0;
    left: 0;
    width: 1px;
    height: 24px;
}

.step-card-gold:hover {
    border-color: var(--border-gold-strong);
    box-shadow: var(--shadow-gold);
}

/* Step number */
.step-number {
    position: absolute;
    top: -24px;
    left: 32px;
    font-size: 80px;
    font-family: 'Playfair Display', serif;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.step-number-gold {
    color: rgba(212, 175, 55, 0.08);
}

/* ===== ROLE CARDS ===== */
.role-card {
    padding: 40px;
    border: 1px solid var(--border-default);
    background: var(--color-surface-1);
    transition: all var(--transition-slow) var(--ease-out-expo);
}

.role-card:hover {
    border-color: var(--border-strong);
    background: var(--color-surface-2);
}

.role-card-gold {
    border-color: var(--border-gold);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
}

.role-card-gold:hover {
    border-color: var(--border-gold-strong);
    box-shadow: var(--shadow-gold);
}

/* Icon container */
.icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-default);
    background: var(--color-surface-1);
    transition: all var(--transition-base) ease;
}

.icon-box:hover,
.group:hover .icon-box {
    border-color: var(--border-gold);
    background: rgba(212, 175, 55, 0.1);
}

.icon-box-gold {
    border-color: var(--border-gold);
    background: rgba(212, 175, 55, 0.1);
}

/* ===== TRIPTYQUE CARDS ===== */
.triptyque-card {
    position: relative;
    background: var(--color-surface-1);
    border: 1px solid var(--border-default);
    transition: all var(--transition-slow) var(--ease-out-expo);
    overflow: hidden;
}

.triptyque-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-gold-400), transparent);
    opacity: 0;
    transition: opacity var(--transition-base) ease;
}

.triptyque-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.triptyque-card:hover::before {
    opacity: 1;
}

.triptyque-card-gold {
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
    border-color: var(--border-gold);
}

.triptyque-card-gold::before {
    opacity: 1;
}

.triptyque-card-gold:hover {
    box-shadow: var(--shadow-lg), var(--shadow-gold);
}

/* Large background numbers */
.bg-number {
    position: absolute;
    font-size: clamp(100px, 20vw, 180px);
    font-family: 'Playfair Display', serif;
    color: rgba(255, 255, 255, 0.02);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.bg-number-gold {
    color: rgba(212, 175, 55, 0.05);
}

/* ===== ENGAGEMENT GRID ===== */
.engagement-item {
    padding: 32px;
    border: 1px solid var(--border-default);
    background: var(--color-surface-1);
    transition: all var(--transition-slow) var(--ease-out-expo);
}

.engagement-item:hover {
    border-color: var(--border-gold);
    background: var(--color-surface-2);
}

.engagement-item:hover .icon-box {
    border-color: var(--border-gold);
    background: rgba(212, 175, 55, 0.1);
}

/* ===== ESPACE ÉTUDES ITEMS ===== */
.resource-item {
    padding: 24px;
    border: 1px solid var(--border-subtle);
    background: transparent;
    transition: all var(--transition-slow) var(--ease-out-expo);
    cursor: pointer;
    text-align: center;
}

.resource-item:hover {
    border-color: var(--border-gold);
    background: var(--color-surface-1);
}

.resource-item:hover svg {
    color: var(--color-gold-400);
}

/* ===== QUOTE STYLING ===== */
.quote-section {
    position: relative;
}

.quote-marks {
    position: absolute;
    font-size: clamp(48px, 10vw, 96px);
    font-family: 'Playfair Display', serif;
    color: rgba(212, 175, 55, 0.15);
    line-height: 1;
}

.quote-marks-open {
    top: -16px;
    left: -16px;
}

.quote-marks-close {
    bottom: -16px;
    right: -16px;
    transform: rotate(180deg);
}

/* ===== CTA BOX ===== */
.cta-box {
    position: relative;
    padding: 48px;
    border: 1px solid var(--border-gold);
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
}

.cta-box::before,
.cta-box::after {
    content: '';
    position: absolute;
    background: var(--color-gold-400);
}

.cta-box::before {
    top: 0;
    left: 0;
    width: 16px;
    height: 1px;
}

.cta-box::after {
    top: 0;
    left: 0;
    width: 1px;
    height: 16px;
}

.cta-box .corner-br::before,
.cta-box .corner-br::after {
    content: '';
    position: absolute;
    background: var(--color-gold-400);
}

.cta-box .corner-br::before {
    bottom: 0;
    right: 0;
    width: 16px;
    height: 1px;
}

.cta-box .corner-br::after {
    bottom: 0;
    right: 0;
    width: 1px;
    height: 16px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .hide-mobile {
        display: none !important;
    }
    
    h1, .h1 {
        font-size: var(--font-size-4xl);
        hyphens: auto;
        word-break: break-word;
    }
    
    h2, .h2 {
        font-size: var(--font-size-3xl);
    }
    
    .section-label,
    [class*="tracking-widest"][class*="uppercase"][class*="text-xs"] {
        font-size: 0.5625rem;
        letter-spacing: 0.15em;
    }
}

@media (min-width: 641px) {
    .show-mobile-only {
        display: none !important;
    }
}

@media (max-width: 768px) {
    section {
        padding-top: var(--space-8);
        padding-bottom: var(--space-8);
    }
    
    .intro-section {
        padding-top: var(--space-8);
        padding-bottom: var(--space-8);
    }
    
    .intro-key-statement {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }
    
    .triptyque-card,
    .proof-card,
    .succession-col,
    .step-card,
    .role-card {
        padding: var(--space-4);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    #navbar,
    .hero-canvas,
    .mobile-menu-btn,
    .scroll-progress {
        display: none !important;
    }
    
    body {
        background: #fff;
        color: #000;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* ===== SAFE AREA PADDING ===== */
@supports (padding: max(0px)) {
    body {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
    
    footer {
        padding-bottom: max(var(--space-7), env(safe-area-inset-bottom));
    }
}

/* ===== PREMIUM SCROLL EFFECTS ===== */

/* Parallax layers */
.parallax-bg {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* Text reveal animations */
.reveal-text {
    opacity: 0;
    transform: translateY(40px);
}

.reveal-text.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Line reveal */
.line-reveal {
    position: relative;
    overflow: hidden;
}

.line-reveal::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold-400);
    transition: width 0.8s var(--ease-out-expo);
}

.line-reveal.revealed::after {
    width: 100%;
}

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
}

.stagger-children.revealed > * {
    opacity: 1;
    transform: translateY(0);
}

.stagger-children > *:nth-child(1) { transition-delay: 0s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.4s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.5s; }

/* Scale reveal */
.scale-reveal {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s var(--ease-out-expo);
}

.scale-reveal.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Fade slide */
.fade-slide-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s var(--ease-out-expo);
}

.fade-slide-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s var(--ease-out-expo);
}

.fade-slide-left.revealed,
.fade-slide-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* ===== HORIZONTAL SCROLL SECTION ===== */
.horizontal-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.horizontal-scroll-container::-webkit-scrollbar {
    display: none;
}

.horizontal-scroll-track {
    display: flex;
    gap: 0;
}

.horizontal-scroll-item {
    flex-shrink: 0;
    scroll-snap-align: start;
}

/* Scroll indicator */
.scroll-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-tertiary);
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.scroll-hint-arrow {
    width: 24px;
    height: 1px;
    background: linear-gradient(90deg, var(--color-gold-400), transparent);
    animation: scrollHint 1.5s ease-in-out infinite;
}

@keyframes scrollHint {
    0%, 100% { transform: translateX(0); opacity: 1; }
    50% { transform: translateX(8px); opacity: 0.5; }
}

/* ===== LOADING ANIMATION ===== */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--color-obsidian);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 48px;
    height: 48px;
    border: 2px solid var(--color-gold-400);
    transform: rotate(45deg);
    margin: 0 auto 24px;
    position: relative;
    animation: loaderPulse 1.5s ease-in-out infinite;
}

.loader-logo::before {
    content: '';
    position: absolute;
    inset: 8px;
    background: var(--color-gold-400);
}

@keyframes loaderPulse {
    0%, 100% { transform: rotate(45deg) scale(1); opacity: 1; }
    50% { transform: rotate(45deg) scale(0.9); opacity: 0.7; }
}

.loader-bar {
    width: 120px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    overflow: hidden;
    border-radius: 2px;
}

.loader-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-gold-400), var(--color-gold-300));
    transition: width 0.3s ease;
}

/* ===== MAGNETIC HOVER EFFECT ===== */
.magnetic-hover {
    transition: transform 0.3s var(--ease-out-expo);
}

/* ===== GLOW CURSOR EFFECT ===== */
.glow-cursor {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.glow-cursor.active {
    opacity: 1;
}

/* ===== SECTION NUMBER ANIMATION ===== */
.section-label-number {
    transition: all 0.5s var(--ease-out-expo);
}

.section-header-full:hover .section-label-number {
    background: rgba(212, 175, 55, 0.15);
    transform: scale(1.1);
}

/* ===== CARD TILT EFFECT ===== */
.card-tilt {
    transform-style: preserve-3d;
    transition: transform 0.5s var(--ease-out-expo);
}

/* ===== MARQUEE EFFECT ===== */
.marquee {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== BLUR REVEAL ===== */
.blur-reveal {
    filter: blur(10px);
    opacity: 0;
    transition: all 1s var(--ease-out-expo);
}

.blur-reveal.revealed {
    filter: blur(0);
    opacity: 1;
}

/* ===== COUNTER ANIMATION ===== */
.counter {
    font-variant-numeric: tabular-nums;
}

/* ===== FLOATING ELEMENTS ===== */
.float-element {
    animation: floatElement 6s ease-in-out infinite;
}

.float-element:nth-child(2) {
    animation-delay: -2s;
}

.float-element:nth-child(3) {
    animation-delay: -4s;
}

@keyframes floatElement {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(5px) rotate(-1deg); }
}

/* ===== BACK TO TOP BUTTON ===== */
#back-to-top {
    transition: opacity var(--transition-base) ease,
                transform var(--transition-base) var(--ease-out-expo),
                background-color var(--transition-base) ease,
                box-shadow var(--transition-base) ease;
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

#back-to-top:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    #back-to-top {
        bottom: 24px;
        right: 24px;
        width: 48px;
        height: 48px;
    }
}

/* ===== COMING SOON MODAL ===== */
#coming-soon-modal {
    transition: visibility var(--transition-base) ease;
}

#coming-soon-modal.active {
    visibility: visible;
}

#coming-soon-modal.active #coming-soon-modal-bg {
    opacity: 1;
}

#coming-soon-modal.active #coming-soon-modal-content {
    opacity: 1;
    transform: scale(1);
}

/* ===== HIGH DPI OPTIMIZATION ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: subpixel-antialiased;
    }
}

/* ===== AGENCY GRID ITEMS (FROM V1) ===== */
.agency-grid-item {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: background-color 0.5s ease;
}

.agency-grid-item:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.agency-grid-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-gold-400), transparent);
    transition: width 0.6s var(--ease-out-expo);
}

.agency-grid-item:hover::after {
    width: 100%;
}

@media (max-width: 48rem) {
    .agency-grid-item {
        border-right: none;
    }
}

/* Large numbers on agency items */
.agency-grid-item .step-number {
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: clamp(80px, 15vw, 128px);
    font-family: 'Playfair Display', serif;
    color: rgba(212, 175, 55, 0.08);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    transition: color 0.5s ease;
}

.agency-grid-item:hover .step-number {
    color: rgba(212, 175, 55, 0.05);
}

/* ===== SCRAMBLE TEXT EFFECT ===== */
.scramble-container {
    display: inline-block;
    min-width: 200px;
    text-align: left;
    white-space: nowrap;
}

@media (max-width: 48rem) {
    .scramble-container {
        min-width: 100%;
        text-align: left;
        white-space: normal;
        display: block;
    }
}

.scramble-char {
    color: var(--color-gold-400);
}

/* ===== INTERACTIVE LIST (FROM V1) ===== */
.interactive-list-item {
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.5s ease;
}

.interactive-list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold-400);
    transition: width 0.7s var(--ease-out-expo);
}

.interactive-list-item:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.interactive-list-item:hover::before {
    width: 100%;
}

.interactive-list-item .number {
    transition: color 0.3s ease;
}

.interactive-list-item:hover .number {
    color: var(--color-gold-400);
}

.interactive-list-item .title {
    transition: transform 0.3s var(--ease-out-expo);
}

.interactive-list-item:hover .title {
    transform: translateX(8px);
}

.interactive-list-item .solution {
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.5s var(--ease-out-expo);
}

.interactive-list-item:hover .solution {
    opacity: 1;
    transform: translateY(0);
}

/* ===== ENHANCED PARALLAX ===== */
.parallax-slow {
    will-change: transform;
}

.parallax-fast {
    will-change: transform;
}

/* ===== FLOATING PARTICLES ===== */
.floating-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    animation: floatParticle 8s ease-in-out infinite;
}

.floating-particle:nth-child(1) { animation-delay: 0s; left: 10%; top: 20%; }
.floating-particle:nth-child(2) { animation-delay: -2s; left: 80%; top: 30%; }
.floating-particle:nth-child(3) { animation-delay: -4s; left: 30%; top: 60%; }
.floating-particle:nth-child(4) { animation-delay: -6s; left: 70%; top: 80%; }

@keyframes floatParticle {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
    25% { transform: translateY(-20px) translateX(10px); opacity: 0.6; }
    50% { transform: translateY(-10px) translateX(-5px); opacity: 0.3; }
    75% { transform: translateY(-30px) translateX(15px); opacity: 0.5; }
}

/* ===== TEXT SPLIT ANIMATION ===== */
.split-text .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px) rotateX(-90deg);
    transform-origin: bottom;
    animation: charReveal 0.6s forwards;
}

@keyframes charReveal {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

/* ===== CARD HOVER LIFT ===== */
.card-lift {
    transition: transform 0.4s var(--ease-out-expo), 
                box-shadow 0.4s var(--ease-out-expo);
}

.card-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(212, 175, 55, 0.1);
}

/* ===== GRADIENT LINE ANIMATION ===== */
.animated-line {
    position: relative;
    overflow: hidden;
}

.animated-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-gold-400), transparent);
    animation: lineSlide 3s ease-in-out infinite;
}

@keyframes lineSlide {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* ===== SECTION ENTRANCE EFFECTS ===== */
.section-enter {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s var(--ease-out-expo);
}

.section-enter.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== ICON PULSE ===== */
.icon-pulse {
    position: relative;
}

.icon-pulse::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid var(--color-gold-400);
    border-radius: 50%;
    opacity: 0;
    animation: iconPulse 2s ease-out infinite;
}

@keyframes iconPulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ===== ENHANCED BUTTON EFFECTS ===== */
.btn-glitch {
    position: relative;
    overflow: hidden;
}

.btn-glitch::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-glitch:hover::before {
    left: 100%;
}

/* ===== MORPHING SHAPE ===== */
.morphing-shape {
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}

/* ===== NUMBER COUNTER ANIMATION ===== */
.number-counter {
    font-variant-numeric: tabular-nums;
    transition: color 0.3s ease;
}

.number-counter:hover {
    color: var(--color-gold-400);
}

/* ===== LINK UNDERLINE ANIMATION ===== */
.link-animated {
    position: relative;
    text-decoration: none;
}

.link-animated::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-gold-400);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease-out-expo);
}

.link-animated:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ===== GLASS MORPHISM ===== */
.glass {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== NEON GLOW ===== */
.neon-glow {
    text-shadow: 
        0 0 10px rgba(212, 175, 55, 0.5),
        0 0 20px rgba(212, 175, 55, 0.3),
        0 0 40px rgba(212, 175, 55, 0.1);
}

.neon-box {
    box-shadow: 
        0 0 20px rgba(212, 175, 55, 0.2),
        inset 0 0 20px rgba(212, 175, 55, 0.05);
}

/* ===== TYPEWRITER EFFECT ===== */
.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--color-gold-400);
    white-space: nowrap;
    animation: typewriter 3s steps(40) infinite, blink 0.5s step-end infinite alternate;
}

@keyframes typewriter {
    0%, 100% { width: 0; }
    50%, 90% { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* ===== ACCESSIBILITY: SCREEN READER ONLY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
