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

/* Enhanced CSS Variables - Design System */
:root {
    /* Core Brand Colors - #4a154b base with enhanced variations */
    --primary: hsl(315, 54%, 18%);
    --primary-light: hsl(315, 60%, 35%);
    --primary-lighter: hsl(315, 55%, 50%);
    --primary-dark: hsl(315, 70%, 12%);
    --primary-foreground: hsl(0, 0%, 100%);

    /* Enhanced Secondary Brand Colors */
    --secondary: hsl(315, 45%, 30%);
    --secondary-light: hsl(315, 55%, 40%);
    --secondary-lighter: hsl(315, 50%, 60%);
    --secondary-foreground: hsl(0, 0%, 100%);

    /* Accent Colors for Vibrancy */
    --accent-purple: hsl(280, 100%, 70%);
    --accent-pink: hsl(320, 100%, 75%);
    --accent-blue: hsl(250, 100%, 75%);

    /* Neutral Palette */
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(224, 71%, 4%);
    --muted: hsl(220, 14%, 96%);
    --muted-foreground: hsl(220, 8%, 46%);
    --accent: hsl(220, 14%, 96%);
    --accent-foreground: hsl(224, 71%, 4%);

    /* Card & Surface */
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(224, 71%, 4%);

    /* Interactive States */
    --border: hsl(220, 13%, 91%);
    --input: hsl(220, 13%, 91%);
    --ring: hsl(315, 54%, 18%);

    /* Enhanced Design Tokens */
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-light));
    --gradient-hero: linear-gradient(135deg,
            hsla(315, 54%, 18%, 0.15),
            hsla(280, 100%, 70%, 0.1),
            hsla(320, 100%, 75%, 0.08));
    --gradient-text: linear-gradient(135deg, var(--primary), var(--primary-lighter), var(--accent-purple));
    --gradient-heading: linear-gradient(135deg, var(--foreground) 0%, var(--primary) 60%, var(--primary-lighter) 100%);
    --gradient-vibrant: linear-gradient(45deg,
            var(--primary) 0%,
            var(--accent-purple) 50%,
            var(--accent-pink) 100%);
    --gradient-glow: radial-gradient(circle at 50% 0%,
            hsla(315, 54%, 18%, 0.3),
            hsla(280, 100%, 70%, 0.2),
            transparent 70%);

    /* Enhanced Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 0 1px hsla(315, 54%, 18%, 0.3), 0 10px 30px -5px hsla(315, 54%, 18%, 0.4);
    --shadow-vibrant: 0 10px 40px -10px hsla(315, 54%, 18%, 0.5),
        0 0 20px hsla(280, 100%, 70%, 0.3);

    /* Spacing & Sizing */
    --radius: 0.75rem;
    --radius-sm: 0.5rem;
    --radius-lg: 1rem;

    /* Enhanced Animations */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-glow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Enhanced Section Backgrounds */
    --section-hero: var(--gradient-hero);
    --section-features: hsla(220, 14%, 96%, 0.3);
    --section-alt: var(--accent);
    --section-cta: var(--gradient-primary);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

/* Utility Classes */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-lg {
    max-width: 1536px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

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

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

.gap-16 {
    gap: 4rem;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.sticky {
    position: sticky;
}

.top-0 {
    top: 0;
}

.z-50 {
    z-index: 50;
}

/* Grid System */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-auto-fit {
    display: grid;
    /*grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));*/
    grid-template-columns: 1fr;
    /* default for mobile */
    gap: 1.5rem;
}

/* Desktop view: 2 columns */
@media (min-width: 1024px) {

    /* lg breakpoint */
    .grid-auto-fit {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* default: 2 columns for mobile */
    gap: 2rem;
    /* adjust spacing as needed */
}

@media (min-width: 1024px) {

    /* desktop */
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        /* 4 columns in a row */
        gap: 1rem;
    }
}


/* Enhanced Typography */
.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

.text-6xl {
    font-size: 3.75rem;
}

.font-medium {
    font-weight: 500;
}

.font-bold {
    font-weight: 700;
}

.font-extrabold {
    font-weight: 800;
}

.leading-tight {
    line-height: 1.25;
}

.leading-relaxed {
    line-height: 1.625;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

/* Enhanced Colors */
.text-foreground {
    color: var(--foreground);
}

.text-muted-foreground {
    color: var(--muted-foreground);
}

.text-primary {
    color: var(--primary);
}

.text-white {
    color: white;
}

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

.bg-card {
    background-color: var(--card);
}

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

.bg-white {
    background-color: white;
}

.border {
    border: 1px solid var(--border);
}

.border-b {
    border-bottom: 1px solid var(--border);
}

/* Spacing */
.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.p-12 {
    padding: 3rem;
}

.p-16 {
    padding: 4rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.py-32 {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

/* Sizing */
.w-4 {
    width: 1rem;
}

.w-5 {
    width: 1.25rem;
}

.w-6 {
    width: 1.5rem;
}

.w-7 {
    width: 1.75rem;
}

.w-8 {
    width: 2rem;
}

.w-10 {
    width: 2.5rem;
}

.w-12 {
    width: 3rem;
}

.w-14 {
    width: 3.5rem;
}

.w-16 {
    width: 4rem;
}

.h-4 {
    height: 1rem;
}

.h-5 {
    height: 1.25rem;
}

.h-6 {
    height: 1.5rem;
}

.h-7 {
    height: 1.75rem;
}

.h-8 {
    height: 2rem;
}

.h-10 {
    height: 2.5rem;
}

.h-12 {
    height: 3rem;
}

.h-14 {
    height: 3.5rem;
}

.h-16 {
    height: 4rem;
}

.max-w-xl {
    max-width: 36rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-5xl {
    max-width: 64rem;
}

.max-w-6xl {
    max-width: 72rem;
}

.max-w-7xl {
    max-width: 80rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Border Radius */
.rounded-lg {
    border-radius: var(--radius);
}

.rounded-xl {
    border-radius: var(--radius-lg);
}

.rounded-full {
    border-radius: 9999px;
}

/* Enhanced Shadow */
.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.shadow-soft {
    box-shadow: var(--shadow-md);
}

.shadow-glow {
    box-shadow: var(--shadow-glow);
}

.shadow-vibrant {
    box-shadow: var(--shadow-vibrant);
}

/* Enhanced Component Classes */
.hero-background {
    background: var(--section-hero);
    position: relative;
    overflow: hidden;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-glow);
    pointer-events: none;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle,
            hsla(315, 54%, 18%, 0.1) 0%,
            hsla(280, 100%, 70%, 0.05) 30%,
            transparent 70%);
    animation: heroGlow 8s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes heroGlow {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
}

.features-background {
    background: var(--section-features);
    position: relative;
}

.alt-background {
    background: var(--section-alt);
}

.cta-background {
    background: var(--section-cta);
    color: var(--primary-foreground);
    position: relative;
    overflow: hidden;
}

.cta-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    pointer-events: none;
}

.icon-gradient {
    background: var(--gradient-primary);
}

.icon-soft {
    background: hsla(315, 54%, 18%, 0.1);
    color: var(--primary);
}

/* Enhanced Gradient Text */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    position: relative;
}

.gradient-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    background: var(--gradient-vibrant);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transition: opacity 0.3s ease;
}



/* Enhanced Hero Title */
.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    background: var(--gradient-heading);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Enhanced Section Headings */
.section-heading {
    background: var(--gradient-heading);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

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

/* Enhanced Buttons */
.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 1rem 2rem;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: var(--transition-glow);
    cursor: pointer;
    box-shadow: var(--shadow-vibrant);
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.btn-hero:hover::before {
    left: 100%;
}

.btn-hero:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-vibrant), 0 0 30px hsla(315, 54%, 18%, 0.4);
    color: white;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: white;
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 2rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 2rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--accent-foreground);
    transform: translateY(-2px);
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.card-backdrop {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.hover-lift {
    transition: var(--transition-smooth);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.group:hover .group-hover-scale {
    transform: scale(1.1);
}

.group-hover-scale {
    transition: transform 0.3s ease;
}

.backdrop-blur {
    backdrop-filter: blur(8px);
}

/* Enhanced Badge */
.badge-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg,
            hsla(315, 54%, 18%, 0.15),
            hsla(280, 100%, 70%, 0.1));
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid hsla(315, 54%, 18%, 0.2);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px hsla(315, 54%, 18%, 0.1);
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .badge-hero {
        font-size: 0.8rem;
        margin-bottom: 10px;
        margin-top: 15px;
    }
}

/* Animations */
.slide-up {
    animation: slideUp 0.8s ease-out;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

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

/* Header Styles */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(220, 213, 191, 0.5);
}

.nav-link {
    color: var(--foreground);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .grid-cols-2 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .text-5xl {
        font-size: 2.5rem;
    }

    .text-6xl {
        font-size: 3rem;
    }

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

    .py-32 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .px-6 {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .gap-12 {
        gap: 2rem;
    }

    .gap-16 {
        gap: 2rem;
    }

    .p-16 {
        padding: 3rem;
    }
}

@media (min-width: 1024px) {
    .lg-grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lg-text-5xl {
        font-size: 3rem;
    }

    .lg-text-6xl {
        font-size: 3.75rem;
    }

    .lg-py-32 {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }

    .lg-gap-16 {
        gap: 4rem;
    }

    .lg-p-16 {
        padding: 4rem;
    }
}

/* Responsive classes for mobile */
@media (max-width: 640px) {
    .sm-flex-row {
        flex-direction: column;
    }
}

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

/* Prevent any accidental horizontal scroll */
html,
body {
    max-width: 100vw;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* safeguard for absolutely positioned elements */
[style*="left: -"] {
    max-width: 100vw;
}