/* Little Koala - Coming Soon Page Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --font-heading: 'Fredoka', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Color Palette */
    --color-primary: #0A2240; /* Navy Blue matching the logo text */
    --color-secondary: #4B8F29; /* Leaf Green */
    --color-secondary-light: #6DAE43;
    --color-accent: #FF8A8A; /* Koala Cheek Pink */
    --color-accent-dark: #E05C5C;
    --color-bg-light: #F6F9F5; /* Soft Mint Cream */
    --color-text: #1E293B;
    --color-text-muted: #64748B;
    --color-card-bg: rgba(255, 255, 255, 0.82);
    --color-glass-border: rgba(255, 255, 255, 0.6);
    --shadow-premium: 0 20px 40px -15px rgba(10, 34, 64, 0.08), 0 0 0 1px rgba(10, 34, 64, 0.02);
    --shadow-inset: inset 0 2px 4px 0 rgba(0, 0, 0, 0.03);
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-body);
    background: radial-gradient(circle at 10% 20%, rgba(246, 249, 245, 1) 0%, rgba(238, 245, 233, 1) 40%, rgba(229, 241, 222, 1) 100%);
    color: var(--color-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 2rem 1rem;
}

/* Background Leaf Particles Container */
#leaf-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.leaf-particle {
    position: absolute;
    top: -50px;
    pointer-events: none;
    opacity: 0.8;
    z-index: 0;
    transform-origin: center;
    animation: fall linear infinite;
}

/* Base Animations */
@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(105vh) rotate(360deg) translateX(100px);
        opacity: 0;
    }
}

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

@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

@keyframes progress-slide {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Page Wrapper */
.wrapper {
    width: 100%;
    max-width: 680px;
    z-index: 10;
    position: relative;
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glassmorphism Main Card */
.card {
    background: var(--color-card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--color-glass-border);
    border-radius: 32px;
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
}

/* Card Decorative Branch/Leaves background elements */
.card::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(109, 174, 67, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.card::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(10, 34, 64, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Logo container */
.logo-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}

.logo {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(10, 34, 64, 0.06));
    border-radius: 50%;
    background: #fff;
    padding: 6px;
    box-shadow: 0 4px 12px rgba(10, 34, 64, 0.04);
}

/* Banner Badge */
.badge-coming-soon {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-light) 100%);
    color: white;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(75, 143, 41, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Typography */
h1 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

h1 span {
    color: var(--color-secondary);
}

.tagline {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 480px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.6;
}

/* Countdown Timer */
.countdown-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.countdown-box {
    background: white;
    border-radius: 20px;
    padding: 1.25rem 0.5rem;
    box-shadow: 0 8px 20px rgba(10, 34, 64, 0.03);
    border: 1px solid rgba(10, 34, 64, 0.03);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.countdown-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(10, 34, 64, 0.06);
    border-color: rgba(75, 143, 41, 0.15);
}

.countdown-value {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.countdown-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-muted);
}

/* Custom Progress Bar */
.progress-section {
    max-width: 480px;
    margin: 0 auto 3rem auto;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.progress-header span:first-child {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--color-secondary);
}

.progress-track {
    background: rgba(10, 34, 64, 0.05);
    height: 12px;
    border-radius: 10px;
    width: 100%;
    overflow: hidden;
    box-shadow: var(--shadow-inset);
    position: relative;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-secondary-light) 50%, var(--color-secondary) 100%);
    background-size: 200% auto;
    width: 75%; /* Will be configured dynamically */
    transition: width 1s ease-out;
    animation: progress-slide 4s linear infinite;
    position: relative;
}

/* Subscription Form */
.subscribe-section {
    max-width: 480px;
    margin: 0 auto;
}

.subscribe-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.subscribe-form {
    position: relative;
    display: flex;
    background: white;
    padding: 6px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(10, 34, 64, 0.04);
    border: 1px solid rgba(10, 34, 64, 0.05);
    transition: var(--transition-smooth);
}

.subscribe-form:focus-within {
    border-color: var(--color-secondary);
    box-shadow: 0 10px 25px rgba(75, 143, 41, 0.12);
}

.subscribe-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    width: 100%;
}

.subscribe-input::placeholder {
    color: #94A3B8;
}

.subscribe-btn {
    background: linear-gradient(135deg, var(--color-primary) 0%, #17385E 100%);
    color: white;
    border: none;
    outline: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(10, 34, 64, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
}

.subscribe-btn:hover {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-light) 100%);
    box-shadow: 0 4px 15px rgba(75, 143, 41, 0.25);
    transform: scale(1.02);
}

.subscribe-btn:active {
    transform: scale(0.98);
}

.subscribe-btn .loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Feedback messages */
.feedback-msg {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    min-height: 20px;
    opacity: 0;
    transform: translateY(-5px);
    transition: var(--transition-smooth);
}

.feedback-msg.show {
    opacity: 1;
    transform: translateY(0);
}

.feedback-msg.success {
    color: var(--color-secondary);
}

.feedback-msg.error {
    color: #DC2626;
}

/* Social Proof (Waitlist Count) */
.social-proof {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.social-proof-avatars {
    display: flex;
    align-items: center;
}

.social-proof-avatars span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid white;
    background: var(--color-accent);
    color: white;
    font-size: 0.65rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.social-proof-avatars span:first-child {
    margin-left: 0;
    background: #FFB7B2;
}

.social-proof-avatars span:nth-child(2) {
    background: #B5EAD7;
}

.social-proof-avatars span:nth-child(3) {
    background: #E2F0CB;
}

.social-proof-avatars span:nth-child(4) {
    background: #FFDAC1;
}

.social-proof-count {
    font-weight: 600;
    color: var(--color-primary);
}

/* Footer / Credits */
footer {
    margin-top: 2.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    z-index: 10;
}

footer a {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

footer a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Hostinger Themed Footer Badge (Optional, clean integration) */
.hostinger-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    background: rgba(103, 58, 183, 0.05); /* Purple hint */
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    color: #673AB7; /* Hostinger Purple */
    border: 1px solid rgba(103, 58, 183, 0.1);
    margin-top: 0.75rem;
}

.hostinger-badge svg {
    fill: currentColor;
}

/* Confetti Styles (for subscription success celebration) */
.confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--color-secondary);
    border-radius: 50%;
    z-index: 100;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    body {
        padding: 1rem 0.5rem;
    }
    
    .card {
        padding: 2.25rem 1.5rem;
        border-radius: 24px;
    }
    
    h1 {
        font-size: 2.1rem;
    }
    
    .tagline {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .countdown-container {
        gap: 0.5rem;
    }
    
    .countdown-box {
        border-radius: 14px;
        padding: 0.85rem 0.25rem;
    }
    
    .countdown-value {
        font-size: 1.6rem;
    }
    
    .countdown-label {
        font-size: 0.65rem;
        letter-spacing: 0.5px;
    }
    
    .subscribe-form {
        flex-direction: column;
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 0;
        gap: 0.75rem;
    }
    
    .subscribe-input {
        background: white;
        border: 1px solid rgba(10, 34, 64, 0.08);
        border-radius: 50px;
        box-shadow: 0 4px 12px rgba(10, 34, 64, 0.02);
    }
    
    .subscribe-input:focus {
        border-color: var(--color-secondary);
    }
    
    .subscribe-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
    }
}
