:root {
    --blurple: #5865F2;
    --dark-blue: #090916;
    --dark-bg: #1e1f2b;
    --text-white: #ffffff;
    --text-gray: #b9bbbe;
    --font-main: 'Inter', sans-serif;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    --nav-height: 80px;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--dark-blue);
    color: var(--text-white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography */
h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 24px;
}

p {
    font-size: 1.125rem;
    color: var(--text-gray);
    max-width: 600px;
    margin-bottom: 32px;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 28px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
    height: fit-content;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.25rem;
}

.btn-white {
    background-color: var(--text-white);
    color: var(--dark-blue);
}

.btn-white:hover {
    color: var(--blurple);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.btn-blurple {
    background-color: var(--blurple);
    color: var(--text-white);
}

.btn-blurple:hover {
    background-color: #4752c4;
    box-shadow: 0 8px 15px rgba(88, 101, 242, 0.4);
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 100;
    transition: background-color var(--transition-fast);
}

.navbar.scrolled {
    background-color: rgba(9, 9, 22, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 32px; /* Increased gap */
}

.nav-link {
    font-weight: 600;
    font-size: 1rem;
    padding: 10px;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
}

.nav-link:hover {
    text-decoration: underline;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.has-dropdown {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.95);
    background-color: var(--blurple);
    border-radius: 16px;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    pointer-events: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
}

.dropdown-columns {
    display: flex;
    gap: 40px;
}

.dropdown-col {
    display: flex;
    flex-direction: column;
    min-width: 140px;
}

.dropdown-title {
    font-size: 0.875rem;
    text-transform: uppercase;
    font-weight: 800;
    color: rgba(255,255,255,0.6);
    margin-bottom: 12px;
}

.dropdown-col a {
    padding: 8px 0;
    font-weight: 600;
    transition: opacity var(--transition-fast);
}

.dropdown-col a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.mobile-menu-btn {
    display: none;
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 50% 0%, #1e2150 0%, var(--dark-blue) 70%);
    overflow: hidden;
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star {
    position: absolute;
    color: rgba(255,255,255,0.2);
    animation: twinkle 4s infinite ease-in-out alternate;
}
.star-1 { top: 20%; left: 15%; font-size: 24px; animation-delay: 0s; }
.star-2 { top: 15%; right: 20%; font-size: 16px; animation-delay: 1s; }
.star-3 { top: 60%; left: 80%; font-size: 32px; animation-delay: 2s; }

@keyframes twinkle {
    0% { opacity: 0.2; transform: scale(1); }
    100% { opacity: 0.8; transform: scale(1.2); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-avatar {
    width: min(420px, 100%);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

/* UI Mockups */
.mockup-hero {
    position: relative;
    width: 100%;
    height: 500px;
    perspective: 1000px;
}

.mockup-device {
    position: absolute;
    background: #202225;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.1);
    overflow: hidden;
}

.laptop {
    width: 450px;
    height: 300px;
    right: 0;
    top: 50px;
    transform: rotateY(-15deg) rotateX(5deg);
    border: 8px solid #2f3136;
    border-bottom-width: 16px;
}

.mockup-screen {
    display: flex;
    height: 100%;
}

.mockup-sidebar {
    width: 60px;
    background: #202225;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.mockup-main {
    flex: 1;
    background: #36393f;
    display: flex;
    flex-direction: column;
}

.mockup-header {
    height: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mockup-chat {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 12px;
}

.mockup-msg {
    height: 24px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    width: 70%;
}
.mockup-msg.user {
    width: 50%;
    align-self: flex-end;
    background: var(--blurple);
}

.phone {
    width: 180px;
    height: 380px;
    left: 20px;
    bottom: 20px;
    border: 10px solid #1a1a1a;
    border-radius: 30px;
    z-index: 3;
}

/* Animations classes used by JS */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.parallax-img {
    transition: transform 0.1s linear;
}

/* Floating Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes bounceSlow {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.float-anim {
    animation: float 6s ease-in-out infinite;
}

.bounce-anim {
    animation: bounceSlow 5s ease-in-out infinite;
}

/* Feature Sections */
.feature {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.feature-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.styled-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.styled-list li {
    font-size: 1rem;
    color: var(--text-gray);
    position: relative;
    padding-left: 24px;
    line-height: 1.5;
}

.styled-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--blurple);
    font-size: 14px;
}

.styled-list strong {
    color: var(--text-white);
}

.alt-bg {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.1) 0%, transparent 100%);
}

.feature-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-container.reverse {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.feature-container.reverse > * {
    direction: ltr;
}

/* Glass Card / Feature UI Mockups */
.glass-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.4);
    position: relative;
}

/* Chat UI Mockup Details */
.chat-ui {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    color: #313338;
}

.chat-header {
    padding: 16px;
    border-bottom: 1px solid #e3e5e8;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hash {
    color: #80848e;
    font-size: 1.2rem;
}

.chat-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-message {
    display: flex;
    gap: 16px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.avatar-1 { background: linear-gradient(45deg, #f1c40f, #e67e22); }
.avatar-2 { background: var(--blurple); }

.msg-name {
    font-weight: 600;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.time {
    font-size: 0.75rem;
    color: #80848e;
    font-weight: 400;
}

.msg-text {
    color: #2b2d31;
    margin-top: 4px;
}

.custom-emojis {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.emoji-bubble {
    background: #f2f3f5;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.github-bubble {
    height: 18px;
    width: auto;
    object-fit: contain;
}

.chat-input-area {
    padding: 16px;
    background: #f2f3f5;
}

.chat-input {
    background: #e3e5e8;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #80848e;
}

/* Stream UI Mockup Details */
.stream-card {
    background: #111214;
    padding: 16px;
}

.stream-main {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    height: 250px;
    border-radius: 12px;
    margin-bottom: 16px;
    position: relative;
}

.live-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ed4245;
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
}

.stream-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stream-thumb {
    height: 80px;
    background: #2b2d31;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
}

.stream-thumb.active {
    border-color: #2ecc71;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--blurple);
}

/* Footer */
.footer {
    background: #000000;
    padding: 80px 0 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-links {
    display: flex;
    gap: 80px;
    flex-wrap: wrap;
}

.footer-col h3 {
    color: var(--blurple);
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    color: var(--text-white);
    margin-bottom: 12px;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--blurple);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container, .feature-container, .feature-container.reverse {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero {
        padding-top: 120px;
    }
    
    .mockup-hero {
        transform: scale(0.8);
    }
}

@media (max-width: 768px) {
    .nav-links, #nav-btn {
        display: none;
    }
    
    /* Mobile Menu Active State */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background-color: rgba(9, 9, 22, 0.98);
        backdrop-filter: blur(10px);
        padding: 24px;
        gap: 20px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.5);
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .mobile-nav-btn-container {
        display: block !important;
        margin-top: 10px;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: rgba(255,255,255,0.05);
        padding: 16px;
        margin-top: 12px;
        display: none;
    }

    /* Keep dropdown open or hover state easy on mobile */
    .dropdown:hover .dropdown-menu {
        display: block;
        transform: none;
    }

    .dropdown-columns {
        flex-direction: column;
        gap: 20px;
    }

    .mobile-menu-btn {
        display: block;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 101;
    }
    
    .mobile-menu-btn span {
        display: block;
        width: 24px;
        height: 2px;
        background: white;
        margin: 5px 0;
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Typography Adjustments */
    h1 {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }
    
    h2 {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }

    /* Spacing Adjustments */
    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero-container {
        gap: 30px;
    }

    .feature {
        padding: 60px 0;
    }

    .feature-container {
        gap: 40px;
    }

    /* Buttons Adjustments */
    .btn-large {
        padding: 14px 24px;
        font-size: 1.1rem;
        width: 100%;
    }

    .hero-buttons {
        gap: 16px;
        flex-direction: column;
        width: 100%;
    }

    .hero-avatar {
        width: min(320px, 78vw);
    }

    /* List Items alignment */
    .styled-list li {
        text-align: left;
    }

    /* Chat UI adjustments */
    .chat-message {
        gap: 12px;
    }
    
    .avatar {
        min-width: 32px;
        width: 32px;
        height: 32px;
    }
    
    .msg-text {
        font-size: 0.95rem;
    }

    /* Footer adjustments */
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-links {
        gap: 40px;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-image {
        margin-top: 8px;
    }

    .hero-avatar {
        width: min(260px, 72vw);
        border-width: 6px;
    }

    .hero-buttons {
        flex-direction: column;
    }
    
    .stream-thumbnails {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .glass-card {
        padding: 16px;
    }
}
