/* ========================================
   FachApp Landing Page — index4.css
   Extracted & optimized for performance
   ======================================== */

/* === RESET & BASE === */
* {
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #000;
    color: #fff;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
}

/* === LOADER === */
.loader-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s, visibility 0.8s;
}

.loader-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: logoReveal 1.5s ease-out forwards;
}

@keyframes logoReveal {
    0% {
        opacity: 0;
        transform: scale(0.5) rotateX(90deg);
    }

    50% {
        opacity: 1;
        transform: scale(1.1) rotateX(0);
    }

    100% {
        transform: scale(1);
    }
}

/* === 3D HERO === */
.hero-3d {
    perspective: 1500px;
}

.hero-card {
    transform-style: preserve-3d;
    /* animation: heroFloat 6s ease-in-out infinite; usunięte na prośbę użytkownika */
}

@keyframes heroFloat {

    0%,
    100% {
        transform: rotateX(5deg) rotateY(-5deg) translateY(0);
    }

    50% {
        transform: rotateX(-5deg) rotateY(5deg) translateY(-20px);
    }
}

/* === GLOWING ORBS === */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: orbPulse 8s ease-in-out infinite;
}

@keyframes orbPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* === TEXT REVEAL === */
.text-reveal {
    opacity: 0;
    transform: translateY(50px) rotateX(-15deg);
    animation: textReveal 1s ease-out forwards;
}

@keyframes textReveal {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

/* === DESKTOP NAVIGATION === */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform, padding, background-color;
    background-clip: padding-box;
    /* Prevent inner pill shadow/border from "glowing" outside on scroll */
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.5s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav.scrolled {
    background: rgba(9, 9, 11, 0.95);
    padding: 8px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0);
}

.main-nav.scrolled .nav-inner {
    max-width: 900px;
    background: rgba(39, 39, 42, 0.6);
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    padding: 6px 16px;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 32px;
    gap: 8px;
    border-radius: 9999px;
    background: rgba(39, 39, 42, 0);
    border: 1px solid rgba(255, 255, 255, 0);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0);
    transform: translateZ(0);
    backface-visibility: hidden;
    background-clip: padding-box;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 9999px;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Nav responsive — shrink padding on medium desktops */
@media (max-width: 1280px) {
    .nav-link {
        padding: 6px 10px;
        font-size: 13px;
    }

    .nav-inner {
        padding: 12px 20px;
    }
}

@media (max-width: 1100px) {
    .nav-link {
        padding: 5px 8px;
        font-size: 12px;
    }
}

/* === MOBILE NAV TOP BAR === */
.mobile-nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: rgba(9, 9, 11, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* === MOBILE MENU OVERLAY === */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: #09090b;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 80px 24px 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-link {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-menu-link:hover {
    color: #f59e0b;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* === USER DROPDOWN === */
.user-dropdown {
    position: relative;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    min-width: 200px;
    background: rgba(24, 24, 27, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.user-dropdown:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s;
    text-decoration: none;
}

.user-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* === HERO GRADIENT CORNERS === */
.hero-gradient-bl {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse at bottom left, rgba(245, 158, 11, 0.15), transparent 50%);
    pointer-events: none;
}

.hero-gradient-br {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse at bottom right, rgba(14, 165, 233, 0.12), transparent 50%);
    pointer-events: none;
}

/* === PRICING TOGGLES === */
.toggle-container {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 9999px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-btn {
    padding: 10px 20px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
}

.toggle-btn.active {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
}

.toggle-btn.active-client {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #fff;
}

/* === MEGA MENU === */
.mega-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.group:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* === FEATURE TILES === */
.feature-tile {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.feature-tile:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 30px 60px rgba(245, 158, 11, 0.2);
}

/* === GLASS EFFECT === */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* === ANIMATED GRADIENT TEXT === */
.gradient-animate {
    background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* === PULSE RING === */
.pulse-ring::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 2px solid rgba(245, 158, 11, 0.5);
    animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

/* === SCROLL REVEAL === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

@media (max-width: 768px) {
    .reveal, .reveal.visible {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === PRICING CARD GLOW === */
.pricing-featured {
    box-shadow: 0 0 60px rgba(245, 158, 11, 0.3);
    animation: priceGlow 3s ease-in-out infinite;
}

@keyframes priceGlow {

    0%,
    100% {
        box-shadow: 0 0 40px rgba(245, 158, 11, 0.3);
    }

    50% {
        box-shadow: 0 0 80px rgba(245, 158, 11, 0.5);
    }
}

/* === SILESIABUD PORTED STYLES === */
.glass-gold {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(0, 0, 0, 0));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.glass-blue {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(0, 0, 0, 0));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.animate-spin-slow {
    animation: spin 10s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.connection-line {
    stroke-dasharray: 10;
    animation: dash 1s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: -20;
    }
}

/* === SKIP TO CONTENT (Accessibility) === */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 9999;
    padding: 12px 24px;
    background: #f59e0b;
    color: #000;
    font-weight: 700;
    border-radius: 0 0 8px 8px;
    transition: top 0.3s;
    text-decoration: none;
}

.skip-to-content:focus {
    top: 0;
}