/* ==================== */
/*  Base & Reset         */
/* ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6C5CE7;
    --primary-dark: #5A4BD1;
    --accent: #00CEC9;
    --bg: #0F0F1A;
    --bg-alt: #161628;
    --surface: #1E1E35;
    --text: #E8E8F0;
    --text-muted: #9999B3;
    --border: #2A2A45;
    --radius: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.85;
}

/* ==================== */
/*  Navigation           */
/* ==================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(15, 15, 26, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text) !important;
    letter-spacing: -0.01em;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text);
    opacity: 1;
}

/* ==================== */
/*  Hero                 */
/* ==================== */
.hero {
    position: relative;
    padding: 140px 0 80px;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(108, 92, 231, 0.12) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(0, 206, 201, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
}

.hero-badge {
    display: inline-block;
    background: rgba(253, 121, 168, 0.12);
    border: 1px solid rgba(253, 121, 168, 0.3);
    color: #FD79A8;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 28px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 24px;
    line-height: 1.6;
}

.hero-authors {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-style: italic;
}

/* ==================== */
/*  Sections             */
/* ==================== */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.section-desc {
    text-align: center;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 48px;
    font-size: 1rem;
    line-height: 1.7;
}

/* ==================== */
/*  Abstract             */
/* ==================== */
.abstract-text {
    text-align: justify;
}

.abstract-text p {
    color: var(--text-muted);
    font-family: 'Crimson Pro', 'Georgia', serif;
    font-size: 1.12rem;
    line-height: 1.85;
    margin-bottom: 20px;
}

.abstract-text p:last-child {
    margin-bottom: 0;
}

.abstract-text strong {
    color: var(--text);
    font-weight: 600;
}

/* ==================== */
/*  Architecture         */
/* ==================== */
.arch-diagram {
    max-width: 650px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.arch-step {
    text-align: center;
}

.arch-step p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 6px;
    max-width: 260px;
    line-height: 1.5;
}

.arch-box {
    background: var(--surface);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 16px 40px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
}

.arch-audio {
    border-color: #FD79A8;
}

.arch-visual {
    border-color: #00CEC9;
}

.arch-output {
    border-color: #FFEAA7;
    color: #FFEAA7;
}

.arch-arrow {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.arch-split {
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================== */
/*  Demo                 */
/* ==================== */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 880px;
    margin: 0 auto;
}

.demo-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    margin: 0;
    aspect-ratio: 1 / 1;
}

.demo-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 10px 24px rgba(108, 92, 231, 0.18);
}

.demo-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
}

.demo-placeholder-square {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.demo-card-empty {
    border-style: dashed;
    opacity: 0.7;
}

.demo-card-empty:hover {
    transform: none;
    border-color: var(--border);
    box-shadow: none;
    opacity: 0.85;
}

/* ==================== */
/*  Clone Table         */
/* ==================== */
.clone-table {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.clone-head,
.clone-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.clone-head {
    gap: 16px;
}

.clone-head-cell {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border);
}

.clone-head-cell:first-child {
    color: var(--accent);
}

.clone-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    background: rgba(15, 15, 26, 0.78);
    backdrop-filter: blur(8px);
    color: var(--accent);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(0, 206, 201, 0.35);
    text-transform: uppercase;
    pointer-events: none;
}

.clone-tag-gen {
    color: #FD79A8;
    border-color: rgba(253, 121, 168, 0.35);
}

/* ==================== */
/*  Footer               */
/* ==================== */
.footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 32px 0;
}

.footer-bottom {
    text-align: center;
}

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

/* ==================== */
/*  Responsive           */
/* ==================== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .nav-links {
        display: none;
    }

    .demo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        max-width: 520px;
    }

    .clone-head,
    .clone-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .clone-head {
        display: none;
    }

    .clone-table {
        max-width: 360px;
        gap: 18px;
    }

    .arch-split {
        flex-direction: column;
        gap: 16px;
    }

    .section {
        padding: 60px 0;
    }

    .abstract-text p {
        font-size: 1.02rem;
    }
}
