/* FileToAI - Premium Digital Products Store */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #10b981;
    --success: #10b981;
    --accent: #f59e0b;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --bg-light: #f9fafb;
    --bg-dark: #111827;
    --white: #ffffff;
    --border: #e5e7eb;
    --radius: 16px;
    --radius-sm: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* ===== HEADER ===== */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 1.3rem;
}

.logo span {
    color: var(--primary);
}

header nav {
    display: flex;
    gap: 32px;
}

header nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

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

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-ghost {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

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

.play-icon {
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

/* ===== HERO ===== */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    background: linear-gradient(180deg, var(--white) 0%, var(--bg-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 100%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-main);
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 50px;
}

.hero-trust {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.trust-icon {
    color: var(--secondary);
    font-weight: bold;
}

/* ===== SECTIONS ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ===== PRODUCTS ===== */
.products {
    padding: 100px 0;
    background: var(--bg-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-card.featured {
    border: 2px solid var(--primary);
}

.product-card.bundle {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--secondary);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}

.product-badge.hot {
    background: #ef4444;
}

.product-badge.premium {
    background: var(--gradient);
}

.product-badge.bundle-badge {
    background: var(--gradient-warm);
}

.product-image {
    height: 220px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-card.bundle .product-image {
    height: 100%;
}

/* Product Previews */
.product-preview {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

/* Notion Preview */
.notion-preview {
    background: var(--white);
    box-shadow: var(--shadow);
}

.preview-header {
    padding: 10px 15px;
    background: #f7f6f3;
    display: flex;
    gap: 6px;
}

.preview-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
}

.preview-dot:nth-child(1) {
    background: #ff5f56;
}

.preview-dot:nth-child(2) {
    background: #ffbd2e;
}

.preview-dot:nth-child(3) {
    background: #27ca40;
}

.preview-content {
    display: flex;
    height: calc(100% - 35px);
}

.preview-sidebar {
    width: 60px;
    background: #f7f6f3;
}

.preview-main {
    flex: 1;
    padding: 15px;
}

.preview-block {
    height: 12px;
    background: #e5e5e5;
    border-radius: 4px;
    margin-bottom: 10px;
}

.preview-block.short {
    width: 60%;
}

.preview-cards {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.preview-card {
    flex: 1;
    height: 50px;
    background: linear-gradient(135deg, #dbeafe, #e0e7ff);
    border-radius: 6px;
}

/* CV Preview */
.cv-preview {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.cv-doc {
    width: 100px;
    height: 140px;
    background: var(--white);
    border-radius: 6px;
    box-shadow: var(--shadow);
    padding: 12px;
}

.cv-doc.alt {
    transform: rotate(-5deg);
    position: absolute;
    opacity: 0.8;
}

.cv-header-block {
    height: 25px;
    background: var(--gradient);
    border-radius: 4px;
    margin-bottom: 10px;
}

.cv-header-block.alt {
    background: var(--gradient-warm);
}

.cv-section {
    margin-bottom: 10px;
}

.cv-line {
    height: 6px;
    background: #e5e5e5;
    border-radius: 3px;
    margin-bottom: 5px;
}

.cv-line.short {
    width: 70%;
}

/* Invoice Preview */
.invoice-preview {
    display: flex;
    justify-content: center;
    align-items: center;
}

.invoice-doc {
    width: 160px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 15px;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.invoice-logo {
    width: 30px;
    height: 30px;
    background: var(--gradient);
    border-radius: 6px;
}

.invoice-title {
    width: 50px;
    height: 12px;
    background: #e5e5e5;
    border-radius: 4px;
}

.invoice-table {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.invoice-row {
    height: 8px;
    background: #e5e5e5;
    border-radius: 3px;
}

.invoice-row.header {
    background: #d1d5db;
}

.invoice-row.total {
    background: var(--primary);
    height: 12px;
}

/* UI Preview */
.ui-preview {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ui-components {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 160px;
}

.ui-btn {
    height: 30px;
    background: var(--gradient);
    border-radius: 6px;
}

.ui-btn.alt {
    background: var(--white);
    border: 2px solid var(--primary);
}

.ui-input {
    height: 30px;
    background: var(--white);
    border: 2px solid #e5e5e5;
    border-radius: 6px;
}

.ui-card {
    background: var(--white);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
}

.ui-avatar {
    width: 30px;
    height: 30px;
    background: var(--gradient);
    border-radius: 50%;
}

.ui-text {
    flex: 1;
    height: 8px;
    background: #e5e5e5;
    border-radius: 4px;
}

.ui-icons {
    display: flex;
    gap: 8px;
}

.ui-icon {
    width: 25px;
    height: 25px;
    background: linear-gradient(135deg, #dbeafe, #fce7f3);
    border-radius: 6px;
}

/* Bundle Preview */
.bundle-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.bundle-stack {
    display: flex;
    gap: -10px;
}

.bundle-item {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow);
    margin-left: -15px;
}

.bundle-item:first-child {
    margin-left: 0;
}

.bundle-label {
    background: var(--gradient);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Product Info */
.product-info {
    padding: 25px;
}

.product-category {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.product-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-info>p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.product-features {
    list-style: none;
    margin-bottom: 20px;
}

.product-features li {
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text-main);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-old {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 1rem;
}

.price-current {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
}

.price-save {
    background: #dcfce7;
    color: #16a34a;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ===== FEATURES ===== */
.features {
    padding: 100px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 40px 25px;
    background: var(--bg-light);
    border-radius: var(--radius);
    transition: all 0.3s;
}

.feature-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== DEMO SECTION ===== */
.demo-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.demo-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.demo-preview {
    height: 200px;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.demo-browser {
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.browser-dots {
    padding: 8px 12px;
    background: #f3f4f6;
    display: flex;
    gap: 5px;
}

.browser-dots span {
    width: 8px;
    height: 8px;
    background: #d1d5db;
    border-radius: 50%;
}

.browser-content {
    height: calc(100% - 28px);
    background: linear-gradient(180deg, #fef3c7 0%, #fff7ed 100%);
}

.demo-docs {
    display: flex;
    gap: 15px;
}

.demo-doc {
    width: 80px;
    height: 110px;
    background: var(--white);
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.demo-doc.alt {
    transform: rotate(5deg);
}

.demo-figma {
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.figma-components {
    width: 80%;
    height: 80%;
    background: linear-gradient(135deg, #e0e7ff 0%, #fce7f3 100%);
    border-radius: 8px;
}

.demo-card h4 {
    padding: 20px 20px 8px;
    font-size: 1.1rem;
}

.demo-card p {
    padding: 0 20px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    padding: 100px 0;
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius);
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.testimonial-card>p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-main);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
}

.author-info strong {
    display: block;
    font-size: 0.95rem;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== FAQ ===== */
.faq {
    padding: 100px 0;
    background: var(--bg-light);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.faq-item h4 {
    font-size: 1.05rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.faq-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 80px 0;
    background: var(--gradient);
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* ===== FOOTER ===== */
footer {
    background: var(--bg-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 15px;
    font-size: 0.95rem;
}

.footer-links h4 {
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer-links a,
.footer-links p {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.payment-icon {
    font-size: 1.2rem;
}

/* ===== PAYMENT PAGES ===== */
.payment-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 40px;
    background: var(--bg-light);
}

.payment-container {
    max-width: 480px;
    width: 100%;
}

.payment-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.payment-header {
    text-align: center;
    margin-bottom: 30px;
}

.payment-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.payment-header h1 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.payment-header p {
    color: var(--text-muted);
}

.order-summary {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
}

.summary-row.total {
    border-top: 2px solid var(--border);
    margin-top: 12px;
    padding-top: 16px;
    font-weight: 700;
}

.summary-row .amount {
    font-weight: 600;
    color: var(--primary);
}

.btn-stripe {
    background: var(--gradient);
    color: var(--white);
    width: 100%;
    justify-content: center;
    padding: 18px;
    font-size: 1.1rem;
}

.btn-stripe:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.payment-info {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.payment-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.stripe-badge {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.stripe-badge strong {
    color: var(--primary);
}

/* Success/Error Cards */
.success-card,
.error-card,
.cancel-card {
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5rem;
    color: var(--white);
}

.success-card h1 {
    color: #059669;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.error-card h1 {
    color: #dc2626;
}

.cancel-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5rem;
    color: var(--white);
}

.order-ref {
    background: var(--bg-light);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    margin: 20px 0;
    font-weight: 500;
}

.redirect-notice {
    margin: 30px 0;
}

.loader {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

.actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

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

    .product-card.bundle {
        grid-column: span 2;
    }

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

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

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

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

    .hero-trust {
        flex-direction: column;
        gap: 15px;
    }

    .products-grid,
    .demo-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .product-card.bundle {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }

    header nav {
        display: none;
    }

    header .btn {
        display: none;
    }
}

/* Secure Badge for Header */
.secure-badge {
    background: #dcfce7;
    color: #16a34a;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== DEMO BUTTON ===== */
.btn-demo {
    width: 100%;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-demo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* ===== DEMO MODAL ===== */
.demo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    overflow-y: auto;
    padding: 40px 20px;
    animation: fadeIn 0.3s ease;
}

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

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

.demo-modal-content {
    background: var(--white);
    border-radius: var(--radius);
    max-width: 1000px;
    width: 100%;
    position: relative;
    animation: slideUp 0.4s ease;
    box-shadow: var(--shadow-xl);
}

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

.demo-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-light);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
}

.demo-modal-close:hover {
    background: #ef4444;
    color: var(--white);
    transform: rotate(90deg);
}

.demo-modal-header {
    padding: 40px 40px 20px;
    border-bottom: 1px solid var(--border);
}

.demo-modal-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
}

.demo-modal-body {
    padding: 40px;
}

/* ===== GALLERY ===== */
.demo-gallery {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
}

.gallery-main {
    flex: 1;
    background: var(--bg-light);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.gallery-main img {
    width: 100%;
    height: auto;
    display: block;
    min-height: 400px;
    object-fit: contain;
    background: var(--white);
}

.gallery-caption {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    background: var(--white);
    border-top: 1px solid var(--border);
}

.gallery-nav {
    width: 50px;
    height: 50px;
    border: none;
    background: var(--white);
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gallery-nav:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.gallery-nav:active {
    transform: scale(0.95);
}

/* ===== THUMBNAILS ===== */
.gallery-thumbnails {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding: 10px 0;
}

.gallery-thumbnail {
    width: 120px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbnail:hover {
    border-color: var(--primary-light);
    transform: translateY(-3px);
}

.gallery-thumbnail.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-light);
}

/* ===== DEMO FEATURES ===== */
.demo-features {
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--radius);
}

.demo-features h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.demo-features ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.demo-features li {
    padding: 10px;
    background: var(--white);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text-main);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* ===== MODAL FOOTER ===== */
.demo-modal-footer {
    padding: 20px 40px 40px;
    text-align: center;
}

.demo-modal-footer .btn {
    min-width: 250px;
}

/* ===== RESPONSIVE MODAL ===== */
@media (max-width: 768px) {
    .demo-modal {
        padding: 20px 10px;
    }

    .demo-modal-content {
        margin: auto;
    }

    .demo-modal-header {
        padding: 30px 20px 15px;
    }

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

    .demo-modal-body {
        padding: 20px;
    }

    .demo-modal-footer {
        padding: 15px 20px 30px;
    }

    .gallery-main img {
        min-height: 250px;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

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

    .gallery-thumbnail {
        width: 100px;
        height: 70px;
    }
}