/* ==========================================================================
   WAVE CONNECT - Professional Landing Page Design System
   ========================================================================== */

:root {
    /* Color Palette - Branded Rusty Orange */
    --primary: #9E420B;
    --primary-hover: #853809;
    --primary-light: #fff5f0;
    --secondary: #0f172a;
    --text-main: #334155;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --white: #ffffff;
    --bg-light: #f8fafc;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1a1512 100%);
    --gradient-text: linear-gradient(to right, #9E420B, #d97706);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(12px);

    /* 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-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Fluid Typography */
    --fs-h1: clamp(2.5rem, 5vw + 1rem, 4rem);
    --fs-h2: clamp(2rem, 3.5vw + 1rem, 3rem);
    --fs-h3: clamp(1.5rem, 2.5vw + 0.5rem, 2.25rem);
    --fs-body: clamp(0.9375rem, 0.5vw + 0.8rem, 1.125rem);
}


/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Lexend Deca', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Section Components */
.section-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    font-size: var(--fs-h2);
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.section-description {
    font-size: var(--fs-body);
    color: var(--text-light);
}



/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-dark);
    font-weight: 700;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}


.btn-secondary {
    background-color: transparent;
    color: var(--white);
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    background: var(--gradient-hero);
    color: var(--white);
    padding: 120px 0 80px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloating 20s infinite alternate;
}

.orb-1 {
    top: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: var(--primary);
}

.orb-2 {
    bottom: 5%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: #7c3509;
    animation-delay: -5s;
}

.orb-3 {
    top: 20%;
    left: 30%;
    width: 300px;
    height: 300px;
    background: #d97706;
    animation-delay: -10s;
}

@keyframes orbFloating {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 50px);
    }
}

.hero-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    padding: 0.625rem 1.25rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--white);
}


.hero-badge svg {
    color: var(--primary);
}

.hero-title {
    font-size: var(--fs-h1);

    line-height: 1.1;
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}





/* Dashboard Mockup */
.hero-image {
    position: relative;
}

.dashboard-preview {
    background: #1e293b;
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.dashboard-preview:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.preview-header {
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.red {
    background: #ef4444;
}

.yellow {
    background: #f59e0b;
}

.green {
    background: #10b981;
}

.preview-content {
    display: flex;
    gap: 1rem;
    padding: 1rem;
}

.preview-sidebar {
    width: 60px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.preview-main {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 80px 180px;
    gap: 1rem;
}

.preview-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

/* ==========================================================================
   HOW IT WORKS / SYSTEM STATS
   ========================================================================== */

.how-it-works {
    padding: 100px 0;
    background: #f8fafc;
}

.system-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 6rem;
}

.system-stats .stat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    transition: all 0.3s ease;
}

.system-stats .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.stat-icon-wrapper svg {
    width: 30px;
    height: 30px;
}

.stat-info .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

.stat-info .stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Trust Section */
.trust-section {
    text-align: center;
}

.trust-title {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
    font-weight: 600;
}

.trust-badge svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.preview-card.large {
    grid-column: span 2;
}

/* ==========================================================================
   BENEFITS SECTION
   ========================================================================== */

.benefits {
    padding: 100px 0;
    background-color: #f8fafc;
}

.benefits-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.benefits-text {
    max-width: 600px;
}

.benefits-description {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefit-item {
    display: flex;
    gap: 1.25rem;
}

.benefit-icon {
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.benefit-icon svg {
    width: 24px;
    height: 24px;
}

.benefit-text h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.benefit-text p {
    font-size: 0.9375rem;
    color: var(--text-light);
}

.benefits-image {
    position: relative;
    height: 500px;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-xl);
    animation: floatingCard 6s ease-in-out infinite;
}

.card-1 {
    top: 0;
    right: 10%;
    width: 260px;
}

.card-2 {
    top: 35%;
    right: 35%;
    width: 240px;
    animation-delay: -2s;
}

.card-3 {
    bottom: 0;
    right: 5%;
    width: 280px;
    animation-delay: -4s;
}

@keyframes floatingCard {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.card-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

.card-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.card-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */

.features {
    padding: 100px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: var(--white);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.feature-title {
    font-size: 1.25rem;
    color: var(--text-dark);
}

.feature-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */

.testimonials {
    padding: 100px 0;
    background: #f8fafc;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    color: #f59e0b;
}

.testimonial-stars svg {
    width: 18px;
    height: 18px;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-main);
    font-size: 1.125rem;
    line-height: 1.7;
    position: relative;
    padding-left: 1rem;
    border-left: 3px solid var(--primary-light);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-hero);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.author-name {
    display: block;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1rem;
}

.author-title {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Stats Bar */
.stats-bar {
    margin-top: 6rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 3rem;
    background: var(--secondary);
    border-radius: 30px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    z-index: 2;
}

.stat-box .stat-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fdba74;
}

.stat-box .stat-icon svg {
    width: 28px;
    height: 28px;
}

.stat-box .stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
}

.stat-box .stat-label {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.25rem;
}



/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.cta {
    padding: 100px 0;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(79, 70, 229, 0.15) 0%, transparent 50%);
}

.cta-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.cta-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn-cta-primary {
    background: var(--white);
    color: var(--secondary);
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-cta-secondary {
    background: transparent;
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}


.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    animation: fadeInRight 1s ease forwards;
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Navigation Overlay */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled .nav-link {
    color: var(--text-light);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--primary);
}

.navbar.scrolled .btn-nav-signup {
    background: var(--primary);
    color: var(--white);
}

.navbar.scrolled .btn-nav-signup:hover {
    background: var(--primary-hover);
}

.navbar.scrolled .nav-toggle span {
    background: var(--secondary);
}

.navbar.scrolled #navLogo {
    content: url('/assets/images/logo_dark.png');
}


.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.btn-nav-signup {
    background: var(--white);
    color: var(--secondary);
    padding: 0.625rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-nav-signup:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

body.nav-open {
    overflow: hidden;
}

body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    z-index: 998;
    backdrop-filter: blur(2px);
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background: var(--secondary);
    color: var(--white);
    padding: 100px 0 40px;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}


.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 60px;
}

.footer-brand {
    margin-bottom: 1.5rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-title {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: calc(var(--mobile-nav-top, 82px));
        right: 1rem;
        left: 1rem;
        width: auto;
        height: auto;
        min-height: 0;
        max-height: calc(100dvh - var(--mobile-nav-top, 82px) - 1rem - env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: none;
        scrollbar-width: none;
        border-radius: 18px;
        padding: 1.1rem 1.1rem calc(1.4rem + env(safe-area-inset-bottom, 0px));
        background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
        border: 1px solid rgba(255, 255, 255, 0.1);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0.65rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px) scale(0.98);
        transform-origin: top right;
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
        z-index: 1002;
        box-shadow: 0 24px 40px rgba(0, 0, 0, 0.35);
    }

    @supports not (height: 100dvh) {
        .nav-menu {
            max-height: calc(100vh - var(--mobile-nav-top, 82px) - 1rem - env(safe-area-inset-bottom, 0px));
        }
    }

    .nav-menu::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    .nav-link {
        font-size: 1rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.9);
        padding: 0.85rem 0.95rem;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(255, 255, 255, 0.03);
        width: 100%;
        text-align: left;
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--white);
        background: rgba(158, 66, 11, 0.32);
        border-color: rgba(158, 66, 11, 0.7);
    }

    .navbar.scrolled .nav-menu .nav-link {
        color: rgba(255, 255, 255, 0.9);
    }

    .navbar.scrolled .nav-menu .nav-link:hover,
    .navbar.scrolled .nav-menu .nav-link.active {
        color: var(--white);
    }

    .btn-nav-signup {
        width: 100%;
        justify-content: center;
        margin-top: 0.4rem;
        padding: 0.85rem 1.1rem;
        position: static;
    }

    .navbar.scrolled .nav-menu .btn-nav-signup {
        background: var(--white);
        color: var(--secondary);
    }

    .navbar.scrolled .nav-menu .btn-nav-signup:hover {
        background: var(--primary-light);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-image {
        display: none;
    }


    .system-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 2.5rem;
    }

    .trust-badges {
        gap: 2rem;
    }


    .benefits-content {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }

    .benefits-text {
        margin: 0 auto;
    }

    .benefits-list {
        align-items: center;
    }

    .benefit-item {
        text-align: left;
    }

    .benefits-image {

        height: 400px;
    }

    .floating-card {
        padding: 1rem;
        gap: 0.75rem;
    }

    .card-1 {
        width: 220px;
    }

    .card-2 {
        width: 200px;
    }

    .card-3 {
        width: 240px;
    }
}


@media (max-width: 768px) {
    .navbar {
        padding: 1rem 0;
    }

    .navbar.scrolled {
        padding: 0.8rem 0;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .nav-brand img {
        height: 42px;
        width: auto;
    }

    .section-container {
        padding: 0 1.5rem;
    }

    .how-it-works,
    .benefits,
    .features,
    .testimonials,
    .cta {
        padding: 80px 0;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 640px) {
    .nav-menu {
        left: 0.75rem;
        right: 0.75rem;
        padding: 1rem;
        border-radius: 14px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .system-stats,
    .features-grid,
    .testimonials-grid,
    .stats-bar,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .stats-bar {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
        gap: 2rem;
    }

    .trust-badges {
        gap: 1.5rem;
    }


    .cta-buttons {
        flex-direction: column;
    }

    .cta-title {
        font-size: var(--fs-h2);
    }

    .benefits-image {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .floating-card {
        position: static;
        width: 100%;
        max-width: 320px;
        transform: none !important;
        animation: none;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}
