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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: #0f172a;
    background: #faf5ff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

/* Mesh gradient background — fixed, animated */
.bg-mesh {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    z-index: -2;
    background:
        radial-gradient(circle at 15% 25%, rgba(139, 92, 246, 0.55) 0%, transparent 45%),
        radial-gradient(circle at 85% 20%, rgba(236, 72, 153, 0.55) 0%, transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(249, 115, 22, 0.5) 0%, transparent 45%),
        radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.5) 0%, transparent 45%),
        linear-gradient(135deg, #faf5ff 0%, #fef3f2 100%);
    background-size: 200% 200%;
    animation: meshFlow 30s ease-in-out infinite;
}

@keyframes meshFlow {
    0%, 100% { background-position: 0% 0%; }
    25% { background-position: 50% 50%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 50% 50%; }
}

/* Floating blurred blobs */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    z-index: -1;
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

.blob-1 {
    top: 10%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
}

.blob-2 {
    top: 50%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #ec4899 0%, transparent 70%);
    animation-delay: -5s;
}

.blob-3 {
    bottom: 5%;
    left: 30%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(50px, -30px); }
    66% { transform: translate(-30px, 40px); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Navigation — floating glass pill */
.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 100px;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.12);
}

.nav-container {
    padding: 10px 16px 10px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    text-decoration: none;
    color: #6b21a8;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 100px;
    transition: all 0.25s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.5);
    color: #0f172a;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.7);
    color: #0f172a;
}

.cta-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: #ffffff !important;
    padding: 10px 22px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
}

.bar {
    width: 22px;
    height: 2px;
    background: #6b21a8;
    border-radius: 1px;
    transition: 0.3s;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 14px 28px;
    border: none;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: #ffffff;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.4);
    color: #6b21a8;
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.6);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1rem;
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 24px;
    box-shadow:
        0 8px 32px rgba(139, 92, 246, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-4px);
    box-shadow:
        0 16px 48px rgba(139, 92, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Section Label */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 100px;
    font-size: 0.75rem;
    color: #6b21a8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.section-label::before {
    content: '✦';
    color: #ec4899;
}

/* Section Titles */
.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.025em;
    line-height: 1.1;
    background: linear-gradient(135deg, #0f172a 0%, #6b21a8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: #475569;
    max-width: 600px;
    line-height: 1.6;
    margin-top: 1.5rem;
}

/* Footer */
.footer {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #ffffff;
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    max-width: 320px;
}

.footer-section h4 {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.6rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-section ul li a:hover {
    color: #c4b5fd;
}

.footer-bottom {
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8125rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .navbar {
        top: 8px;
        width: calc(100% - 16px);
        border-radius: 24px;
    }

    .nav-container {
        padding: 8px 12px 8px 18px;
    }

    .nav-menu {
        position: fixed;
        left: 8px;
        right: 8px;
        top: 72px;
        flex-direction: column;
        width: calc(100% - 16px);
        text-align: center;
        transition: all 0.3s ease;
        padding: 1.5rem 1rem;
        gap: 0.5rem;
        z-index: 999;
        background: rgba(255, 255, 255, 0.6);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid rgba(255, 255, 255, 0.5);
        border-radius: 24px;
        box-shadow: 0 16px 48px rgba(139, 92, 246, 0.15);
        transform: scale(0.95);
        opacity: 0;
        pointer-events: none;
    }

    .nav-menu.active {
        transform: scale(1);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
