:root {
    --bg-color: #ffffff;
    --text-primary: #0f172a;
    /* Deep Slate */
    --text-secondary: #64748b;
    /* Muted Slate */
    --accent-blue: #3b82f6;
    --accent-violet: #8b5cf6;
    --btn-dark: #0f172a;
    --btn-hover: #1e293b;
    --border-color: #e2e8f0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-color);
    margin: 0;
    line-height: 1.5;
    overflow-x: hidden;
}

/* --- ANIMATED BACKGROUND (AURORA) --- */
.aurora-bg {
    position: fixed;
    /* Fixed so it stays while scrolling */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -10;
    /* Deep background */
    background: #ffffff;
}

.aurora-blob {
    position: absolute;
    filter: blur(60px);
    /* Slightly less blur for definition */
    opacity: 0.9;
    /* Increased visibility */
    animation: drift 10s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: 20%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, #e0e7ff 0%, rgba(255, 255, 255, 0) 70%);
}

.blob-2 {
    top: 20%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, #ddd6fe 0%, rgba(255, 255, 255, 0) 70%);
    animation-delay: -5s;
}

.blob-3 {
    bottom: -10%;
    left: 30%;
    width: 60vw;
    height: 40vh;
    background: radial-gradient(circle, #ffe4e6 0%, rgba(255, 255, 255, 0) 70%);
    /* More visible pink/red */
    animation-duration: 15s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 50px);
    }
}

/* --- NAVBAR --- */
.premium-nav {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 45px;
    /* Fixed height for logo */
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link-item {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    /* Pill shape */
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s;
    cursor: pointer;
    white-space: nowrap;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-dark {
    background-color: var(--btn-dark);
    color: white;
    border: 1px solid var(--btn-dark);
}

.btn-dark:hover {
    background-color: var(--btn-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--btn-dark);
}

/* --- HERO --- */
.hero-premium {
    padding: 6rem 1rem 4rem;
    /* Adjusted padding */
    text-align: center;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    /* Slightly smaller to fit copy */
    line-height: 1.15;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.text-gradient {
    background: linear-gradient(135deg, #2563eb 0%, #9333ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.trust-badge {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: #94a3b8;
    font-weight: 600;
}

/* --- SECTIONS --- */
.section-premium {
    padding: 6rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

/* --- FEATURES --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 4rem auto 0;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
}

.feature-item h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.feature-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- CARDS --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.premium-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.premium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-blue);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.premium-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* --- DEMOS --- */
.bg-light {
    background-color: #f8fafc;
}

.demo-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.demo-item {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.play-circle {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--btn-dark);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-circle:hover {
    transform: scale(1.1);
}

.demo-info h4 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.demo-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- FOOTER --- */
.footer-premium {
    background: #0f172a;
    color: white;
    padding: 5rem 0 2rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: #94a3b8;
    margin-top: 1rem;
}

.footer-cols {
    display: flex;
    gap: 4rem;
}

.footer-cols h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.footer-cols a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.footer-cols a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 2rem;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links,
    .nav-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav-links {
        display: none;
        /* Hide standard links on mobile to save space */
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .demo-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-top {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    .footer-cols {
        justify-content: center;
    }
}

/* --- DASHBOARD SPECIFIC --- */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background: #f8fafc;
}

.sidebar {
    width: 250px;
    background: #0f172a;
    color: white;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
}

.sidebar-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-decoration: none;
    color: white;
}

.nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.main-content {
    flex-grow: 1;
    margin-left: 250px;
    padding: 3rem 5rem;
    max-width: 1400px;
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 1.25rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    margin-bottom: 2rem;
}

/* --- REFINED TABLES --- */
.table-container {
    background: white;
    border-radius: 1.25rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #f8fafc;
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: var(--text-primary);
}

tr:hover {
    background-color: #fcfdfe;
}

/* --- ADVANCED MODAL & COMPONENTS --- */
.modal-overlay {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

.voice-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.voice-card {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.voice-card:hover,
.voice-card.selected {
    border-color: var(--accent-blue);
    background: #eff6ff;
}

.voice-card.selected {
    box-shadow: 0 0 0 2px var(--accent-blue);
}

.knowledge-zone {
    border: 2px dashed var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.2s;
}

.knowledge-zone:hover {
    border-color: var(--accent-violet);
}

.knowledge-list {
    margin-top: 1rem;
}

.file-pill {
    display: inline-flex;
    align-items: center;
    background: #e2e8f0;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    margin: 0.25rem;
}

.tool-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
}

.toggle-switch {
    width: 40px;
    height: 20px;
    background: #cbd5e1;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: all 0.2s;
}

.toggle-switch.active {
    background: var(--accent-blue);
}

.toggle-switch.active::after {
    left: 22px;
}