/* ==========================================
   Algeria Shipping Manager - Website Styles
   Color Palette extracted from AAM WEB Logo:
   - Primary Dark Blue: #1a2b6b
   - Primary Cyan: #3dd9eb
   ========================================== */

/* CSS Variables */
:root {
    /* Brand Colors */
    --primary-dark: #1a2b6b;
    --primary-cyan: #2a3d7c;
    /* Replaced cyan with lighter blue */
    --primary-cyan-light: #4c6ef5;
    /* Light blue accent */
    --primary-dark-light: #2a3d7c;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-dark-light) 0%, var(--primary-dark) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(26, 43, 107, 0.98) 0%, rgba(42, 61, 124, 0.95) 100%);
    --gradient-text-dark-bg: linear-gradient(135deg, #ffffff 0%, #60a5fa 100%);
    --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);

    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Success/Warning/Error */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(26, 43, 107, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Brighter gradient for dark backgrounds */
.hero .gradient-text,
.risk-scanner .gradient-text {
    background: var(--gradient-text-dark-bg);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Text Highlighting Utilities */
.text-highlight-red {
    color: #ff3333 !important;
    /* Bright Red for dark background */
    display: block;
    /* Stack on mobile/desktop */
}

.text-highlight-white {
    color: var(--white);
    display: block;
}

.text-green {
    color: #10b981;
    /* Green color */
}

@media (min-width: 768px) {

    .text-highlight-red,
    .text-highlight-white {
        display: inline-block;
        margin-right: 0.2em;
    }
}

/* Buttons */
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 0.75rem 1.5rem;
    /* Smaller padding */
    font-family: var(--font-family);
    font-size: 0.95rem;
    /* Slightly smaller font */
    font-weight: 600;
    border-radius: 50px;
    /* Fully rounded pill shape */
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    /* Reduced from very large padding */
    font-size: 1rem;
    /* Slightly smaller */
}

.btn-full {
    width: 100%;
}

.btn-arrow {
    transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* Main App Container */
.app-container {
    margin: 20px;
    border-radius: 40px;
    background: #0f172a;
    /* Fallback */
    position: relative;
    z-index: 10;
    /* Use clip-path to round top/sides but allow bottom overflow for the image */
    clip-path: inset(0 0 -100vh 0 round 40px);
    /* Fallback for browsers without clip-path round support: */
    border-radius: 40px;
}

/* Background Image with Blur & Glassmorphism */
.app-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.95)),
        url('images/hero-bg-glass.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(8px);
    transform: scale(1.1);
    /* Prevent blur edges showing */
    z-index: -1;
    border-radius: 40px;
    /* added to match parent since overflow is visible */
}

/* Header within Container */
.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    padding-top: 2px;
    /* Minimal top padding */
}

.header.scrolled {
    background: rgba(26, 43, 107, 0.9);
    backdrop-filter: blur(10px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo img {
    height: 65px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-2xl);
}

.nav-links a {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    /* White text for dark bg */
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--white);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-cta {
    padding: var(--spacing-sm) var(--spacing-lg);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* Center content vertically */
    padding: 90px 0 0;
    background: transparent;
    /* Removed overflow: hidden */
}

/* Hero Content - Centered */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    z-index: 10;
    text-align: center;
}

.hero-text-centered {
    text-align: center;
    max-width: 900px;
    margin-bottom: var(--spacing-2xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(0);
    /* Center alignment */
    position: relative;
    z-index: 10;
}



/* Centered Image Container - Bottom Aligned */
.hero-image-container-centered {
    position: absolute;
    /* Absolute within the relative hero section */
    bottom: -550px;
    /* Push image even further down to appear at the very bottom */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    /* Wide but responsive */
    max-width: 1200px;
    z-index: 2;
    perspective: 1000px;
    animation: slideUpFade 1s ease-out 0.5s both;
    display: flex;
    /* Enable flexbox */
    justify-content: center;
    /* Center image horizontally */
    align-items: flex-end;
    /* Align image to bottom */
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(100px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Navigation Centering */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Ensure links stay centered if possible - simple flex approach */
.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.hero-floating-img {
    max-width: 100%;
    /* Prevent upscaling */
    width: auto;
    /* Use natural width */
    height: auto;
    border-radius: var(--radius-2xl);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateZ(0);
    /* Hardware accel for smooth move */
    animation: floating 6s ease-in-out infinite;
    transition: transform 0.5s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.hero-image-container-centered:hover .hero-floating-img {
    transform: scale(1.02);
}

@keyframes floating {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}

.hero-trust-text {
    font-size: 1rem;
    color: #10b981;
    /* Green success color */
    font-weight: 700;
    margin-bottom: var(--spacing-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Hide on mobile standard */
        position: static;
        transform: none;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }
}

.badge-icon {
    font-size: 1.25rem;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    /* Smaller title */
    font-weight: 800;
    color: var(--white);
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--primary-cyan-light) 0%, var(--primary-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto var(--spacing-2xl);
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--white);
    font-weight: 500;
}

.feature-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--primary-dark);
}

.hero-cta {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}



/* Carriers Section */
.carriers {
    background: var(--gray-50);
    padding: var(--spacing-2xl) 0;
    border-bottom: 1px solid var(--gray-100);
    overflow: hidden;
    margin-top: 540px;
    /* Push down to clear the hero image */
}

.carriers-label {
    text-align: center;
    color: var(--gray-500);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-lg);
}

/* Carousel Styles - FIXED FOR SMOOTH LOOPING */
.carriers-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: var(--spacing-xl) 0;
}

.carriers-carousel::before,
.carriers-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.carriers-carousel::before {
    left: 0;
    background: linear-gradient(to right, var(--gray-50) 0%, transparent 100%);
}

.carriers-carousel::after {
    right: 0;
    background: linear-gradient(to left, var(--gray-50) 0%, transparent 100%);
}

.carriers-track {
    display: flex;
    align-items: center;
    gap: 60px;
    animation: scroll 60s linear infinite;
    width: max-content;
    will-change: transform;
}

.carriers-track:hover {
    animation-play-state: paused;
}

.carrier-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    padding: 0 20px;
    filter: grayscale(0%);
    opacity: 0.8;
    transition: all var(--transition-normal);
}

.carrier-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

.carrier-logo img {
    max-height: 60px;
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* LTR scroll animation (default) */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* RTL scroll animation */
@keyframes scroll-rtl {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(50%);
    }
}

/* Apply RTL animation for Arabic pages */
[dir="rtl"] .carriers-track {
    animation: scroll-rtl 40s linear infinite;
}

/* Section Styles */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-3xl);
}

.section-badge {
    display: inline-block;
    background: rgba(61, 217, 235, 0.1);
    color: var(--primary-dark);
    padding: var(--spacing-xs) var(--spacing-lg);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    color: var(--gray-500);
    font-size: 1.125rem;
}

/* Pricing Section */
.pricing {
    padding: var(--spacing-4xl) 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
}

.pricing-single-card {
    width: 100%;
}

.pricing-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-form-container {
    background: var(--white);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-100);
}

.pricing-form-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.pricing-form-header h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.pricing-form-header p {
    color: var(--gray-500);
}

/* Responsive Pricing Layout */
@media (max-width: 968px) {
    .pricing-layout {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}

.pricing-single-card .pricing-card {
    border: 2px solid var(--primary-cyan);
    box-shadow: var(--shadow-glow);
}

.pricing-single-card .pricing-card:hover {
    transform: translateY(-4px);
}

/* Pricing Tabs */
.pricing-tabs {
    display: flex;
    background: var(--gray-100);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xs);
    margin-bottom: var(--spacing-xl);
}

.pricing-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: var(--spacing-md) var(--spacing-lg);
    background: transparent;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: var(--font-family);
}

.pricing-tab:hover {
    background: rgba(255, 255, 255, 0.5);
}

.pricing-tab.active {
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.pricing-tab .tab-count {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-400);
    transition: color var(--transition-normal);
}

.pricing-tab.active .tab-count {
    color: var(--primary-dark);
}

.pricing-tab .tab-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-tab.active .tab-label {
    color: var(--primary-cyan);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-2xl);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-normal);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.popular {
    border: 2px solid var(--primary-cyan);
    box-shadow: var(--shadow-glow);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-lg);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-header {
    text-align: center;
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: var(--spacing-xl);
}

.pricing-websites {
    display: inline-block;
    background: var(--gray-100);
    color: var(--gray-700);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.pricing-amount .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.pricing-amount .currency {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.pricing-amount .period {
    font-size: 1rem;
    color: var(--gray-500);
}

.pricing-savings {
    display: block;
    color: var(--success);
    font-size: 0.875rem;
    font-weight: 500;
}

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.pricing-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    font-size: 0.9375rem;
    color: var(--gray-600);
}

.pricing-feature .check-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    margin-top: 2px;
}

/* Features Section */
.features {
    padding: var(--spacing-4xl) 0;
    background: var(--white);
}

.features-alternating {
    display: flex;
    flex-direction: column;
    gap: 120px;
    padding: var(--spacing-4xl) 0;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 80px;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-image-wrapper {
    flex: 1;
    position: relative;
}

.feature-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-content {
    flex: 1;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(61, 217, 235, 0.1);
    border-radius: var(--radius-xl);
    font-size: 1.75rem;
    margin-bottom: var(--spacing-lg);
}

.feature-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--gray-900);
}

.feature-description {
    color: var(--gray-500);
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Results Section */
/* Results Section */
.results {
    padding: var(--spacing-4xl) 0;
    background: #0f172a;
    /* Explicit dark background for contrast */
    position: relative;
    z-index: 5;
}

.results .section-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.results .section-title {
    color: var(--white);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-xl);
    perspective: 1000px;
    /* Setup for 3D */
}

.result-card {
    text-align: center;
    padding: var(--spacing-2xl);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: var(--radius-2xl);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);

    /* 3D Effect */
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.result-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border-color: rgba(255, 255, 255, 0.2);
}

.result-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #10b981;
    /* Green */
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.result-text {
    color: rgba(255, 255, 255, 0.9);
    /* Increased opacity */
    font-size: 1.1rem;
    font-weight: 500;
}

/* Trial Form Section */
.trial-form-section {
    padding: var(--spacing-4xl) 0;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.form-content {
    padding-right: var(--spacing-2xl);
}

.form-content .section-badge {
    margin-bottom: var(--spacing-md);
}

.form-content .section-title {
    text-align: left;
    margin-bottom: var(--spacing-md);
}

.form-content .section-subtitle {
    text-align: left;
    margin-bottom: var(--spacing-2xl);
}

.trial-benefits {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.trial-benefits li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--gray-600);
}

.benefit-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
}

.trial-form {
    width: 100%;
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: var(--spacing-sm);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    font-family: var(--font-family);
    font-size: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 0 3px rgba(61, 217, 235, 0.1);
    background: var(--white);
}

.form-group input::placeholder {
    color: var(--gray-400);
}

/* Footer */
.footer {
    background: var(--white);
    padding: var(--spacing-4xl) 0 var(--spacing-xl);
    color: var(--gray-800);
    border-top: 1px solid var(--gray-100);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: var(--spacing-3xl);
    padding-bottom: var(--spacing-2xl);
    border-bottom: 1px solid var(--gray-200);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    height: 70px;
    margin-bottom: var(--spacing-lg);
    /* Logo is dark naturally, no filter needed */
}

.footer-social {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    color: var(--primary-dark);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-cyan);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-tagline {
    color: var(--gray-500);
    font-size: 0.9375rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.footer-column h4 {
    color: var(--primary-dark);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-lg);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-column a {
    color: var(--gray-600);
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--primary-cyan);
}

.footer-bottom {
    padding-top: var(--spacing-xl);
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-400);
    font-size: 0.875rem;
}


/* ==========================================
   FAQ Section
   ========================================== */
.faq {
    padding: var(--spacing-4xl) 0;
    background: var(--gray-50);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: box-shadow var(--transition-fast);
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--spacing-lg) var(--spacing-xl);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-align: left;
    gap: var(--spacing-md);
}

[dir="rtl"] .faq-question {
    text-align: right;
}

.faq-question:hover {
    color: var(--primary-cyan);
}

.faq-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--primary-cyan);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer-inner {
    padding: 0 var(--spacing-xl) var(--spacing-lg);
    color: var(--gray-600);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes bounceDown {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: rotate(45deg) translateY(0);
    }

    40% {
        transform: rotate(45deg) translateY(10px);
    }

    60% {
        transform: rotate(45deg) translateY(5px);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .form-wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .form-content {
        padding-right: 0;
        text-align: center;
    }

    .form-content .section-title,
    .form-content .section-subtitle {
        text-align: center;
    }

    .trial-benefits {
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        margin: 0 auto;
    }

    .footer-links {
        justify-items: center;
    }
}

@media (max-width: 768px) {

    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
    }

    .hero-image-container-centered {
        display: none;
        /* Hide hero image on mobile */
    }

    /* Reset carriers margin since image is hidden */
    .carriers {
        margin-top: var(--spacing-xl);
    }

    .hero-scroll-indicator {
        display: none;
    }

    /* Risk Scanner Mobile */
    .scanner-slide,
    .scanner-slide.reverse {
        flex-direction: column;
        gap: var(--spacing-xl);
        text-align: center;
    }

    .scanner-content {
        align-items: center;
    }

    .scanner-content h3 {
        font-size: 1.75rem;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .features-alternating {
        gap: var(--spacing-3xl);
    }

    .feature-row,
    .feature-row.reverse {
        flex-direction: column;
        gap: var(--spacing-lg);
        text-align: center;
    }

    .feature-content {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .app-container {
        margin: 15px;
        border-radius: 30px;
        clip-path: inset(0 0 -100vh 0 round 30px);
    }

    .app-container::before {
        border-radius: 30px;
    }

    .pricing-form-container {
        padding: var(--spacing-xl);
    }

    .pricing-tabs {
        gap: var(--spacing-xs);
    }

    .pricing-tab {
        padding: var(--spacing-sm) var(--spacing-md);
    }
}

@media (max-width: 480px) {
    html, body {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }

    .container {
        padding: 0 var(--spacing-md);
        max-width: 100%;
    }

    .app-container {
        margin: 0;
        border-radius: 0;
        clip-path: none;
        width: 100%;
        max-width: 100%;
        position: relative;
        left: 0;
        right: 0;
    }

    .app-container::before {
        border-radius: 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .pricing-card {
        padding: var(--spacing-xl);
    }

    .pricing-amount .price {
        font-size: 2.5rem;
    }

    .pricing-form-container {
        padding: var(--spacing-lg);
    }

    .pricing-tabs {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .pricing-tab .tab-count {
        font-size: 1.25rem;
    }

    .result-number {
        font-size: 2.5rem;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .carriers-list {
        flex-direction: column;
        gap: var(--spacing-md);
    }
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: all var(--transition-normal);
    /* Subtle pulse instead of wobble */
    animation: pulse-green 2s infinite;
}

.floating-whatsapp:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
    animation: none;
}

.floating-whatsapp svg {
    width: 35px;
    height: 35px;
    fill: currentColor;
    /* Visual centering adjustment for the tail */
    transform: translateX(1px) translateY(-1px);
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
        transform: scale(1);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
        transform: scale(1);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
        transform: scale(1);
    }
}

/* Risk Scanner Section */
.risk-scanner {
    background: var(--primary-dark);
    color: var(--white);
    padding: var(--spacing-4xl) 0;
    overflow: hidden;
}

.risk-scanner .section-title,
.risk-scanner .section-subtitle {
    color: var(--white);
}

.risk-scanner .section-subtitle {
    opacity: 0.9;
}

.scanner-slides-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4xl);
    max-width: 1200px;
    margin: 0 auto;
}

.scanner-slide {
    display: flex;
    align-items: center;
    gap: var(--spacing-4xl);
    animation: fadeIn 0.5s ease-out;
}

/* Reverse layout for alternating slides */
.scanner-slide.reverse {
    flex-direction: row-reverse;
}

.scanner-image-wrapper {
    flex: 1;
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    cursor: zoom-in;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform var(--transition-normal);
    background: rgba(255, 255, 255, 0.05);
}

.scanner-image-wrapper:hover {
    transform: scale(1.02);
}

.scanner-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.expand-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-normal);
}

.scanner-image-wrapper:hover .expand-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.scanner-content {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.scanner-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-sm);
}

.scanner-content h3 {
    font-size: 2.25rem;
    margin-bottom: var(--spacing-md);
    color: var(--white);
    font-weight: 700;
    line-height: 1.2;
}

.scanner-content p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10001;
}

.close-lightbox:hover {
    color: var(--primary-cyan);
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {

    .scanner-slide,
    .scanner-slide.reverse {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-2xl);
    }

    .scanner-content {
        text-align: center;
    }

    .scanner-content h3 {
        font-size: 1.75rem;
    }

    .scanner-image-wrapper {
        width: 100%;
    }

    .scanner-slides-container {
        gap: var(--spacing-3xl);
    }
}

/* Robust Mobile Menu Styles */
@media (max-width: 768px) {
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        padding: var(--spacing-lg);
        border-radius: 0 0 var(--radius-xl) var(--radius-xl);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        z-index: 1001;
        gap: var(--spacing-md);
        text-align: center;
    }

    .nav-links.active a {
        display: block;
        padding: 10px;
        font-size: 1.1rem;
    }

    .mobile-menu-toggle {
        display: flex;
        /* Ensure toggle is visible */
        z-index: 1002;
    }

    .mobile-menu-toggle span {
        background: var(--white);
        /* Ensure contrast on dark bg */
    }
}

/* ==========================================
   RTL Support Overrides
   ========================================== */

/* Button arrow direction */
[dir="rtl"] .btn:hover .btn-arrow {
    transform: scaleX(-1) translateX(4px);
}

[dir="rtl"] .btn-arrow {
    transform: scaleX(-1);
}

/* Text highlight spacing */
@media (min-width: 768px) {
    [dir="rtl"] .text-highlight-red,
    [dir="rtl"] .text-highlight-white {
        margin-right: 0;
        margin-left: 0.2em;
    }
}

/* Form content alignment */
[dir="rtl"] .form-content {
    padding-right: 0;
    padding-left: var(--spacing-2xl);
}

[dir="rtl"] .form-content .section-title,
[dir="rtl"] .form-content .section-subtitle {
    text-align: right;
}

/* Scanner content alignment */
[dir="rtl"] .scanner-content {
    text-align: right;
}

/* Floating WhatsApp button */
[dir="rtl"] .floating-whatsapp {
    right: auto;
    left: 30px;
}

/* Lightbox close button */
[dir="rtl"] .close-lightbox {
    right: auto;
    left: 30px;
}

/* ==========================================
   Language Switcher
   ========================================== */
.lang-switcher {
    position: relative;
    z-index: 1010;
}

.lang-switcher-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
}

.lang-switcher-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.lang-switcher-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.lang-chevron {
    width: 12px !important;
    height: 12px !important;
    transition: transform var(--transition-fast);
}

.lang-switcher.open .lang-chevron {
    transform: rotate(180deg);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    min-width: 160px;
    animation: fadeIn 0.2s ease;
}

[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

.lang-switcher.open .lang-dropdown {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--gray-700);
    font-size: 0.875rem;
    font-weight: 500;
    transition: background var(--transition-fast);
    text-decoration: none;
}

.lang-option:hover {
    background: var(--gray-50);
    color: var(--primary-dark);
}

.lang-option.active {
    background: rgba(26, 43, 107, 0.05);
    color: var(--primary-dark);
    font-weight: 600;
}

.lang-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .nav-actions {
        gap: var(--spacing-sm);
    }

    .lang-switcher-btn span {
        display: none;
    }

    .lang-switcher-btn {
        padding: 6px 8px;
    }

    .lang-chevron {
        display: none !important;
    }

    .lang-dropdown {
        position: absolute;
        top: 80px;
        right: 15px;
        left: auto;
    }

    [dir="rtl"] .lang-dropdown {
        right: auto;
        left: 15px;
    }
}

/* ==========================================
   Video Lightbox
   ========================================== */
.video-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 100000;
    align-items: center;
    justify-content: center;
}

.video-lightbox.active {
    display: flex;
}

.video-lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 48px;
    cursor: pointer;
    z-index: 100001;
    line-height: 1;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.7;
}

.video-lightbox-close:hover {
    opacity: 1;
    transform: scale(1.15);
}

.video-lightbox-content {
    width: 90%;
    max-width: 1100px;
    aspect-ratio: 16 / 9;
    position: relative;
}

.video-lightbox-content iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .video-lightbox-content {
        width: 95%;
    }

    .video-lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 36px;
    }
}