/* --- 1. THEME ENGINE --- */
:root {
    /* DARK MODE ("Deep Ocean React") */
    --bg-deep: #020617;          
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.08);
    
    --text-main: #ffffff;
    --text-muted: #94a3b8;       
    
    /* VOLTAGE COLORS */
    --neon-green: #39ff14;       
    --neon-blue: #0ea5e9;        
    --neon-purple: #8b5cf6;      
    
    /* BORDERS & EDGES */
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(57, 255, 20, 0.5);
    
    /* Typography */
    --font-heading: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
    --font-body: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
    
    --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-snap: cubic-bezier(0.76, 0, 0.24, 1); 
}

body.light-mode {
    --bg-deep: #f8fafc;
    --bg-glass: rgba(255, 255, 255, 0.8);
    --bg-glass-hover: rgba(255, 255, 255, 0.95);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --neon-green: #059669;
    --neon-blue: #0284c7;
    --neon-purple: #7c3aed;
    --border-glass: rgba(15, 23, 42, 0.15);
    --border-glow: rgba(5, 150, 105, 0.3);
}

body.light-mode::before {
    background: 
        radial-gradient(circle at 15% 50%, rgba(14, 165, 233, 0.03), transparent 25%), 
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.03), transparent 25%);
}

body.light-mode::after {
    background: radial-gradient(circle, rgba(5, 150, 105, 0.02), transparent 70%);
}

/* Light Mode Header */
body.light-mode .site-header {
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 4px 20px -5px rgba(0,0,0,0.08);
}

body.light-mode .site-header:hover {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 30px -5px rgba(0,0,0,0.12);
}

body.light-mode .logo {
    color: #0f172a;
}

body.light-mode .nav-links a {
    color: #475569;
}

body.light-mode .nav-links a:hover {
    color: #059669;
    background: rgba(5, 150, 105, 0.08);
}

body.light-mode .theme-toggle {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(15, 23, 42, 0.15);
    color: #0f172a;
}

body.light-mode .theme-toggle:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #059669;
}

/* Light Mode Hero */
body.light-mode .hero-main h1 {
    background: linear-gradient(180deg, #0f172a 10%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode .hero-main p {
    color: #64748b !important;
}

/* Light Mode DAW Visualizer */
body.light-mode .visualizer-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.08);
}

body.light-mode .daw-header {
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

body.light-mode .daw-dot {
    background: rgba(15, 23, 42, 0.2);
}

body.light-mode .daw-dot.active {
    background: #059669;
    box-shadow: 0 0 5px #059669;
}

body.light-mode .track-label {
    background: rgba(15, 23, 42, 0.05);
    color: #475569;
}

body.light-mode .track-timeline {
    background: rgba(15, 23, 42, 0.03);
}

/* Light Mode Buttons */
body.light-mode .btn-neon {
    background-color: #059669;
    color: #ffffff;
    border: 1px solid #059669;
    /* Diagonal X Grid Pattern */
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.15) 10px, rgba(255, 255, 255, 0.15) 11px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.15) 10px, rgba(255, 255, 255, 0.15) 11px);
    background-size: 20px 20px;
}

body.light-mode .btn-neon:hover {
    background-color: #047857;
    box-shadow: 0 10px 30px -5px rgba(5, 150, 105, 0.4);
    text-shadow: none;
}

body.light-mode .btn-ghost {
    border: 1px solid rgba(15, 23, 42, 0.2);
    color: #475569;
    background: transparent;
}

body.light-mode .btn-ghost:hover {
    background-color: #f1f5f9;
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.3);
    /* Diagonal X Grid Pattern */
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(15, 23, 42, 0.05) 10px, rgba(15, 23, 42, 0.05) 11px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(15, 23, 42, 0.05) 10px, rgba(15, 23, 42, 0.05) 11px);
    background-size: 20px 20px;
}

/* Light Mode Newsletter */
body.light-mode .newsletter-section {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.08) 0%, rgba(14, 165, 233, 0.08) 100%);
    border: 1px solid rgba(15, 23, 42, 0.1);
}

body.light-mode .newsletter-badge {
    background: rgba(5, 150, 105, 0.1);
    border: 1px solid rgba(5, 150, 105, 0.3);
    color: #047857;
}

body.light-mode .newsletter-content h2 {
    background: linear-gradient(135deg, #0f172a 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode .newsletter-form input {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.15);
    color: #0f172a;
}

body.light-mode .newsletter-form input::placeholder {
    color: #94a3b8;
}

body.light-mode .newsletter-form button {
    background: #059669;
    color: #ffffff;
}

body.light-mode .newsletter-form button:hover {
    box-shadow: 0 10px 30px -5px rgba(5, 150, 105, 0.4);
}

/* Light Mode Articles */
body.light-mode .feature-article {
    background: linear-gradient(180deg, rgba(248,250,252,0) 0%, #f8fafc 100%), url('https://images.unsplash.com/photo-1519638399535-1b036603ac77?q=80&w=1200');
    border: 1px solid rgba(15, 23, 42, 0.12);
}

body.light-mode .feature-article:hover {
    border-color: rgba(15, 23, 42, 0.3);
    box-shadow: 0 0 30px -10px rgba(15, 23, 42, 0.2);
}

body.light-mode .feature-article h2 {
    color: #0f172a;
}

body.light-mode .feature-article p {
    color: #475569 !important;
}

body.light-mode .news-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(15, 23, 42, 0.12);
}

body.light-mode .news-item:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

body.light-mode .news-item h4 {
    color: #0f172a !important;
}

body.light-mode .news-meta {
    color: #059669 !important;
}

/* Light Mode Footer */
body.light-mode .footer-toggle {
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.15);
    box-shadow: 0 4px 20px -5px rgba(0,0,0,0.1);
}

body.light-mode .footer-toggle:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #059669;
    box-shadow: 0 8px 30px -5px rgba(5, 150, 105, 0.2);
}

body.light-mode .footer-toggle svg {
    stroke: #0f172a;
}

body.light-mode .footer-toggle.active svg {
    stroke: #059669;
}

body.light-mode .footer-slideout {
    background: rgba(248, 250, 252, 0.98);
    border-top: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 -20px 60px -10px rgba(0,0,0,0.08);
}

body.light-mode .footer-brand h3 {
    color: #0f172a;
}

body.light-mode .footer-brand p {
    color: #64748b;
}

body.light-mode .footer-social a {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(15, 23, 42, 0.15);
}

body.light-mode .footer-social a:hover {
    background: #059669;
    border-color: #059669;
}

body.light-mode .footer-social a svg {
    stroke: #0f172a;
}

body.light-mode .footer-social a:hover svg {
    stroke: #ffffff;
}

body.light-mode .footer-column h4 {
    color: #047857;
}

body.light-mode .footer-column ul li a {
    color: #64748b;
}

body.light-mode .footer-column ul li a:hover {
    color: #0f172a;
}

body.light-mode .footer-bottom {
    border-top: 1px solid rgba(15, 23, 42, 0.1);
    color: #64748b;
}

/* Light Mode Section Headers */
body.light-mode .section-header h2 {
    color: #0f172a;
}

body.light-mode .section-header a {
    color: #64748b;
}

body.light-mode .section-header a:hover {
    color: #059669;
}

/* --- 2. BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* Background Layers */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        radial-gradient(circle at 15% 50%, rgba(14, 165, 233, 0.15), transparent 25%), 
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.15), transparent 25%);
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 50%; left: 50%;
    width: 80vw; height: 80vh;
    background: radial-gradient(circle, rgba(57, 255, 20, 0.03), transparent 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
    animation: breathe 10s ease-in-out infinite alternate;
}

@keyframes breathe {
    0% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.9); }
    100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 30px; }

/* --- 3. NAV --- */
.site-header {
    position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
    width: calc(100% - 48px); max-width: 1200px; height: 72px; z-index: 1000;
    border-radius: 16px; 
    background: rgba(10, 15, 30, 0.6);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.4s var(--ease-out);
    animation: slideDown 0.6s var(--ease-out);
}
.site-header:hover {
    background: rgba(15, 20, 40, 0.8); transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 20px 40px -5px rgba(0,0,0,0.6); border-color: rgba(255,255,255,0.15);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-30px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.site-header .container { width: 100%; display: flex; justify-content: space-between; align-items: center; }

.logo { 
    font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.5px; 
    color: var(--text-main); display: flex; align-items: center; gap: 8px;
}
.logo-dot {
    width: 8px; height: 8px; background: var(--neon-green); border-radius: 2px;
    box-shadow: 0 0 10px var(--neon-green);
}

.nav-links { display: flex; gap: 32px; }

.nav-links a {
    position: relative; display: inline-block;
    font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
    padding: 8px 16px; cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s var(--ease-out);
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--neon-green);
    transform: translateX(-50%);
    transition: width 0.3s var(--ease-out);
    box-shadow: 0 0 10px var(--neon-green);
}

.nav-links a:hover {
    color: var(--neon-green);
    background: rgba(57, 255, 20, 0.05);
}

.nav-links a:hover::before {
    width: 80%;
}

/* --- 4. HERO SECTION --- */
.hero-hub {
    min-height: 100vh; display: flex; align-items: center; position: relative; padding-top: 100px;
}
.hero-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; width: 100%;
}
.hero-main h1 {
    font-family: var(--font-heading); font-size: 5rem; line-height: 1; letter-spacing: -0.03em;
    font-weight: 800; margin-bottom: 30px;
    background: linear-gradient(180deg, #fff 10%, #94a3b8 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
}

/* --- 5. PREMIUM BUTTONS (Fixed Grid) --- */
.btn {
    padding: 18px 40px; border-radius: 4px; /* Tech Box Shape */
    font-weight: 700; font-size: 0.85rem; cursor: pointer; border: none;
    text-transform: uppercase; letter-spacing: 1px;
    position: relative; overflow: hidden;
    transition: all 0.3s ease;
}

/* Primary "Launch" Button - Dark Grid Base */
.btn-neon {
    color: var(--neon-green);
    background-color: #0b1121; /* Dark Blue Base */
    
    /* Diagonal X Grid Pattern */
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(57, 255, 20, 0.15) 10px, rgba(57, 255, 20, 0.15) 11px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(57, 255, 20, 0.15) 10px, rgba(57, 255, 20, 0.15) 11px);
    background-size: 20px 20px;
    
    border: 1px solid rgba(57, 255, 20, 0.4);
}

/* Animated Border Glow */
.btn-neon::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(57, 255, 20, 0.4), transparent);
    transform: skewX(-20deg); transition: 0.5s; pointer-events: none;
    z-index: 2;
}

.btn-neon:hover {
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.3);
    border-color: var(--neon-green);
    text-shadow: 0 0 8px var(--neon-green);
}
.btn-neon:hover::before { left: 150%; transition: 0.5s ease-in-out; }

/* Ghost "Read" Button */
.btn-ghost {
    background: transparent; 
    border: 1px solid var(--border-glass); 
    color: var(--text-muted);
}

.btn-ghost:hover {
    background-color: #000512; /* Midnight Blue Hover */
    
    /* Diagonal X Grid Pattern */
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.05) 10px, rgba(255, 255, 255, 0.05) 11px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.05) 10px, rgba(255, 255, 255, 0.05) 11px);
    background-size: 20px 20px;
    
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}

/* --- 6. DAW SEQUENCER ANIMATION --- */
.visualizer-card {
    position: relative; width: 100%; aspect-ratio: 16/10;
    background: rgba(10, 15, 30, 0.5); /* Darker backing */
    border: 1px solid rgba(255, 255, 255, 0.1); border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px; backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.5);
    display: flex; flex-direction: column;
    overflow: hidden;
    transition: transform 0.5s var(--ease-out);
}
.visualizer-card:hover { transform: perspective(1000px) rotateX(2deg) rotateY(-2deg); }

/* DAW Interface */
.daw-interface {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    padding: 20px;
    position: relative;
}

/* Header strip */
.daw-header {
    height: 30px; border-bottom: 1px solid var(--border-glass);
    display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.daw-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-glass); }
.daw-dot.active { background: var(--neon-green); box-shadow: 0 0 5px var(--neon-green); }

/* Tracks */
.daw-tracks {
    flex: 1; display: flex; flex-direction: column; gap: 8px;
    position: relative;
}

.track-row {
    height: 24px; display: flex; align-items: center; gap: 10px;
}
.track-label { width: 60px; height: 100%; background: rgba(255,255,255,0.05); border-radius: 4px; }
.track-timeline {
    flex: 1; height: 100%; background: rgba(0,0,0,0.2); border-radius: 4px;
    display: grid; grid-template-columns: repeat(16, 1fr); gap: 2px;
    position: relative;
    overflow: hidden;
}

/* Notes */
.note-block {
    background: var(--neon-green);
    opacity: 0;
    border-radius: 2px;
    animation: popIn 0.3s ease forwards;
}
.note-block.blue { background: var(--neon-blue); }
.note-block.purple { background: var(--neon-purple); }

/* Playhead */
.playhead {
    position: absolute; top: 0; left: 0; width: 2px; height: 100%;
    background: rgba(255,255,255,0.3);
    z-index: 10;
    animation: play 4s linear infinite;
    box-shadow: 0 0 10px rgba(255,255,255,0.2);
}

@keyframes popIn { to { opacity: 0.8; } }
@keyframes play { 0% { left: 0%; } 100% { left: 100%; } }
@keyframes fadeIn { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }


/* --- 7. MAGAZINE GRID --- */
.section-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 40px; border-bottom: 1px solid var(--border-glass); padding-bottom: 20px;
}
.magazine-grid { display: grid; grid-template-columns: 1.8fr 1fr; gap: 40px; margin-bottom: 120px; }

.feature-article {
    position: relative; min-height: 550px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, #020617 100%), url('https://images.unsplash.com/photo-1519638399535-1b036603ac77?q=80&w=1200');
    background-size: cover; background-position: center;
    border-radius: 24px; border: 1px solid var(--border-glass);
    padding: 50px; display: flex; flex-direction: column; justify-content: flex-end;
    transition: all 0.4s var(--ease-out); overflow: hidden;
}
.feature-article:hover {
    border-color: var(--neon-green); box-shadow: 0 0 30px -10px rgba(57, 255, 20, 0.1);
    transform: translateY(-5px);
}
.feature-article h2 {
    font-size: 3rem; line-height: 1; letter-spacing: -1px; margin-bottom: 16px;
    transition: color 0.3s; font-weight: 800;
}

.side-list { display: flex; flex-direction: column; gap: 16px; }
.news-item {
    padding: 30px; background: var(--bg-glass); border: 1px solid var(--border-glass);
    border-radius: 16px; transition: all 0.3s var(--ease-out); cursor: pointer;
    position: relative; overflow: hidden;
}
.news-item:hover {
    background: linear-gradient(90deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
    border-color: var(--border-glass); transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.news-item:hover .news-meta { text-shadow: 0 0 8px var(--neon-green); }
.news-meta {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
    color: var(--neon-green); margin-bottom: 10px; display: block; transition: text-shadow 0.3s;
}
.news-item h4 { font-size: 1.1rem; line-height: 1.3; font-weight: 500; color: var(--text-main); }

.theme-toggle {
    width: 40px; height: 40px; border-radius: 12px;
    background: var(--bg-glass); border: 1px solid var(--border-glass);
    color: #fff; display: grid; place-items: center; cursor: pointer; transition: 0.3s;
}
.theme-toggle:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

.reveal { opacity: 0; animation: fadeUp 1s var(--ease-out) forwards; }
.delay-1 { animation-delay: 0.1s; } .delay-2 { animation-delay: 0.2s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* --- 8. NEWSLETTER SECTION --- */
.newsletter-section {
    position: relative;
    margin: 120px 0;
    padding: 80px 60px;
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.05) 0%, rgba(14, 165, 233, 0.05) 100%);
    border: 1px solid var(--border-glass);
    border-radius: 32px;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(57, 255, 20, 0.1), transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.newsletter-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1), transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

.newsletter-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(57, 255, 20, 0.1);
    border: 1px solid rgba(57, 255, 20, 0.3);
    border-radius: 50px;
    color: var(--neon-green);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.newsletter-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.newsletter-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 18px 24px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s var(--ease-out);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--neon-green);
    box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.1);
    background: var(--bg-glass-hover);
}

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

.newsletter-form button {
    padding: 18px 36px;
    background: var(--neon-green);
    color: #000;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -5px rgba(57, 255, 20, 0.4);
}

.newsletter-form button:active {
    transform: translateY(0);
}

/* --- 9. SLIDEOUT FOOTER --- */
.footer-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s var(--ease-out);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.3);
}

.footer-toggle:hover {
    transform: translateY(-5px) scale(1.05);
    background: var(--bg-glass-hover);
    border-color: var(--neon-green);
    box-shadow: 0 15px 40px -10px rgba(57, 255, 20, 0.3);
}

.footer-toggle svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-main);
    transition: all 0.3s var(--ease-out);
}

.footer-toggle.active svg {
    transform: rotate(180deg);
    stroke: var(--neon-green);
}

.footer-slideout {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 15, 30, 0.95);
    backdrop-filter: blur(30px);
    border-top: 1px solid var(--border-glass);
    transform: translateY(100%);
    transition: transform 0.5s var(--ease-out);
    z-index: 998;
    box-shadow: 0 -20px 60px -10px rgba(0,0,0,0.5);
}

.footer-slideout.active {
    transform: translateY(0);
}

.footer-slideout-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 30px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
}

.footer-brand h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-brand .logo-dot {
    width: 10px;
    height: 10px;
    background: var(--neon-green);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--neon-green);
}

.footer-brand p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-out);
}

.footer-social a:hover {
    background: var(--neon-green);
    border-color: var(--neon-green);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px -5px rgba(57, 255, 20, 0.4);
}

.footer-social a svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-main);
}

.footer-social a:hover svg {
    stroke: #000;
}

.footer-column h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--neon-green);
    margin-bottom: 20px;
}

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

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: all 0.3s var(--ease-out);
    display: inline-block;
}

.footer-column ul li a:hover {
    color: var(--text-main);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid var(--border-glass);
    padding: 24px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- 10. CURSOR TRAIL (OPTIONAL) --- */
.cursor-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(57, 255, 20, 0.3), transparent);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

/* --- 11. PREMIUM HOVER EFFECTS --- */
.feature-article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.1), rgba(14, 165, 233, 0.1));
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
    border-radius: 24px;
}

.feature-article:hover::before {
    opacity: 1;
}

.news-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0;
    background: var(--neon-green);
    transition: height 0.3s var(--ease-out);
    border-radius: 3px;
}

.news-item:hover::before {
    height: 100%;
}

/* --- 12. LOADING ANIMATIONS --- */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-glass) 0%,
        var(--bg-glass-hover) 50%,
        var(--bg-glass) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* --- 13. GLASS MORPHISM ENHANCEMENTS --- */
.visualizer-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.2), rgba(14, 165, 233, 0.2), rgba(139, 92, 246, 0.2));
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
    z-index: -1;
    filter: blur(20px);
}

.visualizer-card:hover::before {
    opacity: 1;
}

/* --- 14. TEXT GRADIENT ANIMATIONS --- */
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.gradient-text {
    background: linear-gradient(
        90deg,
        var(--neon-green),
        var(--neon-blue),
        var(--neon-purple),
        var(--neon-green)
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
}

/* --- 15. SCROLL PROGRESS BAR --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-green), var(--neon-blue));
    z-index: 10000;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px var(--neon-green);
}

body.light-mode .scroll-progress {
    background: linear-gradient(90deg, #059669, #0284c7);
    box-shadow: 0 0 10px rgba(5, 150, 105, 0.5);
}

/* Light Mode Article Pages */
body.light-mode .article-preview {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(15, 23, 42, 0.12);
}

body.light-mode .article-preview:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: #059669;
    box-shadow: 0 10px 40px -10px rgba(5, 150, 105, 0.15);
}

body.light-mode .article-preview h2 a {
    color: #0f172a;
}

body.light-mode .article-preview h2 a:hover {
    color: #059669;
}

body.light-mode .article-preview p {
    color: #64748b;
}

body.light-mode .article-preview span {
    color: #94a3b8;
}

body.light-mode .article-preview a[href*="Read More"] {
    color: #059669;
}

/* Light Mode Single Article */
body.light-mode .article-single h1 {
    color: #0f172a;
}

body.light-mode .article-content {
    color: #1e293b;
}

body.light-mode .article-content h2,
body.light-mode .article-content h3,
body.light-mode .article-content h4 {
    color: #0f172a;
}

body.light-mode .article-content a {
    color: #059669;
}

body.light-mode .article-content blockquote {
    background: rgba(255, 255, 255, 0.8);
    border-left: 4px solid #059669;
    color: #64748b;
}

body.light-mode .article-content code {
    background: rgba(15, 23, 42, 0.08);
    color: #047857;
}

body.light-mode .article-content pre {
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.12);
}

body.light-mode .article-content table th,
body.light-mode .article-content table td {
    border: 1px solid rgba(15, 23, 42, 0.12);
}

body.light-mode .article-content table th {
    background: rgba(15, 23, 42, 0.05);
}

@media (max-width: 900px) {
    .site-header { top: 0; border-radius: 0; width: 100%; max-width: none; border-left: 0; border-right: 0; border-top: 0; }
    .hero-grid, .magazine-grid { grid-template-columns: 1fr; }
    .hero-main h1 { font-size: 3.5rem; }
    .nav-links { display: none; }
    
    .newsletter-section {
        padding: 60px 30px;
        margin: 80px 0;
    }
    
    .newsletter-content h2 {
        font-size: 2.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
    }
    
    .footer-slideout-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 30px;
    }
    
    .footer-toggle {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}