:root {
    --bg-dark: #07080c;
    --sidebar-bg: #0d0f17;
    --card-bg: rgba(18, 21, 32, 0.75);
    --border-color: rgba(255, 255, 255, 0.08);
    --accent-primary: #38bdf8;
    --accent-primary-dim: rgba(56, 189, 248, 0.15);
    --accent-primary-glow: rgba(56, 189, 248, 0.25);
    --accent-blue: #38bdf8;
    --accent-red: #ef4444;
    --status-success: #34d399;
    --status-error: #f87171;
    --status-warning: #fbbf24;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font-heading: 'Outfit', sans-serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'Fira Code', monospace;
    --radius-card: 12px;
    --radius-btn: 10px;
    --radius-input: 8px;
    --radius-pill: 20px;
    --blur-standard: blur(16px);
}

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

body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(ellipse 800px 500px at 50% 0%, rgba(56, 189, 248, 0.07), transparent);
    color: var(--text-main);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
}

.landing-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Navbar */
.landing-header {
    height: 64px;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(13, 15, 23, 0.7);
    backdrop-filter: var(--blur-standard);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.header-nav {
    display: flex;
    gap: 28px;
}

.header-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.header-nav a:hover {
    color: var(--text-main);
}

.header-nav a.nav-highlight {
    color: var(--accent-primary);
    font-weight: 700;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-chat-launch {
    background: var(--accent-primary-dim);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: var(--accent-primary);
    padding: 8px 16px;
    border-radius: var(--radius-btn);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-chat-launch:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-1px);
}

.btn-auth-primary {
    background: var(--accent-primary);
    color: #0c1222;
    border: none;
    padding: 8px 18px;
    border-radius: var(--radius-btn);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.25);
    transition: all 0.2s ease;
}

.btn-auth-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(56, 189, 248, 0.35);
}

/* Hero Section — Split Layout */
.hero-section {
    padding: 80px 40px 60px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero-badge {
    background: var(--accent-primary-dim);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: var(--accent-primary);
    font-size: 11px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    letter-spacing: 1.2px;
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -1.5px;
    margin-bottom: 18px;
    color: var(--text-main);
}

.hero-title .accent {
    color: var(--accent-primary);
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 32px;
    line-height: 1.65;
}

.hero-cta-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-primary-cta {
    background: var(--accent-primary);
    color: #0c1222;
    padding: 13px 28px;
    border-radius: var(--radius-btn);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.3);
    transition: all 0.2s ease;
}

.btn-primary-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(56, 189, 248, 0.4);
}

.btn-secondary-cta {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 13px 24px;
    border-radius: var(--radius-btn);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-secondary-cta:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* Hero Terminal Card */
.hero-terminal {
    display: flex;
    flex-direction: column;
}

.interactive-prompt-card {
    position: relative;
    width: 100%;
    border-radius: var(--radius-card);
    padding: 1px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.35), rgba(56, 189, 248, 0.1));
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.prompt-card-body {
    background: rgba(13, 15, 23, 0.92);
    backdrop-filter: var(--blur-standard);
    border-radius: 11px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.prompt-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pill-group {
    display: flex;
    gap: 8px;
}

.pill {
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
}

.pill.active {
    color: #ffffff;
    background: var(--accent-primary-dim);
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--status-success);
}

.status-indicator .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--status-success);
    box-shadow: 0 0 8px var(--status-success);
}

.prompt-preview-box {
    background: #090a0f;
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: var(--radius-input);
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent-primary);
    line-height: 1.6;
}

/* Features — Bento Grid */
.features-section {
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 40px;
    color: var(--text-main);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 16px;
}

.bento-grid .feature-card:nth-child(1) {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.06), rgba(18, 21, 32, 0.75));
}

.bento-grid .feature-card:nth-child(2) {
    background: rgba(56, 189, 248, 0.04);
}

.feature-card {
    background: var(--card-bg);
    backdrop-filter: var(--blur-standard);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.2);
}

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-input);
    background: var(--accent-primary-dim);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h2 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
}

.feature-card .model-spec {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent-primary);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.feature-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Architecture Pipeline — Horizontal Steps */
.pipeline-section {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto 60px auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    background: rgba(13, 15, 23, 0.5);
}

.pipeline-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    text-align: left;
}

.pipeline-step {
    background: #090a0f;
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: var(--radius-card);
    position: relative;
}

.pipeline-step::after {
    content: '';
    position: absolute;
    right: -9px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid var(--accent-primary);
}

.pipeline-step:last-child::after {
    display: none;
}

.step-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.pipeline-step h2 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.pipeline-step p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Auth Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(7, 8, 12, 0.85);
    backdrop-filter: var(--blur-standard);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-card {
    background: rgba(18, 21, 32, 0.95);
    backdrop-filter: var(--blur-standard);
    border: 1px solid var(--border-color);
    width: 390px;
    border-radius: var(--radius-card);
    padding: 28px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
}

.close-modal-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
}

.google-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background-color: #ffffff;
    color: #0f172a;
    border: none;
    padding: 12px;
    border-radius: var(--radius-btn);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.divider {
    text-align: center;
    margin: 18px 0;
    border-bottom: 1px solid var(--border-color);
    line-height: 0.1em;
}

.divider span {
    background-color: #12141c;
    padding: 0 10px;
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.form-group label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.form-group input {
    background-color: #090a0f;
    border: 1px solid var(--border-color);
    color: white;
    padding: 10px 14px;
    border-radius: var(--radius-input);
    outline: none;
}

.submit-auth-btn {
    width: 100%;
    background: var(--accent-primary);
    color: #0c1222;
    border: none;
    padding: 12px;
    border-radius: var(--radius-btn);
    font-weight: 800;
    cursor: pointer;
    margin-top: 8px;
}

.toggle-auth-mode {
    text-align: center;
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.link-btn {
    background: none;
    border: none;
    color: var(--accent-primary);
    font-weight: 700;
    cursor: pointer;
    margin-left: 4px;
}

.auth-error {
    color: var(--status-error);
    font-size: 12px;
    background: rgba(239, 68, 68, 0.1);
    padding: 8px;
    border-radius: var(--radius-input);
    margin-bottom: 8px;
}

.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        padding: 60px 24px 40px 24px;
        gap: 32px;
    }
    .hero-content {
        align-items: center;
        text-align: center;
    }
    .hero-subtitle {
        max-width: 600px;
    }
    .hero-cta-group {
        justify-content: center;
    }
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-grid .feature-card:nth-child(1) {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .landing-header {
        padding: 0 20px;
    }
    .header-nav {
        display: none;
    }
    .hero-section {
        padding: 40px 16px 30px 16px;
    }
    .hero-title {
        font-size: 36px;
        letter-spacing: -1px;
    }
    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 24px;
    }
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }
    .btn-primary-cta, .btn-secondary-cta {
        width: 100%;
        justify-content: center;
    }
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .bento-grid .feature-card:nth-child(1) {
        grid-column: span 1;
    }
    .features-section {
        padding: 40px 16px;
    }
    .pipeline-steps {
        grid-template-columns: 1fr;
    }
    .pipeline-step::after {
        display: none;
    }
    .pipeline-section {
        padding: 24px 16px;
        margin-bottom: 40px;
    }
    .modal-card {
        width: 90%;
        max-width: 380px;
        padding: 20px;
    }
    .interactive-prompt-card {
        padding: 1px;
    }
    .prompt-card-body {
        padding: 16px;
    }
    .prompt-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
