/* Trendy V5 - Light Clean Aesthetic */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-page: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-secondary: #F8FAFC;

    --primary: #4F46E5;
    /* Vivid Indigo */
    --accent: #E056FD;
    /* Neon Purple */
    --dark: #0f172a;

    --text-main: #0f172a;
    --text-muted: #64748b;

    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.06);
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.08);

    --font-head: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Gradients */
.ambient-glow {
    position: fixed;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.05) 0%, transparent 70%);
    top: -300px;
    left: -200px;
    z-index: -1;
    pointer-events: none;
}

.ambient-glow-2 {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(224, 86, 253, 0.05) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
    z-index: -1;
    pointer-events: none;
}

/* Nav */
.trend-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    /* Tighter width for premium feel */
    margin: 1.5rem auto;
    position: sticky;
    top: 1.5rem;
    z-index: 1000;

    /* Trendy Glass */
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);

    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    /* Slightly less round, more 'app-like' */

    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.02),
        0 20px 40px -4px rgba(0, 0, 0, 0.04),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    /* Inner shine */

    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.trend-nav:hover {
    background: rgba(255, 255, 255, 0.85);
    box-shadow:
        0 8px 12px -1px rgba(0, 0, 0, 0.03),
        0 30px 50px -4px rgba(0, 0, 0, 0.06),
        inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

@media (max-width: 900px) {
    .trend-nav {
        margin: 0.5rem;
        padding: 0.8rem 1.2rem;
        border-radius: 20px;
    }
}

.brand {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 60px;
    width: auto;
}

.brand-dot {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    display: none;
    /* Hide old dot if image is used */
}

.nav-items {
    display: flex;
    gap: 0.5rem;
    /* Reduced gap for pill layout */
    align-items: center;
    background: rgba(0, 0, 0, 0.02);
    /* Very subtle track */
    padding: 0.3rem;
    border-radius: 100px;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

/* Desktop Only Link Styles */
@media (min-width: 901px) {
    .nav-items a {
        font-family: var(--font-body);
        font-size: 0.95rem;
        font-weight: 500;
        color: var(--text-muted);
        text-decoration: none;
        padding: 0.6rem 1.2rem;
        border-radius: 20px;
        transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
        position: relative;
    }

    .nav-items a:hover {
        color: var(--dark);
        background: #FFFFFF;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
}

@media (max-width: 900px) {
    .nav-items {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        /* Changed from left:0 to right:0 */
        left: auto;
        /* Unset left */
        width: 80%;
        max-width: 320px;
        /* Drawer width */
        height: 100vh;
        background: rgba(255, 255, 255, 0.99);
        /* Preserve mobile background */
        backdrop-filter: blur(20px);
        padding: 6rem 2rem 2rem 2rem;
        gap: 1.5rem;
        z-index: 2000;
        opacity: 0;
        transform: translateX(100%);
        /* Slide from right */
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
        overflow-y: auto;
        justify-content: flex-start;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
        border-left: 1px solid rgba(0, 0, 0, 0.05);

        /* Mobile Reset Overrides from Desktop Pill Style */
        border-radius: 0;
        border: none;
        border-left: 1px solid rgba(0, 0, 0, 0.05);
        /* Restore specific border */
    }

    .nav-items.show {
        display: flex;
        opacity: 1;
        transform: translateX(0);
    }

    .nav-items a {
        font-size: 2rem;
        font-weight: 700;
        color: var(--dark);
        text-decoration: none;
    }

    .mobile-close {
        display: block !important;
        position: absolute;
        top: 2rem;
        right: 2rem;
        font-size: 2.5rem;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--dark);
    }
}

@media (max-width: 900px) {
    .nav-items a {
        font-size: 1.8rem;
        /* Slightly smaller for better fit */
        font-weight: 700;
        color: var(--dark);
        text-decoration: none;
    }

    /* Fix for button text visibility in mobile menu */
    .nav-items .btn-trend {
        color: white !important;
        font-size: 1rem;
        margin-top: 5px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .nav-items .btn-trend.secondary {
        background: transparent;
        color: var(--dark) !important;
        border: 2px solid var(--dark);
    }
}

.mobile-close,
.mobile-only-auth,
.nav-overlay {
    display: none;
}

body.no-scroll {
    overflow: hidden !important;
    height: 100vh;
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1999;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.show {
    display: block;
    opacity: 1;
}

@media (max-width: 900px) {
    .mobile-only-auth {
        display: block;
        width: 100%;
    }
}

.btn-trend {
    background: var(--dark);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: var(--font-head);
}

.btn-trend:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.3);
}

.nav-toggle-btn {
    display: none;
    /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--dark);
    padding: 0.5rem;
}

/* Hero */
.hero-trend {
    max-width: 1300px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.hero-content h1 {
    font-family: var(--font-head);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.hero-content h1 span {
    color: var(--dark);
}

.highlight-text {
    color: var(--primary) !important;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero-visual img {
    width: 110%;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--glass-border);
    transition: transform 0.5s ease;
}

.hero-visual:hover img {
    transform: translateY(-10px);
}

/* Stats Strip */
.stats-strip {
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 3rem 0;
    margin: 4rem 0;
    background: #FAFAFA;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
}

.stat-item {
    text-align: center;
}

.stat-num {
    display: block;
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Bento Grid */
.bento-section {
    max-width: 1200px;
    margin: 0 auto 6rem;
    padding: 0 2rem;
}

.bento-header {
    margin-bottom: 3rem;
    text-align: center;
}

.bento-header h2 {
    font-family: var(--font-head);
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(300px, auto);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-card {
        padding: 1.5rem;
    }

    .bento-header h2 {
        font-size: 2rem;
    }
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid #E2E8F0;
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01);
}

.bento-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.bento-card.wide {
    grid-column: span 2;
    background: linear-gradient(135deg, #4F46E5 0%, #4338CA 100%);
    color: white;
    border: none;
}

.bento-card.wide .bento-title,
.bento-card.wide .bento-desc {
    color: white;
}

.bento-card.tall {
    grid-row: span 2;
    background: #F8FAFC;
}

.bento-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: #F1F5F9;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: var(--dark);
}

.wide .bento-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.bento-title {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--dark);
}

.bento-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Pricing Overrides */
.price-card {
    background: white;
    border: 1px solid #E2E8F0;
    box-shadow: var(--shadow-soft);
}

.price-card.popular {
    background: #F8FAFC;
    border: 2px solid var(--primary);
}

/* Responsive */
@media (max-width: 900px) {
    /* Main nav-items logic is handled above, do not hide it here */

    .nav-toggle-btn {
        display: block;
    }

    .desktop-auth {
        display: none !important;
    }

    .hero-trend {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual img {
        width: 100%;
        margin-top: 2rem;
    }

    .stats-container {
        flex-direction: column;
        gap: 2rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .bento-card.wide,
    .bento-card.tall {
        grid-column: span 1;
        grid-row: auto;
    }
}