/* FXology Coming Soon Theme Styles */

* {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

body {
    background-color: #101113;
    margin: 0;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Custom gradient text */
.gradient-text {
    background: linear-gradient(180deg, #FFFFFF 0%, #58E877 85%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    filter: brightness(0.9);
}

/* Custom blur effects */
.custom-blur {
    backdrop-filter: blur(100px);
    -webkit-backdrop-filter: blur(100px);
}

/* Form input styles */
input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #101113;
}

::-webkit-scrollbar-thumb {
    background: #58E877;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4dd366;
}

/* Grid lines animation */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 0.15; }
}

.grid-line {
    animation: fadeIn 1s ease-out forwards;
}

/* Star dots */
.star-dot {
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    position: absolute;
}

@keyframes twinkle {
    0% { opacity: 0.2; transform: scale(0.8); }
    25% { opacity: 0.6; transform: scale(1.1); }
    50% { opacity: 0.3; transform: scale(0.9); }
    75% { opacity: 0.8; transform: scale(1.2); }
    100% { opacity: 0.2; transform: scale(0.8); }
}

.star-dot {
    animation: twinkle 2s ease-in-out infinite;
}

/* Scrolling USPs */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.scroll-container {
    animation: scroll 30s linear infinite;
}

.usp-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.05);
}

/* Shooting star animation */
@keyframes shootingStar {
    0% { 
        opacity: 0;
        transform: translateX(50px) translateY(-50px) scale(0);
    }
    20% { 
        opacity: 1;
        transform: translateX(30px) translateY(-30px) scale(1);
    }
    40% {
        opacity: 1;
        transform: translateX(0) translateY(0) scale(1);
    }
    60% {
        opacity: 0.8;
        transform: translateX(-20px) translateY(20px) scale(0.8);
    }
    80% {
        opacity: 0.3;
        transform: translateX(-30px) translateY(30px) scale(0.6);
    }
    100% { 
        opacity: 0;
        transform: translateX(-40px) translateY(40px) scale(0.2);
    }
}

.shooting-star {
    opacity: 0;
}

.shooting-star-1 {
    animation: shootingStar 3s ease-out infinite;
    animation-delay: 0s;
}

.shooting-star-2 {
    animation: shootingStar 3.5s ease-out infinite;
    animation-delay: 1.2s;
}

.shooting-star-3 {
    animation: shootingStar 4s ease-out infinite;
    animation-delay: 2.5s;
}

.shooting-star-4 {
    animation: shootingStar 3.2s ease-out infinite;
    animation-delay: 0.8s;
}

/* Planet animation */
@keyframes planetPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

.planet-ellipse-inner {
    animation: planetPulse 4s ease-in-out infinite;
}

/* Glass effect for inputs */
.glass-input {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Input with floating label */
.input-group {
    position: relative;
}

.input-group label {
    opacity: 0;
    height: 0;
    margin-bottom: 0;
    transition: all 0.2s ease;
}

.input-group:focus-within label,
.input-group.has-value label {
    opacity: 1;
    height: auto;
    margin-bottom: 0.5rem;
}

.input-group input:focus::placeholder {
    opacity: 0;
}

/* Error styles */
.input-group.error .glass-input {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.05);
}

.error-message {
    font-size: 0.75rem;
    color: #ef4444;
    margin-top: 0.25rem;
    text-align: left;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.2s ease;
}

.input-group.error .error-message {
    opacity: 1;
    transform: translateY(0);
}

/* Success styles */
.input-group.success .glass-input {
    border-color: rgba(88, 232, 119, 0.5);
}

/* Ensure full height */
html, body {
    height: 100%;
}

.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    /* Reduce USP item size on mobile */
    .usp-item {
        font-size: 0.75rem;
        padding: 0.375rem 1rem;
    }
    
    /* Limit description to 3 lines on mobile */
    .description-text {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Hide some background elements on mobile for performance */
    .star-dot:nth-child(even) {
        display: none;
    }
    
    /* Adjust grid lines opacity on mobile */
    .grid-line {
        opacity: 0.05;
    }
    
    /* Reduce glow effects on mobile */
    div[style*="radial-gradient"] {
        opacity: 0.15 !important;
    }
}

/* Typography responsive adjustments */
@media (max-width: 640px) {
    /* Main heading */
    h1.text-\[56px\] {
        font-size: 36px !important;
        line-height: 44px !important;
        letter-spacing: -1.8px !important;
    }
    
    /* Subheading */
    p.text-xl {
        font-size: 1rem !important;
        line-height: 1.5rem !important;
    }
    
    /* Form container */
    .max-w-\[480px\] {
        max-width: 100% !important;
        padding: 0 1rem;
    }
    
    /* Input fields */
    .glass-input {
        padding: 1rem !important;
    }
    
    /* Logo */
    img.h-16 {
        height: 3rem !important;
        width: auto !important;
    }
    
    /* Submit button */
    button[type="submit"] {
        width: 100%;
        justify-content: center;
    }
}