/* Style CSS - Linkbaby.pl Landing Page */

/* --- Design Tokens --- */
:root {
    --bg-dark: #120c22;
    --bg-glow-purple: #5A5375;
    --bg-glow-orange: #ff7f32;
    
    --card-bg: rgba(26, 18, 44, 0.75);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-border-focus: rgba(255, 127, 50, 0.5);
    
    --text-white: #ffffff;
    --text-muted: #c3badc;
    --text-placeholder: rgba(195, 186, 220, 0.6);
    
    --color-orange: #ff7f32;
    --color-orange-hover: #ff914d;
    --color-orange-shadow: rgba(255, 127, 50, 0.35);
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Prevent scrolling on desktop */
    position: relative;
}

/* --- Background Ambient Glow --- */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    z-index: 1;
    pointer-events: none;
    opacity: 0.45;
}

.bg-glow-1 {
    width: 50vw;
    height: 50vw;
    max-width: 500px;
    max-height: 500px;
    background: var(--bg-glow-purple);
    top: -10%;
    left: -10%;
    animation: pulse-glow 8s infinite alternate ease-in-out;
}

.bg-glow-2 {
    width: 45vw;
    height: 45vw;
    max-width: 450px;
    max-height: 450px;
    background: var(--bg-glow-orange);
    bottom: -5%;
    right: -5%;
    animation: pulse-glow 10s infinite alternate-reverse ease-in-out;
}

@keyframes pulse-glow {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.35;
    }
    100% {
        transform: translate(50px, 30px) scale(1.15);
        opacity: 0.55;
    }
}

/* --- Main Layout --- */
.container {
    width: 100%;
    max-width: 1200px;
    padding: 2rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    position: relative;
}

/* --- Glassmorphism Card --- */
.card {
    width: 100%;
    max-width: 500px; /* Reduced card width */
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 32px;
    padding: 2.5rem 2.2rem 2rem 2.2rem; /* Reduced card padding */
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* --- Brand Logo --- */
.logo-wrapper {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    border-radius: 20px;
    padding: 0.75rem 1.8rem; /* Reduced logo wrapper padding */
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.8rem; /* Reduced logo wrapper margin */
    animation: float-logo 4s ease-in-out infinite;
}

.brand-logo {
    max-width: 250px; /* Reduced logo width */
    width: 100%;
    height: auto;
    border-radius: 0px;
    transition: transform var(--transition-normal);
}

@keyframes float-logo {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-6px) rotate(0.3deg);
    }
}

/* --- Badge & Typography --- */
.badge {
    display: inline-block;
    padding: 0.45rem 1.1rem;
    background: rgba(255, 127, 50, 0.12);
    border: 1px solid rgba(255, 127, 50, 0.35);
    color: var(--color-orange);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.main-title {
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--text-white);
    margin-bottom: 1.2rem;
}

.highlight {
    background: linear-gradient(135deg, var(--color-orange) 0%, #ffab7a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.subtitle {
    font-size: 1.02rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 460px;
    margin: 0 auto 1.5rem auto; /* Reduced margin */
}

.subtitle strong {
    font-weight: 600;
    color: var(--text-white);
}



/* --- Footer & Links --- */
.footer {
    margin-top: 1.5rem; /* Reduced footer margin */
    padding-top: 1.2rem; /* Reduced footer padding */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* --- Mascot Badge (Rotating) --- */
.mascot-badge {
    position: relative;
    width: 130px; /* Reduced badge size */
    height: 130px;
    margin: 0.5rem auto 0.5rem auto; /* Reduced badge margin */
    display: flex;
    justify-content: center;
    align-items: center;
}

.rotating-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: spin 16s linear infinite;
    color: var(--color-orange);
    font-size: 8.2px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    overflow: visible;
}

.mascot-center {
    position: absolute;
    width: 68px; /* Reduced mascot frame size */
    height: 68px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), inset 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(255, 127, 50, 0.15);
    transition: transform var(--transition-normal);
}

.mascot-center:hover {
    transform: scale(1.06);
    border-color: var(--color-orange);
}

.mascot-img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    animation: breathe 3s ease-in-out infinite alternate;
}

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

@keyframes breathe {
    from { transform: scale(1) translateY(0); }
    to { transform: scale(1.05) translateY(-2px); }
}

.copyright {
    font-size: 0.75rem;
    color: rgba(195, 186, 220, 0.4);
    margin-top: 0.5rem;
}

/* --- Entrance Animation --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slide-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive Layout (Media Queries) --- */

@media (max-width: 768px) {
    .card {
        padding: 3rem 2.2rem;
        border-radius: 28px;
    }
    
    .logo-wrapper {
        padding: 0.8rem 2rem;
    }
    
    .brand-logo {
        max-width: 250px;
    }
    
    .main-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 1rem 0;
        overflow-y: auto; /* Enable vertical scroll on mobile */
    }
    
    .card {
        padding: 2rem 1.25rem 1.8rem 1.25rem;
        border-radius: 24px;
        border: none;
        background: rgba(26, 18, 44, 0.9); /* More solid background on small mobile */
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    }
    
    .logo-wrapper {
        padding: 0.7rem 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .brand-logo {
        max-width: 175px;
    }
    
    .main-title {
        font-size: 1.65rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .mascot-badge {
        width: 110px;
        height: 110px;
    }
    
    .mascot-center {
        width: 58px;
        height: 58px;
    }
    
    .footer {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
}

@media (max-height: 640px) {
    html, body {
        overflow-y: auto; /* Enable scroll if desktop window is very short */
    }
}
