/* =====================================================================
   Filevora Welcome / Landing Page
   ===================================================================== */

.welcome-page { overflow-x: hidden; }

#particles {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.55;
}

/* ---- Navigation ----------------------------------------------------- */
.welcome-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: rgba(8, 8, 16, 0.75);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(74, 158, 255, 0.12);
}

.welcome-nav-brand {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.welcome-nav-brand .brand-logo { font-size: 22px; }
.welcome-nav-brand .brand-icon { color: var(--accent-cyan); flex-shrink: 0; }

.welcome-nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.welcome-nav-links a,
.welcome-mobile-menu a,
.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.welcome-nav-links a:not(.btn) span,
.welcome-mobile-menu a:not(.btn) span,
.footer-links a span { line-height: 1; }

.welcome-nav-links a:not(.btn) {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}
.welcome-nav-links a:not(.btn):hover { color: var(--accent-cyan); }

.welcome-nav-links .btn,
.welcome-mobile-menu .btn {
    color: #fff;
}
.welcome-nav-links .btn .svg-icon,
.welcome-mobile-menu .btn .svg-icon {
    color: #fff;
}

.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-lg { padding: 14px 28px; font-size: 16px; gap: 8px; display: inline-flex; align-items: center; justify-content: center; }

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: var(--radius);
    font-family: inherit;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn-ghost:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

.welcome-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--text-primary);
}

.welcome-mobile-menu {
    display: none;
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    z-index: 99;
    background: rgba(13, 13, 26, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    flex-direction: column;
    gap: 16px;
}
.welcome-mobile-menu.open { display: flex; }
.welcome-mobile-menu a:not(.btn) { color: var(--text-primary); font-size: 16px; }

/* ---- Hero ----------------------------------------------------------- */
.welcome-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: 1px solid rgba(0, 212, 255, 0.35);
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.08);
    margin-bottom: 28px;
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.3); }
    50%      { box-shadow: 0 0 24px 4px rgba(0, 212, 255, 0.15); }
}

.hero-title {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 8px;
    font-size: clamp(48px, 12vw, 96px);
    font-weight: 700;
    letter-spacing: 8px;
    line-height: 1;
    margin-bottom: 24px;
}

.hero-letter {
    display: inline-block;
    color: var(--brand);
    text-shadow: 0 0 20px rgba(123, 140, 222, 0.6);
    opacity: 0;
    transform: translateY(30px) scale(0.8);
    animation: letterIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--i) * 0.08s + 0.2s);
}

.hero-letter.accent {
    color: var(--accent-cyan);
    text-shadow: 0 0 24px rgba(0, 212, 255, 0.7), 0 0 48px rgba(0, 212, 255, 0.3);
    animation: letterIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards,
               glowPulse 2.5s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.08s + 0.2s), 1.2s;
}

@keyframes letterIn {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes glowPulse {
    0%, 100% { filter: brightness(1); }
    50%      { filter: brightness(1.35); }
}

.hero-tagline {
    max-width: 520px;
    font-size: clamp(16px, 3vw, 20px);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-bottom: 56px;
}

.hero-cta .svg-icon:last-child { transition: transform 0.25s; }
.hero-cta:hover .svg-icon:last-child { transform: translateX(4px); }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 640px;
    width: 100%;
}

.hero-stat {
    padding: 18px 12px;
    background: rgba(17, 17, 34, 0.7);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.25s, transform 0.25s;
    text-align: center;
}
.hero-stat:hover {
    border-color: rgba(74, 158, 255, 0.4);
    transform: translateY(-3px);
}
.hero-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 auto 10px;
    border-radius: 10px;
    background: rgba(74, 158, 255, 0.1);
    color: var(--accent-cyan);
}
.hero-stat strong {
    display: block;
    font-size: 20px;
    color: var(--accent-cyan);
    margin-bottom: 4px;
}
.hero-stat span {
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ---- Sections ------------------------------------------------------- */
.welcome-section {
    padding: 100px 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.welcome-section-alt {
    background: rgba(13, 13, 26, 0.5);
    max-width: none;
    padding-left: 32px;
    padding-right: 32px;
}
.welcome-section-alt > * { max-width: 1100px; margin-left: auto; margin-right: auto; }

.section-head {
    text-align: center;
    margin-bottom: 56px;
}
.section-head h2 {
    font-size: clamp(26px, 5vw, 36px);
    margin: 10px 0 14px;
}
.section-head p {
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-blue);
}

/* ---- Feature grid --------------------------------------------------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(74, 158, 255, 0.35);
    box-shadow: 0 12px 40px rgba(74, 158, 255, 0.1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 158, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 18px;
    color: var(--accent-cyan);
}
.feature-icon svg,
.feature-icon .svg-icon { width: 26px; height: 26px; }

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}
.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.55;
}

/* ---- Pricing plans -------------------------------------------------- */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
}

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 22px 24px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.plan-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.plan-card-free    { border-top: 3px solid #7a82a0; }
.plan-card-starter { border-top: 3px solid #00c896; }
.plan-card-basic   { border-top: 3px solid #4a9eff; }
.plan-card-elite   { border-top: 3px solid #ffa502; }

.plan-card-featured {
    border-color: rgba(74, 158, 255, 0.45);
    box-shadow: 0 0 40px rgba(74, 158, 255, 0.12);
}
.plan-card-featured:hover {
    box-shadow: 0 16px 48px rgba(74, 158, 255, 0.18);
}

.plan-popular {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    white-space: nowrap;
}

.plan-card-head {
    text-align: center;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.plan-name {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.plan-card-free    .plan-name { background: rgba(122, 130, 160, 0.2); color: #7a82a0; }
.plan-card-starter .plan-name { background: rgba(0, 200, 150, 0.15); color: #00c896; }
.plan-card-basic   .plan-name { background: rgba(74, 158, 255, 0.15); color: #4a9eff; }
.plan-card-elite   .plan-name { background: rgba(255, 165, 2, 0.15); color: #ffa502; }

.plan-price strong {
    display: block;
    font-size: 36px;
    line-height: 1;
    color: var(--text-primary);
}
.plan-price span {
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.plan-features {
    list-style: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0 0 22px;
    padding: 0;
}
.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.45;
}
.plan-features li .svg-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--accent-cyan);
}
.plan-features b { color: var(--text-primary); font-weight: 600; }

.plan-cta {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}
.plan-card-free    .plan-cta { border-color: #7a82a0; color: #7a82a0; background: rgba(122, 130, 160, 0.08); }
.plan-card-starter .plan-cta { border-color: #00c896; color: #00c896; background: rgba(0, 200, 150, 0.08); }
.plan-card-basic   .plan-cta { background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan)); color: #fff; border: none; }
.plan-card-elite   .plan-cta { border-color: #ffa502; color: #ffa502; background: rgba(255, 165, 2, 0.1); }

/* ---- Steps ---------------------------------------------------------- */
.steps-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.step-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.25s;
}
.step-item:hover { border-color: rgba(0, 212, 255, 0.3); }

.step-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.25);
    color: var(--accent-cyan);
}

.step-num {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 6px;
}

.step-item h3 { font-size: 20px; margin-bottom: 8px; }
.step-item p  { color: var(--text-secondary); font-size: 15px; }

/* ---- Contact -------------------------------------------------------- */
.contact-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 48px;
    background: linear-gradient(135deg, rgba(17, 17, 34, 0.95), rgba(26, 26, 46, 0.9));
    border: 1px solid rgba(74, 158, 255, 0.25);
    border-radius: 12px;
    box-shadow: 0 0 60px rgba(74, 158, 255, 0.08);
}

.contact-text h2 { font-size: 28px; margin: 8px 0 12px; }
.contact-text p  { color: var(--text-secondary); max-width: 420px; }

.contact-btn { gap: 10px; }

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}
.footer-brand .brand-icon { color: var(--accent-cyan); }
.welcome-footer .brand-logo { font-size: 20px; margin-bottom: 0; }
.welcome-footer p { margin-bottom: 16px; }

/* ---- Footer --------------------------------------------------------- */
.welcome-footer {
    text-align: center;
    padding: 48px 24px 100px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
}
.footer-links a { color: var(--text-secondary); }
.footer-links a:hover { color: var(--accent-cyan); }

/* ---- Telegram FAB --------------------------------------------------- */
.telegram-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 200;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2AABEE, #229ED9);
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 4px 24px rgba(42, 171, 238, 0.45);
    transition: transform 0.25s, box-shadow 0.25s;
}
.telegram-fab .fab-icon { width: 28px; height: 28px; }
.telegram-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 32px rgba(42, 171, 238, 0.6);
    color: #fff;
}

.telegram-fab-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(42, 171, 238, 0.5);
    animation: fabRing 2s ease-out infinite;
}

@keyframes fabRing {
    0%   { transform: scale(1);   opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ---- Global SVG icons on landing page ------------------------------- */
.svg-icon {
    display: block;
    flex-shrink: 0;
}

.welcome-nav-links .btn,
.welcome-mobile-menu .btn,
.hero-actions .btn,
.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.welcome-nav-lang { margin-left: 4px; }
.welcome-nav-lang .lang-select {
    background: rgba(17, 17, 34, 0.8);
    border-color: rgba(74, 158, 255, 0.25);
}
.welcome-mobile-lang { margin-top: 4px; }
.welcome-mobile-lang .lang-select { width: 100%; }

/* ---- Scroll reveal -------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive ----------------------------------------------------- */
@media (max-width: 900px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .plan-grid    { grid-template-columns: repeat(2, 1fr); }
    .hero-stats   { grid-template-columns: repeat(2, 1fr); }
    .contact-card { flex-direction: column; text-align: center; padding: 36px 28px; }
    .contact-text p { margin: 0 auto; }
}

@media (max-width: 680px) {
    .welcome-nav-links { display: none; }
    .welcome-menu-btn  { display: flex; }
    .feature-grid      { grid-template-columns: 1fr; }
    .plan-grid         { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
    .welcome-section   { padding: 72px 20px; }
    .hero-title        { letter-spacing: 4px; gap: 2px 4px; }
    .step-item         { flex-direction: column; gap: 12px; }
    .telegram-fab      { bottom: 20px; right: 20px; width: 52px; height: 52px; }
}
