@keyframes spin { to { transform: rotate(360deg); } }
/* ─── Hero 4D Animated Background ──────────────────────────── */
.landing-hero {
    background: #070c18 !important;
}
.landing-hero::before,
.landing-hero::after {
    display: none !important;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.hero-orb-1 {
    width: 700px; height: 700px;
    background: radial-gradient(circle at 40% 40%, rgba(59,130,246,0.28) 0%, transparent 65%);
    top: -260px; right: -180px;
    filter: blur(60px);
    animation: hOrb1 14s ease-in-out infinite;
}
.hero-orb-2 {
    width: 550px; height: 550px;
    background: radial-gradient(circle at 50% 50%, rgba(139,92,246,0.22) 0%, transparent 65%);
    bottom: -180px; left: -120px;
    filter: blur(70px);
    animation: hOrb2 18s ease-in-out infinite;
}
.hero-orb-3 {
    width: 320px; height: 320px;
    background: radial-gradient(circle at 50% 50%, rgba(245,158,11,0.18) 0%, transparent 65%);
    top: 25%; left: 15%;
    filter: blur(50px);
    animation: hOrb3 11s ease-in-out infinite;
}
.hero-orb-4 {
    width: 280px; height: 280px;
    background: radial-gradient(circle at 50% 50%, rgba(16,185,129,0.14) 0%, transparent 65%);
    top: 8%; right: 22%;
    filter: blur(55px);
    animation: hOrb4 16s ease-in-out infinite;
}
.hero-orb-5 {
    width: 200px; height: 200px;
    background: radial-gradient(circle at 50% 50%, rgba(236,72,153,0.14) 0%, transparent 65%);
    bottom: 20%; right: 10%;
    filter: blur(45px);
    animation: hOrb5 9s ease-in-out infinite;
}
.hero-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
@keyframes hOrb1 {
    0%,100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(-90px, 70px) scale(1.08); }
    66% { transform: translate(50px, -50px) scale(0.94); }
}
@keyframes hOrb2 {
    0%,100% { transform: translate(0,0) scale(1); }
    40% { transform: translate(70px, -90px) scale(1.06); }
    70% { transform: translate(-40px, 60px) scale(0.92); }
}
@keyframes hOrb3 {
    0%,100% { transform: translate(0,0) scale(1); opacity: 0.7; }
    50% { transform: translate(50px, -70px) scale(1.15); opacity: 1; }
}
@keyframes hOrb4 {
    0%,100% { transform: translate(0,0); opacity: 0.6; }
    30% { transform: translate(-60px, 40px); opacity: 0.9; }
    70% { transform: translate(80px, -25px); opacity: 0.4; }
}
@keyframes hOrb5 {
    0%,100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(-40px, -50px) scale(1.2); }
}

/* ─── Landing page unified dark backgrounds ─────────────── */
.landing-page .main-content { padding: 0; max-width: 100%; }

/* Features section */
.landing-page .landing-features {
    background: #080f1e;
    position: relative;
    overflow: hidden;
}
.landing-page .landing-features::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 60% at 5% 50%, rgba(59,130,246,0.06) 0%, transparent 65%),
        radial-gradient(ellipse 45% 50% at 95% 30%, rgba(139,92,246,0.05) 0%, transparent 65%),
        radial-gradient(ellipse 30% 40% at 50% 100%, rgba(16,185,129,0.04) 0%, transparent 60%);
    pointer-events: none;
}
.landing-page .landing-features-inner { position: relative; z-index: 1; }
.landing-page .landing-section-title { color: #e2e8f0; }
.landing-page .landing-section-subtitle { color: rgba(226,232,240,0.58); }

/* Feature cards — glassmorphism dark */
.landing-page .feature-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(96,165,250,0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.landing-page .feature-card::before {
    background: linear-gradient(90deg, #60a5fa, #a78bfa, #34d399);
}
.landing-page .feature-card h3 { color: #e2e8f0; }
.landing-page .feature-card p { color: rgba(226,232,240,0.62); }
.landing-page .feature-card:hover {
    background: rgba(96,165,250,0.08);
    border-color: rgba(96,165,250,0.3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(96,165,250,0.15);
    transform: translateY(-6px);
}
/* Highlighted cards */
.landing-page .feature-card.feature-card-ai {
    border-color: rgba(167,139,250,0.2);
    background: rgba(139,92,246,0.05);
}
.landing-page .feature-card.feature-card-ai:hover { border-color: rgba(167,139,250,0.4); }
.landing-page .feature-card.feature-card-secure {
    border-color: rgba(16,185,129,0.2);
    background: rgba(16,185,129,0.04);
}
.landing-page .feature-card.feature-card-secure:hover { border-color: rgba(16,185,129,0.4); }
.landing-page .feature-card.feature-card-secure .feature-icon { filter: drop-shadow(0 0 8px rgba(0,79,255,0.35)); }

/* Stats section */
.landing-page .landing-stats {
    background: linear-gradient(135deg, #0b1830 0%, #0f2040 40%, #0c1a35 100%);
    position: relative;
    overflow: hidden;
}
.landing-page .landing-stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 120% at 50% 50%, rgba(59,130,246,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.landing-page .landing-stat { position: relative; z-index: 1; }
.landing-page .landing-stat h3 {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3rem;
}
.landing-page .landing-stat p { color: rgba(255,255,255,0.65); }

/* Steps section */
.landing-page .landing-steps {
    background: #0a1220;
    position: relative;
}
.landing-page .landing-steps::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(59,130,246,0.05) 0%, transparent 60%);
    pointer-events: none;
}
.landing-page .landing-steps-inner { position: relative; z-index: 1; }
.landing-page .step-item h3 { color: #e2e8f0; }
.landing-page .step-item p { color: rgba(226,232,240,0.58); }

/* Pricing section */
.landing-page .landing-pricing {
    background: #070d1a;
}

/* CTA section */
.landing-page .landing-cta-section {
    background: linear-gradient(135deg, #0d1d38 0%, #10204a 50%, #0d1c40 100%);
    position: relative;
    overflow: hidden;
}
.landing-page .landing-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 80% at 50% 50%, rgba(96,165,250,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.landing-page .landing-cta-section h2 { color: #e2e8f0; position: relative; z-index: 1; }
.landing-page .landing-cta-section p { color: rgba(226,232,240,0.65); position: relative; z-index: 1; }
.landing-page .landing-cta-section .landing-cta { position: relative; z-index: 1; }

/* Footer */
.landing-page .footer { background: #040810; border-top: 1px solid rgba(96,165,250,0.08); }

/* ─── Pricing block on landing ───────────────────────────── */
.landing-pricing { padding: 4rem 1.5rem; background: var(--bg-secondary, #1e1e2e); }
.landing-pricing-inner { max-width: 1200px; margin: 0 auto; }
.landing-price-tabs { display: flex; gap: 8px; justify-content: center; margin: 1.5rem 0 2rem; }
.lp-tab {
    padding: 8px 24px; border-radius: 8px;
    border: 1.5px solid var(--border-color, #2a2a3e);
    background: transparent; color: var(--text-secondary, #a0a0b8);
    font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.lp-tab.active, .lp-tab:hover {
    background: var(--primary-accent, #7c3aed);
    border-color: var(--primary-accent, #7c3aed); color: #fff;
}
.lp-panel { display: none; }
.lp-panel.active { display: block; }
.landing-price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 1rem; padding: .25rem; }
.landing-price-grid > .lp-card { min-width: 0; }
@media (max-width: 640px) { .landing-price-grid { grid-template-columns: 1fr; } }
/* UAH prices go to the Ukrainian market — Ukrainian and Russian (see the note
   in pricing.css). */
html:not([lang="uk"]):not([lang="ru"]) .lp-price { display: none; }
/* Единый тариф PL/CS: цена фиксированная в локальной валюте — показываем всегда,
   переопределяя правило выше, которое прячет UAH-цены для не-uk/ru языков. */
.lp-price.lp-price-region { display: block !important; }
.lp-card {
    background: var(--bg, #13131f); border: 1.5px solid var(--border-color, #2a2a3e);
    border-radius: 14px; padding: 1.4rem 1.2rem 1.5rem;
    position: relative; transition: border-color 0.2s;
}
.lp-card:hover { border-color: var(--primary-accent, #7c3aed); }
.lp-card-popular {
    border-color: var(--primary-accent, #7c3aed);
    box-shadow: 0 0 0 1px var(--primary-accent, #7c3aed), 0 6px 24px rgba(124,58,237,0.15);
}
.lp-popular-badge {
    position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
    background: var(--primary-accent, #7c3aed); color: #fff;
    font-size: 0.7rem; font-weight: 700; padding: 2px 12px;
    border-radius: 20px; white-space: nowrap;
}
.lp-name { font-size: 1rem; font-weight: 700; color: var(--text-primary, #e0e0f0); margin-bottom: 3px; }
.lp-doc-count { display: inline-block; font-size: 1.05rem; font-weight: 800; color: var(--primary-accent, #004FFF); background: rgba(0,79,255,0.10); border: 1px solid rgba(0,79,255,0.22); padding: 0.22rem 0.66rem; border-radius: 9px; margin-bottom: 0.85rem; letter-spacing: 0.2px; }
.lp-price { font-size: 1.7rem; font-weight: 800; color: var(--text-primary, #e0e0f0); margin-bottom: 0.9rem; }
.lp-price span { font-size: 0.8rem; font-weight: 400; color: var(--text-secondary, #c0c0d8); }
.lp-feat { list-style: none; padding: 0; margin: 0; }
.lp-feat li { font-size: 0.82rem; color: var(--text-secondary, #c0c0d8); margin-bottom: 5px; line-height: 1.4; }

/* ─── Accessibility: WCAG AA contrast fixes (Lighthouse) ─────
   Written when the accent was the light #60a5fa, where dark navy text scored
   ~8.5. The brand accent is #004FFF now, and navy on it is 3.18:1 — below AA
   for the site's main call to action. White gives 5.89:1. */
.landing-page .btn-primary,
.landing-page .lp-tab.active,
.landing-page .lp-tab:hover,
.landing-page .lp-popular-badge {
    color: var(--text-on-accent) !important;
    font-weight: 700;
}
/* The badge is painted for the dark landing. In light theme the card behind it
   is #F0F1EA, where #7aa2ff drops to 2.01:1 — the document allowance, the one
   number a visitor compares plans by, became unreadable. */
:root[data-theme="dark"] .landing-page .lp-doc-count,
:root:not([data-theme="light"]) .landing-page .lp-doc-count {
    color: #7aa2ff;
    background: rgba(122,162,255,0.12);
    border-color: rgba(122,162,255,0.30);
}
:root[data-theme="light"] .landing-page .lp-doc-count {
    color: #003ACC;
    background: rgba(0,58,204,0.10);
    border-color: rgba(0,58,204,0.25);
}
