:root {
    /* Premium Dark Theme Palette */
    --bg-color: #09090b;
    /* Zinc 950 */
    --chat-bg: #121215;
    /* Slightly lighter than bg */
    --sidebar-bg: rgba(9, 9, 11, 0.95);

    /* Vibrant Accents */
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    /* Indigo-Purple-Pink */
    --primary-glow: rgba(168, 85, 247, 0.4);
    --secondary-gradient: linear-gradient(135deg, #3b82f6 0%, #2dd4bf 100%);
    /* Blue-Teal */

    /* Text */
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;

    /* Glassmorphism */
    --glass-bg: rgba(18, 18, 21, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.03);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 20px rgba(168, 85, 247, 0.15);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.08) 0%, transparent 25%);
}

/* Header */
#header {
    height: 70px;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: var(--glass-border);
    z-index: 20;
}

#app-title {
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Header Right Controls */
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#link-box {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: var(--glass-border);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-secondary);
}

#link-box:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
}

/* Main Layout */
#main-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
    height: calc(100vh - 70px);
    position: relative;
}

/* Sidebar */
#sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    border-right: var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    overflow-y: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

#sidebar h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#user-count-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#user-list {
    list-style: none;
}

#user-list li {
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.2s;
    border: 1px solid transparent;
}

#user-list li:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

#user-list li::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background-color: #10b981;
    /* Emerald 500 */
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.join-btn {
    background: var(--secondary-gradient);
    border: none;
    border-radius: 6px;
    color: white;
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    margin-left: auto;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.join-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Chat Area */
#chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    padding-bottom: 100px;
    /* Space for floating input */
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    scroll-behavior: smooth;
    max-width: 1000px;
    /* Constrain width for readability */
    margin: 0 auto;
    width: 100%;
}

/* Messages */
.message-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 75%;
    animation: messageSlide 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.message-wrapper.my-message {
    align-self: flex-end;
    align-items: flex-end;
}

.message-wrapper.their-message {
    align-self: flex-start;
    align-items: flex-start;
}

.username-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    margin-left: 0.8rem;
    opacity: 0.8;
}

.message {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    word-wrap: break-word;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}

.message:hover {
    transform: translateY(-1px);
}

.my-message .message {
    background: var(--primary-gradient);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.their-message .message {
    background: rgba(39, 39, 42, 0.6);
    /* Zinc 800 with opacity */
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    border: var(--glass-border);
    backdrop-filter: blur(5px);
}

.timestamp {
    font-size: 0.65rem;
    opacity: 0.6;
    margin-top: 0.4rem;
    text-align: right;
    display: block;
    font-weight: 500;
}

.system-message {
    align-self: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 1rem 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Typing Indicator */
#typing-indicator {
    position: absolute;
    bottom: 120px;
    z-index: 40;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    backdrop-filter: blur(4px);
    pointer-events: none;
}

#typing-indicator.visible {
    opacity: 1;
}

/* Floating Controls */
#controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 900px;
    padding: 0.75rem;
    background: rgba(24, 24, 27, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: var(--glass-border);
    border-radius: 24px;
    display: flex;
    gap: 0.8rem;
    align-items: center;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 30;
}

#controls input {
    flex: 1;
    padding: 0.8rem 1.25rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s;
}

#controls input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

#controls input:focus {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.15);
}

#controls button[type="submit"] {
    padding: 0.8rem 1.8rem;
    border-radius: 16px;
    border: none;
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

#controls button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(168, 85, 247, 0.4);
}

/* Icon Buttons */
.icon-btn {
    padding: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.15);
}

.icon-btn.small-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
}

/* Recording State */
.recording {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #ef4444 !important;
    border-color: rgba(239, 68, 68, 0.5) !important;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Modal Animation Classes */
.modal.animate-in {
    animation: modalZoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.modal.animate-out {
    animation: modalZoomOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes modalZoomIn {
    from {
        opacity: 0;
        transform: translate(var(--origin-x, 0), var(--origin-y, 0)) scale(0.1);
    }

    to {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

@keyframes modalZoomOut {
    from {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }

    to {
        opacity: 0;
        transform: translate(var(--origin-x, 0), var(--origin-y, 0)) scale(0.1);
    }
}

/* Modals */
#modal-overlay,
#qr-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: opacity 0.3s;
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal {
    background: #18181b;
    padding: 2.5rem;
    border-radius: 24px;
    width: 90%;
    max-width: 420px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

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

.modal h2 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.modal p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.modal input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.2s;
}

.modal input:focus {
    border-color: #a855f7;
    background: rgba(0, 0, 0, 0.5);
    outline: none;
}

.modal button {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: none;
    background: var(--primary-gradient);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.modal button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.4);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive */
/* Responsive */
@media (max-width: 768px) {
    #header {
        padding: 0 1rem;
        height: 60px;
        /* Slightly smaller header */
    }

    #app-title {
        font-size: 1.2rem;
    }

    #menu-btn {
        display: flex !important;
    }

    #sidebar {
        position: fixed;
        top: 60px;
        left: 0;
        height: calc(100vh - 60px);
        transform: translateX(-100%);
        z-index: 25;
        width: 85%;
        max-width: 320px;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    }

    #sidebar.open {
        transform: translateX(0);
    }

    #main-layout {
        height: calc(100vh - 60px);
        /* Adjust for smaller header */
    }

    #controls {
        width: 95%;
        bottom: 1rem;
        padding: 0.5rem;
        gap: 0.4rem;
        flex-wrap: wrap;
        /* Allow wrapping if needed */
        justify-content: center;
    }

    #controls input {
        min-width: 150px;
        /* Prevent crushing */
        order: 10;
        /* Move input to new line if wrapping occurs? No, let's keep it inline if possible */
        /* Actually, let's try to keep it on one line but smaller gaps */
    }

    .voice-controls {
        gap: 0.2rem !important;
    }

    #voice-effect {
        width: 80px;
        /* Limit width of select */
        font-size: 0.8rem;
    }

    .icon-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .message-wrapper {
        max-width: 90%;
    }

    .modal {
        padding: 1.5rem;
        width: 95%;
    }

    .whiteboard-controls {
        flex-wrap: wrap;
        justify-content: center;
        padding: 5px;
    }
}

/* Media Content */
.message img {
    max-width: 100%;
    border-radius: 12px;
    margin-top: 0.8rem;
    display: block;
    box-shadow: var(--shadow-md);
}

.message .file-attachment {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 12px;
    margin-top: 0.8rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.message .file-attachment:hover {
    background: rgba(0, 0, 0, 0.3);
}

.audio-player {
    width: 100%;
    margin-top: 0.8rem;
    border-radius: 20px;
}

/* Code Blocks */
pre {
    background: #1e1e24;
    padding: 1rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 0.8rem 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

code {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
}

/* Video Call */
#video-call-overlay {
    background: #000;
}

.call-controls {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#local-video {
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Landing Page Styles */
.landing-page {
    min-height: 100vh;
    background: var(--bg-color);
    overflow-x: hidden;
}

/* Navigation */
.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-cta {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-cta:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
    margin-bottom: 3rem;
}

.hero-badge {
    display: inline-block;
    background: rgba(168, 85, 247, 0.1);
    color: #c084fc;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #a1a1aa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
    }
}

.primary-btn {
    background: var(--primary-gradient);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}

.join-room-container {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#landing-join-input {
    background: transparent;
    border: none;
    color: white;
    padding: 0.5rem 0.8rem;
    outline: none;
    width: 140px;
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
}

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

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

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Visual (Mock Chat) */
.hero-visual {
    width: 100%;
    max-width: 800px;
    margin-top: 2rem;
    perspective: 1000px;
}

.mock-chat-interface {
    background: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
    transform: rotateX(5deg);
    transition: transform 0.5s ease;
}

.mock-chat-interface:hover {
    transform: rotateX(0deg);
}

.mock-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.mock-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.mock-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.mock-messages {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 200px;
}

.mock-msg {
    display: flex;
    max-width: 80%;
}

.mock-msg.received {
    align-self: flex-start;
}

.mock-msg.sent {
    align-self: flex-end;
}

.mock-bubble {
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    font-size: 0.9rem;
}

.received .mock-bubble {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-bottom-left-radius: 2px;
}

.sent .mock-bubble {
    background: var(--primary-gradient);
    color: white;
    border-bottom-right-radius: 2px;
}

.mock-input-area {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 1rem;
    align-items: center;
}

.mock-input {
    flex: 1;
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.mock-send {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-gradient);
    opacity: 0.5;
}

/* Features Section */
.features-section {
    padding: 5rem 1.5rem;
    background: #0c0c0e;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: transform 0.3s, background 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(168, 85, 247, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

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

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* How It Works */
.how-it-works {
    padding: 5rem 1.5rem;
    background: var(--bg-color);
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
}

@media (min-width: 768px) {
    .steps-container {
        flex-direction: row;
        align-items: flex-start;
    }
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.step h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.step-connector {
    display: none;
}

@media (min-width: 768px) {
    .step-connector {
        display: block;
        flex: 0.5;
        height: 2px;
        background: rgba(255, 255, 255, 0.1);
        margin-top: 20px;
    }
}

/* Footer */
.site-footer {
    padding: 3rem 1.5rem;
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.footer-logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
}

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

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

/* Responsive Adjustments */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

    .nav-links {
        display: none;
        /* Hide nav links on very small screens or use a hamburger menu */
    }
}

/* QR Code Specifics */
#qrcode-container {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

#qrcode-container canvas {
    width: 200px !important;
    height: 200px !important;
}

/* File Attachments */
.file-icon {
    font-size: 1.8rem;
}

.file-info {
    display: flex;
    flex-direction: column;
}

.file-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.file-size {
    font-size: 0.75rem;
    opacity: 0.6;
}

/* Video Call Elements */
.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#remote-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.call-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1.5rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 1rem 2rem;
    border-radius: 50px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.end-call-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.end-call-btn:hover {
    transform: scale(1.1);
    background: #dc2626;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

#call-status {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Whiteboard */
#whiteboard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 2000;
    display: flex;
    flex-direction: column;
}

#whiteboard-overlay.hidden {
    display: none;
}

.whiteboard-controls {
    padding: 10px;
    background: #f0f0f0;
    display: flex;
    gap: 10px;
    align-items: center;
    border-bottom: 1px solid #ccc;
}

#whiteboard-canvas {
    flex: 1;
    cursor: crosshair;
    touch-action: none;
}