:root {
    --bg-color: #0d0f1a;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --twitch-purple: #9146FF;
    --twitch-purple-hover: #a970ff;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --nav-height: 80px;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Animated Blobs */
.blob-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent) 0%, rgba(99, 102, 241, 0) 70%);
    opacity: 0.15;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: drift 20s infinite alternate ease-in-out;
    top: -10%;
    left: -10%;
}

.blob-bg.blob-2 {
    background: radial-gradient(circle, var(--twitch-purple) 0%, rgba(145, 70, 255, 0) 70%);
    top: 50%;
    right: -10%;
    left: auto;
    animation-delay: -10s;
}

@keyframes drift {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(100px) scale(1.2);
    }
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(13, 15, 26, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

nav,
.nav-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.logo i {
    color: var(--accent);
    font-size: 2rem;
}

.nav-links {
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Buttons */
button,
.btn-secondary {
    font-family: var(--font-heading);
    cursor: pointer;
    border: none;
    outline: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary.login-btn {
    background: var(--twitch-purple);
    color: white;
}

.btn-primary.login-btn:hover {
    background: var(--twitch-purple-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(145, 70, 255, 0.3);
}

.btn-glow {
    background: linear-gradient(135deg, var(--accent), var(--twitch-purple));
    color: white;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
    position: relative;
    z-index: 1;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--twitch-purple), var(--accent));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-glow:hover::before {
    opacity: 1;
}

.btn-glow:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding-top: var(--nav-height);
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-visual {
    flex: 1;
    width: 100%;
}

/* Terminal Mockup */
.chat-mockup {
    background: rgba(10, 11, 20, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.chat-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    background: rgba(20, 22, 36, 0.9);
    padding: 12px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--glass-border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.r {
    background: #ef4444;
}

.dot.y {
    background: #f59e0b;
}

.dot.g {
    background: #10b981;
}

.mockup-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 0.95rem;
}

.msg {
    padding: 8px;
    border-radius: 6px;
}

.msg.bot {
    background: rgba(99, 102, 241, 0.1);
    border-left: 3px solid var(--accent);
}

.badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 8px;
    text-transform: uppercase;
    font-weight: bold;
}

.badge.streamer {
    background: #ef4444;
    color: white;
}

.badge.bot {
    background: var(--accent);
    color: white;
}

.badge.sub {
    background: var(--twitch-purple);
    color: white;
}

/* Sections */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: white;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Features */
.features {
    padding: 100px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px 30px;
    text-align: left;
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
}

.feature-card .icon-wrap {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: white;
}

.feature-card p {
    color: var(--text-secondary);
}

/* Commands */
.commands {
    padding: 100px 0;
}

.command-list {
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.cmd-item {
    display: flex;
    padding: 24px;
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s;
}

.cmd-item:last-child {
    border-bottom: none;
}

.cmd-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.cmd-name {
    flex: 0 0 200px;
    font-weight: 700;
    color: var(--accent-hover);
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.cmd-desc {
    flex: 1;
    color: var(--text-secondary);
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 40px 0;
    margin-top: 100px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
}

.socials {
    display: flex;
    gap: 20px;
}

.socials a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.socials a:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
    }

    .hero-actions {
        justify-content: center;
    }

    .cmd-item {
        flex-direction: column;
        gap: 8px;
    }
}

/* Dashboard Settings */
.dashboard-container {
    max-width: 800px;
    margin: 120px auto 40px;
    padding: 0 20px;
}

.dashboard-header {
    margin-bottom: 40px;
    text-align: center;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    color: white;
}

.dashboard-header p {
    color: var(--text-secondary);
}

.settings-card {
    padding: 30px;
    margin-bottom: 30px;
}

.settings-card h2 {
    font-size: 1.5rem;
    color: var(--accent-hover);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-info h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.setting-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Custom Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255,255,255,0.1);
    transition: .4s;
    border-radius: 34px;
    border: 1px solid var(--glass-border);
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-secondary);
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--twitch-purple);
    border-color: var(--twitch-purple);
}

input:checked + .slider:before {
    transform: translateX(24px);
    background-color: white;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}