/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    position: relative;
    min-height: 100vh;
}

/* Header Space */
.header-space {
    height: 100px;
    width: 100%;
}

/* Background Elements */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(1px);
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #00ff88, #00d4ff);
    top: 20%;
    left: 10%;
    animation: float1 6s ease-in-out infinite;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    top: 60%;
    right: 15%;
    animation: float2 8s ease-in-out infinite;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #a8edea, #fed6e3);
    bottom: 20%;
    left: 20%;
    animation: float3 7s ease-in-out infinite;
}

.wave-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff88, transparent);
    opacity: 0.3;
}

.wave-1 {
    top: 30%;
    animation: wave 4s linear infinite;
}

.wave-2 {
    bottom: 40%;
    animation: wave 6s linear infinite reverse;
}

/* Particle System */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(0, 255, 136, 0.6);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.content-container {
    text-align: center;
    max-width: 800px;
    width: 100%;
}

/* Typography */
.main-title {
    margin-bottom: 2rem;
    position: relative;
}

.title-text {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    background: linear-gradient(135deg, #00ff88, #00d4ff, #ffffff);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 300;
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 3rem;
    opacity: 0;
}

/* Section Divider */
.section-divider {
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00ff88, transparent);
    margin: 3rem auto;
    position: relative;
    overflow: hidden;
    opacity: 0;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    animation: shimmer 2s ease-in-out infinite;
}

/* CTA Section */
.cta-section {
    opacity: 0;
}

.cta-text {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    font-weight: 400;
    color: #d0d0d0;
    line-height: 1.6;
}

.hedge5-link {
    position: relative;
    text-decoration: none;
    display: inline-block;
    margin-left: 0.25rem;
}

.link-text {
    color: #00ff88;
    font-weight: 600;
    font-size: inherit;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.link-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.3) 0%, transparent 70%);
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hedge5-link:hover .link-text {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
}

.hedge5-link:hover .link-glow {
    opacity: 1;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Progress Section */
.progress-section {
    margin: 3rem 0;
    opacity: 0;
}

.progress-label {
    font-size: 0.9rem;
    color: #b0b0b0;
    margin-bottom: 1rem;
    text-align: center;
}

.progress-bar {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 0 auto;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00ff88, #00d4ff);
    border-radius: 4px;
    position: relative;
    transition: width 0.3s ease;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShimmer 2s ease-in-out infinite;
}

.progress-text {
    position: absolute;
    top: 50%;
    right: -50px;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: #00ff88;
    font-weight: 600;
}

@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Subscription Section */
.subscription-section {
    margin: 4rem 0;
    opacity: 0;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1rem;
    color: #b0b0b0;
    margin-bottom: 2rem;
    text-align: center;
}

.subscription-form {
    max-width: 500px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

#emailInput {
    flex: 1;
    min-width: 250px;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

#emailInput::placeholder {
    color: #888;
}

#emailInput:focus {
    border-color: #00ff88;
    background: rgba(255, 255, 255, 0.15);
}

.submit-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    border: none;
    border-radius: 8px;
    color: #000;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.3);
}

.submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-loading {
    display: none;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-message {
    text-align: center;
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-message.success {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.form-message.error {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

/* Social Section */
.social-section {
    margin: 4rem 0;
    text-align: center;
    opacity: 0;
}

.social-text {
    font-size: 1rem;
    color: #b0b0b0;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    color: #00ff88;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link svg {
    width: 24px;
    height: 24px;
    z-index: 2;
    position: relative;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 212, 255, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    border-color: #00ff88;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}

/* Animations */
@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(-180deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(180deg); }
}

@keyframes wave {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.6; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }
    
    .content-container {
        max-width: 100%;
    }
    
    .subtitle {
        margin-bottom: 2rem;
    }
    
    .section-divider {
        width: 150px;
        margin: 2rem auto;
    }
    
    .floating-shape {
        opacity: 0.05;
    }
    
    .shape-1 {
        width: 150px;
        height: 150px;
    }
    
    .shape-2 {
        width: 100px;
        height: 100px;
    }
    
    .shape-3 {
        width: 80px;
        height: 80px;
    }
    
    .input-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    #emailInput {
        min-width: auto;
    }
    
    .social-links {
        gap: 1rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
    
    .progress-text {
        right: -40px;
    }
}

@media (max-width: 480px) {
    .header-space {
        height: 80px;
    }
    
    .main-content {
        min-height: calc(100vh - 80px);
    }
    
    .subtitle {
        margin-bottom: 1.5rem;
    }
    
    .section-divider {
        margin: 1.5rem auto;
    }
    
    .progress-bar {
        max-width: 300px;
    }
    
    .progress-text {
        right: -35px;
        font-size: 0.75rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .social-link svg {
        width: 20px;
        height: 20px;
    }
}

/* Performance Optimizations */
.floating-shape,
.wave-line {
    will-change: transform;
}

.title-text {
    will-change: background-position;
}

.link-glow {
    will-change: opacity, transform;
}

.particle,
.progress-fill,
.submit-btn,
.social-link {
    will-change: transform;
}

#emailInput {
    will-change: transform, box-shadow;
}