/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Colors */
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --secondary: #7e22ce;
    --secondary-dark: #6b21a8;
    --accent: #ec4899;

    --text-main: #111827;
    --text-muted: #4b5563;
    --text-light: #9ca3af;
    --text-white: #ffffff;

    --bg-body: #f9fafb;
    --bg-white: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.7);

    --success: #10b981;
    --success-bg: #d1fae5;
    --info: #3b82f6;
    --info-bg: #dbeafe;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-hover: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    --gradient-text: linear-gradient(to right, var(--primary), var(--secondary));

    /* 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-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-color: rgba(79, 70, 229, 0.2);

    /* Spacing */
    --container-width: 1280px;
    --header-height: 80px;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   2. UTILITIES & COMPONENTS
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: var(--radius-xl);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px 0 var(--shadow-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-color);
    background: var(--gradient-hover);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary);
    border: 1px solid transparent;
}

.btn-secondary:hover {
    background: var(--bg-body);
}

.btn-outline {
    background: transparent;
    border: 1px solid #e5e7eb;
    color: var(--text-muted);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
}

.btn-white {
    background: var(--bg-white);
    color: var(--primary);
}

.btn-white:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
}

.shadow-hover:hover {
    box-shadow: var(--shadow-xl);
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0; /* Start hidden */
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}

/* =========================================
   3. HEADER
   ========================================= */
.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.landing-header.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.95);
}

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

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.025em;
}

.logo-icon {
    font-size: 1.75rem;
    margin-right: 0.5rem;
}

.desktop-nav {
    display: none;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    margin: 0 1rem;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary);
}

.header-actions {
    display: none;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.mobile-menu-btn:hover {
    color: var(--primary);
}

/* Mobile Menu */
.mobile-menu {
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--bg-white);
    border-top: 1px solid #f3f4f6;
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    z-index: 999;
}

.mobile-menu.hidden {
    display: none;
}

.mobile-link {
    display: block;
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-md);
}

.mobile-link:hover {
    background: #f3f4f6;
    color: var(--primary);
}

.mobile-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Media Query for Desktop Nav */
@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }
    .header-actions {
        display: flex;
    }
    .mobile-menu-wrapper {
        display: none;
    }
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    position: relative;
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
    overflow: hidden;
}

.hero-bg-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: blob 7s infinite;
}

.blob-1 {
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: #e0e7ff;
    mix-blend-mode: multiply;
}

.blob-2 {
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: #fae8ff;
    mix-blend-mode: multiply;
    animation-delay: 2s;
}

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

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

/* Hero Text */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.badge-new {
    background: #eff6ff;
    color: var(--primary);
    border: 1px solid #dbeafe;
}

.dot {
    width: 0.5rem;
    height: 0.5rem;
    background: var(--primary);
    border-radius: 50%;
    margin-right: 0.5rem;
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 600px;
}

.cta-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
    .cta-group {
        flex-direction: row;
    }
}

.trust-badges {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.text-green { color: var(--success); }

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
}

.image-glow {
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.2;
    transform: translate(10px, 10px);
}

.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-2xl);
    border: 4px solid rgba(255, 255, 255, 0.5);
    z-index: 10;
    transform: rotate(-2deg);
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: rotate(0deg);
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1rem;
    border-radius: var(--radius-xl);
    z-index: 20;
    box-shadow: var(--shadow-xl);
    min-width: 160px;
}

.card-bottom-left {
    bottom: -1rem;
    left: -1rem;
}

.card-top-right {
    top: 2rem;
    right: -1rem;
}

.card-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.icon-box {
    padding: 0.5rem;
    border-radius: var(--radius-md);
    display: flex;
}

.bg-green-light { background: var(--success-bg); }
.bg-blue-light { background: var(--info-bg); }
.text-green { color: var(--success); }
.text-blue { color: var(--info); }

.card-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
}

.card-value {
    font-weight: 800;
    color: var(--text-main);
    font-size: 1.125rem;
}

.animate-float-1 { animation: float 6s ease-in-out infinite; }
.animate-float-2 { animation: float 5s ease-in-out infinite 1s; }

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.shape-fill {
    fill: #ffffff;
}

/* =========================================
   5. SOCIAL PROOF
   ========================================= */
.social-proof {
    padding: 3rem 0;
    background: white;
    border-bottom: 1px solid #f3f4f6;
}

.section-label {
    text-transform: uppercase;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: var(--transition);
}

.logos-grid:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .logos-grid {
        gap: 4rem;
    }
}

/* =========================================
   6. FEATURES (BENTO GRID)
   ========================================= */
.features {
    padding: 6rem 0;
    background: var(--bg-body);
}

.section-header {
    text-center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-subtitle {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}

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

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.feature-card-large {
    grid-column: span 1;
}

@media (min-width: 768px) {
    .feature-card-large {
        grid-column: span 2;
    }
}

.feature-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.feature-icon-wrapper {
    margin-bottom: 1.5rem;
}

.feature-emoji {
    font-size: 2rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.feature-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Feature Large Visual */
.feature-visual {
    margin-top: 2rem;
    height: 150px;
    background: linear-gradient(to bottom right, #eef2ff, #f3e8ff);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    border: 1px solid #e0e7ff;
}

.chart-bars {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 0 1rem 1rem;
    gap: 0.5rem;
}

.bar {
    flex: 1;
    background: rgba(99, 102, 241, 0.5);
    border-radius: 4px 4px 0 0;
}

.bar-1 { height: 60%; }
.bar-2 { height: 40%; background: rgba(99, 102, 241, 0.6); }
.bar-3 { height: 80%; background: var(--primary); box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.bar-4 { height: 70%; background: rgba(99, 102, 241, 0.7); }
.bar-5 { height: 50%; }

/* Highlight Card */
.feature-card-highlight {
    background: var(--gradient-primary);
    color: white;
}

.feature-card-highlight .feature-title {
    color: white;
}

.text-indigo-light {
    color: #e0e7ff;
}

.icon-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    display: inline-block;
    backdrop-filter: blur(4px);
    margin-bottom: 1.5rem;
}

.feature-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #e0e7ff;
    font-weight: 500;
}

.text-green-light { color: #86efac; }

/* =========================================
   7. CTA SECTION
   ========================================= */
.cta-section {
    padding: 6rem 0;
    background: white;
}

.cta-card {
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl);
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    text-align: center;
}

@media (min-width: 768px) {
    .cta-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    .cta-text {
        max-width: 600px;
    }
}

.cta-title {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.cta-desc {
    color: #e0e7ff;
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .cta-desc {
        margin-bottom: 0;
    }
}

.cta-decor-1 {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(40px);
}

.cta-decor-2 {
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    filter: blur(40px);
}

/* =========================================
   8. FOOTER
   ========================================= */
.landing-footer {
    background: #111827;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-logo-icon {
    font-size: 2rem;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1rem 0;
    display: inline-block;
}

.footer-desc {
    color: #9ca3af;
    line-height: 1.6;
    max-width: 300px;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #9ca3af;
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #1f2937;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.copyright {
    color: #6b7280;
    font-size: 0.875rem;
}

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

.social-links a {
    color: #9ca3af;
    font-size: 1.25rem;
}

.social-links a:hover {
    color: white;
}
