/* 
================================================
InsightCSS - Advanced Premium Stylesheet
Architecture based on prembly.com advanced aesthetic
================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Dynamic Brand Color (Will be injected via Blade) */
    --brand-color: #40b1f7;

    /* Advanced Palette */
    --dark-bg: #0a0f1c;
    --dark-surface: #121a2f;
    --dark-border: rgba(255, 255, 255, 0.1);

    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    --white: #ffffff;

    /* Typography */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows */
    --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 10px 30px -10px var(--brand-color);

    /* Border Radius */
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--slate-50);
    color: var(--slate-800);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--slate-900);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ================================================
   Utility Classes
   ================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
}

.text-brand {
    color: var(--brand-color);
}

.text-slate {
    color: var(--slate-600);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    /* Updated radius to be slightly rounded instead of full pill */
    transition: var(--transition);
    cursor: pointer;
    font-family: var(--font-heading);
    border: none;
    outline: none;
    position: relative;
    z-index: 20;
}

.btn-primary {
    background-color: var(--brand-color);
    color: var(--white);
    box-shadow: none !important;
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: none !important;
}

.btn-secondary {
    background-color: transparent;
    color: var(--slate-900);
    border: 1.5px solid var(--slate-200);
}

.btn-secondary:hover {
    border-color: var(--slate-400);
    background-color: var(--slate-50);
}

.btn-dark {
    background-color: var(--slate-900);
    color: var(--white);
}

.btn-dark:hover {
    background-color: var(--brand-color);
    color: var(--white);
}

/* ================================================
   Advanced Navigation
   ================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5.5rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-desktop a {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--slate-900) !important;
}

.nav-desktop a:hover,
.nav-desktop a.active {
    color: var(--brand-color) !important;
}

.nav-auth .login-link {
    font-weight: 600;
    color: var(--slate-800);
}

.nav-auth .login-link:hover {
    color: var(--brand-color);
}

.mobile-menu-btn {
    display: block;
    background: transparent;
    border: none;
    font-size: 1.75rem;
    color: var(--slate-800);
    cursor: pointer;
}

.logo-img {
    height: 2.5rem;
    width: auto;
    object-fit: contain;
}

/* Mobile Menu Wrapper */
.nav-wrapper {
    display: none;
}

@media (max-width: 991px) {
    .nav-wrapper {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 1.5rem;
        flex-direction: column;
        gap: 1.5rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--slate-100);
        transition: var(--transition);
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
    }
    
    .nav-wrapper.show {
        display: flex;
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-desktop {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

    .nav-auth {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .nav-auth .btn {
        width: 100%;
        text-align: center;
    }
}

@media (min-width: 992px) {
    .nav-wrapper {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex: 1;
        gap: 2.5rem;
    }

    .nav-desktop {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 2.5rem;
    }

    .nav-auth {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
    }

    .nav-auth .btn {
        width: auto;
    }

    .mobile-menu-btn {
        display: none;
    }
}

/* ================================================
   Hero Section
   ================================================ */
.landing-hero {
    padding-top: 8rem;
    /* Reduced from 10rem */
    padding-bottom: 4rem;
    /* Reduced from 6rem */
    position: relative;
    text-align: center;
    background: radial-gradient(circle at top, #ffffff 0%, var(--slate-50) 100%);
    display: block;
    /* Ensure no flex conflicts */
    min-height: auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    /* Updated radius */
    background-color: rgba(64, 177, 247, 0.1);
    color: var(--brand-color);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-inline: auto;
}

.hero-title span {
    color: var(--brand-color);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--slate-600);
    margin-bottom: 2rem;
    /* Reduced from 3rem */
    max-width: 600px;
    margin-inline: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

/* ================================================
   Why Choose Us Section
   ================================================ */
.landing-features {
    padding: 3rem 0;
    /* Reduced from 6rem */
    background-color: var(--white);
    display: block;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
    /* Reduced from 4rem */
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--slate-600);
    max-width: 600px;
    margin-inline: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-card {
    background: var(--slate-50);
    padding: 3rem 2rem;
    border-radius: var(--radius-xl);
    text-align: left;
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    background: var(--white);
    transform: translateY(-10px);
    box-shadow: var(--shadow-card);
    border-color: var(--slate-100);
}

.feature-icon {
    width: 6rem;
    height: 6rem;
    border-radius: var(--radius-lg);
    background: var(--white);
    color: var(--brand-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-soft);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-desc {
    color: var(--slate-600);
}

.service-list {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--slate-600);
    font-size: 0.9375rem;
}

.service-list li i {
    color: #10b981;
    /* green checkmark */
    font-size: 1.25rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ================================================
   Product Showcase
   ================================================ */
.landing-showcase {
    padding: 4rem 0 8rem;
    background-color: var(--white);
    display: block;
}

.showcase-image-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    padding: 1rem;
    background: linear-gradient(135deg, var(--slate-100) 0%, var(--white) 100%);
    box-shadow: var(--shadow-card);
}

.showcase-image {
    width: 100%;
    border-radius: var(--radius-lg);
    display: block;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* ================================================
   Trust & Stats
   ================================================ */
.landing-stats {
    padding: 6rem 0;
    background-color: var(--slate-900);
    /* Standard Dark Color */
    color: var(--white);
    text-align: center;
    display: block;
}

.landing-stats h2 {
    color: var(--white);
    margin-bottom: 4rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--brand-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.125rem;
    color: var(--slate-400);
    font-weight: 500;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ================================================
   Final CTA
   ================================================ */
.cta-section {
    padding: 8rem 0;
    background-color: var(--brand-color);
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* ================================================
   Advanced Footer
   ================================================ */
.footer {
    background-color: var(--slate-900);
    /* Standard Dark Color */
    color: var(--slate-400);
    padding: 6rem 0 2rem;
    border-top: 1px solid var(--dark-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo-link {
    margin-bottom: 1.5rem;
}

.footer-desc {
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--brand-color);
    border-color: var(--brand-color);
}

.footer-heading {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--brand-color) !important;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Animations */
.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auth Layout Overrides */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--slate-50);
}

.auth-transparent-container {
    position: relative;
    z-index: 999;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    width: 100%;
    max-width: 28rem;
    padding: 3rem;
    border: 1px solid var(--slate-100);
}

.card {
    border: none;
    box-shadow: var(--shadow-card);
    border-radius: var(--radius-xl);
}

.card-body {
    padding: 2.5rem;
}

/* Authentication Forms Overrides */
.form-label {
    text-transform: none !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
}

.auth-link {
    font-weight: bold;
    color: inherit;
    text-decoration: none;
    position: relative;
    z-index: 10;
}

.auth-link:hover {
    color: var(--brand-color) !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-color) !important;
    box-shadow: 0 0 0 1px var(--brand-color) !important;
    outline: none !important;
}

.form-check-input:checked {
    background-color: var(--brand-color) !important;
    border-color: var(--brand-color) !important;
}

/* SweetAlert Overrides */
.swal-modal {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    padding: 2rem;
}

.swal-title {
    font-family: var(--font-heading);
    color: var(--slate-900);
}

.swal-text {
    color: var(--slate-700);
    text-align: left;
}

.swal-footer {
    display: flex !important;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    text-align: center;
}

.swal-button-container {
    margin: 0 !important;
}

.swal-button {
    border-radius: var(--radius-md) !important;
    font-weight: 600 !important;
    font-family: var(--font-heading) !important;
    padding: 0.65rem 1.5rem !important;
    transition: var(--transition) !important;
    border: none;
}

.swal-button:focus {
    box-shadow: none !important;
    outline: none !important;
}

.swal-button--cancel {
    background-color: transparent !important;
    color: var(--slate-900) !important;
    border: 1.5px solid var(--slate-200) !important;
}

.swal-button--cancel:hover {
    border-color: var(--slate-400) !important;
    background-color: var(--slate-50) !important;
}

.swal-button--confirm {
    background-color: var(--brand-color) !important;
    color: var(--white) !important;
}

.swal-button--confirm:hover {
    filter: brightness(1.1) !important;
}