/* ==========================================================================
   Airbot — Core Design System & Global Styles
   
   TABLE OF CONTENTS
   ─────────────────────────────────────────────
   0.  CSS Custom Properties (Design Tokens)
   1.  Base Reset & Global Defaults
   2.  Typography Scale
   3.  Responsive Font Scaling
   4.  Header — Shared Structure
   5.  Header — Logo
   6.  Header — Desktop Navigation
   7.  Header — Right Side (Lang + CTA)
   8.  Header — Language Switcher
   9.  Header — CTA Button
   10. Header — Mobile Hamburger
   11. Header — Mobile Bubble Menu
   12. Header — Features Section (f-header) Dark Theme
   13. RTL (Right-to-Left) Support
   14. Pricing Page — Hero Background
   15. Pricing Page — Toggle
   16. Pricing Page — Plan Cards
   17. Pricing Page — Badges & Pills
   18. Pricing Page — Feature List & Table
   19. Pricing Page — FAQ Accordion
   20. Pricing Page — Value Proof Strip
   21. Scroll Reveal Animation
   22. Accessibility (Reduced Motion)
   ========================================================================== */


/* ==========================================================================
   0. CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
    /* ── Brand Colors ── */
    --indigo:           #6366f1;
    --indigo-hover:     #4f46e5;
    --indigo-dark:      #4338ca;
    --navy:             #0f172a;
    --navy-light:       #1e293b;

    /* ── Neutral Scale ── */
    --slate-50:         #f8fafc;
    --slate-100:        #f1f5f9;
    --slate-200:        #e2e8f0;
    --slate-400:        #94a3b8;
    --slate-600:        #475569;

    /* ── Glassmorphism ── */
    --glass-bg:         rgba(255, 255, 255, 0.95);
    --glass-border:     rgba(0, 0, 0, 0.07);
    --glass-shadow:     0 2px 16px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04);
}


/* ==========================================================================
   1. Base Reset & Global Defaults
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 100%; /* 16px base */
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--navy);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ==========================================================================
   2. Typography Scale
   ========================================================================== */

@media (max-width: 768px) {
    #hero h1 { font-size: 2.5rem; }
}

@media (max-width: 1023px) {
    #hero h1 { font-size: 2.5rem; }
}

@media (min-width: 1400px) {
    #hero h1 { font-size: 5.5rem; line-height: 1.02; }
    #hero p  { font-size: 1.25rem; max-width: 900px; }
}

@media (min-width: 1920px) {
    #hero h1 { font-size: 7rem; line-height: 1.01; }
    #hero p  { font-size: 1.4rem; max-width: 1100px; }
    #hero .container { max-width: 1600px; }

    .feature-slide h2    { font-size: 5.5rem; }
    .feature-slide p     { max-width: 680px; font-size: 1.25rem; }
    .feature-slide .grid { gap: 6rem; }
    .feature-slide svg   { width: 320px; height: 320px; }

    .proof-stat-val              { font-size: 3.5rem; }
    .proof-strip .container      { padding-top: 4rem; padding-bottom: 4rem; }
    .plan-card                   { padding: 2.5rem; }

    .pricing-hero-bg .container,
    #pricing .container,
    .proof-strip .container      { max-width: 1500px; }
}

@media (min-width: 2560px) {
    #hero h1 { font-size: 9rem; line-height: 1.0; }
    #hero p  { font-size: 1.6rem; max-width: 1400px; }
    #hero .container { max-width: 2000px; }

    .feature-slide h2    { font-size: 7rem; }
    .feature-slide p     { max-width: 860px; font-size: 1.4rem; }
    .feature-slide svg   { width: 420px; height: 420px; }

    .pricing-hero-bg .container,
    #pricing .container,
    .proof-strip .container { max-width: 1900px; }
}


/* ==========================================================================
   3. Responsive Font Scaling
   ========================================================================== */

@media screen and (max-width: 1600px) and (max-height: 900px) {
    html { font-size: 90%; }
}

@media screen and (max-width: 1440px) {
    html { font-size: 85%; }
}

@media screen and (max-width: 1280px) {
    html { font-size: 80%; }
}


/* ==========================================================================
}


/* ==========================================================================
   12. Header — Features Section (f-header) Dark Theme
       !! Do not modify — controlled by features GSAP animation !!
   ========================================================================== */

#f-header-pill {
    background: #010106;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

#f-header-pill .airbot-nav-item,
#f-header-pill #f-logo-text {
    color: white;
}

#f-mobile-menu {
    background: #010106;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Post-feature: header stays fixed and scrolls with page */
#features-header.is-post-feature {
    position: fixed;
    top: 16px;
    left: 0;
    right: 0;
    pointer-events: auto;
    opacity: 1;
}

/* Post-feature nav inside pill: reset absolute positioning */
@media (min-width: 1024px) {
    #f-header-pill.is-light #f-header-center {
        position: static;
        transform: none;
        display: flex !important;
        align-items: center;
    }
}

#f-header-pill.is-light #f-header-nav {
    position: static;
    transform: none;
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
}

#f-header-nav.f-nav-override {
    position: static;
    transform: none;
    left: auto;
}

#f-header-pill.is-light .airbot-nav-item,
#f-header-pill.is-light .airbot-nav-item span,
#f-header-pill.is-light #f-logo-text,
#f-header-pill.is-light #f-header-right a:first-child {
    color: var(--navy) !important;
}

#f-header-pill.is-light .airbot-nav-item:hover,
#f-header-pill.is-light .airbot-nav-item:hover span {
    color: var(--indigo) !important;
}

#f-header-pill.is-light .airbot-nav-icon {
    display: inline-flex !important;
    align-items: center;
    opacity: 0.5;
    flex-shrink: 0;
    position: static;
    vertical-align: unset;
    color: inherit !important;
    stroke: currentColor !important;
}

#f-header-pill.is-light .airbot-nav-item {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
}


/* ==========================================================================
   13. RTL (Right-to-Left) Support
   ========================================================================== */

html[dir="rtl"] body {
    font-family: 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
}

html[dir="rtl"] [data-i18n],
html[dir="rtl"] .font-display,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
    font-family: 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
    letter-spacing: normal !important;
}

/* Navigation — Removed (Now self-contained) */

/* Mobile bubble menu — Removed (Now self-contained) */

/* Flip directional icons in RTL — Removed (Now self-contained) */

/* Fix divide lines in RTL for Proof Strip */
html[dir="rtl"] .md\:divide-x > :not([hidden]) ~ :not([hidden]) {
    border-right-width: 1px;
    border-left-width: 0;
}

/* Pricing badge — flip corner in RTL */
html[dir="rtl"] .pricing-card-badge {
    right: auto;
    left: 0;
    border-radius: 0 0.75rem 0 1rem;
}

html[dir="rtl"] .pricing-toggle-wrapper {
    flex-direction: row;
}


/* ==========================================================================
   14. Pricing Page — Hero Background
   ========================================================================== */

.pricing-hero-bg {
    position: relative;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99, 102, 241, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 85% 30%, rgba(139, 92, 246, 0.07) 0%, transparent 60%),
        #fafafa;
}

.pricing-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(99, 102, 241, 0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}


/* ==========================================================================
   15. Pricing Page — Toggle
   ========================================================================== */

.pricing-toggle-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    border-radius: 9999px;
}

.pricing-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 700;
    color: var(--slate-400);
    border: none;
    background: transparent;
    cursor: pointer;
    transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

@media (min-width: 400px) {
    .pricing-toggle-btn {
        min-width: 120px;
        padding: 8px 24px;
    }
}

.pricing-toggle-btn:hover {
    color: var(--slate-600);
}

.pricing-toggle-btn.toggle-active {
    background: white;
    color: var(--navy);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.pricing-save-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    margin-left: 4px;
    background: var(--indigo);
    color: white;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.pricing-toggle-btn.toggle-active .pricing-save-badge {
    background: white;
    color: var(--indigo);
}

.pricing-toggle-btn:not(.toggle-active) .pricing-save-badge {
    background: var(--slate-200);
    color: var(--slate-600);
    box-shadow: none;
}


/* ==========================================================================
   16. Pricing Page — Plan Cards
   ========================================================================== */

.plan-card {
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.10);
}

.plan-card-popular {
    box-shadow: 0 0 0 2px var(--indigo), 0 8px 32px rgba(99, 102, 241, 0.22);
}

.plan-card-dark {
    background: linear-gradient(145deg, var(--navy), var(--navy-light));
    color: white;
}


/* ==========================================================================
   17. Pricing Page — Badges & Pills
   ========================================================================== */

.plan-badge {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 4px 14px;
    border-radius: 9999px;
    text-transform: uppercase;
}

.popular-badge {
    background: linear-gradient(135deg, var(--indigo), var(--indigo-hover));
    color: white;
}

.savings-badge {
    background: #ecfdf5;
    color: #059669;
    font-size: 10.5px;
}

.trial-badge {
    display: inline-flex;
    align-items: center;
    background: #ecfdf5;
    color: #059669;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.1);
}

.renews-free-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0fdf4;
    color: #166534;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid #dcfce7;
}


/* ==========================================================================
   18. Pricing Page — Feature List & Table
   ========================================================================== */

.feat-check { color: var(--indigo); }
.feat-plus  { color: var(--indigo-hover); }
.feat-dash  { color: var(--slate-400); }

.compare-row:nth-child(even) {
    background: var(--slate-50);
}


/* ==========================================================================
   19. Pricing Page — FAQ Accordion
   ========================================================================== */

.faq-item summary {
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--slate-100);
    color: var(--slate-600);
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
    background: var(--indigo);
    color: white;
}


/* ==========================================================================
   20. Pricing Page — Value Proof Strip
   ========================================================================== */

.proof-strip {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(99, 102, 241, 0.15), transparent 400px),
        radial-gradient(circle at bottom left, rgba(79, 70, 229, 0.1), transparent 400px),
        #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.proof-strip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
    opacity: 0.5;
    pointer-events: none;
}

.proof-stat-val {
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.proof-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 767px) {
    .proof-divider { border: none !important; }
}


/* ==========================================================================
   21. Scroll Reveal Animation
   ========================================================================== */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: none;
}


/* ==========================================================================
   22. Accessibility — Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .cta-hover-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 32px rgba(99, 102, 241, 0.55);
    }
}