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

:root {
    --purple: #5E00FF;
    --blue: #0086FF;
    --bg-primary: #F2F2F2;
    --bg-secondary: #FFFFFF;
    --bg-card: #FAFAFA;
    --text-primary: #0A0A0A;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --border: #E5E5E5;
    --border-light: #F0F0F0;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --sidebar-width: 260px;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 0.25rem;
    position: relative;
}

.nav-item svg {
    flex-shrink: 0;
}

.nav-item:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(94, 0, 255, 0.1), rgba(0, 134, 255, 0.1));
    color: var(--purple);
}

.badge {
    margin-left: auto;
    padding: 0.125rem 0.5rem;
    background: var(--purple);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
}

.nav-divider {
    height: 1px;
    background: var(--border);
    margin: 1rem 0;
}

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

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-card);
    border-radius: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 2rem;
    min-height: 100vh;
}

/* Top Bar */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.topbar-left h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.subtitle {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    position: relative;
}

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

.btn-icon.notification {
    position: relative;
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid var(--bg-secondary);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(94, 0, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(94, 0, 255, 0.3);
}

/* Integrations Container */
.integrations-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Integration Category */
.integration-category {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-header svg {
    color: var(--purple);
}

.category-header h2 {
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Integrations Grid */
.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
}

/* Integration Card */
.integration-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.integration-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--purple);
}

.integration-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 8px;
}

.integration-icon svg {
    width: 40px;
    height: 40px;
}

.integration-info {
    flex: 1;
    min-width: 0;
}

.integration-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.integration-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.coming-soon-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, rgba(94, 0, 255, 0.1), rgba(0, 134, 255, 0.1));
    color: var(--purple);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
    border: 1px solid rgba(94, 0, 255, 0.2);
}

.configure-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
    box-shadow: 0 2px 8px rgba(94, 0, 255, 0.25);
    transition: all 0.2s ease;
}

.integration-card.clickable {
    cursor: pointer;
}

.integration-card.clickable:hover .configure-badge {
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(94, 0, 255, 0.35);
}

/* CTA Section */
.cta-section {
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.cta-card {
    background: linear-gradient(135deg, var(--purple), var(--blue));
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 50%;
    pointer-events: none;
}

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

.cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.cta-content > p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.notify-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.email-input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 0.9375rem;
    color: white;
    font-family: inherit;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.email-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.email-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.notify-form .btn-primary {
    background: white;
    color: var(--purple);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notify-form .btn-primary:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.notify-form .btn-primary svg {
    color: var(--purple);
}

.cta-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.launch-date {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.request-link {
    font-size: 0.875rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.request-link:hover {
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 1200px) {
    .integrations-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

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

    .main-content {
        margin-left: 0;
        padding: 1.5rem;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .topbar-left h1 {
        font-size: 1.75rem;
    }

    .topbar-right {
        width: 100%;
        justify-content: space-between;
    }

    .integrations-grid {
        grid-template-columns: 1fr;
    }

    .integration-card {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .coming-soon-badge {
        position: static;
        align-self: flex-start;
        margin-top: 0.5rem;
    }

    .cta-card {
        padding: 2rem 1.5rem;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .cta-content > p {
        font-size: 1rem;
    }

    .notify-form {
        flex-direction: column;
    }

    .cta-footer {
        flex-direction: column;
        gap: 1rem;
    }

    .category-header h2 {
        font-size: 1.125rem;
    }
}