/* Landing Page Specific Styles */

/* Animated Gradient Background */
@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

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

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

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

@keyframes fade-in-scale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Wavy Background Canvas */
.wavy-background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(
        135deg,
        rgba(16, 185, 129, 0.08) 0%,
        rgba(59, 130, 246, 0.08) 50%,
        rgba(139, 92, 246, 0.08) 100%
    );
    background-size: 200% 200%;
    animation: gradient-shift 15s ease infinite;
}

.wavy-background-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

/* Background Paths Container */
.background-paths-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.6;
}

.background-paths-svg {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: visible;
}

.background-paths-svg path {
    stroke: currentColor;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

[data-theme="dark"] .background-paths-container {
    opacity: 0.5;
}

[data-theme="light"] .background-paths-container {
    opacity: 0.4;
}

.wavy-background-content {
    position: relative;
    z-index: 10;
}

/* Animated Text Styles */
.animated-title {
    display: block;
    width: 100%;
    line-height: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
}

.animated-word {
    display: inline-block;
    margin-right: 1rem;
    white-space: nowrap;
}

.animated-word:last-child {
    margin-right: 0;
}

.animated-letter {
    display: inline-block;
    vertical-align: baseline;
}

.hero-title .animated-letter {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--secondary-color) 50%,
        #a855f7 100%
    ) !important;
    background-size: 200% 200% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
    animation: gradient-shift 3s ease infinite;
    display: inline-block !important;
    line-height: inherit;
    font-size: inherit;
    font-weight: 700;
}

/* Ensure animated title container takes full width and maintains styling */
.hero-title .animated-title {
    width: 100%;
    display: block;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Floating Particles */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.5;
    animation: float 6s ease-in-out infinite;
    filter: blur(2px);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.particle:nth-child(1) { width: 80px; height: 80px; left: 10%; animation-delay: 0s; animation-duration: 8s; }
.particle:nth-child(2) { width: 60px; height: 60px; left: 30%; animation-delay: 2s; animation-duration: 10s; }
.particle:nth-child(3) { width: 100px; height: 100px; left: 50%; animation-delay: 4s; animation-duration: 7s; }
.particle:nth-child(4) { width: 70px; height: 70px; left: 70%; animation-delay: 1s; animation-duration: 9s; }
.particle:nth-child(5) { width: 90px; height: 90px; left: 90%; animation-delay: 3s; animation-duration: 11s; }

/* Landing Page Layout */
.landing-page {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.landing-section {
    position: relative;
    z-index: 10;
    padding: 4rem 1.5rem;
}

.landing-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    animation: pulse-glow 4s ease-in-out infinite;
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    animation: fade-in-scale 1s ease-out;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--secondary-color) 50%,
        #a855f7 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    letter-spacing: -0.02em;
    animation: gradient-shift 3s ease infinite, fade-in-scale 0.8s ease-out;
    text-shadow: 0 0 40px rgba(16, 185, 129, 0.3);
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(16, 185, 129, 0.3) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    pointer-events: none;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
    animation: slide-in-up 0.8s ease-out 0.2s both;
}

.hero-tagline {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: slide-in-up 0.8s ease-out 0.4s both;
}

/* Neon Button Styles */
.neon-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 9999px;
    border: 1px solid;
    background: rgba(59, 130, 246, 0.05);
    color: var(--foreground);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    margin: 0.5rem;
    animation: slide-in-up 0.8s ease-out 0.6s both;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.neon-button:hover {
    background: rgba(59, 130, 246, 0);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.neon-button.neon-button-solid {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4),
                0 0 30px rgba(16, 185, 129, 0.2);
    position: relative;
}

.neon-button.neon-button-solid::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #10b981, #3b82f6, #a855f7, #10b981);
    background-size: 300% 300%;
    border-radius: 9999px;
    z-index: -1;
    opacity: 0;
    animation: gradient-shift 3s ease infinite;
    transition: opacity 0.3s ease;
}

.neon-button.neon-button-solid:hover::before {
    opacity: 0.7;
}

.neon-button.neon-button-solid:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.5),
                0 0 50px rgba(16, 185, 129, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.neon-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        var(--primary-color),
        transparent
    );
    opacity: 0;
    transition: all 0.5s ease;
}

.neon-button:hover::before {
    width: 75%;
    opacity: 1;
}

.neon-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        var(--primary-color),
        transparent
    );
    opacity: 0;
    transition: all 0.5s ease;
}

.neon-button:hover::after {
    width: 75%;
    opacity: 0.3;
}

.neon-button span {
    position: relative;
    z-index: 1;
}

/* Features Section */
.features-section {
    background: linear-gradient(
        180deg,
        var(--background) 0%,
        var(--bg-secondary) 100%
    );
    padding: 6rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--primary-color),
        transparent
    );
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fade-in-scale 0.8s ease-out;
    position: relative;
}

.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: slide-in-up 0.8s ease-out 0.2s both;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fade-in-scale 0.6s ease-out both;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.2),
                0 0 30px rgba(16, 185, 129, 0.1);
    border-color: var(--primary-color);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover::after {
    width: 300px;
    height: 300px;
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    animation: float 3s ease-in-out infinite;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
    animation: none;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.feature-card:hover .feature-title {
    color: var(--primary-color);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* How It Works Section */
.how-it-works-section {
    background: linear-gradient(
        180deg,
        var(--bg-secondary) 0%,
        var(--background) 100%
    );
    padding: 6rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.how-it-works-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent);
    border-radius: 50%;
    animation: pulse-glow 4s ease-in-out infinite;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.step-card {
    text-align: center;
    position: relative;
    animation: fade-in-scale 0.6s ease-out both;
    padding: 2rem;
    border-radius: 20px;
    transition: all 0.4s ease;
}

.step-card:nth-child(1) { animation-delay: 0.2s; }
.step-card:nth-child(2) { animation-delay: 0.4s; }
.step-card:nth-child(3) { animation-delay: 0.6s; }

.step-card:hover {
    transform: translateY(-10px);
    background: var(--bg-card);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4),
                0 0 40px rgba(16, 185, 129, 0.2);
    transition: all 0.4s ease;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.step-card:hover .step-number {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.5),
                0 0 60px rgba(16, 185, 129, 0.3);
    animation: none;
}

.step-number::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--primary-gradient);
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.4s ease;
}

.step-card:hover .step-number::before {
    opacity: 0.5;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.step-card:hover .step-title {
    color: var(--primary-color);
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(
        135deg,
        rgba(16, 185, 129, 0.05) 0%,
        rgba(59, 130, 246, 0.05) 50%,
        rgba(139, 92, 246, 0.05) 100%
    );
    background-size: 200% 200%;
    animation: gradient-shift 10s ease infinite;
    padding: 6rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    animation: pulse-glow 5s ease-in-out infinite;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fade-in-scale 0.8s ease-out;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-style: italic;
    animation: slide-in-up 0.8s ease-out 0.2s both;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.landing-footer {
    background: linear-gradient(
        180deg,
        var(--background) 0%,
        var(--bg-secondary) 100%
    );
    border-top: 1px solid var(--border-color);
    padding: 3rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.landing-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--primary-color),
        transparent
    );
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    animation: fade-in-scale 0.8s ease-out;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
}

.footer-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
    background: rgba(16, 185, 129, 0.1);
}

.footer-link:hover::before {
    width: 80%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 1.5rem;
    }

    .features-section,
    .how-it-works-section,
    .cta-section {
        padding: 4rem 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .neon-button {
        width: 100%;
        max-width: 300px;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

