/**
 * Mojeeb Landing Page - Airbnb-Inspired Design System
 * Ultra-minimal, white, spacious aesthetic
 */

/* ================================
   CSS RESET & BASE
   ================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Ultra Minimal */
    --color-white: #FFFFFF;
    --color-black: #222222;
    --color-grey-dark: #484848;
    --color-grey-mid: #717171;
    --color-grey-light: #B0B0B0;
    --color-grey-border: #DDDDDD;
    --color-grey-bg: #F7F7F7;

    /* Mojeeb Brand - Used SPARINGLY */
    --color-brand: #00d084;
    --color-brand-hover: #00b170;
    --color-brand-light: #E6F9F3;

    /* Spacing System - 8px base unit */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 48px;
    --space-6: 64px;
    --space-7: 96px;
    --space-8: 128px;

    /* Typography Scale */
    --font-size-xs: 14px;
    --font-size-sm: 16px;
    --font-size-base: 18px;
    --font-size-lg: 20px;
    --font-size-xl: 24px;
    --font-size-2xl: 32px;
    --font-size-3xl: 40px;
    --font-size-4xl: 48px;
    --font-size-5xl: 64px;

    /* Line Heights */
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.6;

    /* Font Families - Centralized */
    --font-family-base: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'Cairo', 'Tajawal', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-family-mono: 'SF Mono', 'Monaco', 'Menlo', 'Courier New', monospace;

    /* Shadows - Soft, Airbnb-style */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 2px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 6px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.16);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Max Widths */
    --max-width-content: 1280px;
    --max-width-text: 680px;

    /* Spring Animation */
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0.0, 0.2, 1);
    --duration-fast: 200ms;
    --duration-normal: 400ms;
    --duration-slow: 600ms;

    /* Layout Constants */
    --nav-height: 72px;

    /* Breakpoints (for use in JavaScript) */
    --breakpoint-mobile: 743px;
    --breakpoint-tablet: 949px;
    --breakpoint-desktop: 1440px;

    /* Counter Animation Durations (for use in JavaScript) */
    --counter-duration-response-time: 5400ms;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: var(--color-black);
    background-color: var(--color-white);
    overflow-x: hidden;
}

/* Hide content until translations are loaded to prevent flash */
body:not(.translations-loaded) {
    opacity: 0;
}

body.translations-loaded {
    opacity: 1;
    transition: opacity 0.2s ease-in;
}

/* Universal Font Inheritance */
*, *::before, *::after {
    font-family: inherit;
}

/* ================================
   TYPOGRAPHY
   ================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: var(--line-height-tight);
    color: var(--color-black);
    margin-bottom: var(--space-3);
}

h1 {
    font-size: var(--font-size-5xl);
    letter-spacing: -0.02em;
}

h2 {
    font-size: var(--font-size-4xl);
    letter-spacing: -0.01em;
}

h3 {
    font-size: var(--font-size-2xl);
}

p {
    color: var(--color-grey-dark);
    margin-bottom: var(--space-3);
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity var(--duration-fast) var(--ease-smooth);
}

a:hover {
    opacity: 0.7;
}

/* ================================
   LAYOUT CONTAINERS
   ================================ */

.container {
    max-width: var(--max-width-content);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.section {
    padding: var(--space-7) 0;
}

/* ================================
   NAVIGATION
   ================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--color-white);
    z-index: 1000;
    transition: box-shadow var(--duration-normal) var(--ease-smooth);
}

.nav.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 100%;
    max-width: var(--max-width-content);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.nav-logo {
    height: 22px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    justify-self: end;
}

/* Center Navigation (Desktop) */
.nav-center {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    justify-self: center;
}

.nav-center-link {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-grey-dark);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

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

.nav-link {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-grey-dark);
}

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

/* ================================
   BUTTONS
   ================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-spring);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-brand);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-brand-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: var(--space-4) var(--space-6);
    font-size: var(--font-size-lg);
    min-width: 240px;
}

/* ================================
   HERO SECTION
   ================================ */

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-7);
    align-items: center;
}

.hero-content {
    padding-right: var(--space-6);
}

.hero-title {
    font-size: var(--font-size-5xl);
    line-height: 1.1;
    margin-bottom: var(--space-4);
    text-align: left; /* Align to start (left for LTR) on desktop */
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-grey-dark);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-5);
    text-align: left; /* Align to start (left for LTR) on desktop */
}

.hero-cta {
    margin-top: var(--space-5);
}

.hero-trust-signals {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: var(--space-3);
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--font-size-xs);
    color: var(--color-grey-mid);
}

.check-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

/* ================================
   TRUSTED BY SECTION
   ================================ */

.trusted-by {
    text-align: center;
    padding: var(--space-7) 0;
}

.trusted-title {
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-grey-mid);
    margin-bottom: var(--space-5);
}

.trusted-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-6);
    flex-wrap: wrap;
}

.trusted-logo {
    height: 40px;
    width: auto;
    max-width: 140px;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all var(--duration-normal) var(--ease-smooth);
    object-fit: contain;
}

.trusted-logo:hover {
    opacity: 0.9;
    filter: grayscale(0%);
}

/* ================================
   FEATURES GRID
   ================================ */

.features {
    padding: var(--space-8) 0;
}

.section-header {
    text-align: center;
    max-width: var(--max-width-text);
    margin: 0 auto var(--space-7);
}

.section-title {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-3);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-grey-dark);
}

.feature-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.feature-description {
    color: var(--color-grey-dark);
    margin-bottom: var(--space-3);
}

/* ================================
   FEATURES HORIZONTAL (Airbnb-Inspired with Scroll)
   ================================ */

.features-scroll-wrapper {
    position: relative;
    margin-top: var(--space-7);
}

.features-horizontal {
    display: flex;
    gap: var(--space-5);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0 var(--space-5) 0;
}

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

.feature-item {
    flex: 0 0 320px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-grey-border);
    transition: all var(--duration-normal) var(--ease-spring);
    min-height: 450px;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-black);
}

/* Visual Section (Top) - 50% */
.feature-image-wrapper {
    flex: 1 1 50%;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
    min-height: 0;
}

.feature-image {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Chat Animation (Feature 1 Visual) */
.chat-animation {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: var(--space-5);
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.chat-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.4;
    width: fit-content;
    max-width: 80%;
}

/* Customer bubble (right, black) - Fades in first */
.customer-bubble {
    background: #000000;
    color: #ffffff;
    align-self: flex-end;
    border: 1px solid #000000;
    opacity: 0;
    animation: bubbleFadeIn 0.4s ease-out forwards;
}

@keyframes bubbleFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* AI bubble container - positions both bubbles in same location */
.ai-bubble-container {
    position: relative;
    align-self: flex-start;
    display: inline-block;
}

/* AI typing bubble - appears after 1s */
.ai-typing {
    background: #ffffff;
    color: #000000;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    width: 80px;
    height: 40px;
    box-sizing: border-box;
    opacity: 0;
    animation: bubbleFadeIn 0.4s ease-out 1s forwards;
    transition: opacity 0.3s ease-out;
}

/* Hide typing when response appears */
.ai-typing.hide {
    opacity: 0 !important;
    pointer-events: none;
}

/* AI response bubble - positioned over typing bubble */
.ai-response {
    background: #ffffff;
    color: #000000;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 12px 16px;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    display: inline-block;
    white-space: nowrap;
}

/* Typing indicator (3 animated dots) */
.typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #666666;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-4px);
    }
}

/* Response Time Counter (Feature 1) */
.feature-title .counter-value {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    font-variant-numeric: tabular-nums;
    letter-spacing: inherit;
    color: inherit;
    transition: color 0.6s ease-out;
}

.feature-title .counter-value.counting {
    color: #00D084;
}

.feature-title .counter-label {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    letter-spacing: inherit;
    transition: color 0.6s ease-out;
}

.feature-title .counter-label.counting {
    color: #00D084;
}

/* Content Section (Bottom) - 50% */
.feature-content {
    flex: 1 1 50%;
    padding: var(--space-3);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
}

.feature-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: var(--space-2);
    line-height: var(--line-height-tight);
}

.feature-description {
    font-size: var(--font-size-sm);
    color: var(--color-grey-dark);
    line-height: var(--line-height-relaxed);
}

/* Multi-Channel Hub Diagram (Feature 2) */
.hub-diagram {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Center Mojeeb Icon */
.hub-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    opacity: 0;
    animation: hubCenterFadeIn 0.6s ease-out 0.2s forwards;
}

.hub-icon-box {
    width: 80px;
    height: 80px;
    background: #FFFFFF;
    border: 1.5px solid #E5E5E5;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes hubCenterFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Platform Boxes */
.platform-box {
    position: absolute;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    opacity: 0;
    animation: boxFadeIn 0.5s ease-out forwards;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Platform Icons - SVG Styling */
.platform-icon {
    width: 24px;
    height: 24px;
    fill: #FFFFFF;
}

/* Box Positioning and Brand Colors */

/* Top-left box - WhatsApp */
.box-tl {
    top: 15%;
    left: 10%;
    background: #25D366;
    animation-delay: 0.4s;
}

/* Top-right box - Facebook */
.box-tr {
    top: 15%;
    right: 10%;
    background: #1877F2;
    animation-delay: 0.5s;
}

/* Middle-left box - Instagram */
.box-ml {
    top: 50%;
    left: 10%;
    background: #E4405F;
    animation-delay: 0.8s;
    animation-name: boxFadeInMiddle;
}

/* Middle-right box - TikTok */
.box-mr {
    top: 50%;
    right: 10%;
    background: #000000;
    animation-delay: 0.9s;
    animation-name: boxFadeInMiddle;
}

/* Bottom-left box - Website */
.box-bl {
    bottom: 15%;
    left: 10%;
    background: #525252;
    animation-delay: 0.6s;
}

/* Bottom-right box - Plus/Other */
.box-br {
    bottom: 15%;
    right: 10%;
    background: #00D084;
    animation-delay: 0.7s;
}

@keyframes boxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation for middle boxes (with vertical centering) */
@keyframes boxFadeInMiddle {
    from {
        opacity: 0;
        transform: translateY(-50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

/* Dotted connection lines */
.connection-lines {
    pointer-events: none;
    z-index: 1;
}

.dotted-line {
    opacity: 0;
    animation: lineFadeIn 0.8s ease-out forwards;
}

.line-1 { animation-delay: 1.0s; }
.line-2 { animation-delay: 1.1s; }
.line-3 { animation-delay: 1.2s; }
.line-4 { animation-delay: 1.3s; }
.line-5 { animation-delay: 1.4s; }
.line-6 { animation-delay: 1.5s; }

@keyframes lineFadeIn {
    from {
        opacity: 0;
        stroke-dashoffset: 100;
    }
    to {
        opacity: 1;
        stroke-dashoffset: 0;
    }
}

/* AI/Human Pill Badge Demo (Feature 3) */
.toggle-demo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: var(--space-3);
}

/* Big Toggle Switch */
.big-toggle {
    position: relative;
    width: 180px;
    height: 90px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.big-toggle:hover {
    transform: scale(1.05);
}

.big-toggle:active {
    transform: scale(0.98);
}

.big-toggle .toggle-track {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #E5E5E5;
    border-radius: 999px;
    transition: background 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.big-toggle[data-state="on"] .toggle-track {
    background: #00D084;
}

.big-toggle .toggle-knob {
    position: absolute;
    top: 9px;
    left: 9px;
    width: 72px;
    height: 72px;
    background: #FFFFFF url('logos/robot_off.jpg') center center / cover no-repeat;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.big-toggle[data-state="on"] .toggle-knob {
    transform: translateX(90px);
    background-image: url('logos/robot_on.jpg');
}

/* Leads Visual */
.leads-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: var(--space-3);
}

.leads-visual {
    width: 100%;
    max-width: 280px;
    height: auto;
    object-fit: contain;
}

/* Sentiment Conversation Card Stack */
.sentiment-card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: var(--space-3);
    gap: 16px;
}

.sentiment-conversation-card {
    position: relative;
    width: 100%;
    max-width: 280px;
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.4s ease;
}

.sentiment-avatar {
    width: 44px;
    height: 44px;
    background: #E5E5E5;
    border-radius: 50%;
    flex-shrink: 0;
}

.sentiment-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.sentiment-line-1,
.sentiment-line-2 {
    background: #E5E5E5;
    border-radius: 4px;
}

.sentiment-line-1 {
    width: 100%;
    height: 11px;
}

.sentiment-line-2 {
    width: 60%;
    height: 9px;
    background: #F5F5F5;
}

.sentiment-sad-face {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 22px;
    line-height: 1;
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s ease;
}

.sentiment-sad-face.visible {
    opacity: 1;
    transform: scale(1);
}

/* Animated state - show middle card prominence */
.sentiment-card-container.animated .sentiment-card-top,
.sentiment-card-container.animated .sentiment-card-bottom {
    opacity: 0.4;
    transform: scale(0.95);
}

.sentiment-card-container.animated .sentiment-card-top {
    transform: scale(0.95) translateY(-4px);
}

.sentiment-card-container.animated .sentiment-card-middle {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    z-index: 2;
}

.sentiment-card-container.animated .sentiment-card-bottom {
    transform: scale(0.95) translateY(4px);
}

/* Responsive - Horizontal Features */
@media (max-width: 743px) {
    .feature-item {
        flex: 0 0 280px;
    }

    .features-horizontal {
        gap: var(--space-4);
    }
}

@media (min-width: 744px) and (max-width: 949px) {
    .feature-item {
        flex: 0 0 300px;
    }

    .features-horizontal {
        gap: var(--space-4);
    }
}

@media (min-width: 950px) {
    /* Desktop - maintain same padding structure */
    .features-horizontal {
        /* Padding and margins already set in main rule */
    }
}

/* ================================
   PRICING SECTION
   ================================ */

.pricing {
    padding: var(--space-8) 0;
    background: var(--color-grey-bg);
    overflow: hidden;
}

/* Pricing Table Wrapper - Mobile: Horizontal Scroll */
.pricing-table-wrapper {
    margin-top: var(--space-7);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--color-grey-border) transparent;
}

.pricing-table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.pricing-table-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.pricing-table-wrapper::-webkit-scrollbar-thumb {
    background: var(--color-grey-border);
    border-radius: var(--radius-full);
}

/* Pricing Table */
.pricing-table {
    width: auto; /* Auto width based on content */
    border-collapse: separate;
    border-spacing: 0;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* Table Headers */
.pricing-table thead th {
    background: var(--color-white);
    padding: var(--space-3) var(--space-4);
    text-align: left;
    vertical-align: top;
    position: relative;
    white-space: nowrap;
    border-bottom: 1px solid var(--color-grey-border);
    border-left: 1px solid var(--color-grey-border);
}

.pricing-table thead th:first-child {
    border-left: none;
}

.pricing-table thead th.plan-column {
    width: auto; /* Dynamic width based on content */
}

/* Plan Names */
.plan-name {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--color-grey-dark);
    margin-bottom: var(--space-1);
}

/* Table Body Cells */
.pricing-table tbody td {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    vertical-align: middle;
    font-size: var(--font-size-sm);
    font-weight: 400;
    color: var(--color-grey-dark);
    line-height: 1.6;
    white-space: nowrap;
    border-left: 1px solid var(--color-grey-border);
}

.pricing-table tbody td:first-child {
    border-left: none;
}

.pricing-table tbody td.everything-in {
    font-weight: 500;
    color: var(--color-black);
    font-style: italic;
}

/* Price Row */
.pricing-table tbody tr.price-row td {
    padding: var(--space-5) var(--space-3);
}

.price-line {
    display: inline;
    white-space: nowrap;
}

.price {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-black);
    line-height: 1.2;
}

.period {
    font-size: var(--font-size-xs);
    font-weight: 400;
    color: var(--color-grey-mid);
    margin-left: 2px;
}

/* Mobile: Sticky First Column */
@media (max-width: 949px) {
    .pricing-table thead th:first-child,
    .pricing-table tbody td:first-child {
        position: sticky;
        left: 0;
        background: var(--color-white);
        z-index: 10;
    }
}

/* Desktop: Full Table Layout */
@media (min-width: 950px) {
    .pricing-table-wrapper {
        overflow-x: visible;
    }

    .pricing-table {
        min-width: 100%;
    }

    .pricing-table thead th.plan-column {
        min-width: auto;
        width: auto;
    }
}

/* Corporate Plan Notice */
.corporate-notice {
    margin-top: var(--space-6);
    text-align: center;
    font-size: var(--font-size-base);
    color: var(--color-grey-dark);
    line-height: 1.6;
}

.corporate-contact {
    font-weight: 700;
    color: var(--color-black);
    text-decoration: underline;
    cursor: pointer;
    transition: color var(--duration-normal) var(--ease-smooth);
}

.corporate-contact:hover {
    color: var(--color-brand);
}

/* ================================
   FOOTER
   ================================ */

.footer {
    padding: var(--space-7) 0 var(--space-5);
    border-top: 1px solid var(--color-grey-border);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-5);
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
}

.footer-link {
    font-size: var(--font-size-sm);
    color: var(--color-grey-mid);
}

.footer-link:hover {
    color: var(--color-black);
}

.footer-copyright {
    text-align: center;
    font-size: var(--font-size-xs);
    color: var(--color-grey-light);
}

/* ================================
   MOBILE STICKY CTA (Airbnb-style)
   ================================ */

.mobile-sticky-cta {
    display: none; /* Hidden by default, shown on mobile only */
    margin-top: var(--space-5);
    width: 100%;
}

.mobile-sticky-content {
    width: 100%;
}

.mobile-trust-signals {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.mobile-trust-signals .trust-item {
    font-size: 11px;
}

.mobile-trust-signals .check-icon {
    width: 14px;
    height: 14px;
}

.mobile-sticky-btn {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: var(--color-brand);
    color: var(--color-white);
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.mobile-sticky-btn:hover {
    background: var(--color-brand-hover);
    opacity: 1;
}

/* ================================
   MOBILE SCROLL CTA BUTTON
   ================================ */

.mobile-scroll-cta {
    position: fixed;
    top: 21px; /* Vertically center in 72px nav: (72-30)/2 = 21px */
    right: 90px; /* Bigger margin from burger menu */
    padding: 5px 10px;
    background: var(--color-brand);
    color: var(--color-white);
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    z-index: 1001; /* Above nav to be visible in nav bar */
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9);
    transition: all 0.3s ease;
    height: 30px; /* Match burger menu visual height */
    align-items: center;
    box-sizing: border-box;
    display: none; /* Hidden by default, shown on mobile only */
}

.mobile-scroll-cta.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.mobile-scroll-cta:hover {
    background: var(--color-brand-hover);
    transform: scale(1.02);
}

/* RTL positioning */
[dir="rtl"] .mobile-scroll-cta {
    right: auto;
    left: 90px;
}

/* Show on mobile only */
@media (max-width: 768px) {
    .mobile-scroll-cta {
        display: flex;
    }
}

/* ================================
   RESPONSIVE - Mobile First
   ================================ */

@media (max-width: 743px) {
    :root {
        --font-size-5xl: 40px;
        --font-size-4xl: 32px;
        --space-7: 64px;
        --space-8: 80px;
    }

    /* Show mobile sticky CTA */
    .mobile-sticky-cta {
        display: block;
    }

    /* Hide hero CTA and trust signals on mobile */
    .hero-cta {
        display: none !important;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .hero-content {
        padding-right: 0;
        text-align: center;
    }

    .nav-links {
        display: none;
    }
}

@media (min-width: 1440px) {
    .container {
        padding: 0 var(--space-6);
    }
}

/* ================================
   UTILITIES
   ================================ */

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Focus Styles */
*:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 2px;
}

/* ============================================
   MOBILE BURGER MENU & DRAWER
   ============================================ */

/* Desktop/Mobile visibility helpers */
.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex;
    }

    /* Revert nav-container to flexbox on mobile */
    .nav-container {
        display: flex;
        justify-content: space-between;
    }
}

/* Burger Menu Container */
.burger-menu-container {
    position: relative;
}

/* Burger Menu Button */
.burger-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.burger-line {
    width: 24px;
    height: 2px;
    background-color: var(--color-black);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.burger-menu-btn.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu-btn.active .burger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.burger-menu-btn.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Compact Menu */
.mobile-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1000;
}

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

/* RTL Mobile Menu */
[dir="rtl"] .mobile-menu {
    right: auto;
    left: 0;
}

/* Menu Navigation */
.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    padding: 8px;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-black);
    text-decoration: none;
    background: none;
    border: none;
    border-radius: 8px;
    text-align: left;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.mobile-menu-link:hover {
    background-color: var(--color-grey-bg);
}

.mobile-menu-link svg {
    flex-shrink: 0;
}

.mobile-menu-link.mobile-signin {
    margin-top: 4px;
    padding-top: 16px;
    border-top: 1px solid var(--color-grey-border);
    color: var(--color-brand);
    font-weight: 600;
}

/* RTL Menu Navigation */
[dir="rtl"] .mobile-menu-link {
    text-align: right;
}

/* ============================================
   RTL SUPPORT
   ============================================ */
[dir="rtl"] {
    text-align: right;
}

/* Navigation RTL */
[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-link {
    margin-left: 0;
    margin-right: 24px;
}

/* Trusted Section RTL */
[dir="rtl"] .trusted-title {
    text-align: center; /* Keep trusted title centered in all languages */
}

/* Hero Section RTL */
[dir="rtl"] .hero-title,
[dir="rtl"] .hero-subtitle {
    text-align: right; /* Align to start (right for RTL) on desktop */
}

/* Hero Section - Mobile centering */
@media (max-width: 768px) {
    .hero-title,
    .hero-subtitle {
        text-align: center !important; /* Center on mobile regardless of language */
    }
}

[dir="rtl"] .hero-trust-signals {
    justify-content: flex-end;
}

[dir="rtl"] .trust-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .trust-item svg {
    margin-left: 6px;
    margin-right: 0;
}

/* Features Section RTL */
[dir="rtl"] .section-title,
[dir="rtl"] .section-subtitle {
    text-align: center; /* Keep section titles centered in all languages */
}

[dir="rtl"] .feature-title,
[dir="rtl"] .feature-description {
    text-align: right;
}

/* Pricing Section RTL */
[dir="rtl"] .pricing-table th,
[dir="rtl"] .pricing-table td {
    text-align: right;
}

/* Footer RTL */
[dir="rtl"] .footer-links {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-copyright {
    text-align: center; /* Keep copyright centered in all languages */
}

/* Mobile CTA RTL */
[dir="rtl"] .mobile-trust-signals {
    flex-direction: row-reverse;
}

/* Chat Demo RTL (Optional - for better Arabic UX) */
[dir="rtl"] .chat-bubble {
    text-align: right;
}

/* SVG Hero Chat Animation - RTL Support */
[dir="rtl"] .msg1-text-wrapper,
[dir="rtl"] .msg2-text-wrapper,
[dir="rtl"] .msg3-text-wrapper {
    direction: rtl !important;
    text-align: right !important;
}

/* Ensure emojis and icons stay inline */
[dir="rtl"] .msg2-text,
[dir="rtl"] .msg1-text,
[dir="rtl"] .msg3-text {
    unicode-bidi: plaintext;
}

/* Button Text RTL */
[dir="rtl"] .btn {
    text-align: center;
}

/* Ensure proper text direction for mixed content */
[dir="rtl"] .counter-value,
[dir="rtl"] .price {
    direction: ltr;
    display: inline-block;
}
