/* ==========================================================================
   WashU Team Portal - Landing Page
   Aesthetic: Fluid Precision - water-inspired industrial design
   ========================================================================== */

/* ==========================================================================
   Local Fonts - Industry (Headers) & Muli (Body)
   ========================================================================== */
@font-face {
    font-family: 'Industry';
    src: url('../assets/fonts/IndustryTest-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Industry';
    src: url('../assets/fonts/IndustryTest-Demi.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Industry';
    src: url('../assets/fonts/IndustryTest-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Industry';
    src: url('../assets/fonts/IndustryTest-Black.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Muli';
    src: url('../assets/fonts/Muli-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Muli';
    src: url('../assets/fonts/Muli.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Muli';
    src: url('../assets/fonts/Muli-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Muli';
    src: url('../assets/fonts/Muli-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */
:root {
    /* Core Brand Colors */
    --lp-primary: #1396d4;
    --lp-primary-dark: #0a7ab8;
    --lp-primary-deeper: #0a4d6e;
    --lp-primary-light: #4fb3e3;
    --lp-primary-pale: #e6f4fa;
    --lp-primary-ghost: rgba(19, 150, 212, 0.08);

    /* Neutral Palette */
    --lp-white: #ffffff;
    --lp-gray-50: #f8fafc;
    --lp-gray-100: #f1f5f9;
    --lp-gray-200: #e2e8f0;
    --lp-gray-300: #cbd5e1;
    --lp-gray-400: #94a3b8;
    --lp-gray-500: #64748b;
    --lp-gray-600: #475569;
    --lp-gray-700: #334155;
    --lp-gray-800: #1e293b;
    --lp-gray-900: #0f172a;

    /* Accent Colors for Modules */
    --lp-accent-ucheck: #10b981;
    --lp-accent-rapid: #f59e0b;
    --lp-accent-library: #8b5cf6;
    --lp-accent-claims: #ef4444;
    --lp-accent-codes: #06b6d4;
    --lp-accent-team: #ec4899;

    /* Typography */
    --lp-font-display: 'Industry', -apple-system, BlinkMacSystemFont, sans-serif;
    --lp-font-body: 'Muli', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing Scale */
    --lp-space-1: 0.25rem;
    --lp-space-2: 0.5rem;
    --lp-space-3: 0.75rem;
    --lp-space-4: 1rem;
    --lp-space-5: 1.25rem;
    --lp-space-6: 1.5rem;
    --lp-space-8: 2rem;
    --lp-space-10: 2.5rem;
    --lp-space-12: 3rem;
    --lp-space-16: 4rem;
    --lp-space-20: 5rem;
    --lp-space-24: 6rem;

    /* Border Radius */
    --lp-radius-sm: 0.375rem;
    --lp-radius-md: 0.5rem;
    --lp-radius-lg: 0.75rem;
    --lp-radius-xl: 1rem;
    --lp-radius-2xl: 1.5rem;
    --lp-radius-full: 9999px;

    /* Shadows */
    --lp-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --lp-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --lp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --lp-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --lp-shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --lp-shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 16px rgba(0, 0, 0, 0.06);
    --lp-shadow-card-hover: 0 4px 12px rgba(0, 0, 0, 0.05), 0 20px 40px rgba(0, 0, 0, 0.1);
    --lp-shadow-primary: 0 4px 14px rgba(19, 150, 212, 0.35);
    --lp-shadow-primary-lg: 0 8px 25px rgba(19, 150, 212, 0.4);

    /* Transitions */
    --lp-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --lp-transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --lp-transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --lp-transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Z-Index Scale */
    --lp-z-base: 1;
    --lp-z-dropdown: 100;
    --lp-z-sticky: 200;
    --lp-z-fixed: 300;
    --lp-z-drawer: 400;
    --lp-z-modal: 500;
    --lp-z-overlay: 600;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.landing-page {
    font-family: var(--lp-font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--lp-gray-700);
    background: var(--lp-gray-50);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==========================================================================
   Header - Glassmorphic Fixed Navigation
   ========================================================================== */
.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--lp-z-sticky);
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--lp-space-8);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    transition: all var(--lp-transition-base);
}

.landing-header.is-scrolled {
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--lp-shadow-md);
}

/* Logo Container */
.logo-container {
    display: flex;
    align-items: center;
    gap: var(--lp-space-3);
}

/* Logo Image - Uses team-portal-generic.png */
.logo-image {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(19, 150, 212, 0.2));
    transition: transform var(--lp-transition-base);
}

.logo-container:hover .logo-image {
    transform: scale(1.05);
}

/* Legacy logo-mark (kept for fallback) */
.logo-mark {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--lp-primary) 0%, var(--lp-primary-dark) 100%);
    border-radius: var(--lp-radius-lg);
    box-shadow: var(--lp-shadow-primary);
    position: relative;
    overflow: hidden;
}

.logo-mark::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 70%
    );
    animation: logo-shine 3s ease-in-out infinite;
}

@keyframes logo-shine {
    0%, 100% { transform: translateX(-100%) rotate(45deg); }
    50% { transform: translateX(100%) rotate(45deg); }
}

.logo-mark img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: brightness(0) invert(1);
}

.logo-mark i {
    font-size: 1.25rem;
    color: var(--lp-white);
    position: relative;
    z-index: 1;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-title {
    font-family: var(--lp-font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--lp-gray-900);
    letter-spacing: -0.02em;
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--lp-gray-500);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Version Badge */
.version-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--lp-space-2);
    padding: var(--lp-space-2) var(--lp-space-4);
    background: var(--lp-primary-ghost);
    border: 1px solid transparent;
    border-radius: var(--lp-radius-full);
    font-family: var(--lp-font-display);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--lp-primary);
    cursor: pointer;
    transition: all var(--lp-transition-base);
    user-select: none;
}

.version-badge:hover {
    background: rgba(19, 150, 212, 0.12);
    border-color: rgba(19, 150, 212, 0.2);
    transform: translateY(-1px);
}

.version-badge.is-active {
    background: var(--lp-primary);
    color: var(--lp-white);
    box-shadow: var(--lp-shadow-primary);
}

.version-badge i {
    font-size: 0.625rem;
    transition: transform var(--lp-transition-fast);
}

.version-badge.is-active i {
    transform: rotate(180deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(72px + var(--lp-space-16)) var(--lp-space-8) var(--lp-space-16);
    overflow: hidden;
}

/* Particle Network Canvas */
.particle-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* Animated Gradient Background */
.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(19, 150, 212, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 90% 80%, rgba(19, 150, 212, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 10% 60%, rgba(79, 179, 227, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, var(--lp-white) 0%, var(--lp-gray-50) 100%);
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--lp-space-2);
    padding: var(--lp-space-2) var(--lp-space-4);
    background: var(--lp-white);
    border: 1px solid var(--lp-gray-200);
    border-radius: var(--lp-radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--lp-gray-600);
    margin-bottom: var(--lp-space-6);
    box-shadow: var(--lp-shadow-sm);
    animation: fade-in-down 0.6s ease-out both;
}

.hero-eyebrow i {
    color: var(--lp-primary);
}

.hero-title {
    font-family: var(--lp-font-display);
    font-size: clamp(2.5rem, 5vw + 1rem, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--lp-gray-900);
    margin-bottom: var(--lp-space-6);
    animation: fade-in-up 0.7s ease-out 0.1s both;
}

.hero-title-accent {
    background: linear-gradient(135deg, var(--lp-primary) 0%, var(--lp-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--lp-gray-600);
    margin-bottom: var(--lp-space-10);
    animation: fade-in-up 0.7s ease-out 0.2s both;
}

.hero-tagline {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--lp-gray-700);
    margin-bottom: var(--lp-space-8);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    line-height: 1.5;
    animation: fade-in-up 0.7s ease-out 0.25s both;
}

.tagline-rotator {
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-tagline.tagline-rotator {
    min-height: 3.2em;
}

.footer-tagline.tagline-rotator {
    min-height: 2.6em;
}

.tagline-rotator .tagline-text {
    display: block;
    transform: translateX(0);
    opacity: 1;
}

.tagline-rotator .tagline-text.is-entering {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(32px);
    animation: tagline-in 0.6s ease-out forwards;
}

.tagline-rotator .tagline-text.is-exiting {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 1;
    transform: translateX(0);
    animation: tagline-out 0.6s ease-in forwards;
}

@keyframes tagline-in {
    from { opacity: 0; transform: translateX(32px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes tagline-out {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(-32px); }
}

/* SSO Button */
.sso-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--lp-space-3);
    padding: var(--lp-space-5) var(--lp-space-10);
    background: linear-gradient(135deg, var(--lp-primary) 0%, var(--lp-primary-dark) 100%);
    border: none;
    border-radius: var(--lp-radius-xl);
    font-family: var(--lp-font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--lp-white);
    cursor: pointer;
    box-shadow: var(--lp-shadow-primary);
    transition: all var(--lp-transition-base);
    position: relative;
    overflow: hidden;
    animation: fade-in-up 0.7s ease-out 0.3s both;
}

.sso-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    transition: left 0.5s ease;
}

.sso-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--lp-shadow-primary-lg);
}

.sso-button:hover::before {
    left: 100%;
}

.sso-button:active {
    transform: translateY(-1px);
}

.sso-button i {
    font-size: 1.25rem;
}

.sso-button-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.sso-button-label {
    font-size: 0.6875rem;
    font-weight: 500;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sso-button-action {
    font-size: 1.0625rem;
    font-weight: 600;
}

/* Security Badge */
.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--lp-space-2);
    margin-top: var(--lp-space-6);
    font-size: 0.8125rem;
    color: var(--lp-gray-500);
    animation: fade-in-up 0.7s ease-out 0.4s both;
}

.security-badge i {
    color: var(--lp-accent-ucheck);
}

/* Scroll Indicator */
.scroll-indicator-wrap {
    position: absolute;
    z-index: 2;
    bottom: var(--lp-space-8);
    left: 50%;
    transform: translateX(-50%);
    width: min(720px, 100%);
    display: flex;
    justify-content: center;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--lp-space-2);
    color: var(--lp-gray-400);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: fade-in-up 0.7s ease-out 0.5s both;
    text-decoration: none;
    cursor: pointer;
}

.scroll-indicator-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--lp-primary) 0%, transparent 100%);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ==========================================================================
   Modules Section
   ========================================================================== */
.modules-section {
    padding: var(--lp-space-24) var(--lp-space-8);
    background: var(--lp-white);
    position: relative;
}

.modules-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--lp-gray-200) 20%,
        var(--lp-gray-200) 80%,
        transparent 100%
    );
}

.modules-container {
    max-width: 1200px;
    margin: 0 auto;
}

.modules-header {
    text-align: center;
    margin-bottom: var(--lp-space-16);
}

.modules-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--lp-space-2);
    font-family: var(--lp-font-display);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--lp-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--lp-space-4);
}

.modules-title {
    font-family: var(--lp-font-display);
    font-size: clamp(2rem, 3vw + 1rem, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--lp-gray-900);
    margin-bottom: var(--lp-space-4);
}

.modules-description {
    font-size: 1.125rem;
    color: var(--lp-gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Modules Grid */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--lp-space-6);
}

@media (max-width: 992px) {
    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .modules-grid {
        grid-template-columns: 1fr;
    }
}

/* Module Card */
.module-card {
    position: relative;
    background: var(--lp-white);
    border: 1px solid var(--lp-gray-200);
    border-radius: var(--lp-radius-xl);
    padding: var(--lp-space-8);
    transition: all var(--lp-transition-base);
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.module-card.is-visible {
    animation: card-reveal 0.6s ease-out forwards;
}

@keyframes card-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--module-accent, var(--lp-primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--lp-transition-base);
}

.module-card:hover {
    transform: translateY(-8px);
    border-color: var(--lp-gray-300);
    box-shadow: var(--lp-shadow-card-hover);
}

.module-card:hover::before {
    transform: scaleX(1);
}

/* Module Icon */
.module-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--module-bg, var(--lp-primary-ghost));
    border-radius: var(--lp-radius-lg);
    margin-bottom: var(--lp-space-5);
    transition: all var(--lp-transition-base);
}

.module-icon i {
    font-size: 1.5rem;
    color: var(--module-accent, var(--lp-primary));
    transition: transform var(--lp-transition-spring);
}

.module-card:hover .module-icon {
    transform: scale(1.05);
}

.module-card:hover .module-icon i {
    transform: scale(1.1);
}

/* Module Content */
.module-title {
    font-family: var(--lp-font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--lp-gray-900);
    margin-bottom: var(--lp-space-2);
}

.module-description {
    font-size: 0.9375rem;
    color: var(--lp-gray-600);
    line-height: 1.6;
    margin-bottom: var(--lp-space-5);
}

/* Module Features */
.module-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--lp-space-2);
}

.module-feature {
    display: inline-flex;
    align-items: center;
    gap: var(--lp-space-1);
    padding: var(--lp-space-1) var(--lp-space-3);
    background: var(--lp-gray-100);
    border-radius: var(--lp-radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--lp-gray-600);
}

.module-feature i {
    font-size: 0.625rem;
    color: var(--module-accent, var(--lp-primary));
}

/* Module Accent Colors */
.module-card[data-module="ucheck"] {
    --module-accent: var(--lp-accent-ucheck);
    --module-bg: rgba(16, 185, 129, 0.08);
}

.module-card[data-module="rapid"] {
    --module-accent: var(--lp-accent-rapid);
    --module-bg: rgba(245, 158, 11, 0.08);
}

.module-card[data-module="library"] {
    --module-accent: var(--lp-accent-library);
    --module-bg: rgba(139, 92, 246, 0.08);
}

.module-card[data-module="claims"] {
    --module-accent: var(--lp-accent-claims);
    --module-bg: rgba(239, 68, 68, 0.08);
}

.module-card[data-module="codes"] {
    --module-accent: var(--lp-accent-codes);
    --module-bg: rgba(6, 182, 212, 0.08);
}

.module-card[data-module="team"] {
    --module-accent: var(--lp-accent-team);
    --module-bg: rgba(236, 72, 153, 0.08);
}

/* ==========================================================================
   Footer CTA Section
   ========================================================================== */
.footer-cta {
    padding: var(--lp-space-16) var(--lp-space-8);
    background: linear-gradient(180deg, var(--lp-gray-50) 0%, var(--lp-white) 100%);
    text-align: center;
}

.footer-cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-cta-title {
    font-family: var(--lp-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--lp-gray-900);
    margin-bottom: var(--lp-space-4);
}

.footer-cta-description {
    color: var(--lp-gray-600);
    margin-bottom: var(--lp-space-8);
}

.footer-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--lp-primary) 0%, var(--lp-primary-light) 100%);
    border-radius: var(--lp-radius-full);
    margin: var(--lp-space-8) auto;
}

.footer-tagline {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--lp-gray-600);
    margin-bottom: var(--lp-space-6);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--lp-space-8);
    margin-bottom: var(--lp-space-8);
}

.footer-link {
    display: flex;
    align-items: center;
    gap: var(--lp-space-2);
    font-size: 0.875rem;
    color: var(--lp-gray-500);
    text-decoration: none;
    transition: color var(--lp-transition-fast);
}

.footer-link:hover {
    color: var(--lp-primary);
}

.footer-copyright {
    font-size: 0.8125rem;
    color: var(--lp-gray-400);
}

/* ==========================================================================
   Changelog Drawer
   ========================================================================== */
.changelog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(4px);
    z-index: var(--lp-z-drawer);
    opacity: 0;
    visibility: hidden;
    transition: all var(--lp-transition-base);
}

.changelog-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.changelog-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 90vw;
    height: 100vh;
    background: var(--lp-white);
    box-shadow: var(--lp-shadow-2xl);
    z-index: calc(var(--lp-z-drawer) + 1);
    transform: translateX(100%);
    transition: transform var(--lp-transition-slow);
    display: flex;
    flex-direction: column;
}

.changelog-drawer.is-open {
    transform: translateX(0);
}

/* Drawer Header */
.changelog-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--lp-space-6);
    border-bottom: 1px solid var(--lp-gray-200);
    flex-shrink: 0;
}

.changelog-drawer-title {
    font-family: var(--lp-font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--lp-gray-900);
}

.changelog-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lp-gray-100);
    border: none;
    border-radius: var(--lp-radius-md);
    color: var(--lp-gray-600);
    cursor: pointer;
    transition: all var(--lp-transition-fast);
}

.changelog-close:hover {
    background: var(--lp-gray-200);
    color: var(--lp-gray-900);
}

/* Drawer Content */
.changelog-drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--lp-space-6);
}

/* Version Entry */
.changelog-version {
    padding-bottom: var(--lp-space-6);
    margin-bottom: var(--lp-space-6);
    border-bottom: 1px solid var(--lp-gray-100);
}

.changelog-version:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.changelog-version-header {
    display: flex;
    align-items: center;
    gap: var(--lp-space-3);
    margin-bottom: var(--lp-space-3);
}

.changelog-version-number {
    font-family: var(--lp-font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--lp-gray-900);
}

.changelog-version-type {
    padding: var(--lp-space-1) var(--lp-space-2);
    border-radius: var(--lp-radius-sm);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.changelog-version-type.stable {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.changelog-version-type.development {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.changelog-version-type.beta {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
}

.changelog-version-type.release-candidate,
.changelog-version-type.rc {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.changelog-version-type.dev {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.changelog-version-date {
    margin-left: auto;
    font-size: 0.8125rem;
    color: var(--lp-gray-500);
}

.changelog-version-title {
    font-family: var(--lp-font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--lp-gray-800);
    margin-bottom: var(--lp-space-4);
}

/* Changelog Sections */
.changelog-section {
    margin-bottom: var(--lp-space-4);
}

.changelog-section:last-child {
    margin-bottom: 0;
}

.changelog-section-title {
    display: flex;
    align-items: center;
    gap: var(--lp-space-2);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--lp-space-2);
}

.changelog-section-title.new-features {
    color: var(--lp-accent-ucheck);
}

.changelog-section-title.improvements {
    color: var(--lp-primary);
}

.changelog-section-title.bug-fixes {
    color: var(--lp-accent-claims);
}

.changelog-section ul {
    list-style: none;
    padding-left: var(--lp-space-5);
}

.changelog-section li {
    position: relative;
    font-size: 0.875rem;
    color: var(--lp-gray-600);
    line-height: 1.6;
    padding: var(--lp-space-1) 0;
}

.changelog-section li::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--lp-space-4));
    top: 0.75rem;
    width: 4px;
    height: 4px;
    background: var(--lp-gray-300);
    border-radius: 50%;
}

/* View All Link */
.changelog-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--lp-space-2);
    padding: var(--lp-space-4);
    background: var(--lp-gray-50);
    border-top: 1px solid var(--lp-gray-200);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--lp-primary);
    text-decoration: none;
    transition: all var(--lp-transition-fast);
    flex-shrink: 0;
}

.changelog-view-all:hover {
    background: var(--lp-gray-100);
}

.changelog-view-all i {
    transition: transform var(--lp-transition-fast);
}

.changelog-view-all:hover i {
    transform: translateX(4px);
}

/* ==========================================================================
   Loading Overlay
   ========================================================================== */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    z-index: var(--lp-z-overlay);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--lp-transition-base);
}

.loading-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

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

.loading-spinner {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--lp-space-6);
    position: relative;
}

.loading-spinner::before,
.loading-spinner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
}

.loading-spinner::before {
    border-top-color: var(--lp-primary);
    animation: spin 1s linear infinite;
}

.loading-spinner::after {
    border-right-color: var(--lp-primary-light);
    animation: spin 1.5s linear infinite reverse;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-family: var(--lp-font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--lp-gray-900);
    margin-bottom: var(--lp-space-2);
}

.loading-subtext {
    font-size: 0.875rem;
    color: var(--lp-gray-500);
    margin-bottom: var(--lp-space-6);
}

.loading-progress {
    width: 200px;
    height: 4px;
    background: var(--lp-gray-200);
    border-radius: var(--lp-radius-full);
    overflow: hidden;
    margin: 0 auto;
}

.loading-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--lp-primary) 0%, var(--lp-primary-light) 100%);
    border-radius: var(--lp-radius-full);
    transition: width 0.3s ease-out;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 768px) {
    .landing-header {
        padding: 0 var(--lp-space-4);
    }

    .logo-text {
        display: none;
    }

    .hero-section {
        padding-left: var(--lp-space-4);
        padding-right: var(--lp-space-4);
    }

    .hero-description {
        font-size: 1.0625rem;
    }

    .sso-button {
        width: 100%;
        max-width: 320px;
    }

    .modules-section {
        padding: var(--lp-space-16) var(--lp-space-4);
    }

    .module-card {
        padding: var(--lp-space-6);
    }

    .footer-links {
        flex-direction: column;
        gap: var(--lp-space-4);
    }

    .scroll-indicator,
    .scroll-indicator-wrap {
        display: none;
    }
}

/* ==========================================================================
   Auth Loading Page - Seamless Transition from Landing
   ========================================================================== */
.auth-loading-page {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(19, 150, 212, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 90% 80%, rgba(19, 150, 212, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 10% 60%, rgba(79, 179, 227, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, var(--lp-white) 0%, var(--lp-gray-50) 100%);
    overflow: hidden;
}

/* Auth Card Container */
.auth-loading-container {
    position: relative;
    z-index: 2;
    text-align: center;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    padding: var(--lp-space-12) var(--lp-space-10);
    border-radius: var(--lp-radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 0 0 1px rgba(19, 150, 212, 0.05),
        0 20px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 80px rgba(19, 150, 212, 0.08);
    max-width: 440px;
    width: min(92vw, 440px);
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    animation: auth-card-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

@keyframes auth-card-in {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Auth Spinner */
.auth-spinner {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--lp-space-6);
    position: relative;
}

.auth-spinner::before,
.auth-spinner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
}

.auth-spinner::before {
    border-top-color: var(--lp-primary);
    animation: auth-spin 1s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
}

.auth-spinner::after {
    border-right-color: var(--lp-primary-light);
    border-bottom-color: rgba(19, 150, 212, 0.2);
    animation: auth-spin 1.5s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite reverse;
}

@keyframes auth-spin {
    to { transform: rotate(360deg); }
}

/* Auth Title & Description */
.auth-title {
    font-family: var(--lp-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--lp-gray-900);
    margin-bottom: var(--lp-space-2);
    letter-spacing: -0.02em;
}

.auth-description {
    font-family: var(--lp-font-body);
    font-size: 0.9375rem;
    color: var(--lp-gray-600);
    margin-bottom: var(--lp-space-8);
}

/* Auth Steps List */
.auth-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--lp-space-6) 0;
    text-align: left;
}

.auth-step {
    display: flex;
    align-items: center;
    gap: var(--lp-space-3);
    padding: var(--lp-space-3) 0;
    font-family: var(--lp-font-body);
    font-size: 0.9375rem;
    color: var(--lp-gray-400);
    transition: all 0.3s ease;
}

.auth-step.active {
    color: var(--lp-gray-800);
}

.auth-step.completed {
    color: var(--lp-gray-500);
}

/* Step Icon */
.auth-step-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--lp-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--lp-gray-400);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.auth-step.active .auth-step-icon {
    background: var(--lp-primary);
    color: var(--lp-white);
    box-shadow: 0 4px 12px rgba(19, 150, 212, 0.4);
}

.auth-step.completed .auth-step-icon {
    background: var(--lp-primary);
    color: var(--lp-white);
}

/* Mini spinner inside step icon */
.auth-step-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: auth-spin 0.8s linear infinite;
}

/* Auth Progress Bar */
.auth-progress-container {
    width: 100%;
    height: 4px;
    background: var(--lp-gray-100);
    border-radius: var(--lp-radius-full);
    overflow: hidden;
    margin-bottom: var(--lp-space-4);
}

.auth-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--lp-primary) 0%, var(--lp-primary-light) 100%);
    border-radius: var(--lp-radius-full);
    width: 0%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Auth Footer Text */
.auth-footer {
    font-family: var(--lp-font-body);
    font-size: 0.8125rem;
    color: var(--lp-gray-400);
}

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

    .module-card {
        opacity: 1;
        transform: none;
    }

    .auth-loading-container {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   Dark Mode
   ========================================================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --lp-gray-50: #0b111a;
        --lp-gray-100: #111827;
        --lp-gray-200: #1f2937;
        --lp-gray-300: #334155;
        --lp-gray-400: #64748b;
        --lp-gray-500: #94a3b8;
        --lp-gray-600: #cbd5e1;
        --lp-gray-700: #e2e8f0;
        --lp-gray-800: #f1f5f9;
        --lp-gray-900: #f8fafc;
        --lp-primary-ghost: rgba(19, 150, 212, 0.18);
        --lp-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
        --lp-shadow-md: 0 8px 20px rgba(0, 0, 0, 0.35);
        --lp-shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.4);
        --lp-shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.45);
        --lp-shadow-2xl: 0 30px 60px rgba(0, 0, 0, 0.55);
        --lp-shadow-card: 0 4px 18px rgba(0, 0, 0, 0.35);
        --lp-shadow-card-hover: 0 10px 28px rgba(0, 0, 0, 0.45);
        --lp-shadow-primary: 0 6px 18px rgba(19, 150, 212, 0.45);
        --lp-shadow-primary-lg: 0 10px 32px rgba(19, 150, 212, 0.5);
    }

    body.landing-page {
        background: var(--lp-gray-50);
        color: var(--lp-gray-600);
        color-scheme: dark;
    }

    .landing-header {
        background: rgba(11, 15, 25, 0.92);
        border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    }

    .landing-header.is-scrolled {
        background: rgba(11, 15, 25, 0.98);
        box-shadow: var(--lp-shadow-lg);
    }

    .logo-image {
        filter: drop-shadow(0 2px 10px rgba(19, 150, 212, 0.35));
    }

    .version-badge {
        background: rgba(19, 150, 212, 0.15);
        color: var(--lp-primary-light);
    }

    .version-badge:hover {
        background: rgba(19, 150, 212, 0.25);
        border-color: rgba(79, 179, 227, 0.3);
    }

    .hero-background {
        background:
            radial-gradient(ellipse 80% 50% at 50% -20%, rgba(19, 150, 212, 0.2) 0%, transparent 55%),
            radial-gradient(ellipse 60% 40% at 90% 80%, rgba(19, 150, 212, 0.15) 0%, transparent 55%),
            radial-gradient(ellipse 50% 30% at 10% 60%, rgba(79, 179, 227, 0.1) 0%, transparent 55%),
            linear-gradient(180deg, #0b111a 0%, #0f172a 100%);
    }

    .hero-eyebrow {
        background: rgba(15, 23, 42, 0.9);
        border-color: rgba(148, 163, 184, 0.2);
        color: var(--lp-gray-500);
    }

    .hero-title {
        color: var(--lp-gray-900);
    }

    .hero-description {
        color: var(--lp-gray-600);
    }

    .hero-tagline {
        color: var(--lp-gray-500);
    }

    .security-badge {
        color: var(--lp-gray-500);
    }

    .scroll-indicator {
        color: var(--lp-gray-400);
    }

    .scroll-indicator-line {
        background: linear-gradient(180deg, var(--lp-primary-light) 0%, transparent 100%);
    }

    .modules-section {
        background: #0f172a;
    }

    .modules-section::before {
        background: linear-gradient(90deg,
            transparent 0%,
            rgba(148, 163, 184, 0.2) 20%,
            rgba(148, 163, 184, 0.2) 80%,
            transparent 100%
        );
    }

    .module-card {
        background: rgba(15, 23, 42, 0.9);
        border-color: rgba(148, 163, 184, 0.12);
    }

    .module-card:hover {
        border-color: rgba(148, 163, 184, 0.24);
    }

    .module-title {
        color: var(--lp-gray-900);
    }

    .module-description {
        color: var(--lp-gray-500);
    }

    .module-feature {
        background: rgba(148, 163, 184, 0.12);
        color: var(--lp-gray-500);
    }

    .footer-cta {
        background: linear-gradient(180deg, #0f172a 0%, #0b111a 100%);
    }

    .footer-cta-description {
        color: var(--lp-gray-600);
    }

    .footer-tagline {
        color: var(--lp-gray-500);
    }

    .footer-copyright {
        color: var(--lp-gray-400);
    }

    .changelog-drawer {
        background: #0f172a;
        border-left: 1px solid rgba(148, 163, 184, 0.12);
    }

    .changelog-drawer-header {
        border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    }

    .changelog-version {
        border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    }

    .changelog-close {
        background: rgba(148, 163, 184, 0.12);
        color: var(--lp-gray-500);
    }

    .changelog-close:hover {
        background: rgba(148, 163, 184, 0.2);
        color: var(--lp-gray-900);
    }

    .changelog-view-all {
        background: rgba(148, 163, 184, 0.08);
        border-top: 1px solid rgba(148, 163, 184, 0.16);
    }

    .changelog-view-all:hover {
        background: rgba(148, 163, 184, 0.16);
    }

    .loading-overlay {
        background: rgba(3, 7, 18, 0.9);
    }

    .loading-text {
        color: var(--lp-gray-900);
    }

    .loading-subtext {
        color: var(--lp-gray-500);
    }

    .auth-loading-page {
        background:
            radial-gradient(ellipse 80% 50% at 50% -20%, rgba(19, 150, 212, 0.2) 0%, transparent 55%),
            radial-gradient(ellipse 60% 40% at 90% 80%, rgba(19, 150, 212, 0.12) 0%, transparent 55%),
            radial-gradient(ellipse 50% 30% at 10% 60%, rgba(79, 179, 227, 0.08) 0%, transparent 55%),
            linear-gradient(180deg, #0b111a 0%, #0f172a 100%);
    }

    .auth-loading-container {
        background: rgba(15, 23, 42, 0.88);
        border: 1px solid rgba(148, 163, 184, 0.16);
        box-shadow:
            0 0 0 1px rgba(19, 150, 212, 0.08),
            0 20px 50px -12px rgba(0, 0, 0, 0.5),
            0 0 80px rgba(19, 150, 212, 0.2);
    }

    /* Changelog Drawer Dark Mode */
    .changelog-drawer {
        background: rgba(15, 23, 42, 0.98);
        border-left: 1px solid rgba(148, 163, 184, 0.15);
    }

    .changelog-drawer-header {
        border-bottom-color: rgba(148, 163, 184, 0.15);
    }

    .changelog-drawer-title {
        color: #e2e8f0;
    }

    .changelog-close {
        color: #94a3b8;
    }

    .changelog-close:hover {
        background: rgba(148, 163, 184, 0.15);
        color: #e2e8f0;
    }

    .changelog-version-number {
        color: #e2e8f0;
    }

    .changelog-version-title {
        color: #cbd5e1;
    }

    .changelog-section-title {
        color: #94a3b8;
    }

    .changelog-item {
        color: #94a3b8;
    }

    .changelog-view-all {
        background: rgba(30, 41, 59, 0.8);
        border-color: rgba(148, 163, 184, 0.2);
        color: #e2e8f0;
    }

    .changelog-view-all:hover {
        background: rgba(19, 150, 212, 0.15);
        border-color: rgba(19, 150, 212, 0.4);
    }

    /* Changelog Badge Dark Mode Colors */
    .changelog-version-type.stable {
        background: rgba(16, 185, 129, 0.15);
        color: #34d399;
    }

    .changelog-version-type.development {
        background: rgba(245, 158, 11, 0.15);
        color: #fbbf24;
    }

    .changelog-version-type.beta {
        background: rgba(139, 92, 246, 0.15);
        color: #a78bfa;
    }

    .changelog-version-type.release-candidate,
    .changelog-version-type.rc {
        background: rgba(59, 130, 246, 0.15);
        color: #60a5fa;
    }

    .changelog-version-type.dev {
        background: rgba(139, 92, 246, 0.15);
        color: #a78bfa;
    }
}
