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

:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --accent: #764ba2;
    --bg: #0a0b1a;
    --bg-alt: #0f1029;
    --surface: #161837;
    --surface-light: #1e2148;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --border: rgba(255,255,255,0.06);
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-text: linear-gradient(135deg, #667eea, #a78bfa, #f093fb);
    --shadow: 0 4px 30px rgba(0,0,0,0.3);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* ===== Navbar ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 16px 0;
    background: rgba(10, 11, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.navbar.scrolled { padding: 10px 0; background: rgba(10, 11, 26, 0.95); }

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

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }

.logo-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--gradient);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px; color: #fff;
}

.logo-text { font-weight: 700; font-size: 18px; color: var(--text); }

.nav-links { display: flex; gap: 28px; }
.nav-links a {
    color: var(--text-muted); text-decoration: none; font-size: 14px;
    font-weight: 500; transition: var(--transition);
}
.nav-links a:hover { color: #fff; }

.nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    flex-direction: column; gap: 5px; padding: 4px;
}
.nav-toggle span {
    width: 22px; height: 2px; background: var(--text); border-radius: 2px;
    transition: var(--transition);
}

/* More Features Grid */
.more-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.more-feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    text-decoration: none;
    color: inherit;
}
.more-feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.more-feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(var(--mouse-angle, 0deg), rgba(102, 126, 234, 0.4), transparent 40%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}
.more-feature-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(
        800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(102, 126, 234, 0.06),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}
.more-feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4), 0 0 20px rgba(102,126,234,0.15);
}
.more-feature-card:hover::before,
.more-feature-card:hover::after {
    opacity: 1;
}
.mf-icon {
    font-size: 28px;
    margin-bottom: 16px;
    width: 50px;
    height: 50px;
    background: var(--surface-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.more-feature-card:hover .mf-icon {
    transform: scale(1.15) rotate(5deg);
    background: rgba(102,126,234,0.15);
    border-color: rgba(102,126,234,0.3);
}
.more-feature-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
    position: relative;
    z-index: 1;
}
.more-feature-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; background: rgba(10,11,26,0.98);
        padding: 20px 24px; gap: 16px; border-bottom: 1px solid var(--border);
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }
}

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

.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
    position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.15;
}
.shape-1 { width: 600px; height: 600px; background: #667eea; top: -200px; right: -100px; }
.shape-2 { width: 400px; height: 400px; background: #764ba2; bottom: -100px; left: -100px; }
.shape-3 { width: 300px; height: 300px; background: #f093fb; top: 50%; left: 50%; transform: translate(-50%, -50%); }

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

.hero-badge {
    display: inline-block; padding: 6px 16px; border-radius: 20px;
    background: var(--surface); border: 1px solid var(--border);
    font-size: 13px; color: var(--text-muted); margin-bottom: 24px;
    font-weight: 500;
}

.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.15; margin-bottom: 20px; }

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

.hero-subtitle { font-size: 18px; color: var(--text-muted); line-height: 1.7; margin-bottom: 36px; max-width: 520px; }

.hero-buttons { display: flex; gap: 14px; margin-bottom: 48px; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; padding: 14px 28px;
    border-radius: 12px; font-weight: 600; font-size: 15px;
    text-decoration: none; transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease; cursor: pointer;
    border: none; position: relative;
}
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 4px 20px rgba(102,126,234,0.4); }
.btn-primary:hover { box-shadow: 0 8px 30px rgba(102,126,234,0.6); }
.btn-secondary {
    background: var(--surface); color: var(--text); border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--surface-light); }

.hero-stats { display: flex; gap: 40px; }
.stat { display: flex; flex-direction: column; }
.stat-number { font-size: 28px; font-weight: 800; background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 13px; color: var(--text-dim); font-weight: 500; }

/* Hero Mockup */
.hero-mockup {
    background: var(--surface); border-radius: var(--radius);
    border: 1px solid var(--border); overflow: hidden;
    box-shadow: var(--shadow); animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.mockup-header {
    display: flex; align-items: center; gap: 8px; padding: 12px 16px;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28ca41; }
.mockup-title { margin-left: 12px; font-size: 12px; color: var(--text-dim); font-weight: 500; }

.mockup-body { display: flex; min-height: 280px; }
.mockup-sidebar { width: 50px; background: var(--bg-alt); padding: 12px 8px; display: flex; flex-direction: column; gap: 8px; border-right: 1px solid var(--border); }
.mockup-sidebar-item { height: 28px; border-radius: 6px; background: var(--surface-light); transition: var(--transition); }
.mockup-sidebar-item.active { background: var(--primary); opacity: 0.8; }

.mockup-content { flex: 1; padding: 16px; }
.mockup-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.mockup-card {
    padding: 12px 8px; border-radius: 8px; text-align: center;
    animation: pulse-card 3s ease-in-out infinite;
}
.mockup-card.c1 { background: linear-gradient(135deg, rgba(102,126,234,0.2), rgba(102,126,234,0.05)); animation-delay: 0s; }
.mockup-card.c2 { background: linear-gradient(135deg, rgba(240,147,251,0.2), rgba(240,147,251,0.05)); animation-delay: 0.5s; }
.mockup-card.c3 { background: linear-gradient(135deg, rgba(79,172,254,0.2), rgba(79,172,254,0.05)); animation-delay: 1s; }
.mockup-card.c4 { background: linear-gradient(135deg, rgba(67,233,123,0.2), rgba(67,233,123,0.05)); animation-delay: 1.5s; }

@keyframes pulse-card {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.mc-icon { font-size: 18px; margin-bottom: 4px; }
.mc-num { font-size: 16px; font-weight: 700; color: var(--text); }

.mockup-list { display: flex; flex-direction: column; gap: 6px; }
.mockup-row {
    height: 20px; border-radius: 4px; background: var(--surface-light);
    animation: shimmer 2s ease-in-out infinite;
}
.mockup-row:nth-child(2) { width: 85%; animation-delay: 0.3s; }
.mockup-row:nth-child(3) { width: 70%; animation-delay: 0.6s; }

@keyframes shimmer {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

@media (max-width: 968px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { order: -1; max-width: 500px; margin: 0 auto; }
}

/* ===== Features Overview ===== */
.features-overview { padding: 120px 0; }

.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
    display: inline-block; padding: 6px 16px; border-radius: 20px;
    background: rgba(102,126,234,0.1); border: 1px solid rgba(102,126,234,0.2);
    color: var(--primary); font-size: 13px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px;
}
.section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800;
    margin-bottom: 12px;
}
.section-header p { color: var(--text-muted); font-size: 17px; max-width: 560px; margin: 0 auto; }

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

.feature-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px 24px;
    transition: var(--transition); cursor: pointer;
    position: relative; overflow: hidden;
    text-decoration: none; color: inherit; display: block;
}
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(var(--mouse-angle, 0deg), rgba(102, 126, 234, 0.4), transparent 40%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}
.feature-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(
        800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(102, 126, 234, 0.06),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(102,126,234,0.15);
}
.feature-card:hover::before,
.feature-card:hover::after {
    opacity: 1;
}

.feature-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.feature-icon svg { width: 24px; height: 24px; color: #fff; }

.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

@media (max-width: 968px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .features-grid { grid-template-columns: 1fr; } }

/* ===== Detail Sections ===== */
.detail-section { padding: 100px 0; }
.detail-section.alt-bg { background: var(--bg-alt); }

.detail-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.detail-row.reverse { direction: rtl; }
.detail-row.reverse > * { direction: ltr; }

.detail-image {
    border-radius: var(--radius); overflow: hidden;
    background: var(--surface); border: 1px solid var(--border);
    box-shadow: var(--shadow); position: relative;
    aspect-ratio: 16/11;
}
.detail-image img {
    width: 100%; height: 100%; object-fit: cover;
    display: block;
}
.detail-image::after {
    content: ''; position: absolute; inset: 0; border-radius: var(--radius);
    background: linear-gradient(180deg, transparent 60%, rgba(10,11,26,0.4) 100%);
    pointer-events: none;
}

.detail-text .section-tag { margin-bottom: 12px; }
.detail-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 12px; }
.detail-description { font-size: 16px; color: var(--text-muted); margin-bottom: 28px; line-height: 1.7; }

.feature-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-check {
    flex-shrink: 0; width: 24px; height: 24px; border-radius: 8px;
    background: rgba(102,126,234,0.15); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; margin-top: 2px;
}
.feature-list li div { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.feature-list li strong { color: var(--text); font-weight: 600; }

@media (max-width: 868px) {
    .detail-row, .detail-row.reverse { grid-template-columns: 1fr; direction: ltr; }
    .detail-image { max-width: 600px; margin: 0 auto 32px; }
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 100px 0; text-align: center;
    background: radial-gradient(ellipse at center, rgba(102,126,234,0.08) 0%, transparent 60%);
}
.cta-content h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; margin-bottom: 16px; line-height: 1.3; }
.cta-content p { color: var(--text-muted); font-size: 17px; margin-bottom: 40px; }

.cta-features {
    display: flex; justify-content: center; gap: 32px; flex-wrap: wrap;
}
.cta-feature {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 24px; border-radius: 12px;
    background: var(--surface); border: 1px solid var(--border);
    font-size: 14px; font-weight: 600;
}

/* ===== Footer ===== */
.footer {
    padding: 32px 0; border-top: 1px solid var(--border);
}
.footer-content {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-copy { font-size: 13px; color: var(--text-dim); }

/* ===== Language Switcher ===== */
.lang-switcher {
    display: flex;
    background: var(--surface-light);
    border-radius: 20px;
    padding: 2px;
    border: 1px solid var(--border);
    margin-left: 10px;
}
.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 18px;
    cursor: pointer;
    transition: var(--transition);
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 10px rgba(102,126,234,0.3);
}

/* ===== Animations ===== */
.animate-fade-up {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-fade-up.visible { opacity: 1; transform: translateY(0); }

.animate-slide-left {
    opacity: 0; transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-slide-left.visible { opacity: 1; transform: translateX(0); }

.animate-slide-right {
    opacity: 0; transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-slide-right.visible { opacity: 1; transform: translateX(0); }

/* Hero elements animate immediately */
.hero .animate-fade-up { animation: fadeUp 0.8s ease forwards; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Stagger delays for feature cards */
.feature-card[data-delay="50"] { transition-delay: 0.05s; }
.feature-card[data-delay="100"] { transition-delay: 0.1s; }
.feature-card[data-delay="150"] { transition-delay: 0.15s; }
.feature-card[data-delay="200"] { transition-delay: 0.2s; }
.feature-card[data-delay="250"] { transition-delay: 0.25s; }
.feature-card[data-delay="300"] { transition-delay: 0.3s; }
.feature-card[data-delay="350"] { transition-delay: 0.35s; }

/* Image placeholder while loading */
.detail-image img[src=""] {
    display: none;
}
.detail-image:not(:has(img[src]:not([src=""]))) {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--surface), var(--surface-light));
}

/* ===== CSS Mockups (Імітація інтерфейсу програми - Windows 11 Style) ===== */
.app-mockup-container {
    width: 100%;
    height: 100%;
    background: rgba(22, 24, 55, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 8px; /* Windows 11 style radius */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.mockup-header-bar {
    height: 32px;
    background: rgba(10, 11, 26, 0.4);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}

.win-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 12px;
    font-size: 11px;
    color: var(--text-muted);
}

.win-icon {
    width: 14px;
    height: 14px;
    background: var(--gradient);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: white;
    font-weight: bold;
}

.win-controls {
    display: flex;
    height: 100%;
}

.win-btn {
    width: 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 10px;
    transition: background 0.2s;
}

.win-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.win-btn.close:hover {
    background: #e81123;
    color: white;
}

.mockup-body-area {
    flex: 1;
    background: transparent;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Dashboard Mockup */
.mock-dash-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.mock-dash-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 15px; height: 80px; display: flex; flex-direction: column; justify-content: space-between; }
.mock-dash-card.alert { border-color: rgba(229, 57, 53, 0.5); background: rgba(229, 57, 53, 0.05); }
.mock-line { height: 8px; background: var(--border); border-radius: 4px; }
.mock-line.w-50 { width: 50%; }
.mock-line.w-80 { width: 80%; }
.mock-num { font-size: 24px; font-weight: bold; color: var(--text); }
.mock-num.danger { color: #ff5f57; }

/* Employees Mockup */
.mock-wiz-progress { display: flex; justify-content: space-between; position: relative; margin-bottom: 20px; }
.mock-wiz-progress::before { content: ''; position: absolute; top: 12px; left: 0; right: 0; height: 2px; background: var(--border); z-index: 1; }
.mock-wiz-step { width: 26px; height: 26px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); z-index: 2; display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--text-muted); }
.mock-wiz-step.done { background: var(--primary); border-color: var(--primary); color: white; }
.mock-wiz-step.active { border: 2px solid var(--primary); color: var(--primary); }
.mock-input { height: 35px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; margin-bottom: 10px; }

/* Templates Mockup */
.mock-pdf-area { display: flex; gap: 15px; height: 100%; }
.mock-pdf-doc { flex: 2; background: #fff; border-radius: 8px; padding: 20px; position: relative; }
.mock-pdf-sidebar { flex: 1; background: var(--surface); border-radius: 8px; padding: 15px; border: 1px solid var(--border); }
.mock-pdf-text { height: 6px; background: #e0e0e0; border-radius: 3px; margin-bottom: 10px; }
.mock-tag { position: absolute; top: 40%; left: 30%; background: rgba(102,126,234,0.2); border: 1px dashed var(--primary); color: var(--primary); padding: 4px 8px; font-size: 10px; border-radius: 4px; font-family: monospace; font-weight: bold; }

/* Finance Mockup */
.mock-table { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.mock-th { background: var(--surface); padding: 10px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; font-size: 11px; color: var(--text-muted); }
.mock-tr { padding: 10px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; border-top: 1px solid var(--border); font-size: 12px; }
.mock-td { background: var(--surface); padding: 4px 8px; border-radius: 4px; text-align: right; font-family: monospace; }
.mock-td.net { color: var(--primary); font-weight: bold; background: rgba(102,126,234,0.1); }

/* Invoices Mockup */
.mock-inv-doc { background: #fff; height: 100%; border-radius: 8px; padding: 20px; display: flex; flex-direction: column; }
.mock-inv-top { display: flex; justify-content: space-between; border-bottom: 2px solid #eee; padding-bottom: 15px; margin-bottom: 15px; }
.mock-qr { width: 50px; height: 50px; border: 2px solid #333; padding: 2px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mock-qr div { background: #333; }

/* AI Mockup */
.mock-chat { display: flex; flex-direction: column; height: 100%; }
.mock-msg-user { align-self: flex-end; background: var(--gradient); color: white; padding: 10px 15px; border-radius: 15px 15px 4px 15px; max-width: 80%; margin-bottom: 10px; font-size: 12px; }
.mock-msg-ai { align-self: flex-start; background: var(--surface); color: var(--text); border: 1px solid var(--border); padding: 10px 15px; border-radius: 15px 15px 15px 4px; max-width: 80%; font-size: 12px; margin-bottom: 10px; }
.mock-chat-input { margin-top: auto; height: 40px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; display: flex; align-items: center; padding: 0 15px; justify-content: space-between; }
.mock-send-btn { width: 24px; height: 24px; border-radius: 50%; background: var(--gradient); }

/* ===== Розширені анімації для макетів ===== */

/* Ефект сканування (для працівників/документів) */
.mock-scanner-box {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border: 1px dashed var(--primary);
    border-radius: 8px;
    padding: 15px;
    height: 100px;
}
.mock-scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #00f2fe;
    box-shadow: 0 0 10px 2px rgba(0, 242, 254, 0.5);
    animation: scan 2.5s ease-in-out infinite;
    z-index: 10;
}
@keyframes scan {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Анімація заповнення прогрес-барів (Дашборд) */
.mock-progress-track {
    height: 6px;
    background: var(--surface-light);
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}
.mock-progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 3px;
    width: 0%;
    animation: fillBar 1.5s ease-out forwards;
    animation-delay: 0.5s;
}
@keyframes fillBar {
    to { width: var(--target-width); }
}

/* Анімація друку AI (Gemini) */
.mock-typing {
    display: flex;
    gap: 4px;
    padding: 10px 15px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 15px 15px 15px 4px;
    width: fit-content;
}
.mock-typing span {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}
.mock-typing span:nth-child(1) { animation-delay: -0.32s; }
.mock-typing span:nth-child(2) { animation-delay: -0.16s; }
@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Пульсація для критичних помилок */
.mock-pulse-alert {
    animation: pulseAlert 2s infinite;
}
@keyframes pulseAlert {
    0% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(229, 57, 53, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); }
}

/* Поява повідомлень у чаті */
.mock-msg-user, .mock-msg-ai {
    animation: slideUpFade 0.5s ease-out forwards;
}
@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Складні сюжетні анімації ===== */

/* 1. Анімація Drag & Drop тегів у PDF редакторі */
.mock-drag-tag {
    position: absolute;
    background: rgba(102,126,234,0.2);
    border: 1px dashed var(--primary);
    color: var(--primary);
    padding: 4px 8px;
    font-size: 10px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: bold;
    animation: dragAndDrop 4s ease-in-out infinite;
    z-index: 10;
}
@keyframes dragAndDrop {
    0% { top: 20px; left: -100px; opacity: 0; transform: scale(0.8); }
    10% { top: 20px; left: -100px; opacity: 1; transform: scale(1.1); box-shadow: 0 5px 15px rgba(102,126,234,0.4); }
    40% { top: 40%; left: 30%; transform: scale(1.1); box-shadow: 0 5px 15px rgba(102,126,234,0.4); }
    50% { top: 40%; left: 30%; transform: scale(1); box-shadow: none; border-style: solid; background: var(--primary); color: white; }
    90% { top: 40%; left: 30%; opacity: 1; }
    100% { top: 40%; left: 30%; opacity: 0; }
}

/* 2. Анімація автозаповнення фінансів (поява цифр) */
.mock-td-animate {
    position: relative;
    overflow: hidden;
}
.mock-td-animate::after {
    content: '0';
    position: absolute;
    right: 8px;
    animation: countUp 3s steps(10) infinite;
}
.mock-td-animate.v1::after { animation-name: countUp1; }
.mock-td-animate.v2::after { animation-name: countUp2; }
@keyframes countUp1 { 0%, 20% { content: '0'; } 40% { content: '1200'; } 60%, 100% { content: '24500'; } }
@keyframes countUp2 { 0%, 30% { content: '0'; } 50% { content: '500'; } 70%, 100% { content: '21000'; } }

/* 3. Анімація генерації рахунку-фактури (поява елементів зверху вниз) */
.mock-inv-generate > * {
    opacity: 0;
    transform: translateY(-10px);
    animation: generateDoc 4s ease-out infinite;
}
.mock-inv-generate > *:nth-child(1) { animation-delay: 0.2s; }
.mock-inv-generate > *:nth-child(2) { animation-delay: 0.8s; }
.mock-inv-generate > *:nth-child(3) { animation-delay: 1.4s; }
.mock-inv-generate > *:nth-child(4) { animation-delay: 2.0s; }
@keyframes generateDoc {
    0%, 5% { opacity: 0; transform: translateY(-10px); }
    10%, 90% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(0); }
}

/* 4. Анімація перемикання вкладок (Компанії) */
.mock-tab-switch {
    animation: tabSwitch 4s infinite;
}
@keyframes tabSwitch {
    0%, 45% { background: var(--primary); width: 40px; }
    50%, 95% { background: var(--surface-light); width: 20px; }
    100% { background: var(--primary); width: 40px; }
}
.mock-tab-content-1 { animation: showTab1 4s infinite; }
.mock-tab-content-2 { animation: showTab2 4s infinite; }
@keyframes showTab1 { 0%, 45% { opacity: 1; } 50%, 100% { opacity: 0.3; } }
@keyframes showTab2 { 0%, 45% { opacity: 0.3; } 50%, 100% { opacity: 1; } }

/* 5. Анімація для секції Безпеки (Шифрування та Хмара) */
.mock-shield-container {
    display: flex; flex-direction: column; align-items: center; gap: 15px;
}
.mock-shield {
    width: 60px; height: 60px; border-radius: 50%; background: rgba(102,126,234,0.1);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 20px rgba(102,126,234,0.2);
    animation: pulse-shield 2s infinite;
}
@keyframes pulse-shield {
    0% { box-shadow: 0 0 0 0 rgba(102,126,234,0.4); }
    70% { box-shadow: 0 0 0 15px rgba(102,126,234,0); }
    100% { box-shadow: 0 0 0 0 rgba(102,126,234,0); }
}
.mock-data-stream {
    display: flex; flex-direction: column; gap: 8px; width: 150px;
}
.mock-data-item {
    background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 4px 8px; font-size: 10px; text-align: center;
}
.mock-data-item.encrypted {
    color: var(--primary); font-family: monospace; letter-spacing: 2px;
    animation: encryptText 3s infinite alternate;
}
@keyframes encryptText {
    0%, 40% { opacity: 0; transform: scale(0.9); }
    50%, 100% { opacity: 1; transform: scale(1); }
}

/* Анімація синхронізації з хмарою */
.mock-cloud-sync {
    position: absolute; bottom: 20px; right: 20px;
    display: flex; align-items: center; gap: 8px;
    background: var(--surface); padding: 8px 12px; border-radius: 20px; border: 1px solid var(--border);
}
.sync-arrows {
    color: var(--primary); font-size: 14px; font-weight: bold;
    animation: spin-sync 2s linear infinite;
}
@keyframes spin-sync { 100% { transform: rotate(360deg); } }

/* ===== Нові WOW-ефекти ===== */

/* Premium Animated Background (Hero) */
.hero-glow-1, .hero-glow-2, .hero-glow-3 {
    position: absolute; border-radius: 50%; filter: blur(120px); z-index: 0; opacity: 0.5; animation: floatGlow 20s infinite alternate; pointer-events: none;
}
.hero-glow-1 { width: 500px; height: 500px; background: rgba(0, 120, 212, 0.4); top: -100px; left: -100px; }
.hero-glow-2 { width: 400px; height: 400px; background: rgba(138, 43, 226, 0.3); bottom: -50px; right: -50px; animation-delay: -5s; }
.hero-glow-3 { width: 350px; height: 350px; background: rgba(0, 210, 255, 0.3); top: 50%; left: 50%; transform: translate(-50%, -50%); animation-delay: -10s; }
@keyframes floatGlow { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(50px, 50px) scale(1.2); } }
.hero .container { position: relative; z-index: 1; }

/* Infinite Marquee */
.tech-marquee {
    background: rgba(255,255,255,0.02); border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 15px 0; overflow: hidden; display: flex; white-space: nowrap; position: relative;
}
.tech-marquee::before, .tech-marquee::after {
    content: ''; position: absolute; top: 0; width: 100px; height: 100%; z-index: 2; pointer-events: none;
}
.tech-marquee::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.tech-marquee::after { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.marquee-track { display: flex; width: max-content; animation: scrollMarquee 30s linear infinite; }
.marquee-item {
    display: inline-flex; align-items: center; gap: 8px; margin: 0 30px;
    font-size: 14px; color: var(--text-muted); font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
}
@keyframes scrollMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Live Toasts */
#toast-container {
    position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.live-toast {
    background: rgba(20, 20, 20, 0.8); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 12px 16px;
    display: flex; align-items: center; gap: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: translateX(120%); opacity: 0; transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.live-toast.show { transform: translateX(0); opacity: 1; }
.toast-icon { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; background: rgba(102,126,234,0.1); border-radius: 50%; }
.toast-text { font-size: 13px; color: #fff; font-weight: 500; }
.toast-time { font-size: 11px; color: var(--text-muted); margin-left: auto; padding-left: 10px; }

/* Sticky CTA */
#sticky-cta {
    position: fixed; bottom: -100px; left: 50%; transform: translateX(-50%);
    background: rgba(15, 15, 15, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 50px; padding: 10px 10px 10px 24px;
    display: flex; align-items: center; gap: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    z-index: 9998; transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); width: max-content;
}
#sticky-cta.visible { bottom: 30px; }
#sticky-cta .cta-text { font-weight: 600; font-size: 14px; color: white; }
#sticky-cta .btn { padding: 10px 24px; font-size: 13px; border-radius: 30px; margin: 0; }

/* Animated Counters Section */
.stats-section { padding: 60px 0; border-bottom: 1px solid rgba(255,255,255,0.05); background: var(--bg-alt); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; text-align: center; }
.stat-box { display: flex; flex-direction: column; align-items: center; }
.stat-counter {
    font-size: 48px; font-weight: 900;
    background: linear-gradient(135deg, #fff, #888); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 5px; line-height: 1;
}
.stat-box-label { color: var(--text-muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

@media (max-width: 768px) {
    #sticky-cta { width: 90%; padding: 15px; flex-direction: column; gap: 10px; border-radius: 20px; }
    #sticky-cta .btn { width: 100%; justify-content: center; }
    .live-toast { width: calc(100% - 40px); }
}

/* Сяючий курсор */
#cursor-glow {
    position: fixed;
    top: 0; left: 0;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(102,126,234,0.15) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s;
}

/* 3D Tilt Effect */
.tilt-effect {
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: transform 0.1s ease;
}
.tilt-effect .app-mockup-container {
    transform: translateZ(20px);
}

/* Ефект друкарської машинки */
.typewriter-text::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--primary);
}
@keyframes blink { 50% { opacity: 0; } }

/* Живий графік (Дашборд) */
.mock-chart-container { display: flex; align-items: flex-end; gap: 8px; height: 90px; padding: 10px; border-bottom: 1px solid var(--border); margin-top: 10px; }
.mock-bar { flex: 1; background: var(--gradient); border-radius: 4px 4px 0 0; transform-origin: bottom; animation: barPulse 2s ease-in-out infinite alternate; }
.mock-bar:nth-child(1) { height: 40%; animation-delay: 0s; }
.mock-bar:nth-child(2) { height: 70%; animation-delay: -0.5s; }
.mock-bar:nth-child(3) { height: 50%; animation-delay: -1s; }
.mock-bar:nth-child(4) { height: 90%; animation-delay: -1.5s; background: linear-gradient(135deg, #28ca41, #43e97b); }
.mock-bar:nth-child(5) { height: 60%; animation-delay: -0.2s; }
@keyframes barPulse { 0% { transform: scaleY(0.8); } 100% { transform: scaleY(1.1); } }

/* ID Сканер (Працівники) */
.mock-id-card {
    position: relative; width: 100%; height: 120px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; display: flex; align-items: center; padding: 10px; gap: 15px;
}
.mock-id-photo { width: 60px; height: 80px; background: var(--surface-light); border-radius: 4px; }
.mock-id-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.mock-id-line { height: 8px; background: var(--surface-light); border-radius: 4px; }
.mock-id-line.scanned { background: var(--primary); animation: fillLine 3s infinite; }
@keyframes fillLine { 0%, 30% { width: 0; opacity: 0; } 40%, 90% { width: 100%; opacity: 1; } 100% { opacity: 0; } }
.mock-laser { position: absolute; top: 0; left: -20%; width: 20%; height: 100%; background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.8), transparent); animation: laserScan 3s infinite; transform: skewX(-20deg); z-index: 10; }
@keyframes laserScan { 0% { left: -30%; } 50%, 100% { left: 120%; } }

/* 6. Анімація Popup (Документи) */
.mock-popup {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: var(--surface); border: 1px solid rgba(229,57,53,0.5); border-radius: 8px;
    padding: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    width: 80%; z-index: 30;
    animation: popupShowHide 6s infinite;
}
@keyframes popupShowHide {
    0%, 10% { opacity: 0; transform: translate(-50%, -40%); pointer-events: none; }
    15%, 70% { opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; }
    75%, 100% { opacity: 0; transform: translate(-50%, -60%); pointer-events: none; }
}
.mock-cursor {
    position: absolute; width: 15px; height: 15px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="white" stroke="black" stroke-width="2"><path d="M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z"/></svg>') no-repeat;
    z-index: 40; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    animation: cursorMoveClick 6s infinite;
}
@keyframes cursorMoveClick {
    0%, 20% { top: 90%; left: 90%; opacity: 0; }
    30% { top: 90%; left: 90%; opacity: 1; }
    50% { top: 65%; left: 65%; transform: scale(1); }
    55% { top: 65%; left: 65%; transform: scale(0.8); } /* Click */
    60% { top: 65%; left: 65%; transform: scale(1); }
    80%, 100% { top: 90%; left: 90%; opacity: 0; }
}
.mock-status-change {
    animation: statusChange 6s infinite;
}
@keyframes statusChange {
    0%, 65% { color: #ff5f57; } /* Прострочено */
    70%, 100% { color: #28ca41; } /* Ок */
}

/* 7. Анімація Калькулятора (Фінанси) */
.mock-calc-row {
    display: flex; justify-content: space-between; margin-bottom: 8px; font-family: monospace; font-size: 12px;
}
.mock-calc-row span:last-child {
    color: var(--primary); font-weight: bold;
}
.mock-calc-step1 { animation: showStep 5s infinite; opacity: 0; }
.mock-calc-step2 { animation: showStep 5s infinite 1s; opacity: 0; }
.mock-calc-step3 { animation: showStep 5s infinite 2s; opacity: 0; border-top: 1px dashed var(--border); padding-top: 8px; color: #28ca41 !important; font-size: 14px; }
@keyframes showStep {
    0%, 5% { opacity: 0; transform: translateX(-10px); }
    10%, 90% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; }
}

/* 8. Анімація Пошуку (Компанії) */
.mock-search-bar {
    background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
    height: 30px; display: flex; align-items: center; padding: 0 15px; margin-bottom: 15px;
    position: relative;
}
.mock-search-text::after {
    content: '';
    animation: typeSearch 6s infinite;
}
@keyframes typeSearch {
    0%, 10% { content: ''; }
    15% { content: 'S'; }
    20% { content: 'Sy'; }
    25% { content: 'Sys'; }
    30%, 80% { content: 'Systema'; }
    90%, 100% { content: ''; }
}
.mock-filter-item { animation: filterItem 6s infinite; }
@keyframes filterItem {
    0%, 30% { opacity: 1; height: auto; margin-bottom: 15px; }
    35%, 80% { opacity: 0.2; height: 40px; margin-bottom: 15px; filter: grayscale(1); }
    90%, 100% { opacity: 1; height: auto; margin-bottom: 15px; }
}

/* 9. Анімація Відновлення (Архів) */
.mock-archive-row {
    position: relative; overflow: hidden;
    animation: archiveRestore 6s infinite;
}
.mock-restore-btn {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    background: var(--primary); color: white; padding: 2px 8px; border-radius: 4px; font-size: 10px;
    opacity: 0; animation: showRestoreBtn 6s infinite;
}
@keyframes archiveRestore {
    0%, 40% { opacity: 1; transform: translateX(0); background: transparent; }
    45%, 60% { background: rgba(102,126,234,0.1); }
    65%, 100% { opacity: 0; transform: translateX(100%); }
}
@keyframes showRestoreBtn {
    0%, 40% { opacity: 0; }
    45%, 60% { opacity: 1; }
    65%, 100% { opacity: 0; }
}

/* ===== Marketing Enhancements ===== */

/* ROI Calculator */
.roi-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}
.roi-slider-box {
    margin-bottom: 40px;
    text-align: center;
}
.roi-slider-box label {
    display: block;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text);
}
.roi-slider-box label span {
    color: var(--primary);
    font-size: 24px;
    font-weight: 800;
}
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--gradient);
    cursor: pointer;
    margin-top: -8px;
    box-shadow: 0 0 15px rgba(102,126,234,0.5);
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: var(--surface-light);
    border-radius: 4px;
    border: 1px solid var(--border);
}
.roi-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.roi-card {
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border);
}
.roi-card.bad {
    background: rgba(229, 57, 53, 0.05);
    border-color: rgba(229, 57, 53, 0.2);
}
.roi-card.good {
    background: rgba(40, 202, 65, 0.05);
    border-color: rgba(40, 202, 65, 0.3);
    position: relative;
    overflow: hidden;
}
.roi-card.good::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(40, 202, 65, 0.1), transparent);
    animation: shine 3s infinite;
}
@keyframes shine {
    100% { left: 200%; }
}
.roi-card h4 {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-weight: 500;
}
.roi-val {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}
.roi-val-money {
    font-size: 24px;
    font-weight: 800;
}
.roi-card.bad .roi-val-money { color: #ff5f57; }
.roi-card.good .roi-val-money { color: #28ca41; text-shadow: 0 0 10px rgba(40,202,65,0.3); }

/* What We Replace */
.replace-section {
    padding: 80px 0;
    background: radial-gradient(ellipse at top, rgba(102,126,234,0.05) 0%, transparent 70%);
}
.replace-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}
.old-way {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.app-icon {
    width: 80px;
    height: 80px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    color: var(--text-muted);
    position: relative;
    opacity: 0.6;
    animation: shake-icon 4s infinite;
}
.app-icon:nth-child(2) { animation-delay: 0.5s; }
.app-icon:nth-child(3) { animation-delay: 1s; }
.app-icon:nth-child(4) { animation-delay: 1.5s; }

@keyframes shake-icon {
    0%, 90% { transform: translate(0, 0) rotate(0deg); }
    92% { transform: translate(-2px, 2px) rotate(-2deg); }
    94% { transform: translate(2px, -2px) rotate(2deg); }
    96% { transform: translate(-2px, -2px) rotate(-2deg); }
    98% { transform: translate(2px, 2px) rotate(2deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

.app-icon.crossed::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background: #ff5f57;
    transform: rotate(-45deg);
    box-shadow: 0 0 10px rgba(255,95,87,0.5);
    animation: cross-out 4s infinite forwards;
}
.app-icon:nth-child(1).crossed::after { animation-delay: 0s; }
.app-icon:nth-child(2).crossed::after { animation-delay: 0.5s; }
.app-icon:nth-child(3).crossed::after { animation-delay: 1s; }
.app-icon:nth-child(4).crossed::after { animation-delay: 1.5s; }

@keyframes cross-out {
    0%, 50% { width: 0%; opacity: 0; }
    55%, 90% { width: 100%; opacity: 1; }
    100% { width: 0%; opacity: 0; }
}
.vs-arrow {
    font-size: 40px;
    color: var(--primary);
    animation: pulse-arrow 2s infinite;
}
@keyframes pulse-arrow {
    0%, 100% { transform: scale(1) translateX(0); }
    50% { transform: scale(1.1) translateX(10px); }
}
.new-way {
    text-align: center;
}
.ac-logo-glow {
    width: 120px;
    height: 120px;
    background: var(--gradient);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
    color: white;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 0 40px rgba(102,126,234,0.6);
    margin-bottom: 15px;
    animation: float 4s ease-in-out infinite;
}

/* Perfect For Cards */
.perfect-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.perfect-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.perfect-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(102,126,234,0.15);
}
.perfect-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition);
}
.perfect-card:hover::before { opacity: 1; }
.perfect-icon {
    font-size: 32px;
    margin-bottom: 20px;
}
.perfect-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}
.perfect-card ul {
    list-style: none;
    padding: 0;
}
.perfect-card ul li {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.perfect-card ul li::before {
    content: '→';
    color: var(--primary);
}

/* FAQ Accordion */
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}
.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}
.faq-question h4 {
    font-size: 16px;
    margin: 0;
    transition: color 0.3s;
}
.faq-icon {
    color: var(--primary);
    font-size: 20px;
    font-weight: 300;
    transition: transform 0.3s ease;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 20px;
}
.faq-answer p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px 0;
}
.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(102,126,234,0.1);
}
.faq-item.active .faq-question h4 {
    color: var(--primary);
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Pricing Glow */
.pricing-card-pro {
    position: relative;
    background: var(--surface) !important; /* Повертаємо темний фон замість градієнту */
    z-index: 1;
}
.pricing-card-pro::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: linear-gradient(45deg, var(--primary), #f093fb, var(--primary));
    z-index: -1;
    filter: blur(10px); /* Зменшуємо розмиття */
    opacity: 0.3; /* Робимо світіння набагато слабшим */
    animation: pulse-glow 4s linear infinite alternate; /* Повільніша анімація */
}
@keyframes pulse-glow {
    0% { opacity: 0.15; filter: blur(8px); }
    100% { opacity: 0.4; filter: blur(12px); }
}
.pricing-card-pro:hover {
    transform: translateY(-20px) !important;
}
.pricing-card-pro:hover::before {
    opacity: 0.6; /* Трохи яскравіше при наведенні, але не занадто */
}
.pricing-card-pro:hover .btn-primary {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(102,126,234,0.6);
}

@media (max-width: 768px) {
    .replace-grid { flex-direction: column; }
    .vs-arrow { transform: rotate(90deg); }
    @keyframes pulse-arrow {
        0%, 100% { transform: scale(1) translateY(0) rotate(90deg); }
        50% { transform: scale(1.1) translateY(10px) rotate(90deg); }
    }
    .perfect-grid { grid-template-columns: 1fr; }
    .roi-results { grid-template-columns: 1fr; }
    
    /* Mobile Fixes */
    .tilt-effect {
        transform: none !important;
        perspective: none !important;
        transform-style: flat !important;
    }
    .tilt-effect .app-mockup-container {
        transform: none !important;
        position: relative !important;
    }
    .detail-image {
        aspect-ratio: 4/3 !important;
    }
    .mockup-body-area {
        padding: 12px !important;
        gap: 10px !important;
    }
    #toast-container {
        bottom: 20px !important; /* Повертаємо сповіщення вниз, бо банера більше немає */
    }
    .live-toast {
        width: 100% !important;
        margin: 0 auto;
    }
    #sticky-cta {
        display: none !important; /* Приховуємо нижній банер */
    }
    
    /* --- Адаптація макетів під мобільні екрани --- */
    
    /* Загальні налаштування макетів */
    .detail-image {
        aspect-ratio: auto !important;
        min-height: 250px;
    }
    .mockup-body-area {
        padding: 10px !important;
        overflow-x: hidden;
    }

    /* Таблиці (Документи, Фінанси, Архів) */
    .mock-table {
        font-size: 9px !important;
    }
    .mock-th, .mock-tr {
        padding: 6px !important;
        grid-template-columns: 1.5fr 1fr 1fr 0.5fr !important;
        gap: 4px;
    }
    .mock-td {
        padding: 2px 4px !important;
    }

    /* Дашборд */
    .mock-dash-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .mock-dash-card {
        height: 60px !important;
        padding: 10px !important;
    }
    .mock-num {
        font-size: 18px !important;
    }

    /* Працівники (ID Сканер) */
    .mock-id-card {
        height: 90px !important;
        padding: 8px !important;
    }
    .mock-id-photo {
        width: 45px !important;
        height: 60px !important;
    }

    /* Шаблони (PDF редактор) */
    .mock-pdf-area {
        flex-direction: column !important;
    }
    .mock-pdf-sidebar {
        padding: 10px !important;
    }
    .mock-pdf-doc {
        padding: 10px !important;
        min-height: 120px;
    }

    /* Рахунки (Invoices) */
    .mock-inv-doc {
        padding: 10px !important;
    }
    .mock-inv-top {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px;
    }
    .mock-inv-top > div:last-child {
        text-align: left !important;
    }
    .mock-qr {
        width: 30px !important;
        height: 30px !important;
    }

    /* AI Чат */
    .mock-msg-user, .mock-msg-ai {
        font-size: 10px !important;
        padding: 8px 12px !important;
        max-width: 90% !important;
    }
    .mock-chat-input {
        height: 30px !important;
    }

    /* Компанії (Вкладки) */
    .mock-filter-item {
        padding: 10px !important;
    }
}
