/* Root Variables */
:root {
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --secondary: #14B8A6;
    --accent: #F43F5E;
    --dark: #1E293B;
    --light: #F8FAFC;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light);
    color: var(--dark);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Global Section Styles */
section {
    padding: 8rem 10%;
    margin: 0;
    width: 100%;
    position: relative;
}

/* Loader */
.loader {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: var(--gradient);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    width: 40px;
    height: 40px;
    border: 4px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Canvas Container */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
}

/* Main Content */
.content {
    position: relative;
    z-index: 2;
    background: transparent;
}

/* Navigation */
nav {
    position: fixed;
    width: 100%;
    padding: 1.5rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    z-index: 100;
    transition: all 0.3s;
}

nav.scrolled {
    padding: 1rem 10%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
}

.hero-content {
    max-width: 600px;
    opacity: 1;
    transform: translateY(0);
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--dark);
    opacity: 0.9;
}

/* Button Styles */
.cta-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.button {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.button-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
}

.button-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.button-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Features Section */
.features {
    background: white;
    padding: 8rem 10%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--dark);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    opacity: 1;
}

.feature-card {
    padding: 2.5rem;
    background: var(--light);
    border-radius: 20px;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

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

.feature-card:hover::before {
    opacity: 0.05;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
    position: relative;
    z-index: 2;
}

.feature-description {
    color: var(--dark);
    opacity: 0.8;
    position: relative;
    z-index: 2;
}

/* Showcase Section */
.showcase {
    padding: 8rem 10%;
    background: var(--gradient);
    color: white;
    position: relative;
    overflow: hidden;
}

.showcase-content {
    max-width: 500px;
    opacity: 1;
    position: relative;
    z-index: 2;
}

.showcase-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.showcase-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.mockup {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    opacity: 1;
    overflow: hidden;
}

/* Testimonials Section */
.testimonials {
    padding: 8rem 10%;
    background: white;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    opacity: 1;
}

.testimonial-card {
    padding: 2rem;
    background: white;
    border-radius: 20px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 120px;
    color: var(--primary);
    opacity: 0.1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.testimonial-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
    position: relative;
    z-index: 2;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    overflow: hidden;
}

.author-info h4 {
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.author-info p {
    color: var(--dark);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Pricing Section */
.pricing {
    padding: 8rem 10%;
    background: var(--light);
    position: relative;
    overflow: hidden;
}

.pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    opacity: 1;
    position: relative;
    z-index: 2;
}

.pricing-card {
    padding: 3rem 2rem;
    background: white;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured::before {
    content: 'Popular';
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--accent);
    color: white;
    padding: 0.5rem 3rem;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 600;
}

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

.pricing-header {
    margin-bottom: 2rem;
    position: relative;
}

.plan-name {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.price {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary);
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.price-period {
    color: var(--dark);
    opacity: 0.7;
    font-size: 1rem;
}

.pricing-features {
    margin: 2rem 0;
    list-style: none;
}

.pricing-features li {
    margin: 1rem 0;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pricing-features li::before {
    content: '✓';
    color: var(--secondary);
    font-weight: bold;
}

/* Footer */
footer {
    padding: 4rem 10%;
    background: var(--dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary);
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin: 0.8rem 0;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: white;
    text-decoration: none;
}

.social-link:hover {
    background: var(--gradient);
    transform: translateY(-3px);
}

.newsletter {
    margin-top: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
    transition: all 0.3s;
}

.newsletter-input:focus {
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-button {
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    border: none;
    background: var(--gradient);
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

/* Additional Utility Classes */
.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient {
    background: var(--gradient);
}

.shadow-sm {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Animation Classes */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

.pulsing {
    animation: pulse 2s ease-in-out infinite;
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 4rem;
    }

    .showcase-title {
        font-size: 2.5rem;
    }

    .mockup {
        width: 500px;
        height: 350px;
    }
}

@media (max-width: 992px) {
    section {
        padding: 6rem 8%;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .feature-grid,
    .testimonial-grid,
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .mockup {
        width: 400px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 5%;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 1rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        flex-direction: column;
        align-items: center;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .hero {
        padding: 120px 5% 4rem;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-title {
        font-size: 3rem;
    }

    .cta-container {
        justify-content: center;
    }

    .mockup {
        display: none;
    }

    section {
        padding: 4rem 5%;
    }

    .section-title {
        font-size: 2rem;
    }

    .feature-card,
    .testimonial-card,
    .pricing-card {
        padding: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-input,
    .newsletter-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .pricing-card.featured::before {
        font-size: 0.7rem;
        padding: 0.3rem 2rem;
        right: -30px;
    }

    .button {
        width: 100%;
        text-align: center;
    }

    .feature-grid,
    .testimonial-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .mobile-menu,
    .newsletter,
    .social-links,
    #canvas-container {
        display: none;
    }

    body {
        color: black;
        background: white;
    }

    .content {
        margin: 0;
        padding: 0;
    }

    section {
        page-break-inside: avoid;
        padding: 2rem 0;
    }
}
