/* =============================================
   CUDDYBUDDY STYLES
   Dark theme with purple/pink accents
   ============================================= */

/* CSS Variables */
:root {
    --bg-primary: #0f0d15;
    --bg-secondary: #1a1625;
    --bg-tertiary: #252136;
    --bg-card: #1e1a2e;
    
    --text-primary: #ffffff;
    --text-secondary: #b4b0c4;
    --text-muted: #6b6880;
    
    --accent-pink: #ff6b9d;
    --accent-purple: #a855f7;
    --accent-teal: #2dd4bf;
    --accent-orange: #f59e0b;
    --accent-blue: #3b82f6;
    
    --gradient-primary: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-purple) 100%);
    --gradient-button: linear-gradient(135deg, var(--accent-teal) 0%, #14b8a6 100%);
    
    --border-color: #2d2a3d;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(168, 85, 247, 0.3);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* =============================================
   NAVIGATION
   ============================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 13, 21, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-link-muted {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-button);
    color: var(--bg-primary);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(45, 212, 191, 0.4);
}

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

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--accent-purple);
}

.btn-twitch {
    background: #9146ff;
    color: white;
}

.btn-twitch:hover {
    background: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(145, 70, 255, 0.4);
}

.btn-twitch svg {
    width: 20px;
    height: 20px;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* =============================================
   HERO SECTION
   ============================================= */

.hero {
    padding: 8rem 2rem 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-tertiary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-teal);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-description strong {
    color: var(--accent-pink);
}

.hero-description em {
    font-style: italic;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

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

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mascot-container {
    position: relative;
    z-index: 2;
}

.mascot {
    width: 350px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.speech-bubble {
    position: absolute;
    top: -20px;
    right: -60px;
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow-lg);
    animation: bubble 3s ease-in-out infinite;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: var(--text-primary) transparent transparent;
}

@keyframes bubble {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

/* Chat Mockup */
.chat-mockup {
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 320px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.chat-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28c840; }

.chat-url {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.chat-messages {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-message {
    font-size: 0.9rem;
}

.chat-user {
    font-weight: 600;
    margin-right: 0.5rem;
}

.chat-user.viewer { color: var(--accent-orange); }
.chat-user.bot { color: var(--accent-purple); }

.chat-text {
    color: var(--text-secondary);
}

/* =============================================
   FEATURES SECTION
   ============================================= */

.features {
    padding: 6rem 2rem;
    background: var(--bg-secondary);
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-purple);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.feature-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    text-transform: uppercase;
}

.feature-badge.coming-soon {
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

/* =============================================
   SASS LEVELS SECTION
   ============================================= */

.sass-levels {
    padding: 6rem 2rem;
}

.sass-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.sass-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
    position: relative;
    transition: all 0.3s;
    text-align: center;
}

.sass-card:hover {
    transform: translateY(-4px);
}

.sass-card.friendly:hover { border-color: #22c55e; box-shadow: 0 0 30px rgba(34, 197, 94, 0.2); }
.sass-card.sassy:hover { border-color: var(--accent-purple); box-shadow: 0 0 30px rgba(168, 85, 247, 0.2); }
.sass-card.spicy:hover { border-color: var(--accent-orange); box-shadow: 0 0 30px rgba(245, 158, 11, 0.2); }
.sass-card.unhinged:hover { border-color: var(--accent-pink); box-shadow: 0 0 30px rgba(255, 107, 157, 0.2); }

.sass-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.sass-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

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

.sass-example {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: var(--radius-md);
    text-align: left;
}

.example-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sass-example p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-style: italic;
}

.sass-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* =============================================
   CTA SECTION
   ============================================= */

.cta {
    padding: 6rem 2rem;
    background: var(--bg-secondary);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
    padding: 3rem 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
}

.footer-logo {
    width: 32px;
    height: 32px;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-links .muted {
    opacity: 0.5;
    cursor: not-allowed;
}

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

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-description {
        margin: 0 auto 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .mascot {
        width: 250px;
    }
    
    .chat-mockup {
        position: relative;
        left: 0;
        bottom: 0;
        margin-top: 2rem;
    }
    
    .features-grid,
    .sass-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .features-grid,
    .sass-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* =============================================
   UTILITY CLASSES
   ============================================= */

.hidden {
    display: none !important;
}

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* =========================================
   HOMEPAGE ENHANCEMENTS
   ========================================= */

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-primary);
}

.hero-stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Feature Badges */
.feature-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.75rem;
}

.feature-badge.live {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.feature-badge.new {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
    animation: pulse 2s infinite;
}

.feature-badge.coming-soon {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

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

/* Commands Preview Section */
.commands-preview {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.command-category {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.command-category h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.command-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.command-list code {
    background: var(--bg-secondary);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--accent-primary);
}

/* Footer Enhancement */
.footer-sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Hero Mascot Animation */
.hero-mascot {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .hero-stat-value {
        font-size: 1.5rem;
    }
}

/* =========================================
   HERO VISUAL ENHANCEMENTS
   ========================================= */

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Speech Bubble */
.speech-bubble {
    position: absolute;
    top: -20px;
    right: -30px;
    background: white;
    color: #1a1a2e;
    padding: 0.75rem 1.25rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: bubble-float 3s ease-in-out infinite;
    z-index: 10;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

@keyframes bubble-float {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}

/* Mock Chat Window */
.mock-chat {
    position: absolute;
    bottom: -40px;
    left: -60px;
    width: 320px;
    background: #18181b;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border: 1px solid #333;
    animation: chat-slide 0.8s ease-out;
}

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

.mock-chat-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #0e0e10;
    border-bottom: 1px solid #333;
}

.mock-chat-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mock-chat-header .dot.red { background: #ff5f56; }
.mock-chat-header .dot.yellow { background: #ffbd2e; }
.mock-chat-header .dot.green { background: #27ca40; }

.mock-url {
    margin-left: auto;
    font-size: 0.75rem;
    color: #666;
}

.mock-chat-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mock-message {
    font-size: 0.9rem;
    line-height: 1.4;
}

.mock-user {
    font-weight: 600;
    margin-right: 6px;
}

.mock-user.viewer {
    color: #bf94ff;
}

.mock-user.bot {
    color: #00d4aa;
}

.mock-text {
    color: #efeff1;
}

/* Hero Mascot */
.hero-mascot {
    width: 280px;
    height: auto;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(139, 92, 246, 0.3));
    z-index: 5;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Hero Stats Enhancement */
.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.hero-stat {
    text-align: left;
}

.hero-stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero-visual {
        margin-top: 3rem;
    }
    
    .mock-chat {
        left: 0;
        bottom: -60px;
    }
    
    .speech-bubble {
        right: 0;
    }
}

@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }
    
    .hero-stat-value {
        font-size: 2rem;
    }
    
    .mock-chat {
        width: 280px;
    }
    
    .hero-mascot {
        width: 200px;
    }
}

/* =========================================
   INTERACTIVE COMMANDS DEMO SECTION
   ========================================= */

.commands-demo {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, #1a1025 100%);
    overflow: hidden;
}

#commands-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.commands-demo .section-container {
    position: relative;
    z-index: 1;
}

.demo-container {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Terminal Styling */
.demo-terminal {
    background: #0d1117;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(139, 92, 246, 0.1);
    border: 1px solid #30363d;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: #161b22;
    border-bottom: 1px solid #30363d;
}

.terminal-header .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.terminal-header .dot.red { background: #ff5f56; }
.terminal-header .dot.yellow { background: #ffbd2e; }
.terminal-header .dot.green { background: #27ca40; }

.terminal-title {
    margin-left: auto;
    font-size: 0.85rem;
    color: #8b949e;
    font-weight: 500;
}

.terminal-body {
    padding: 1.5rem;
    min-height: 280px;
    max-height: 350px;
    overflow-y: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
}

.terminal-line {
    margin-bottom: 0.75rem;
    display: flex;
    gap: 0.5rem;
    animation: line-appear 0.3s ease-out;
}

@keyframes line-appear {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.terminal-line.user {
    color: #58a6ff;
}

.terminal-line.bot {
    color: #7ee787;
}

.terminal-line.system {
    color: #8b949e;
}

.terminal-line.error {
    color: #f85149;
}

.line-prefix {
    opacity: 0.7;
}

.terminal-input-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #161b22;
    border-top: 1px solid #30363d;
}

.input-prefix {
    color: #7ee787;
    font-weight: bold;
    font-size: 1.1rem;
}

#command-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #f0f6fc;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 1rem;
    outline: none;
}

#command-input::placeholder {
    color: #484f58;
}

.send-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

/* Quick Commands */
.quick-commands {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.quick-commands h4 {
    margin: 0 0 1rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.quick-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.quick-cmd {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--accent-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-cmd:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

/* Sass Level Selector */
.sass-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.sass-selector > span {
    color: var(--text-secondary);
    font-weight: 500;
}

.sass-buttons {
    display: flex;
    gap: 0.5rem;
}

.sass-btn {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sass-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.sass-btn.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: transparent;
    color: white;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .demo-container {
        grid-template-columns: 1fr;
    }
    
    .sass-selector {
        flex-direction: column;
        gap: 1rem;
    }
    
    .sass-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Fix Hero Stats Visibility */
.hero-stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-primary) !important;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

/* =========================================
   FEATURED LIVE STREAMERS
   ========================================= */

.featured-streamers {
    padding: 5rem 0;
    background: linear-gradient(180deg, #1a1025 0%, var(--bg-primary) 100%);
}

.streamers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.streamer-card {
    background: var(--bg-tertiary);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.streamer-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.2);
}

.streamer-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.streamer-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.streamer-card:hover .streamer-thumbnail img {
    transform: scale(1.05);
}

.live-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef4444;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    animation: pulse-live 2s infinite;
}

.live-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.viewer-count {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.streamer-info {
    padding: 1rem;
}

.streamer-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.streamer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
}

.streamer-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.streamer-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.streamer-game {
    font-size: 0.8rem;
    color: var(--accent-primary);
    font-weight: 500;
}

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

/* =========================================
   VERSION BADGE
   ========================================= */
.version-badge-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.version-badge {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(6, 182, 212, 0.9));
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    overflow: hidden;
}

.version-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.version-badge:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.6);
}

.version-prefix {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
}

.version-number {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
}

.version-badge canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.version-tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.version-badge:hover .version-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
