:root {
    /* Vibrant Palette */
    --primary: #4f46e5;
    /* Indigo 600 */
    --secondary: #0f172a;
    /* Slate 900 */

    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --primary-gradient-hover: linear-gradient(135deg, #4f46e5 0%, #9333ea 50%, #db2777 100%);
    --accent-gradient: linear-gradient(to right, #22d3ee, #818cf8);

    /* Backgrounds */
    --background: #f8fafc;
    --surface: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.7);

    /* Text */
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    /* Borders */
    --border: rgba(226, 232, 240, 0.8);
    --border-highlight: rgba(168, 85, 247, 0.3);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);

    --font-heading: 'Outfit', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 0.2em;
    /* Prevent descender clipping */
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    /* Pillow shape for modern feel */
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
    /* Softer shadow */
}

.btn-primary:hover {
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    /* Simple border */
    color: var(--primary);
    box-shadow: none;
    /* No shadow for cleaner look */
}

.btn-secondary:hover {
    background: var(--primary);
    /* Fill on hover */
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a:not(.btn) {
    color: var(--text-main);
    font-weight: 500;
    position: relative;
}

.nav-links a:not(.btn):hover {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 10rem;
    padding-bottom: 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    /* CSS Generated Colorful Background */
    background:
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(168, 85, 247, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.15) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(34, 211, 238, 0.15) 0px, transparent 50%),
        #f8fafc;
}

/* Animated Blobs for Hero */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: -1;
    animation: float 10s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.hero::before {
    background: #6366f1;
    top: -10%;
    right: -10%;
}

.hero::after {
    background: #ec4899;
    bottom: -10%;
    left: -10%;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-30px, 30px) scale(1.1);
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: fadeIn 0.8s ease-out;
}

.hero-image-container {
    position: relative;
    animation: slideUp 1s ease-out 0.2s backwards;
}

.hero-mockup {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.hero-image-container:hover .hero-mockup {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

/* Features Section */
/* Features Section */
.features {
    padding-top: 4rem;
    padding-bottom: 0;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(168, 85, 247, 0.3);
}

/* Add a subtle colorful glow on hover */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
    border-radius: 1.5rem;
    margin: -1px;
    /* Border overlap */
}

.feature-icon-wrapper {
    width: 4.5rem;
    height: 4.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Mobile App Section */
.mobile-app {
    padding: 8rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
    position: relative;
    overflow: hidden;
}

.mobile-app::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
}

/* Pricing Section */
.pricing {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

/* Allow pricing section to be wider */
.pricing .container {
    max-width: 95%;
    /* Use more screen real estate */
    padding: 0 1rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    /* Smaller min-width */
    gap: 1rem;
    /* Tighter gap */
    max-width: 1600px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        /* Force 4 columns */
    }
}

.pricing-card {
    background: white;
    padding: 2rem 1.5rem;
    /* Reduced padding to fit 4 compact cards */
    border-radius: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

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

.pricing-card.featured {
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), var(--primary-gradient);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    -webkit-background-clip: padding-box, border-box;
    transform: scale(1.05);
    box-shadow: 0 20px 40px -15px rgba(99, 102, 241, 0.3);
    z-index: 2;
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.price {
    font-size: 4rem;
    font-weight: 800;
    margin: 2rem 0;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.price span {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 500;
    -webkit-text-fill-color: var(--text-muted);
}

.feature-list li {
    padding: 1rem 0;
    border-bottom: 1px dashed var(--border);
    justify-content: center;
    /* Center for pricing */
}

/* Footer */
.footer {
    padding: 6rem 0 3rem;
    background: #0f172a;
    /* Dark footer */
    color: white;
}

.footer .logo span {
    color: white;
    /* Make logo text white on dark bg */
}

.footer .gradient-text {
    /* Keep gradient or make it white? Let's keep gradient for pop */
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.footer p {
    color: #94a3b8;
}

.social-links a {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.social-links a:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
}

.footer .nav-links a {
    color: #cbd5e1;
}

.footer .nav-links a:hover {
    color: white;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }

    .hero {
        padding-top: 8rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .nav-links {
        display: none;
    }

    h1 {
        font-size: 3rem;
    }
}