/* ===== Variables ===== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #0ea5e9;
    --accent: #8b5cf6;
    --dark: #1e293b;
    --text: #334155;
    --text-light: #64748b;
    --light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* ===== Accessibility ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 8px 0;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Screen reader only content */
.visually-hidden,
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary: #0047ab;
        --primary-dark: #003087;
        --accent: #6b21a8;
        --text: #000000;
        --text-light: #333333;
        --border: #666666;
    }
}

body {
    font-family: 'Prompt', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.02);
}

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

.logo-icon svg {
    transition: var(--transition);
}

.logo:hover .logo-icon svg {
    transform: rotate(-5deg);
}

.logo-text {
    color: var(--dark);
    letter-spacing: -0.5px;
}

.logo-ai {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links a {
    position: relative;
    color: var(--text);
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-links a span {
    position: relative;
    z-index: 1;
}

.nav-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 8px;
    opacity: 0;
    transition: var(--transition);
}

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

.nav-links a:hover::before {
    opacity: 1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: calc(100% - 36px);
}

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

.btn-nav-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    font-weight: 600;
    border-radius: 10px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-nav-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

.btn-nav-login svg {
    transition: transform 0.3s ease;
}

.btn-nav-login:hover svg {
    transform: translateX(3px);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
    border-radius: 2px;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    padding: 140px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Hero Background */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #faf5ff 100%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: heroGlow 8s ease-in-out infinite;
}

.hero-glow-1 {
    top: 10%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(139, 92, 246, 0.2));
}

.hero-glow-2 {
    bottom: 20%;
    left: 5%;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(14, 165, 233, 0.2));
    animation-delay: -4s;
}

@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    50% { transform: translate(30px, -30px) scale(1.1); opacity: 0.6; }
}

/* Floating Particles */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    opacity: 0.4;
    animation: particleFloat 20s linear infinite;
}

.particle:nth-child(1) { left: 5%; animation-delay: 0s; animation-duration: 25s; }
.particle:nth-child(2) { left: 15%; animation-delay: -5s; animation-duration: 20s; }
.particle:nth-child(3) { left: 25%; animation-delay: -10s; animation-duration: 28s; }
.particle:nth-child(4) { left: 35%; animation-delay: -7s; animation-duration: 22s; }
.particle:nth-child(5) { left: 45%; animation-delay: -3s; animation-duration: 24s; }
.particle:nth-child(6) { left: 55%; animation-delay: -12s; animation-duration: 26s; }
.particle:nth-child(7) { left: 65%; animation-delay: -8s; animation-duration: 21s; }
.particle:nth-child(8) { left: 75%; animation-delay: -2s; animation-duration: 27s; }
.particle:nth-child(9) { left: 85%; animation-delay: -15s; animation-duration: 23s; }
.particle:nth-child(10) { left: 92%; animation-delay: -6s; animation-duration: 19s; }
.particle:nth-child(11) { left: 20%; animation-delay: -9s; animation-duration: 30s; }
.particle:nth-child(12) { left: 80%; animation-delay: -4s; animation-duration: 18s; }

@keyframes particleFloat {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* Floating Orbs */
.hero-orbs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    animation: orbFloat 15s ease-in-out infinite;
}

.orb-1 {
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.8) 0%, rgba(37, 99, 235, 0) 70%);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 18s;
}

.orb-2 {
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.8) 0%, rgba(139, 92, 246, 0) 70%);
    top: 60%;
    left: 20%;
    animation-delay: -3s;
    animation-duration: 14s;
}

.orb-3 {
    width: 16px;
    height: 16px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.6) 0%, rgba(6, 182, 212, 0) 70%);
    top: 30%;
    right: 15%;
    animation-delay: -6s;
    animation-duration: 20s;
}

.orb-4 {
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.7) 0%, rgba(37, 99, 235, 0) 70%);
    top: 70%;
    right: 25%;
    animation-delay: -2s;
    animation-duration: 16s;
}

.orb-5 {
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.9) 0%, rgba(139, 92, 246, 0) 70%);
    top: 45%;
    left: 40%;
    animation-delay: -8s;
    animation-duration: 12s;
}

.orb-6 {
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.5) 0%, rgba(34, 197, 94, 0) 70%);
    top: 15%;
    right: 35%;
    animation-delay: -5s;
    animation-duration: 22s;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translate(30px, -20px) scale(1.2);
        opacity: 0.8;
    }
    50% {
        transform: translate(-20px, 30px) scale(0.9);
        opacity: 0.5;
    }
    75% {
        transform: translate(20px, 20px) scale(1.1);
        opacity: 0.7;
    }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px 8px 12px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 50px;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #22c55e, #10b981);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

.hero-badge span:last-child {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.15;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 36px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 56px;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.hero-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-glow {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.btn-glow:hover {
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.45);
    transform: translateY(-3px);
}

.btn-glow svg {
    transition: transform 0.3s ease;
}

.btn-glow:hover svg {
    transform: translateX(4px);
}

.hero-buttons .btn-outline {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.hero-buttons .btn-outline:hover {
    background: var(--primary);
    color: white;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, transparent, var(--border), transparent);
}

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

/* Hero Mockup */
.hero-image {
    position: relative;
    animation: fadeInRight 1s ease-out 0.3s backwards;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-mockup {
    position: relative;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 50px 100px -20px rgba(0, 0, 0, 0.25),
        0 30px 60px -30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mockup-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mockup-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.dot:hover {
    transform: scale(1.2);
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #fbbf24; }
.dot.green { background: #22c55e; }

.mockup-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
}

.mockup-title svg {
    color: var(--primary);
}

.mockup-status {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #22c55e;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.mockup-content {
    padding: 0;
}

/* Chat Demo Styles */
.chat-demo {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    min-height: 280px;
}

.chat-message {
    display: flex;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px);
}

.chat-message.user {
    flex-direction: row-reverse;
}

/* Typing cursor effect */
.typing::after {
    content: '|';
    animation: blink 0.6s infinite;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    margin-left: 2px;
}

.chat-message.user .typing::after {
    color: rgba(255, 255, 255, 0.95);
}

@keyframes blink {
    0%, 45% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Active chat state */
.chat-message.user .message-bubble {
    position: relative;
}

.chat-message.user.typing-active .message-bubble::after {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 18px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(8px);
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.message-avatar.ai-avatar {
    background: linear-gradient(135deg, var(--accent), #7c3aed);
}

.message-content {
    max-width: 85%;
}

.message-bubble {
    padding: 14px 18px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.chat-message.user .message-bubble {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-bottom-right-radius: 6px;
}

.chat-message.ai .message-bubble {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border-bottom-left-radius: 6px;
}

.message-time {
    display: block;
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 6px;
    padding: 0 4px;
}

.chat-message.user .message-time {
    text-align: right;
}

/* AI Thinking Animation */
.ai-thinking {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.thinking-dot {
    width: 8px;
    height: 8px;
    background: #64748b;
    border-radius: 50%;
    animation: thinkingBounce 1.4s ease-in-out infinite;
}

.thinking-dot:nth-child(2) { animation-delay: 0.2s; }
.thinking-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes thinkingBounce {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1.2); opacity: 1; }
}

/* AI Response */
.ai-response {
    display: none;
}

.ai-response.show {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.response-intro {
    margin-bottom: 12px;
    opacity: 0;
}

.response-intro strong {
    color: #60a5fa;
}

.response-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.response-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 8px;
    font-size: 0.85rem;
    opacity: 0;
    transform: translateX(-10px);
}

.item-icon {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #22c55e, #10b981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.item-icon svg {
    color: white;
}

.response-item strong {
    color: #60a5fa;
}

.response-summary {
    margin: 12px 0;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(139, 92, 246, 0.1));
    border-radius: 8px;
    font-size: 0.9rem;
    border-left: 3px solid #2563eb;
    opacity: 0;
}

.response-summary strong {
    color: #60a5fa;
}

.response-source {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: #94a3b8;
    opacity: 0;
}

.response-source svg {
    color: #f59e0b;
}

/* Chat Input Demo */
.chat-input-demo {
    padding: 16px 20px;
    background: rgba(15, 23, 42, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.input-wrapper input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #94a3b8;
    font-family: inherit;
    font-size: 0.9rem;
}

.input-wrapper input::placeholder {
    color: #64748b;
}

.send-btn {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: 10px;
    color: white;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: all 0.3s ease;
}

/* Live chat indicator */
.chat-input-demo .input-wrapper {
    position: relative;
}

.chat-input-demo .input-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 14px;
    opacity: 0;
    z-index: -1;
    animation: inputPulse 3s ease-in-out infinite;
    animation-delay: 6s;
}

@keyframes inputPulse {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.02); }
}

/* Floating Cards */
.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.6);
    animation: floatCard 6s ease-in-out infinite;
    overflow: hidden;
    transform: scale(0.85);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    opacity: 0.5;
    pointer-events: none;
}

.floating-card .card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.floating-card .card-icon svg {
    width: 16px;
    height: 16px;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    z-index: 1;
}

.card-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark);
    letter-spacing: -0.2px;
}

.card-desc {
    font-size: 0.65rem;
    color: var(--text-light);
    font-weight: 500;
}

/* PDF Card - center right top */
.card-pdf {
    top: 20%;
    right: -65px;
    left: auto;
    animation-delay: 0s;
}

.card-pdf .card-glow {
    background: radial-gradient(circle at 30% 30%, rgba(239, 68, 68, 0.2), transparent 60%);
}

.card-pdf .card-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.35);
}

.card-badge {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 3px 8px rgba(34, 197, 94, 0.4);
    animation: badgePop 2s ease-in-out infinite;
}

.card-badge svg {
    width: 10px;
    height: 10px;
}

@keyframes badgePop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Search Card - center right middle */
.card-search {
    top: 45%;
    right: -70px;
    left: auto;
    animation-delay: -2s;
}

.card-search .card-glow {
    background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.2), transparent 60%);
}

.card-search .card-icon {
    background: linear-gradient(135deg, var(--primary), #1e40af);
    color: white;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.card-pulse {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), #1e40af);
    opacity: 0;
    z-index: 0;
    animation: cardPulse 2s ease-in-out infinite;
}

@keyframes cardPulse {
    0% { transform: translateY(-50%) scale(1); opacity: 0.4; }
    100% { transform: translateY(-50%) scale(1.8); opacity: 0; }
}

/* OCR Card - center right bottom */
.card-ocr {
    top: 70%;
    right: -60px;
    left: auto;
    animation-delay: -4s;
    padding-bottom: 8px;
}

.card-ocr .card-glow {
    background: radial-gradient(circle at 30% 30%, rgba(34, 197, 94, 0.2), transparent 60%);
}

.card-ocr .card-icon {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.35);
}

.card-stat {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.card-stat .stat-value {
    font-size: 0.9rem;
    font-weight: 700;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-stat .stat-text {
    font-size: 0.6rem;
    color: var(--text-light);
    font-weight: 500;
}

.card-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(34, 197, 94, 0.15);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 95%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: 0 4px 4px 0;
    animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(34, 197, 94, 0.5); }
    50% { box-shadow: 0 0 16px rgba(34, 197, 94, 0.8); }
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* ===== Features Section ===== */
.features {
    padding: 120px 0;
    background: linear-gradient(180deg, #f0f4ff 0%, #faf5ff 50%, #f0fdff 100%);
    position: relative;
    overflow: hidden;
}

/* Features Background */
.features-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.features-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 70% 50% at 50% 90%, rgba(6, 182, 212, 0.06) 0%, transparent 50%);
}

.features-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(37, 99, 235, 0.15) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.5;
}

.features-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: featuresGlow 15s ease-in-out infinite;
}

.features-glow-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(139, 92, 246, 0.2));
    top: -100px;
    left: -100px;
}

.features-glow-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(16, 185, 129, 0.2));
    bottom: -50px;
    right: -50px;
    animation-delay: -7s;
}

@keyframes featuresGlow {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    33% {
        transform: translate(30px, -20px) scale(1.1);
        opacity: 0.5;
    }
    66% {
        transform: translate(-20px, 30px) scale(0.95);
        opacity: 0.35;
    }
}

/* Floating Shapes */
.features-shape {
    position: absolute;
    border-radius: 20px;
    opacity: 0.1;
    animation: shapeFloat 20s ease-in-out infinite;
}

.features-shape.shape-1 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    top: 15%;
    right: 10%;
    transform: rotate(45deg);
    animation-delay: 0s;
}

.features-shape.shape-2 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    bottom: 20%;
    left: 5%;
    border-radius: 50%;
    animation-delay: -5s;
}

.features-shape.shape-3 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent), #ec4899);
    top: 60%;
    right: 5%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-delay: -10s;
}

@keyframes shapeFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(10px) rotate(-3deg);
    }
    75% {
        transform: translateY(-15px) rotate(3deg);
    }
}

.features > .container {
    position: relative;
    z-index: 1;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
    z-index: 1;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

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

.feature-card {
    padding: 32px 28px 28px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Card background effect */
.feature-card-bg {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.feature-card[data-color="blue"] .feature-card-bg {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(37, 99, 235, 0.1) 100%);
}
.feature-card[data-color="purple"] .feature-card-bg {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.05) 0%, rgba(139, 92, 246, 0.1) 100%);
}
.feature-card[data-color="cyan"] .feature-card-bg {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.05) 0%, rgba(6, 182, 212, 0.1) 100%);
}
.feature-card[data-color="green"] .feature-card-bg {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.05) 0%, rgba(16, 185, 129, 0.1) 100%);
}
.feature-card[data-color="orange"] .feature-card-bg {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.05) 0%, rgba(249, 115, 22, 0.1) 100%);
}
.feature-card[data-color="pink"] .feature-card-bg {
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.05) 0%, rgba(236, 72, 153, 0.1) 100%);
}

/* Top border gradient on hover */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

/* Shadow and lift on hover */
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.1),
        0 10px 20px -5px rgba(37, 99, 235, 0.1);
    border-color: rgba(255, 255, 255, 0.9);
}

/* Color variants for borders on hover */
.feature-card[data-color="blue"]:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1), 0 10px 20px -5px rgba(59, 130, 246, 0.15);
}
.feature-card[data-color="purple"]:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1), 0 10px 20px -5px rgba(139, 92, 246, 0.15);
}
.feature-card[data-color="cyan"]:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1), 0 10px 20px -5px rgba(6, 182, 212, 0.15);
}
.feature-card[data-color="green"]:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1), 0 10px 20px -5px rgba(16, 185, 129, 0.15);
}
.feature-card[data-color="orange"]:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1), 0 10px 20px -5px rgba(249, 115, 22, 0.15);
}
.feature-card[data-color="pink"]:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1), 0 10px 20px -5px rgba(236, 72, 153, 0.15);
}

/* Icon wrapper with glow */
.feature-icon-wrapper {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 10px 20px -4px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    z-index: 1;
}

/* Icon glow effect */
.feature-icon-glow {
    position: absolute;
    inset: -8px;
    border-radius: 26px;
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: blur(12px);
    z-index: -1;
}

.feature-card:hover .feature-icon-glow {
    opacity: 0.5;
}

.feature-card[data-color="blue"] .feature-icon-wrapper { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.feature-card[data-color="blue"] .feature-icon-glow { background: #3b82f6; }
.feature-card[data-color="purple"] .feature-icon-wrapper { background: linear-gradient(135deg, #c084fc, #8b5cf6); }
.feature-card[data-color="purple"] .feature-icon-glow { background: #a855f7; }
.feature-card[data-color="cyan"] .feature-icon-wrapper { background: linear-gradient(135deg, #67e8f9, #06b6d4); }
.feature-card[data-color="cyan"] .feature-icon-glow { background: #22d3ee; }
.feature-card[data-color="green"] .feature-icon-wrapper { background: linear-gradient(135deg, #6ee7b7, #10b981); }
.feature-card[data-color="green"] .feature-icon-glow { background: #34d399; }
.feature-card[data-color="orange"] .feature-icon-wrapper { background: linear-gradient(135deg, #fdba74, #f97316); }
.feature-card[data-color="orange"] .feature-icon-glow { background: #fb923c; }
.feature-card[data-color="pink"] .feature-icon-wrapper { background: linear-gradient(135deg, #f9a8d4, #ec4899); }
.feature-card[data-color="pink"] .feature-icon-glow { background: #f472b6; }

.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 15px 30px -4px rgba(0, 0, 0, 0.2);
}

.feature-icon-wrapper svg {
    width: 32px;
    height: 32px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Content area */
.feature-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.feature-card:hover h3 {
    background: linear-gradient(135deg, var(--dark), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* Footer with tag and arrow */
.feature-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(226, 232, 240, 0.5);
    position: relative;
    z-index: 1;
}

.feature-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease;
}

.feature-card[data-color="blue"] .feature-tag { background: rgba(59, 130, 246, 0.1); color: #2563eb; }
.feature-card[data-color="purple"] .feature-tag { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.feature-card[data-color="cyan"] .feature-tag { background: rgba(6, 182, 212, 0.1); color: #06b6d4; }
.feature-card[data-color="green"] .feature-tag { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.feature-card[data-color="orange"] .feature-tag { background: rgba(249, 115, 22, 0.1); color: #f97316; }
.feature-card[data-color="pink"] .feature-tag { background: rgba(236, 72, 153, 0.1); color: #ec4899; }

.feature-card:hover .feature-tag {
    transform: scale(1.05);
}

/* Arrow icon */
.feature-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.feature-arrow svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-arrow {
    opacity: 1;
    transform: translateX(0);
}

.feature-card:hover .feature-arrow:hover {
    background: var(--primary);
}

.feature-card:hover .feature-arrow:hover svg {
    color: white;
    transform: translateX(3px);
}

/* ===== How It Works ===== */
.how-it-works {
    padding: 120px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #f0f4ff 50%, #faf5ff 100%);
    position: relative;
    overflow: hidden;
}

/* Steps Timeline */
.steps-timeline {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 80px;
    position: relative;
}

.step-item {
    flex: 1;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-item[data-step="1"] .step-icon-wrapper .step-icon { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.step-item[data-step="2"] .step-icon-wrapper .step-icon { background: linear-gradient(135deg, #a855f7, #8b5cf6); }
.step-item[data-step="3"] .step-icon-wrapper .step-icon { background: linear-gradient(135deg, #22c55e, #10b981); }

.step-icon-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-item:hover .step-icon {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.25);
}

.step-icon svg {
    width: 36px;
    height: 36px;
    color: white;
}

.step-number {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 32px;
    height: 32px;
    background: var(--white);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid var(--light);
}

/* Connector */
.step-connector {
    position: absolute;
    top: 40px;
    left: calc(50% + 50px);
    width: calc(100% - 60px);
    display: flex;
    align-items: center;
}

.step-connector.last {
    display: none;
}

.connector-line {
    flex: 1;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.connector-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

.connector-dot {
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    margin-left: -6px;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}

/* Step Content */
.step-content {
    text-align: center;
    padding: 0 20px;
    margin-top: 20px;
}

.step-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.step-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.step-features {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.step-feature {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
}

.step-feature svg {
    color: #22c55e;
}

/* Demo Card */
.steps-demo {
    display: flex;
    justify-content: center;
}

.demo-card {
    width: 100%;
    max-width: 600px;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border);
}

.demo-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--dark), #334155);
}

.demo-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ef4444;
}

.demo-dot:nth-child(2) { background: #fbbf24; }
.demo-dot:nth-child(3) { background: #22c55e; }

.demo-title {
    margin-left: auto;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
}

.demo-content {
    padding: 24px;
    background: linear-gradient(180deg, #f8fafc 0%, var(--white) 100%);
}

.demo-chat {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.demo-message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.demo-message.user {
    flex-direction: row-reverse;
}

.demo-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.demo-avatar.user {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.demo-avatar.ai {
    background: linear-gradient(135deg, var(--accent), #7c3aed);
    color: white;
}

.demo-bubble {
    max-width: 80%;
    padding: 14px 18px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.demo-message.user .demo-bubble {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-bottom-right-radius: 6px;
}

.demo-message.ai .demo-bubble {
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--border);
    border-bottom-left-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.demo-bubble p {
    margin-bottom: 10px;
}

.demo-bubble ul {
    margin-left: 16px;
    margin-bottom: 12px;
}

.demo-bubble li {
    list-style: disc;
    margin-bottom: 4px;
    color: var(--text);
}

.demo-source {
    font-size: 0.8rem;
    color: var(--text-light);
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

/* ===== File Types ===== */
.file-types {
    padding: 100px 0;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.file-types::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-2%, 2%); }
}

.file-types .section-header h2,
.file-types .section-header p {
    color: var(--white);
}

.file-types .section-header p {
    color: #94a3b8;
}

.file-types-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    position: relative;
    z-index: 1;
}

.file-type-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.file-type-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.file-type-card:hover::before {
    opacity: 1;
}

.file-type-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.4);
}

/* Color variants for file types */
.file-type-card[data-type="pdf"] .file-type-icon { color: #ef4444; }
.file-type-card[data-type="word"] .file-type-icon { color: #3b82f6; }
.file-type-card[data-type="excel"] .file-type-icon { color: #22c55e; }
.file-type-card[data-type="image"] .file-type-icon { color: #f59e0b; }
.file-type-card[data-type="scan"] .file-type-icon { color: #8b5cf6; }
.file-type-card[data-type="text"] .file-type-icon { color: #64748b; }

.file-type-card[data-type="pdf"]:hover { background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.4); }
.file-type-card[data-type="word"]:hover { background: rgba(59, 130, 246, 0.15); border-color: rgba(59, 130, 246, 0.4); }
.file-type-card[data-type="excel"]:hover { background: rgba(34, 197, 94, 0.15); border-color: rgba(34, 197, 94, 0.4); }
.file-type-card[data-type="image"]:hover { background: rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.4); }
.file-type-card[data-type="scan"]:hover { background: rgba(139, 92, 246, 0.15); border-color: rgba(139, 92, 246, 0.4); }
.file-type-card[data-type="text"]:hover { background: rgba(100, 116, 139, 0.15); border-color: rgba(100, 116, 139, 0.4); }

.file-type-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    transition: transform 0.3s ease;
}

.file-type-card:hover .file-type-icon {
    transform: scale(1.15) rotate(-5deg);
}

.file-type-icon svg {
    width: 100%;
    height: 100%;
}

.file-type-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.file-type-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
}

.file-type-ext {
    font-size: 0.8rem;
    color: #94a3b8;
}

.file-type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.file-type-badge.ocr {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

/* ===== Pricing ===== */
.pricing {
    padding: 120px 0;
    background: linear-gradient(180deg, #faf5ff 0%, #f0f4ff 50%, #f0fdff 100%);
    position: relative;
    overflow: hidden;
}

/* Billing Toggle */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.billing-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
}

.billing-label[data-period="monthly"].active,
.billing-label[data-period="yearly"].active {
    color: var(--primary);
    font-weight: 600;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 32px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--border);
    border-radius: 32px;
    transition: 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(28px);
}

.save-badge {
    display: inline-block;
    background: linear-gradient(135deg, #22c55e, #10b981);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pricing-card {
    background: var(--white);
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    border: 2px solid var(--border);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.pricing-card.featured {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.03) 0%, var(--white) 100%);
    transform: scale(1.02);
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-12px);
}

.pricing-card.enterprise {
    background: var(--dark);
    border-color: var(--dark);
}

.pricing-card.enterprise .pricing-header h3,
.pricing-card.enterprise .pricing-desc,
.pricing-card.enterprise .price .amount {
    color: var(--white);
}

.pricing-card.enterprise .pricing-features li {
    color: #94a3b8;
    border-color: #334155;
}

.pricing-card.enterprise .check {
    color: #22c55e;
}

.pricing-card .badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.pricing-header {
    margin-bottom: 24px;
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.pricing-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.price {
    margin-bottom: 8px;
}

.price .currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    vertical-align: top;
}

.price .amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.price .period {
    font-size: 0.9rem;
    color: var(--text-light);
}

.price .period small {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
}

.yearly-total {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 24px;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.yearly-total .original-price {
    text-decoration: line-through;
    color: #94a3b8;
    margin-left: 8px;
}

.pricing-features {
    margin-bottom: 28px;
    text-align: left;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 0.95rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li .check {
    color: #22c55e;
    font-weight: bold;
}

.pricing-features li .cross {
    color: #94a3b8;
}

.pricing-features li.disabled {
    color: var(--text-light);
}

.btn-block {
    width: 100%;
}

.pricing-features li.disabled {
    color: var(--text-light);
}

.pricing-card .btn {
    width: 100%;
}

/* ===== About Us ===== */
.about {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--light) 0%, #fff 100%);
    position: relative;
    overflow: hidden;
}

.about-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.about-gradient {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    top: -200px;
    right: -200px;
}

.about-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text .section-badge {
    margin-bottom: 16px;
}

.about-text h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-intro {
    font-size: 1.2rem;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 32px;
}

.about-story {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.story-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.story-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.story-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.story-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.story-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

.about-visual {
    position: relative;
}

.about-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.about-card-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.about-values h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 24px;
    text-align: center;
}

.value-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}

.value-item:last-of-type {
    border-bottom: none;
}

.value-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.value-item:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.value-text strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2px;
}

.value-text p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.about-cta {
    margin-top: 32px;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.about-cta p {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 16px;
}

.about-cta .btn {
    display: inline-flex;
}

@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text h2 {
        font-size: 2.2rem;
    }

    .about-card {
        padding: 30px;
    }
}

@media (max-width: 640px) {
    .about {
        padding: 80px 0;
    }

    .about-text h2 {
        font-size: 1.8rem;
    }

    .about-intro {
        font-size: 1rem;
    }

    .story-card {
        padding: 16px;
    }

    .story-icon {
        width: 48px;
        height: 48px;
    }
}

/* ===== Contact ===== */
.contact {
    padding: 120px 0;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.15) 0%, transparent 40%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

/* Contact Wrapper - Two Column Layout */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Left side - Contact Info */
.contact-info {
    position: relative;
}

.contact-info .section-badge.light {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #a5b4fc;
}

.contact-info h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 40px;
}

/* Contact Methods */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(8px);
}

.contact-method-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-method-icon svg {
    width: 22px;
    height: 22px;
    color: white;
}

.contact-method-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-method-label {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-method-value {
    font-size: 1rem;
    color: var(--white);
    font-weight: 600;
}

/* Decoration Circles */
.contact-decoration {
    position: absolute;
    bottom: -60px;
    left: -40px;
    display: flex;
    gap: 12px;
    opacity: 0.3;
}

.decoration-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid rgba(139, 92, 246, 0.3);
}

.decoration-circle:nth-child(2) {
    width: 80px;
    height: 80px;
    margin-top: 40px;
    border-color: rgba(37, 99, 235, 0.3);
}

.decoration-circle:nth-child(3) {
    width: 50px;
    height: 50px;
    margin-top: 60px;
    border-color: rgba(139, 92, 246, 0.2);
}

/* Right side - Form Card */
.contact-form-card {
    background: var(--white);
    border-radius: 24px;
    padding: 48px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
}

.contact-form-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 26px;
    z-index: -1;
    opacity: 0.5;
}

.contact-form-header {
    text-align: center;
    margin-bottom: 32px;
}

.contact-form-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.contact-form-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--light);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: #cbd5e1;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.contact-form .btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1.05rem;
}

.contact-form .btn svg {
    transition: transform 0.3s ease;
}

.contact-form .btn:hover svg {
    transform: translateX(4px) translateY(-4px);
}

/* ===== Footer ===== */
.footer {
    position: relative;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: var(--white);
    padding: 80px 0 0;
    overflow: hidden;
}

.footer-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
}

.footer-gradient-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 200px;
    background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 80px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand .logo-ai {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #94a3b8;
    transition: var(--transition);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-color: transparent;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    color: #94a3b8;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-col a:hover {
    color: var(--white);
    transform: translateX(4px);
}

.footer-col a::before {
    content: '';
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
}

.footer-col a:hover::before {
    width: 12px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    margin-top: 0;
    color: #64748b;
}

.footer-bottom-left p {
    font-size: 0.9rem;
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.made-in-thailand {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #94a3b8;
}

.made-in-thailand svg {
    color: #ef4444;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero {
        padding: 120px 0 80px;
        min-height: auto;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-badge {
        justify-content: center;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .stat-divider {
        display: none;
    }

    .hero-image {
        max-width: 600px;
        margin: 0 auto;
    }

    .floating-elements {
        display: none;
    }

    .hero-glow-1, .hero-glow-2 {
        width: 300px;
        height: 300px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .file-types-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .pricing-card.featured {
        transform: none;
    }

    .step-item {
        max-width: 280px;
    }

    .step-connector {
        width: calc(100% - 40px);
        left: calc(50% + 45px);
    }

    .step-icon {
        width: 70px;
        height: 70px;
    }

    .step-icon svg {
        width: 30px;
        height: 30px;
    }

    .steps-demo {
        margin-top: 60px;
    }

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

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

    .footer-social {
        justify-content: center;
    }

    .footer-nav {
        justify-items: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

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

    .footer-col a::before {
        display: none;
    }

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

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info h2 {
        font-size: 2rem;
    }

    .contact-form-card {
        padding: 32px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-decoration {
        display: none;
    }

    .nav-links {
        display: none;
    }

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

    .hero h1 {
        font-size: 2.5rem;
    }

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

    .features-shape {
        display: none;
    }

    .features-glow {
        opacity: 0.2;
    }

    .feature-card {
        padding: 24px 20px 20px;
    }

    .feature-icon-wrapper {
        width: 56px;
        height: 56px;
    }

    .feature-icon-wrapper svg {
        width: 26px;
        height: 26px;
    }

    .file-types-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .steps-timeline {
        flex-direction: column;
        gap: 40px;
    }

    .step-item {
        max-width: 100%;
        flex-direction: row;
        gap: 24px;
    }

    .step-connector {
        display: none;
    }

    .step-content {
        text-align: left;
        margin-top: 0;
        padding: 0;
    }

    .step-features {
        justify-content: flex-start;
    }

    .step-icon-wrapper {
        margin-bottom: 0;
    }

    .demo-card {
        max-width: 100%;
    }

    .demo-bubble {
        max-width: 85%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .hero-badge {
        padding: 6px 14px 6px 10px;
    }

    .hero-badge span:last-child {
        font-size: 0.75rem;
    }

    .chat-demo {
        padding: 16px;
        min-height: 240px;
    }

    .message-content {
        max-width: 80%;
    }

    .response-items {
        gap: 6px;
    }

    .response-item {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .chat-input-demo {
        padding: 12px 16px;
    }

    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-nav .footer-col:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

    .hero-buttons {
        flex-direction: column;
    }

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

    .hero-badge {
        display: none;
    }

    .mockup-header {
        padding: 12px 14px;
    }

    .mockup-title {
        display: none;
    }

    .mockup-status span:last-child {
        display: none;
    }

    .chat-demo {
        padding: 14px;
        min-height: 200px;
        gap: 14px;
    }

    .message-avatar {
        width: 28px;
        height: 28px;
    }

    .message-avatar svg {
        width: 14px;
        height: 14px;
    }

    .message-bubble {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .response-intro {
        font-size: 0.85rem;
    }

    .response-item {
        padding: 5px 8px;
        font-size: 0.75rem;
        gap: 6px;
    }

    .item-icon {
        width: 16px;
        height: 16px;
    }

    .item-icon svg {
        width: 10px;
        height: 10px;
    }

    .response-source {
        font-size: 0.7rem;
    }

    .input-wrapper {
        padding: 8px 12px;
    }

    .input-wrapper input {
        font-size: 0.8rem;
    }

    .send-btn {
        width: 32px;
        height: 32px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .contact-form {
        padding: 24px;
    }

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

    .footer-nav .footer-col:last-child {
        grid-column: span 1;
    }
}

/* ===== Print Styles ===== */
@media print {
    /* Hide non-essential elements */
    .navbar,
    .hero-bg,
    .hero-particles,
    .floating-elements,
    .features-bg,
    .btn,
    .chat-demo,
    .chat-input-demo,
    .steps-demo,
    .contact-form,
    .footer-social,
    .mobile-menu-btn,
    noscript,
    .skip-link {
        display: none !important;
    }

    /* Reset backgrounds */
    body,
    .hero,
    .features,
    .how-it-works,
    .file-types,
    .pricing,
    .contact,
    .footer {
        background: white !important;
        color: black !important;
    }

    /* Ensure text is readable */
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
        page-break-after: avoid;
    }

    p, li {
        color: #333 !important;
    }

    /* Links */
    a {
        color: black !important;
        text-decoration: underline;
    }

    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    /* Page breaks */
    section {
        page-break-inside: avoid;
    }

    .feature-card,
    .pricing-card,
    .step-item {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    /* Ensure grids are readable */
    .features-grid,
    .pricing-grid,
    .file-types-grid {
        display: block;
    }

    .feature-card,
    .pricing-card {
        margin-bottom: 20px;
        border: 1px solid #ddd;
        padding: 15px;
    }
}

/* ===== Touch-friendly Mobile Improvements ===== */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn,
    .nav-links a,
    .feature-card,
    .pricing-card .btn {
        min-height: 44px;
        min-width: 44px;
    }

    /* Remove hover effects on touch */
    .feature-card:hover,
    .pricing-card:hover,
    .file-type-card:hover {
        transform: none;
    }

    /* Add active states instead */
    .feature-card:active,
    .pricing-card:active,
    .file-type-card:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    /* Disable parallax on touch devices */
    .floating-card {
        animation: none !important;
        transform: none !important;
    }
}

/* ===== Modal ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    padding: 20px;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

.modal-container {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 20px 20px 0 0;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

.modal-close {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
}

.modal-update {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.policy-section {
    margin-bottom: 28px;
}

.policy-section:last-child {
    margin-bottom: 0;
}

.policy-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.policy-section h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 2px;
}

.policy-section p {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 12px;
}

.policy-section ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.policy-section li {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.7;
    padding: 8px 0 8px 28px;
    position: relative;
}

.policy-section li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 16px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.policy-section a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.policy-section a:hover {
    text-decoration: underline;
}

.modal-footer {
    padding: 20px 32px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    background: var(--light);
    border-radius: 0 0 20px 20px;
}

.modal-close-btn {
    min-width: 120px;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal {
        padding: 16px;
        align-items: flex-end;
    }

    .modal-container {
        max-height: 90vh;
        border-radius: 20px 20px 0 0;
    }

    .modal-header {
        padding: 20px 24px;
        border-radius: 20px 20px 0 0;
    }

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

    .modal-body {
        padding: 24px;
    }

    .modal-footer {
        padding: 16px 24px;
        border-radius: 0;
    }

    .policy-section h3 {
        font-size: 1rem;
    }
}

/* ===== Section Backgrounds ===== */
.section-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.section-bg .bg-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
}

.section-bg .bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(37, 99, 235, 0.12) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.6;
}

.section-bg .bg-shapes {
    position: absolute;
    inset: 0;
}

.section-bg .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
}

.section-bg .shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(139, 92, 246, 0.2));
    top: 10%;
    left: -5%;
    animation: floatShape 20s ease-in-out infinite;
}

.section-bg .shape-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(139, 92, 246, 0.3));
    bottom: 10%;
    right: -5%;
    animation: floatShape 25s ease-in-out infinite reverse;
}

.section-bg .shape-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.2));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: floatShape 15s ease-in-out infinite;
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(20px, -20px) scale(1.05);
    }
    50% {
        transform: translate(-10px, 10px) scale(0.95);
    }
    75% {
        transform: translate(-20px, -10px) scale(1.02);
    }
}

/* Dark section backgrounds (file-types) */
.section-bg.dark .bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.section-bg.dark .bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.section-bg.dark .bg-glow-1 {
    width: 500px;
    height: 500px;
    background: rgba(59, 130, 246, 0.15);
    top: -20%;
    left: -10%;
    animation: pulseGlow 8s ease-in-out infinite;
}

.section-bg.dark .bg-glow-2 {
    width: 400px;
    height: 400px;
    background: rgba(139, 92, 246, 0.12);
    bottom: -20%;
    right: -10%;
    animation: pulseGlow 10s ease-in-out infinite reverse;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Pricing section orbs */
.section-bg .bg-orbs {
    position: absolute;
    inset: 0;
}

.section-bg .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.section-bg .orb-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(6, 182, 212, 0.1));
    top: -10%;
    right: 10%;
    animation: orbFloat 12s ease-in-out infinite;
}

.section-bg .orb-2 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.1));
    bottom: -10%;
    left: 10%;
    animation: orbFloat 15s ease-in-out infinite reverse;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0);
    }
    33% {
        transform: translate(30px, -20px);
    }
    66% {
        transform: translate(-20px, 15px);
    }
}

/* Update section positions for z-index */
.how-it-works,
.pricing {
    position: relative;
}

.how-it-works .container,
.pricing .container,
.file-types .container {
    position: relative;
    z-index: 1;
}
