/* ========================================
   SIONA AI — Design System
   ======================================== */

:root {
    --white: #FFFFFF;
    --off-white: #FAFBFC;
    --gray-50: #F8F9FA;
    --gray-100: #F1F3F5;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #ADB5BD;
    --gray-500: #868E96;
    --gray-600: #6C757D;
    --gray-700: #495057;
    --gray-800: #343A40;
    --gray-900: #212529;
    --black: #0A0A0B;

    --primary: #163a70;
    --primary-dark: #102a50;
    --primary-light: #2f5f96;
    --accent: #4f78aa;
    --accent-dark: #3f6491;
    --gradient: linear-gradient(135deg, #102a50 0%, #2f5f96 100%);
    --gradient-soft: linear-gradient(135deg, rgba(22,58,112,0.1) 0%, rgba(79,120,170,0.1) 100%);
    --gradient-text: linear-gradient(135deg, #163a70 0%, #4f78aa 100%);

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
    --shadow-xl: 0 24px 60px rgba(0,0,0,0.1);
    --shadow-glow: 0 0 40px rgba(22,58,112,0.16);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* ===== Particles ===== */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: rgba(255,255,255,0);
}

.navbar.scrolled {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    z-index: 10;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon-image {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
}

.logo-icon-image-sm {
    width: 30px;
    height: 30px;
}

.logo-accent {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--gray-900);
}

.nav-links a:hover::after {
    width: 100%;
}

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

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font);
    font-size: 0.925rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(22,58,112,0.28);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(22,58,112,0.34);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    color: var(--gray-700);
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font);
    font-size: 0.925rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-ghost:hover {
    color: var(--primary);
    background: rgba(22,58,112,0.06);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    background: transparent;
    color: var(--gray-700);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-family: var(--font);
    font-size: 0.925rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(22,58,112,0.04);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 10;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-800);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 100px 32px 32px;
    flex-direction: column;
    gap: 24px;
    opacity: 0;
    transform: translateY(-20px);
    transition: var(--transition);
}

.mobile-menu.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-menu a {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
}

.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(22,58,112,0.08) 0%, rgba(79,120,170,0.05) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-container {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--gradient-soft);
    border: 1px solid rgba(22,58,112,0.15);
    border-radius: var(--radius-full);
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--gray-900);
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typewriter-text {
    display: inline-block;
    border-right: 4px solid var(--primary);
    padding-right: 4px;
    animation: blinkCursor 0.75s step-end infinite;
    min-height: 1.2em;
}

@keyframes blinkCursor {
    from, to { border-color: transparent }
    50% { border-color: var(--primary) }
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900);
}

.stat-label {
    font-size: 0.825rem;
    color: var(--gray-500);
    font-weight: 500;
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-200);
}

/* Hero Visual (Chat Preview) */
.hero-visual {
    position: relative;
    z-index: 1;
    margin-top: 60px;
    width: 100%;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.chat-preview {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.chat-preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
}

.preview-dots {
    display: flex;
    gap: 6px;
}

.preview-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.preview-dots span:nth-child(1) { background: #FF6B6B; }
.preview-dots span:nth-child(2) { background: #FFD93D; }
.preview-dots span:nth-child(3) { background: #6BCB77; }

.preview-title {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--gray-600);
}

.chat-preview-body {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.preview-msg {
    display: flex;
    gap: 12px;
    animation: msgAppear 0.5s ease-out forwards;
}

.preview-msg.user-msg {
    justify-content: flex-end;
}

.preview-msg.user-msg p {
    background: var(--gradient);
    color: var(--white);
    padding: 12px 18px;
    border-radius: 18px 18px 4px 18px;
    font-size: 0.9rem;
    max-width: 80%;
}

.preview-msg.ai-msg {
    align-items: flex-start;
}

.ai-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 0.8rem;
}

.ai-avatar.small {
    width: 24px;
    height: 24px;
    min-width: 24px;
    font-size: 0.65rem;
}

.preview-msg.ai-msg div:last-child {
    background: var(--gray-50);
    padding: 14px 18px;
    border-radius: 18px 18px 18px 4px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--gray-700);
}

.preview-msg.ai-msg div:last-child p {
    margin-bottom: 4px;
}

.preview-msg.ai-msg div:last-child p:last-child {
    margin-bottom: 0;
}

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

.typing-dots {
    display: flex;
    gap: 4px;
    padding: 10px 16px;
    background: var(--gray-50);
    border-radius: var(--radius-full);
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--gray-400);
    border-radius: 50%;
    animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

@keyframes msgAppear {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Trusted Section ===== */
.trusted-section {
    padding: 60px 0;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
    background: var(--gray-50);
}

.trusted-label {
    text-align: center;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.trusted-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.trusted-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-300);
    letter-spacing: 0.02em;
    transition: var(--transition);
}

.trusted-logo:hover {
    color: var(--gray-500);
}

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--gradient-soft);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
    border: 1px solid rgba(22,58,112,0.12);
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray-500);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== Features Section ===== */
.features-section {
    padding: 120px 0;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 36px 28px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(22,58,112,0.15);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-soft);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.65;
}

/* ===== Excel Section ===== */
.excel-section {
    padding: 120px 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.excel-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.excel-content .section-title {
    margin-bottom: 24px;
    text-align: left;
}

.excel-content .section-subtitle {
    margin: 0 0 40px 0;
    text-align: left;
}

.excel-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.excel-features li {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--gray-800);
}

.feature-icon.small {
    width: 36px;
    height: 36px;
    margin-bottom: 0;
    background: rgba(16, 124, 65, 0.1); /* Excel Green tint */
    color: #107C41;
}

.excel-visual {
    position: relative;
}

.excel-window {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    overflow: hidden;
    height: 480px;
    display: flex;
    flex-direction: column;
}

.window-header {
    background: var(--gray-50);
    padding: 12px 20px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
}

.window-header .dots {
    display: flex;
    gap: 6px;
}

.window-header .dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.window-header .dots span:nth-child(1) { background: #FF5F56; }
.window-header .dots span:nth-child(2) { background: #FFBD2E; }
.window-header .dots span:nth-child(3) { background: #27C93F; }

.window-header .title {
    flex: 1;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-500);
}

.window-body {
    flex: 1;
    position: relative;
    background: var(--gray-50);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.upload-state, .prompt-state, .processing-state, .result-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding: 0 40px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.upload-state.active, .prompt-state.active, .processing-state.active, .result-state.active {
    opacity: 1;
    visibility: visible;
}

/* Upload State */
.file-icon {
    margin-bottom: 16px;
    animation: slideUp 0.5s ease-out;
}

.upload-state span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
}

/* Prompt State */
.prompt-state {
    display: flex;
    justify-content: center;
}

.chat-bubble.user {
    background: var(--gradient);
    color: var(--white);
    padding: 16px 24px;
    border-radius: 20px 20px 4px 20px;
    font-size: 1rem;
    line-height: 1.5;
    text-align: left;
    max-width: 90%;
    box-shadow: var(--shadow-md);
}

.chat-bubble .cursor {
    animation: blinkCursor 0.75s step-end infinite;
}

/* Processing State */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(16, 124, 65, 0.2);
    border-top-color: #107C41;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.processing-state span {
    color: var(--gray-600);
    font-weight: 500;
}

/* Result State */
.table-preview {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    width: 100%;
}

.tr {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr 1.5fr;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.8rem;
}

.tr:last-child {
    border-bottom: none;
}

.tr div {
    padding: 10px;
    text-align: left;
    color: var(--gray-700);
}

.tr.th {
    background: #107C41;
    color: var(--white);
}

.tr.th div {
    color: var(--white);
    font-weight: 600;
}

.success-msg {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(16, 124, 65, 0.1);
    color: #107C41;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .excel-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .excel-content {
        text-align: center;
    }
    
    .excel-content .section-title,
    .excel-content .section-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .excel-features {
        align-items: center;
    }
}

/* ===== Document Assistant Section ===== */
.doc-section {
    padding: 80px 0 120px;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.doc-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.doc-content .section-title {
    margin-bottom: 24px;
    text-align: left;
}

.doc-content .section-subtitle {
    margin: 0 0 40px 0;
    text-align: left;
}

.feature-icon.small.red {
    background: rgba(244, 15, 2, 0.1); /* PDF Red tint */
    color: #F40F02;
}

.doc-visual {
    position: relative;
}

.doc-window {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    overflow: hidden;
    height: 480px;
    display: flex;
    flex-direction: column;
}

.file-icon.pdf {
    color: #F40F02;
}

.prompt-state.doc-prompt {
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 10px;
    animation: slideUp 0.5s ease-out;
}

.chip {
    padding: 8px 16px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-700);
    box-shadow: var(--shadow-sm);
}

.spinner.doc {
    border-top-color: var(--primary);
    border-color: rgba(108, 99, 255, 0.2);
    border-top-color: var(--primary);
}

.result-state.doc-result {
    padding: 0 24px;
}

.chat-bubble.ai {
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: 20px;
    border-radius: 4px 20px 20px 20px;
    text-align: left;
    box-shadow: var(--shadow-md);
    width: 100%;
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
}

.ai-content p {
    font-size: 0.85rem;
    color: var(--gray-700);
    margin-bottom: 8px;
    line-height: 1.5;
}

.ai-content p:last-child {
    margin-bottom: 0;
}

.highlight-text {
    background: rgba(255, 189, 46, 0.15);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: #b77900;
    font-weight: 500;
    margin-top: 12px !important;
}

@media (max-width: 1024px) {
    .doc-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .doc-visual {
        order: 2; /* Put visual below text on mobile */
    }
    
    .doc-content {
        order: 1;
        text-align: center;
    }
    
    .doc-content .section-title,
    .doc-content .section-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ===== Info Cards Section ===== */
.info-section {
    padding: 100px 0 120px;
    background: var(--gray-50);
    position: relative;
}

.info-section .section-title {
    margin-bottom: 24px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.info-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(22,58,112,0.2);
}

.info-card.highlight {
    border-color: rgba(39, 201, 63, 0.3);
    box-shadow: 0 12px 40px rgba(39, 201, 63, 0.1);
}

.info-card.highlight:hover {
    border-color: rgba(39, 201, 63, 0.6);
    box-shadow: 0 16px 50px rgba(39, 201, 63, 0.15);
}

/* MacOS Window Style Header */
.mac-header {
    background: var(--gray-50);
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mac-header .dots {
    display: flex;
    gap: 6px;
}

.mac-header .dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mac-header .dots span:nth-child(1) { background: #FF5F56; }
.mac-header .dots span:nth-child(2) { background: #FFBD2E; }
.mac-header .dots span:nth-child(3) { background: #27C93F; }

.mac-header .badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(39, 201, 63, 0.1);
    color: #1B9A2F;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
}

.info-content {
    padding: 32px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.info-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.info-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
    line-height: 1.3;
}

.info-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 0;
}

.info-card strong {
    color: var(--gray-900);
    font-weight: 600;
}

@media (max-width: 1024px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== How It Works ===== */
.how-section {
    padding: 120px 0;
    background: var(--gray-50);
    position: relative;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 20px;
}

.step-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.65;
}

.step-visual {
    margin-top: 28px;
    display: flex;
    justify-content: center;
}

.step-icon-wrapper {
    width: 72px;
    height: 72px;
    background: var(--gradient-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

/* ===== Pricing Section ===== */
.pricing-section {
    padding: 120px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-4px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: var(--white);
    padding: 4px 20px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--gray-100);
}

.pricing-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 12px;
}

.currency {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-500);
}

.amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
}

.period {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 500;
}

.pricing-desc {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--gray-700);
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 80px 0;
}

.cta-card {
    background: var(--gradient);
    border-radius: var(--radius-xl);
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    top: -250px;
    right: -100px;
    pointer-events: none;
}

.cta-card::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    bottom: -200px;
    left: -100px;
    pointer-events: none;
}

.cta-card h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.cta-card p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    max-width: 500px;
    margin: 0 auto 32px;
    position: relative;
    z-index: 1;
}

.cta-card .btn-primary {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    position: relative;
    z-index: 1;
}

.cta-card .btn-primary:hover {
    box-shadow: 0 12px 36px rgba(0,0,0,0.2);
}

/* ===== Footer ===== */
.footer {
    padding: 80px 0 32px;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 48px;
    margin-bottom: 48px;
    align-items: start;
}

.footer-brand p {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 16px;
    line-height: 1.65;
    max-width: 280px;
}

.footer-brand {
    justify-self: start;
}

.footer-links-group {
    justify-self: end;
    text-align: left;
}

.footer-links-group h4 {
    font-size: 0.825rem;
    font-weight: 700;
    color: var(--gray-900);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.footer-links-group li {
    margin-bottom: 12px;
}

.footer-links-group a {
    font-size: 0.875rem;
    color: var(--gray-500);
    transition: var(--transition);
}

.footer-links-group a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
}

.footer-bottom p {
    font-size: 0.825rem;
    color: var(--gray-400);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-500);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--gradient);
    color: var(--white);
}

/* ===== Auth Modal ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: var(--transition);
    box-shadow: var(--shadow-xl);
}

.modal-overlay.active .modal-card {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--gray-50);
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.modal-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.modal-logo:empty {
    display: none;
    margin-bottom: 0;
}

.modal-logo-image {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: block;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.modal-header p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

.form-group label {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--gray-700);
}

.form-group input {
    padding: 12px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 0.925rem;
    color: var(--gray-800);
    transition: var(--transition);
    background: var(--gray-50);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(22,58,112,0.1);
}

.form-group input::placeholder {
    color: var(--gray-400);
}

.auth-switch {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 4px;
}

.auth-switch a {
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.modal-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
}

.modal-divider::before,
.modal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.modal-divider span {
    font-size: 0.8rem;
    color: var(--gray-400);
    font-weight: 500;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.btn-social:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

/* ===== Legal Modal ===== */
.legal-modal-card {
    max-width: min(920px, 100%);
    padding: 0;
    overflow: hidden;
}

.legal-modal-header {
    padding: 40px 40px 24px;
    border-bottom: 1px solid var(--gray-200);
}

.legal-modal-kicker {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
}

.legal-modal-header h2 {
    font-size: 1.8rem;
    line-height: 1.15;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.legal-modal-header p {
    color: var(--gray-500);
    font-size: 0.95rem;
}

.legal-language-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 6px;
    background: var(--gray-100);
    border-radius: 999px;
}

.legal-language-btn {
    border: none;
    background: transparent;
    color: var(--gray-500);
    font-weight: 700;
    font-size: 0.82rem;
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition);
}

.legal-language-btn.active {
    background: var(--white);
    color: var(--gray-900);
    box-shadow: var(--shadow-sm);
}

.legal-language-btn:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.legal-modal-body {
    max-height: min(68vh, 760px);
    overflow-y: auto;
    padding: 0 40px 40px;
}

.legal-content {
    padding-top: 28px;
    color: var(--gray-700);
}

.legal-section {
    padding: 24px 0;
    border-bottom: 1px solid var(--gray-100);
}

.legal-section:first-child {
    padding-top: 0;
}

.legal-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.legal-section-title {
    font-size: 1.05rem;
    line-height: 1.45;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 14px;
}

.legal-section-body {
    display: grid;
    gap: 12px;
}

.legal-section-body p {
    font-size: 0.98rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.legal-note {
    font-size: 0.96rem;
    line-height: 1.7;
    color: var(--gray-500);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .features-grid,
    .steps-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .pricing-card.popular:hover {
        transform: translateY(-4px);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }

    .legal-modal-header {
        padding: 32px 24px 20px;
    }

    .legal-modal-header h2 {
        font-size: 1.45rem;
    }

    .legal-language-switch {
        width: 100%;
        justify-content: center;
    }

    .legal-language-btn {
        flex: 1;
    }

    .legal-modal-body {
        padding: 0 24px 28px;
        max-height: 72vh;
    }

    .legal-content {
        padding-top: 22px;
    }

    .legal-section {
        padding: 20px 0;
    }

    .legal-section-title {
        font-size: 0.98rem;
    }

    .legal-section-body p,
    .legal-note {
        font-size: 0.92rem;
        line-height: 1.7;
    }

    .hero-title {
        font-size: 2.25rem;
    }

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

    .hero-stats {
        gap: 24px;
    }

    .stat-divider {
        display: none;
    }

    .features-grid,
    .steps-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .features-section,
    .how-section,
    .pricing-section {
        padding: 80px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .cta-card {
        padding: 48px 24px;
    }

    .modal-card {
        padding: 28px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.85rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn-lg {
        width: 100%;
    }
}

/* ===== New Dark Navy Hero Overrides ===== */
.hero.new-hero {
    background-color: #0b0f19; /* A deep, rich navy blue */
    background-image: 
        linear-gradient(rgba(11, 15, 25, 0.8), rgba(11, 15, 25, 0.95)),
        url('data:image/svg+xml;utf8,<svg width="40" height="40" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h40v40H0z" fill="none"/><path d="M0 39.5h40M39.5 0v40" stroke="rgba(255,255,255,0.02)" stroke-width="1"/></svg>');
    position: relative;
    padding-top: 15vh; 
    padding-bottom: 20vh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    align-items: center;
}

/* Make navbar adapt to dark section when at top */
.navbar:not(.scrolled) .nav-links a { color: rgba(255,255,255,0.8); }
.navbar:not(.scrolled) .nav-links a:hover { color: var(--white); }
.navbar:not(.scrolled) .nav-logo { color: var(--white); }
.navbar:not(.scrolled) .btn-ghost { color: var(--white); }
.navbar:not(.scrolled) .mobile-menu-btn span { background: var(--white); }

.hero-bg-grid {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(22,58,112,0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.new-glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(22,58,112,0.3) 0%, transparent 70%);
    top: -200px;
    left: -100px;
    filter: blur(80px);
    position: absolute;
    z-index: 0;
}

.new-glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(79,120,170,0.2) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
    filter: blur(80px);
    position: absolute;
    z-index: 0;
}

.new-hero-container {
    max-width: 900px;
    z-index: 2;
}

.hero-badge.new-badge {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    padding: 6px 16px 6px 12px;
    margin-bottom: 40px;
}

.hero-badge.new-badge span {
    color: var(--white) !important; /* Force white text */
}

.new-title {
    color: var(--white);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.02em;
    padding-bottom: 5px;
    line-height: 1.3;
    margin-bottom: 40px;
}

.new-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 1.25rem;
    max-width: 650px;
    margin-top: 40px !important; /* Forces it down away from the title */
    margin-bottom: 60px !important;
}

.hero-email-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto 60px;
    position: relative;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    padding: 6px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.hero-email-form:focus-within {
    border-color: rgba(22,58,112,0.45);
    box-shadow: 0 8px 24px rgba(22,58,112,0.18);
    background: rgba(255,255,255,0.08);
}

.hero-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 24px;
    color: var(--white);
    font-size: 1rem;
    outline: none;
    font-family: inherit;
}

.hero-input::placeholder {
    color: rgba(255,255,255,0.4);
}

.hero-submit {
    padding: 12px 28px;
    border-radius: var(--radius-full);
}

/* Dashboard Mockup stays dark as an app preview */
.new-dashboard-preview {
    margin-top: 40px;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    margin-bottom: -5px; 
    perspective: 1000px;
    z-index: 2;
}

.app-mockup {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    box-shadow: var(--shadow-xl), 0 0 50px rgba(0,0,0,0.1);
    display: flex;
    height: 600px;
    overflow: hidden;
    position: relative;
    text-align: left;
    color: var(--gray-800);
}

.app-sidebar {
    width: 260px;
    background: #fdfdfd;
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 16px;
}

.app-sidebar-top {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--gray-600);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.app-nav-item:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.app-nav-item.active {
    background: var(--white);
    color: var(--gray-900);
    box-shadow: var(--shadow-sm);
}

.app-nav-item .nav-icon {
    width: 18px;
    height: 18px;
    color: var(--gray-500);
}
.app-nav-item.active .nav-icon {
    color: var(--primary);
}

.app-nav-item .nav-text {
    flex: 1;
}

.app-nav-item .shortcut {
    font-size: 0.75rem;
    color: var(--gray-400);
    font-family: monospace;
    font-weight: 600;
}

.app-sidebar-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray-400);
    letter-spacing: 0.05em;
    margin-top: 24px;
    padding-left: 14px;
}

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--white);
}

.app-header {
    display: flex;
    justify-content: flex-end;
    padding: 24px 32px;
}

.app-new-chat-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--gray-800);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.app-new-chat-btn:hover {
    background: var(--gray-50);
}

.app-new-chat-btn .btn-icon {
    background: var(--gray-800);
    color: var(--white);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
}

.app-content-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-welcome-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
}

.app-input-container {
    padding: 0 60px 40px;
}

.app-input-box {
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    background: #fdfdfd;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.app-placeholder {
    color: var(--gray-400);
    font-size: 1rem;
}

.app-input-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.action-left, .action-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-btn {
    background: transparent;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    color: var(--gray-800);
}

.action-btn.circle-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--gray-200);
}

.app-send-btn {
    background: var(--gray-400);
    color: var(--white);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.app-send-btn:hover {
    background: var(--primary);
}

@media (max-width: 768px) {
    .app-sidebar {
        display: none;
    }
    .app-welcome-text {
        font-size: 1.5rem;
        text-align: center;
    }
    .app-input-container {
        padding: 0 20px 20px;
    }
}

/* ===== Hero Decorative Side Shapes ===== */
.hero-shapes {
    position: absolute;
    bottom: -150px;
    width: 45vw;
    height: 120vh;
    min-height: 800px;
    z-index: 0; 
    pointer-events: none;
}
.left-shapes { left: -5vw; }
.right-shapes { right: -5vw; }

.hero-shapes .shape {
    position: absolute;
    bottom: 0;
    border-radius: 50vw 50vw 0 0;
    box-shadow: 0 0 60px rgba(22,58,112,0.1) inset;
    border: 1px solid rgba(255,255,255,0.03); 
}

/* Left Shapes */
.left-shapes .shape-1 {
    width: 30vw; height: 50vh; left: 20%;
    background: linear-gradient(160deg, rgba(22,58,112,0.15) 0%, rgba(22,58,112,0.02) 100%);
    transform: rotate(20deg);
    transform-origin: bottom left;
}
.left-shapes .shape-2 {
    width: 35vw; height: 75vh; left: 5%;
    background: linear-gradient(160deg, rgba(79,120,170,0.12) 0%, rgba(79,120,170,0.02) 100%);
    transform: rotate(35deg);
    transform-origin: bottom left;
}
.left-shapes .shape-3 {
    width: 45vw; height: 100vh; left: -10%;
    background: linear-gradient(160deg, rgba(22,58,112,0.10) 0%, rgba(22,58,112,0.02) 100%);
    transform: rotate(50deg);
    transform-origin: bottom left;
}

/* Right Shapes */
.right-shapes .shape-1 {
    width: 30vw; height: 50vh; right: 20%;
    background: linear-gradient(-160deg, rgba(22,58,112,0.15) 0%, rgba(22,58,112,0.02) 100%);
    transform: rotate(-20deg);
    transform-origin: bottom right;
}
.right-shapes .shape-2 {
    width: 35vw; height: 75vh; right: 5%;
    background: linear-gradient(-160deg, rgba(79,120,170,0.12) 0%, rgba(79,120,170,0.02) 100%);
    transform: rotate(-35deg);
    transform-origin: bottom right;
}
.right-shapes .shape-3 {
    width: 45vw; height: 100vh; right: -10%;
    background: linear-gradient(-160deg, rgba(22,58,112,0.10) 0%, rgba(22,58,112,0.02) 100%);
    transform: rotate(-50deg);
    transform-origin: bottom right;
}

/* Hide or reduce on mobile to avoid clutter */
@media (max-width: 1024px) {
    .hero-shapes { opacity: 0.5; }
}
@media (max-width: 768px) {
    .hero-shapes { display: none; }
}
