:root {
    --emerald: #16A34A;
    --deepGreen: #0F3D2E;
    --forestText: #064E3B;
    --mint: #BBF7D0;
    --softBg: #F7FFF9;
}

* {
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

::-webkit-scrollbar {
    display: none;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #ffffff;
    color: var(--forestText);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* --- Navigation & Capsule Logo --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0px;
    padding: 0.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

.nav-inner-scrolled {
    max-width: 850px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 24px;
    padding: 0.5rem 1.5rem;
    box-shadow: 0 15px 35px rgba(15, 61, 46, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

nav.nav-scrolled {
    padding: 0.5rem 1rem;
}

/* LOGO SIZE — compact for larger logo file */
.logo-container {
    height: 70px;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .logo-container {
        height: 50px;
    }
}

.logo-container img {
    height: 100%;
    width: auto;
    display: block;
}

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

/* --- Mobile Navigation --- */
.mobile-menu-toggle {
    display: none;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--deepGreen);
    padding: 0.5rem;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: transform 0.2s;
}

.mobile-menu-toggle:active {
    transform: scale(0.9);
}

.mobile-menu-dropdown {
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 24px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    box-shadow: 0 20px 45px rgba(15, 61, 46, 0.1);
    margin-top: 0.5rem;
    z-index: 999;
}

.mobile-menu-dropdown a {
    text-decoration: none;
    color: var(--forestText);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f1f5f9;
    transition: color 0.2s;
}

.mobile-menu-dropdown a:hover {
    color: var(--emerald);
}

.mobile-menu-dropdown a:last-child {
    border-bottom: none;
}

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none !important;
    }
}

/* --- Premium Pill Badge (Non-clickable) --- */
.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.2);
    border-radius: 100px;
    padding: 0.5rem 1.25rem;
    color: var(--emerald);
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0 auto 2rem auto;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    cursor: default;
}

.hero-badge:hover {
    background: rgba(22, 163, 74, 0.12);
    border-color: rgba(22, 163, 74, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.08);
}

/* --- Customer Brands Section Styles --- */
.brands-section {
    background: white;
    padding: 4rem 0 8rem 0;
}

.brands-container {
    position: relative;
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.brands-hover-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.brands-hover-overlay a {
    background: rgba(15, 61, 46, 0.95);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(15, 61, 46, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
    transition: transform 0.2s;
}

.brands-hover-overlay a:hover {
    transform: scale(1.05);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem 4rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 768px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 2.5rem;
    }
}

.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-item img {
    max-height: 24px;
    width: auto;
    filter: grayscale(1) contrast(0.8) opacity(0.5);
    transition: all 0.3s ease;
}

/* Parent Hover Interactions */
.brands-container-group:hover .brands-grid {
    filter: blur(4px) opacity(0.25);
}

.brands-container-group:hover .brands-hover-overlay {
    opacity: 1;
    transform: scale(1);
}

.brand-item:hover img {
    filter: none !important;
    transform: scale(1.08);
}

/* --- Buttons --- */
.btn-primary {
    background-color: var(--emerald) !important;
    color: white !important;
    padding: 1.1rem 2.5rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    border: none;
    border-bottom: 4px solid rgba(0, 0, 0, 0.2);
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    border-bottom-width: 6px;
    box-shadow: 0 10px 25px rgba(22, 163, 74, 0.3);
}

.btn-outline {
    background: white;
    border: 2px solid #cbd5e1;
    padding: 1.1rem 2.5rem;
    border-radius: 16px;
    text-decoration: none;
    color: var(--deepGreen) !important;
    font-weight: 800;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    border-color: var(--emerald);
    color: var(--emerald) !important;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: rgba(22, 163, 74, 0.08) !important;
    color: var(--emerald) !important;
    padding: 1.1rem 2.5rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    border: 1px solid rgba(22, 163, 74, 0.2);
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: rgba(22, 163, 74, 0.15) !important;
    transform: translateY(-2px);
    border-color: rgba(22, 163, 74, 0.4);
}

/* --- New Hero Section Styling --- */
.hero-section {
    background: white;
}

.hero-cta {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .hero-cta {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .hero-cta a,
    .hero-cta button {
        width: 100%;
        max-width: 400px;
    }
}

/* --- Global Sections --- */
.section-padding {
    padding: 100px 0;
}

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

.section-tag {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: rgba(22, 163, 74, 0.1);
    border-radius: 100px;
    color: var(--emerald);
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

/* --- Feature Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}



.feature-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(15, 61, 46, 0.03);
    display: flex;
    flex-direction: column;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.05) 0%, transparent 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(15, 61, 46, 0.08);
    border-color: rgba(22, 163, 74, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--softBg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--emerald);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    background: var(--emerald);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.list-icon-wrapper {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(22, 163, 74, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

li:hover .list-icon-wrapper,
.pricing-card:hover .list-icon-wrapper {
    background: var(--emerald);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.pricing-card.featured .list-icon-wrapper {
    background: rgba(187, 247, 208, 0.15);
    color: var(--mint);
}

.pricing-card.featured:hover .list-icon-wrapper {
    background: var(--mint);
    color: var(--deepGreen);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--deepGreen);
    letter-spacing: -0.5px;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.75;
    color: var(--forestText);
}

/* Default Grid is already 3 columns. */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .features-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        padding-bottom: 2rem;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        width: calc(100% + 3rem);
        max-width: 100vw;
        gap: 1rem;
        scrollbar-width: none;
    }

    .features-grid::-webkit-scrollbar {
        display: none;
    }

    .features-grid>.feature-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
    }
}

/* --- How It Works --- */
.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
    text-align: center;
}

@media (max-width: 768px) {
    .how-grid {
        grid-template-columns: 1fr; /* Wraps items down sequentially */
        gap: 1.5rem;               /* Tighter gap appropriate for vertical stack */
        margin-top: 2rem;           /* Cleaner space buffer on mobile */
        padding: 0 1rem;            /* Prevents grid children edge bleeding */
    }
}
.step-num {
    width: 60px;
    height: 60px;
    background: var(--emerald);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    font-weight: 800;
    font-size: 1.5rem;
}

/* --- Premium Testimonials Slider --- */
.testimonial-section-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    padding: 4rem 0;
    width: 100%;
}

.quote-container {
    position: relative;
    padding: 0 2.5rem;
    width: 100%;
    max-width: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.quote-mark {
    position: absolute;
    font-family: 'Georgia', serif;
    font-size: 8rem;
    font-weight: bold;
    color: var(--deepGreen);
    opacity: 0.05;
    user-select: none;
    pointer-events: none;
    line-height: 1;
}

.quote-mark-left {
    left: -1rem;
    top: -3.5rem;
}

.quote-mark-right {
    right: -1rem;
    bottom: -5.5rem;
}

.quote-text {
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--deepGreen);
    text-align: center;
    line-height: 1.6;
    margin: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity, filter;
}

.quote-text.opacity-0 {
    opacity: 0;
    filter: blur(4px);
    transform: scale(0.98);
}

.quote-text.opacity-100 {
    opacity: 1;
    filter: blur(0px);
    transform: scale(1);
}

@media (max-width: 768px) {
    .quote-text {
        font-size: 1.5rem;
        line-height: 1.5;
    }

    .quote-mark {
        font-size: 5rem;
    }

    .quote-mark-left {
        left: -0.5rem;
        top: -2.5rem;
    }

    .quote-mark-right {
        right: -0.5rem;
        bottom: -3.5rem;
    }
}

@media (max-width: 400px) {
    .quote-container {
        padding: 0 1.25rem;
    }
    
    .quote-text {
        font-size: 1.25rem;
    }

    .quote-mark-left {
        left: 0.25rem;
    }

    .quote-mark-right {
        right: 0.25rem;
    }
    
    .avatar-track {
        flex-wrap: wrap;
    }
}

.role-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--emerald);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    text-align: center;
    margin: 0 0 1rem 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.role-text.opacity-0 {
    opacity: 0;
    transform: translateY(8px);
}

.role-text.opacity-100 {
    opacity: 1;
    transform: translateY(0);
}

.avatar-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pill-button {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 9999px;
    cursor: pointer;
    border: 1px solid transparent;
    padding: 4px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    outline: none;
}

.pill-button:hover {
    background: rgba(22, 163, 74, 0.08);
}

.pill-button.active {
    background: var(--deepGreen);
    box-shadow: 0 10px 30px rgba(15, 61, 46, 0.15);
}

.pill-button.active:hover {
    background: var(--deepGreen);
}

.pill-button.expanded-padding {
    padding: 4px 12px 4px 4px;
}

.avatar-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.pill-button.active .avatar-img {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.pill-button:not(.active):hover .avatar-img {
    transform: scale(1.05);
}

.name-container {
    display: grid;
    grid-template-columns: 0fr;
    opacity: 0;
    margin-left: 0;
    transition: grid-template-columns 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        margin-left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.name-container.expanded {
    grid-template-columns: 1fr;
    opacity: 1;
    margin-left: 8px;
}

.author-name {
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    display: block;
    transition: color 0.3s;
    line-height: 1;
}

.pill-button.active .author-name {
    color: white;
}

.pill-button:not(.active) .author-name {
    color: var(--deepGreen);
}

/* --- Pricing Section & 3D Spatial Tilts --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 5rem;
    perspective: 1200px;
    /* Enable 3D coordinate space for the grid container */
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 5rem auto 0;
        perspective: none;
        /* Disable perspective on stacked mobile layout */
    }
}

.pricing-card {
    background: white;
    padding: 3.5rem 2.5rem;
    border-radius: 40px;
    border: 1px solid #e2e8f0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, background-color 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
}

/* Initial 3D Spatial Angles */
.pricing-card:nth-child(1) {
    transform: perspective(1200px) rotateY(8deg) translateZ(-10px) scale(0.98);
    z-index: 5;
}

.pricing-card.featured {
    background: var(--deepGreen);
    color: white !important;
    transform: perspective(1200px) rotateY(0deg) translateZ(15px) scale(1.03);
    border: none;
    box-shadow: 0 25px 60px rgba(15, 61, 46, 0.15);
    z-index: 10;
}

.pricing-card:nth-child(3) {
    transform: perspective(1200px) rotateY(-8deg) translateZ(-10px) scale(0.98);
    z-index: 5;
}

/* Premium Hover Effects - Straightening and Lifting in 3D */
.pricing-card:hover {
    transform: perspective(1200px) rotateY(0deg) translateZ(30px) translateY(-12px) scale(1.04) !important;
    box-shadow: 0 35px 70px rgba(15, 61, 46, 0.12);
    border-color: rgba(22, 163, 74, 0.4);
    z-index: 20;
}

.pricing-card.featured:hover {
    transform: perspective(1200px) rotateY(0deg) translateZ(45px) translateY(-16px) scale(1.07) !important;
    box-shadow: 0 40px 90px rgba(15, 61, 46, 0.35);
    z-index: 20;
}

/* Adjustments on Mobile to ignore angles but keep lift */
@media (max-width: 1024px) {

    .pricing-card:nth-child(1),
    .pricing-card:nth-child(3) {
        transform: none;
    }

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

.popular-tag {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--emerald);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
}

/* --- Pricing Card Elements --- */
.price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.price span {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.7;
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0.25rem 0;
}

.pricing-card .plan-desc {
    font-size: 0.9rem;
    opacity: 0.65;
    margin-bottom: 2rem;
    line-height: 1.4;
    max-width: 240px;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
    text-align: left;
    line-height: 2.2;
    font-weight: 700;
    font-size: 0.95rem;
    width: 100%;
}

.pricing-card:not(.featured) ul {
    color: #475569;
}

/* --- Pricing List Icon Alignment --- */
.pricing-card ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.5rem;
}

.pricing-card ul li svg.lucide {
    width: 18px;
    height: 18px;
    min-width: 18px;
    flex-shrink: 0;
}

/* --- Imagery Components --- */
.img-card {
    background: white;
    padding: 12px;
    border-radius: 32px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.12);
    position: relative;
    width: 100%;
}

.img-card img {
    width: 100%;
    border-radius: 24px;
    display: block;
    object-fit: cover;
}

svg.lucide {
    stroke: currentColor;
    width: 28px;
    height: 28px;
    stroke-width: 2.5;
}

footer {
    background: #081a14;
    color: #94a3b8;
    padding: 6rem 0 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    justify-content: center;
    align-items: center;
    text-align: center;
}

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

    .footer-grid .logo-container {
        justify-content: center;
    }

    .footer-grid p {
        margin-left: auto;
        margin-right: auto;
    }
}

/* --- Premium Dual-Pane Modal Layout (Elevated UI/UX) --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 61, 46, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.3s ease;
}

/* --- Modal Inner Flex/Grid Canvas --- */
.modal-content-wrapper {
    display: flex;
    flex-direction: row; /* Desktop horizontal rendering layout */
    width: 100%;
    max-width: 900px;
    background: #ffffff;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow:0 25px 60px -15px rgba(15, 61, 46, 0.25);
    margin: auto;
    position: relative;
    z-index: 10;
}

/* Base structural parameters for the split layouts */
.modal-visual-panel {
    width: 45%;
    background: var(--deepGreen);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
    position: relative;
}

.modal-feature-list {
    list-style: none;
    padding: 0;
    margin: 2.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    text-align: left;
    flex-grow: 1;
}

.modal-visual-footer {
    margin-top: 2%;
    padding-top: 2rem;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    color: #cbd5e1;
}
/*
    FIX 6: REMOVED the duplicate .modal-visual-footer declaration that
            previously appeared lower in the file and silently clobbered
            the layout-critical margin-top and padding-top set above.
*/

.modal-visual-panel::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(22, 163, 74, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.modal-visual-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    color: white;
}

.modal-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.modal-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(22, 163, 74, 0.15);
    color: var(--mint);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.modal-feature-icon svg {
    width: 14px !important;
    height: 14px !important;
}

.modal-feature-text h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--mint);
    margin: 0 0 0.35rem 0;
}

.modal-feature-text p {
    font-size: 0.88rem;
    opacity: 0.85;
    margin: 0;
    line-height: 1.5;
    color: #f1f5f9;
}

.modal-form-panel {
    width: 55%;
    padding: 2.5rem;
    position: relative;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    border: none;
    background: rgba(15, 61, 46, 0.04);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--deepGreen);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    outline: none;
    flex-shrink: 0;
}

.modal-close-btn:hover {
    background: rgba(22, 163, 74, 0.12);
    color: var(--emerald);
    transform: rotate(90deg);
}

.modal-form-header h3 {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--deepGreen);
    margin: 0 0 0.15rem 0;
    letter-spacing: -0.01em;
}

.modal-form-header p {
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.7;
    margin: 0 0 0.5rem 0;
}

/* --- Modern Form Inputs with Icons (UX Upgrade) --- */
.modal-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.modal-input-wrapper i,
.modal-input-wrapper svg {
    position: absolute;
    left: 1.25rem;
    color: #94a3b8;
    transition: color 0.25s ease;
    pointer-events: none;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
}

.modal-input-field {
    width: 100%;
    padding: 0.95rem 1.25rem 0.95rem 3.2rem;
    border-radius: 12px;
    border: 1.5px solid #cbd5e1;
    outline: none;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--deepGreen);
    transition: all 0.25s ease;
    background: #f8fafc;
}

.modal-input-field::placeholder {
    color: #94a3b8;
    opacity: 0.9;
}

.modal-input-field:hover {
    border-color: #94a3b8;
}

.modal-input-field:focus {
    border-color: var(--emerald);
    background: white;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

/*
*/
.modal-input-wrapper:focus-within i,
.modal-input-wrapper:focus-within svg {
    color: var(--emerald);
}

.modal-textarea-field {
    padding-left: 3.2rem;
    resize: vertical;
    min-height: 90px;
}


/* --- The Mobile Wrap-Around Override (CRITICAL) --- */
@media (max-width: 768px) {
    .modal-content-wrapper {
        flex-direction: column;      
        max-height: 90vh;            
        overflow-y: auto;             
        margin: 1rem;
    }

    /* FIX 1: Added the missing closing curly bracket right here */
    .modal-visual-panel,
    .modal-form-panel {
        width: 100%;                 
        padding: 1.75rem;            
    } 
    
    .modal-feature-list {
        margin: 1.5rem 0;
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }
}

@media (max-width: 500px) {
    .modal-feature-text p {
        display: none;
    }
}

/* Alpine.js cloak helper */
[x-cloak] {
    display: none !important;
}
/* FIX 2: Removed the rogue trailing bracket custom tag */

/* --- Brands Grid & GSAP Animation Setup --- */
@media (min-width: 768px) {
    .brands-grid-responsive {
        grid-template-columns: repeat(4, 1fr) !important;
        max-width: 800px !important;
    }
}

@media (min-width: 1024px) {
    .brands-grid-responsive {
        grid-template-columns: repeat(8, 1fr) !important;
        max-width: 1100px !important;
    }
}

/* --- High Impact Showcase Dual Floating Screens --- */
.showcase-dual-screens {
    position: relative;
    width: 100%;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    z-index: 10;
}

.showcase-glow-backdrop {
    position: absolute;
    width: 130%;
    height: 130%;
    background: radial-gradient(circle at center, rgba(22, 163, 74, 0.12) 0%, rgba(22, 163, 74, 0) 70%);
    z-index: 1;
    pointer-events: none;
    top: -15%;
    left: -15%;
}

.floating-screen {
    position: absolute;
    transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, box-shadow;
}

.screen-back-card {
    width: 78%;
    z-index: 2;
    left: 5%;
    top: 5%;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.7);
    box-shadow: -12px 24px 48px rgba(15, 61, 46, 0.08);
    background: white;
    padding: 8px;
    transform: rotateY(16deg) rotateX(6deg) rotateZ(-2deg) translate3d(0, 0, 0);
}

.screen-back-card img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.screen-front-card {
    width: 58%;
    z-index: 4;
    right: 0%;
    bottom: 2%;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 16px 32px 64px rgba(15, 61, 46, 0.14);
    background: white;
    padding: 6px;
    transform: rotateY(-18deg) rotateX(8deg) rotateZ(3deg) translate3d(0, 0, 60px);
}

.screen-front-card img {
    width: 100%;
    border-radius: 10px;
    display: block;
}

/* Float Badge Elements */
.showcase-float-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    padding: 0.65rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--deepGreen);
    box-shadow: 0 10px 30px rgba(15, 61, 46, 0.08);
    z-index: 5;
    transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.badge-revenue {
    left: -2%;
    top: 25%;
    transform: translate3d(0, 0, 80px) rotateZ(-3deg);
}

.badge-revenue svg {
    color: var(--emerald);
    background: rgba(22, 163, 74, 0.1);
    padding: 4px;
    border-radius: 50%;
}

.badge-stock {
    right: 20%;
    top: -5%;
    transform: translate3d(0, 0, 90px) rotateZ(2deg);
}

.badge-stock svg {
    color: #d97706;
    background: rgba(217, 119, 6, 0.1);
    padding: 4px;
    border-radius: 50%;
}

/* Hover Interaction / 3D Air Panning effect */
.showcase-dual-screens:hover .screen-back-card {
    transform: rotateY(8deg) rotateX(3deg) rotateZ(-1deg) translate3d(15px, -5px, 20px);
    box-shadow: -8px 16px 36px rgba(15, 61, 46, 0.12);
}

.showcase-dual-screens:hover .screen-front-card {
    transform: rotateY(-6deg) rotateX(4deg) rotateZ(1deg) translate3d(-15px, 5px, 110px);
    box-shadow: 12px 24px 54px rgba(15, 61, 46, 0.18);
}

.showcase-dual-screens:hover .badge-revenue {
    transform: translate3d(-10px, -8px, 120px) rotateZ(-5deg);
}

.showcase-dual-screens:hover .badge-stock {
    transform: translate3d(10px, -12px, 130px) rotateZ(4deg);
}

@media (max-width: 1024px) {
    .showcase-dual-screens {
        height: 400px;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .showcase-dual-screens {
        height: 300px;
    }

    .showcase-float-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}