/* ═══════════════════════════════════════════════════════════════════
   Alpha Team — Modern Visual Enhancements (2026 refresh)
   ────────────────────────────────────────────────────────────────────
   שכבת שדרוג ויזואלי שרצה על-גבי style.css הקיים.
   לא משנה HTML ולא שובר layout. להסרה: מספיק למחוק את שורת ה-link
   שמייבאת את הקובץ. כל השינויים reversible.
   ═══════════════════════════════════════════════════════════════════ */

/* ─── 1. פונט מודרני + משתני צבע חדשים ────────────────────────────── */

@import url("https://fonts.googleapis.com/css2?family=Assistant:wght@400;500;600;700;800&display=swap");

:root {
    /* פלטת צבעים חדשה */
    --mod-teal: #06b6d4;
    --mod-teal-light: #22d3ee;
    --mod-teal-dark: #0891b2;
    --mod-indigo: #4f46e5;
    --mod-indigo-light: #818cf8;
    --mod-violet: #7c3aed;
    --mod-pink: #ec4899;
    --mod-amber: #f59e0b;

    /* Gradients */
    --mod-grad-primary: linear-gradient(135deg, #1c2a4a 0%, #4f46e5 50%, #06b6d4 100%);
    --mod-grad-soft: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 50%, #ede9fe 100%);
    --mod-grad-accent: linear-gradient(135deg, #6c4ab6 0%, #06b6d4 100%);
    --mod-grad-warm: linear-gradient(135deg, #ff5722 0%, #ec4899 100%);
    --mod-grad-text: linear-gradient(135deg, #0f1a33 0%, #1e2a52 55%, #2d3a6b 100%);
    --mod-text-strong: #0f1a33;
    --mod-text-body: #1c2a4a;
    --mod-grad-hero-animated:
        linear-gradient(120deg,
            rgba(28, 42, 74, 0.92) 0%,
            rgba(79, 70, 229, 0.88) 30%,
            rgba(108, 74, 182, 0.88) 60%,
            rgba(6, 182, 212, 0.85) 100%);

    /* Shadows — משודרגים עם עומק */
    --mod-shadow-sm: 0 2px 8px rgba(28, 42, 74, 0.06), 0 1px 2px rgba(28, 42, 74, 0.04);
    --mod-shadow-md: 0 10px 30px rgba(28, 42, 74, 0.08), 0 4px 10px rgba(28, 42, 74, 0.06);
    --mod-shadow-lg: 0 20px 50px rgba(28, 42, 74, 0.12), 0 8px 20px rgba(28, 42, 74, 0.08);
    --mod-shadow-xl: 0 32px 64px rgba(28, 42, 74, 0.16), 0 16px 32px rgba(28, 42, 74, 0.1);
    --mod-shadow-glow: 0 0 40px rgba(79, 70, 229, 0.25), 0 0 80px rgba(6, 182, 212, 0.15);

    --mod-radius: 20px;
    --mod-radius-lg: 28px;
    --mod-radius-full: 999px;

    --mod-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --mod-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* פונט חדש + רקע בהיר לגוף (האתר המקורי השתמש ברקע כחול-אפור) */
body {
    font-family: "Assistant", "Heebo", -apple-system, system-ui, sans-serif;
    font-feature-settings: "kern", "liga", "calt", "ss01";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
    color: #1c2a4a;
}

/* לוודא שכל sections ושטחים ביניהם לבנים/בהירים */
main {
    background: transparent;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Assistant", "Rubik", "Heebo", sans-serif;
    letter-spacing: -0.01em;
    font-weight: 800;
}

/* ─── 2. Scroll Progress Bar ──────────────────────────────────────── */

body::before {
    content: "";
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 3px;
    background: var(--mod-grad-accent);
    transform-origin: right center;    /* RTL: התחלה מימין */
    transform: scaleX(0);
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@supports (animation-timeline: scroll()) {
    body::before {
        opacity: 1;
        animation: mod-scroll-progress linear;
        animation-timeline: scroll();
    }
    @keyframes mod-scroll-progress {
        to { transform: scaleX(1); }
    }
}

/* ─── 3. Header — Glassmorphism משודרג ────────────────────────────── */

.header::after {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: saturate(1.8) blur(20px) !important;
    -webkit-backdrop-filter: saturate(1.8) blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 8px 32px rgba(28, 42, 74, 0.06), 0 1px 0 rgba(255, 255, 255, 0.5) inset !important;
    transition: all 0.4s var(--mod-ease) !important;
}

.header.is-glass::after {
    opacity: 0.95 !important;
    background: rgba(255, 255, 255, 0.85) !important;
}

.header .nav a {
    position: relative;
    transition: color 0.3s var(--mod-ease);
}

.header .nav a::before {
    content: "";
    position: absolute;
    bottom: -4px;
    inset-inline-start: 50%;
    width: 0;
    height: 2px;
    background: var(--mod-grad-accent);
    border-radius: 2px;
    transform: translateX(50%);
    transition: width 0.3s var(--mod-ease);
}

[dir="rtl"] .header .nav a::before { transform: translateX(-50%); }

.header .nav a:hover::before { width: 80%; }

.brand__logo {
    transition: transform 0.4s var(--mod-ease-out);
}
.brand:hover .brand__logo {
    transform: rotate(-5deg) scale(1.05);
}

/* ─── 4. Hero — Gradient Animated + זוהר ─────────────────────────── */

.hero::before {
    background: var(--mod-grad-hero-animated) !important;
    background-size: 200% 200% !important;
    animation: mod-gradient-drift 15s ease-in-out infinite;
    z-index: 0 !important;
}

@keyframes mod-gradient-drift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero__grid {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border-radius: var(--mod-radius-lg) !important;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 40px 80px -20px rgba(28, 42, 74, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset,
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
    position: relative;
    overflow: hidden;
}

/* Light reflection על Hero card */
.hero__grid::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 0%, rgba(6, 182, 212, 0.1), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hero__grid > * { position: relative; z-index: 1; }

.hero h1 {
    color: var(--mod-text-strong) !important;
    background: none !important;
    -webkit-text-fill-color: var(--mod-text-strong) !important;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.hero h1 .accent,
.hero h1 strong {
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.kicker {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, rgba(108, 74, 182, 0.14), rgba(6, 182, 212, 0.14));
    border: 1px solid rgba(79, 70, 229, 0.35);
    border-radius: var(--mod-radius-full);
    color: #3730a3;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    backdrop-filter: blur(10px);
}

.hero__lead,
.hero__grid p {
    color: #334155 !important;
    font-weight: 500;
}

.hero__logo {
    filter: drop-shadow(0 20px 40px rgba(79, 70, 229, 0.25)) drop-shadow(0 8px 16px rgba(28, 42, 74, 0.15)) !important;
    animation: mod-float 6s ease-in-out infinite;
}

@keyframes mod-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(0.5deg); }
}

/* ─── 5. כותרות סקציה — gradient text ────────────────────────────── */

.section__title,
.about-us__content h2,
.about-ptt__content h2 {
    color: var(--mod-text-strong) !important;
    background: none !important;
    -webkit-text-fill-color: var(--mod-text-strong) !important;
    font-weight: 800;
    letter-spacing: -0.015em;
    position: relative;
    display: inline-block;
}

.section__head {
    flex-direction: column;
    gap: 12px !important;
}

.section__head::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: var(--mod-grad-accent);
    border-radius: 999px;
    opacity: 0.8;
}

/* ─── 6. כפתורים מודרניים עם Shine ──────────────────────────────── */

.btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: var(--mod-radius-full) !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
    padding: 0.9rem 1.6rem !important;
    transition: all 0.3s var(--mod-ease) !important;
}

.btn::after {
    content: "";
    position: absolute;
    top: 0;
    inset-inline-start: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 60%
    );
    transition: inset-inline-start 0.6s var(--mod-ease);
    pointer-events: none;
    z-index: 1;
}

.btn:hover::after { inset-inline-start: 100%; }

.btn--primary {
    background: var(--mod-grad-accent) !important;
    border: none !important;
    box-shadow:
        0 10px 30px rgba(108, 74, 182, 0.3),
        0 4px 12px rgba(6, 182, 212, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset !important;
}

.btn--primary:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow:
        0 20px 40px rgba(108, 74, 182, 0.4),
        0 8px 20px rgba(6, 182, 212, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset !important;
}

.btn--outline {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(10px);
    border: 2px solid transparent !important;
    background-image:
        linear-gradient(white, white),
        var(--mod-grad-accent) !important;
    background-origin: border-box !important;
    background-clip: padding-box, border-box !important;
    color: var(--mod-indigo) !important;
}

.btn--outline:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.2) !important;
}

.btn--tranzila {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
    border: none !important;
    box-shadow:
        0 10px 30px rgba(22, 163, 74, 0.35),
        0 4px 12px rgba(21, 128, 61, 0.25) !important;
}

.btn--tranzila:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow:
        0 20px 40px rgba(22, 163, 74, 0.45),
        0 8px 20px rgba(21, 128, 61, 0.3) !important;
}

/* ─── 7. כרטיסים — 3D lift + Gradient border ────────────────────── */

.card,
.industry,
.quote,
.faq__item,
.feature,
.map-aside,
.map-embed {
    border-radius: var(--mod-radius) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    box-shadow:
        0 4px 16px rgba(28, 42, 74, 0.05),
        0 1px 2px rgba(28, 42, 74, 0.03),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset !important;
    transition: transform 0.4s var(--mod-ease-out),
                box-shadow 0.4s var(--mod-ease-out),
                border-color 0.4s var(--mod-ease-out) !important;
    position: relative;
    overflow: hidden;
}

.card::before,
.industry::before,
.quote::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: var(--mod-grad-accent);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s var(--mod-ease);
    pointer-events: none;
    z-index: 2;
}

.card:hover,
.industry:hover,
.quote:hover,
.feature:hover {
    transform: translateY(-8px) !important;
    box-shadow:
        0 24px 48px rgba(28, 42, 74, 0.12),
        0 12px 24px rgba(79, 70, 229, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset !important;
    border-color: transparent !important;
}

.card:hover::before,
.industry:hover::before,
.quote:hover::before {
    opacity: 1;
}

/* Card icon — glow ב-hover */
.card__icon {
    width: 48px !important;
    height: 48px !important;
    padding: 10px;
    background: linear-gradient(135deg, rgba(108, 74, 182, 0.12), rgba(6, 182, 212, 0.12));
    border-radius: 14px;
    transition: all 0.4s var(--mod-ease-out);
    color: var(--mod-indigo) !important;
}

.card:hover .card__icon {
    transform: scale(1.1) rotate(-5deg);
    background: var(--mod-grad-accent);
    color: white !important;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.35);
}

/* ─── 8. Industries — אפקט hover מודרני ─────────────────────────── */

.industry {
    position: relative;
    border: 1px solid rgba(233, 238, 245, 0.8) !important;
}

.industry img {
    transition: transform 0.6s var(--mod-ease-out), filter 0.4s ease;
    filter: saturate(0.9) brightness(0.95);
}

.industry:hover img {
    transform: scale(1.08);
    filter: saturate(1.15) brightness(1.02);
}

.industry::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(79, 70, 229, 0.15) 0%,
        transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.industry:hover::after { opacity: 1; }

.industry b {
    color: var(--mod-text-strong) !important;
    background: none !important;
    -webkit-text-fill-color: var(--mod-text-strong) !important;
    font-weight: 800 !important;
}

/* ─── 9. Section Dividers — גלי SVG עדינים ──────────────────────── */

.section--alt,
.section--card,
.about-ptt {
    position: relative;
}

.section--alt::before,
.section--card::before {
    content: "";
    position: absolute;
    top: -1px;
    inset-inline-start: 0;
    width: 100%;
    height: 60px;
    background: inherit;
    clip-path: polygon(0 100%, 100% 100%, 100% 40%, 0 0);
    pointer-events: none;
}

/* ─── 10. About-US, About-PTT — רקע מודרני ─────────────────────── */

.about-us,
.about-ptt,
.faq,
.map-section,
.section--card {
    background: linear-gradient(135deg,
        #f0f9ff 0%,
        #e8eefc 50%,
        #ede9fe 100%) !important;
    border: 1px solid rgba(226, 232, 240, 1);
    box-shadow:
        0 20px 40px -20px rgba(28, 42, 74, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.9) inset !important;
    border-radius: var(--mod-radius-lg) !important;
}

/* רקע דק של נקודות ב-why-us */
.section--card {
    background-image:
        radial-gradient(circle at 1px 1px, rgba(79, 70, 229, 0.08) 1px, transparent 0),
        linear-gradient(135deg, #f0f9ff 0%, #ede9fe 100%) !important;
    background-size: 24px 24px, 100% 100%;
}

/* טקסט קריא בתוך הסקשנים האלו */
.about-us__content,
.about-us__content p,
.about-us__content li,
.about-us__list li,
.about-ptt__content,
.about-ptt__content p,
.about-ptt__content li,
.faq__button,
.faq__panel,
.faq__panel p,
.section--card p,
.section--card li {
    color: #1c2a4a !important;
}

.about-us__content strong,
.about-us__content b,
.about-ptt__content strong,
.about-ptt__content b {
    color: #0f1a33 !important;
    font-weight: 800;
}

/* ─── 11. FAQ — accordion יפה יותר ──────────────────────────────── */

.faq__item {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(79, 70, 229, 0.08) !important;
    overflow: hidden;
    transition: all 0.3s var(--mod-ease);
}

.faq__item:hover {
    border-color: rgba(79, 70, 229, 0.2) !important;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.08) !important;
}

.faq__button {
    background: transparent !important;
    padding: 20px 24px !important;
    font-weight: 700 !important;
    transition: color 0.3s ease;
}

.faq__button:hover { color: var(--mod-indigo) !important; }

.faq__button[aria-expanded="true"] {
    color: var(--mod-indigo) !important;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(6, 182, 212, 0.05)) !important;
}

.faq__button::after {
    content: "+" !important;
    font-size: 1.5rem;
    font-weight: 300;
    width: 30px;
    height: 30px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(6, 182, 212, 0.1));
    color: var(--mod-indigo);
    transition: all 0.4s var(--mod-ease-out) !important;
}

.faq__button[aria-expanded="true"]::after {
    content: "+" !important;
    transform: rotate(45deg) !important;
    background: var(--mod-grad-accent);
    color: white;
}

.faq__panel {
    background: transparent !important;
}

/* ─── 12. Testimonials — highlight המלצות ───────────────────────── */

.quote {
    position: relative;
    padding: 28px !important;
}

.quote::after {
    content: """;
    position: absolute;
    top: -20px;
    inset-inline-end: 24px;
    font-size: 7rem;
    font-family: Georgia, serif;
    color: var(--mod-indigo);
    opacity: 0.12;
    line-height: 1;
    pointer-events: none;
    z-index: 0;
}

.quote p { position: relative; z-index: 1; }

.stars {
    font-size: 1.3rem !important;
    filter: drop-shadow(0 2px 4px rgba(251, 188, 5, 0.3));
}

/* ─── 13. CTA Band — גרדיאנט חזק ───────────────────────────────── */

.cta {
    background: var(--mod-grad-primary) !important;
    background-size: 200% 200% !important;
    animation: mod-gradient-drift 15s ease infinite;
    border-radius: var(--mod-radius-lg) !important;
    box-shadow:
        0 30px 60px -15px rgba(28, 42, 74, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: "";
    position: absolute;
    top: -50%;
    inset-inline-start: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
    pointer-events: none;
}

.cta h3 {
    color: white !important;
    background: none !important;
    -webkit-text-fill-color: white !important;
    position: relative;
    z-index: 1;
}

/* ─── 14. Footer — עמודות יפות ──────────────────────────────────── */

.footer {
    background: linear-gradient(180deg, #1c2a4a 0%, #0f172a 100%) !important;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 1px;
    background: var(--mod-grad-accent);
    opacity: 0.5;
}

/* ─── 15. Products page — כרטיסי מוצר מודרניים ──────────────────── */

.product-card {
    border-radius: var(--mod-radius-lg) !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 249, 255, 0.9) 100%) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 10px 40px rgba(28, 42, 74, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset !important;
    transition: all 0.5s var(--mod-ease-out) !important;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 4px;
    background: var(--mod-grad-accent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
}

.product-card:hover {
    transform: translateY(-12px) !important;
    box-shadow:
        0 40px 80px rgba(28, 42, 74, 0.15),
        0 20px 40px rgba(79, 70, 229, 0.1),
        0 0 0 1px rgba(255, 255, 255, 1) inset !important;
}

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

.product-card__title {
    color: var(--mod-text-strong) !important;
    background: none !important;
    -webkit-text-fill-color: var(--mod-text-strong) !important;
    font-weight: 800 !important;
    letter-spacing: -0.015em;
    border-bottom: 3px solid transparent;
    border-image: var(--mod-grad-accent) 1;
    padding-bottom: 6px;
    display: inline-block;
}

.product-card__desc {
    color: #334155 !important;
    font-weight: 500;
}

.product-card__specs li {
    position: relative;
    padding-inline-start: 1.5em;
    color: #1c2a4a;
    transition: color 0.2s ease;
}

.product-card__specs li::before {
    content: "" !important;
    position: absolute;
    inset-inline-start: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mod-grad-accent);
    box-shadow: 0 0 8px rgba(79, 70, 229, 0.4);
}

/* ─── 16. Consent checkbox — שדרוג ─────────────────────────────── */

.consent-row input[type="checkbox"] {
    border: 2px solid var(--mod-indigo) !important;
    border-radius: 8px !important;
    transition: all 0.3s var(--mod-ease) !important;
}

.consent-row input[type="checkbox"]:checked {
    background: var(--mod-grad-accent) !important;
    border-color: transparent !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* ─── 17. Scroll-to-top — כפתור מודרני ─────────────────────────── */

.scroll-to-top {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(79, 70, 229, 0.2) !important;
    box-shadow:
        0 10px 30px rgba(28, 42, 74, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset !important;
    width: 52px;
    height: 52px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    font-size: 24px !important;
    border-radius: 50% !important;
    transition: all 0.3s var(--mod-ease) !important;
}

.scroll-to-top:hover,
.scroll-to-top.active {
    background: var(--mod-grad-accent) !important;
    border-color: transparent !important;
    transform: translateY(-4px) scale(1.1) !important;
    box-shadow:
        0 20px 40px rgba(79, 70, 229, 0.35),
        0 10px 20px rgba(6, 182, 212, 0.25) !important;
}

/* ─── 18. Theme Toggle Button (Dark Mode) ──────────────────────── */

.mod-theme-toggle {
    position: fixed;
    top: 50%;
    inset-inline-end: 20px;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border: 1px solid rgba(79, 70, 229, 0.2);
    box-shadow:
        0 10px 30px rgba(28, 42, 74, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    cursor: pointer;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    transition: all 0.4s var(--mod-ease-out);
}

.mod-theme-toggle:hover {
    transform: translateY(-50%) scale(1.1) rotate(15deg);
    box-shadow:
        0 20px 40px rgba(79, 70, 229, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.mod-theme-toggle:focus-visible {
    outline: 3px solid var(--mod-teal);
    outline-offset: 4px;
}

/* ─── 19. Dark Mode ─────────────────────────────────────────────── */

[data-theme="dark"] {
    --color-bg-main: #0b1120;
    --color-bg-alt: #111827;
    --color-text-main: #e5e7eb;
    --color-text-secondary: #9ca3af;
}

[data-theme="dark"] body {
    background: #0b1120 !important;
    color: #e5e7eb;
}

[data-theme="dark"] .header::after {
    background: rgba(17, 24, 39, 0.85) !important;
    border-bottom-color: rgba(79, 70, 229, 0.25) !important;
}

[data-theme="dark"] .nav a { color: #cbd5e1 !important; }
[data-theme="dark"] .nav a:hover { color: #818cf8 !important; }

[data-theme="dark"] .hero__grid {
    background: rgba(17, 24, 39, 0.85) !important;
    border-color: rgba(79, 70, 229, 0.3);
    color: #e5e7eb;
}

[data-theme="dark"] .hero h1,
[data-theme="dark"] .section__title,
[data-theme="dark"] .about-us__content h2,
[data-theme="dark"] .about-ptt__content h2,
[data-theme="dark"] .product-card__title,
[data-theme="dark"] .industry b {
    background: linear-gradient(135deg, #818cf8 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .hero__lead,
[data-theme="dark"] .about-us__list li,
[data-theme="dark"] .about-ptt__content p,
[data-theme="dark"] .card p,
[data-theme="dark"] .industry small,
[data-theme="dark"] .faq__panel,
[data-theme="dark"] .quote p {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .card,
[data-theme="dark"] .industry,
[data-theme="dark"] .quote,
[data-theme="dark"] .faq__item,
[data-theme="dark"] .feature,
[data-theme="dark"] .map-aside,
[data-theme="dark"] .map-embed,
[data-theme="dark"] .product-card {
    background: rgba(17, 24, 39, 0.7) !important;
    border-color: rgba(79, 70, 229, 0.2) !important;
    color: #e5e7eb;
}

[data-theme="dark"] .about-us,
[data-theme="dark"] .about-ptt,
[data-theme="dark"] .faq,
[data-theme="dark"] .map-section,
[data-theme="dark"] .section--card {
    background: linear-gradient(135deg,
        rgba(17, 24, 39, 0.6) 0%,
        rgba(30, 27, 75, 0.4) 50%,
        rgba(17, 24, 39, 0.6) 100%) !important;
    border-color: rgba(79, 70, 229, 0.2);
}

[data-theme="dark"] .industries { background: #0b1120 !important; }
[data-theme="dark"] .industries__container { background: transparent !important; }

[data-theme="dark"] .btn--outline {
    background-image:
        linear-gradient(#111827, #111827),
        var(--mod-grad-accent) !important;
    color: #818cf8 !important;
}

[data-theme="dark"] .faq__button {
    color: #e5e7eb !important;
    background: transparent !important;
}

[data-theme="dark"] .mod-theme-toggle {
    background: rgba(17, 24, 39, 0.9);
    border-color: rgba(129, 140, 248, 0.3);
    color: #fbbf24;
}

[data-theme="dark"] .scroll-to-top {
    background: rgba(17, 24, 39, 0.9) !important;
    border-color: rgba(129, 140, 248, 0.3) !important;
    color: #e5e7eb !important;
}

[data-theme="dark"] .author-name { color: #e5e7eb !important; }
[data-theme="dark"] .author-role { color: #9ca3af !important; }

[data-theme="dark"] .chat-container,
[data-theme="dark"] .footer { background: #030712 !important; }

[data-theme="dark"] .kicker {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.15), rgba(34, 211, 238, 0.15));
    border-color: rgba(129, 140, 248, 0.3);
    color: #818cf8;
}

/* ─── 20. AOS animation upgrade ─────────────────────────────────── */

[data-aos] { transition-timing-function: var(--mod-ease-out) !important; }

/* ─── 21. Reduced Motion Respect ─────────────────────────────────── */

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

    .hero__logo { animation: none !important; }
    .hero::before { animation: none !important; }
    .cta { animation: none !important; }
}

/* ─── 22. Mobile tweaks ─────────────────────────────────────────── */

@media (max-width: 768px) {
    .mod-theme-toggle {
        top: auto;
        bottom: 150px;
        transform: none;
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .mod-theme-toggle:hover {
        transform: scale(1.1) rotate(15deg);
    }

    .hero__grid {
        padding: 2rem 1.5rem !important;
    }

    .btn { padding: 0.8rem 1.4rem !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   End of modern-enhancements.css
   ═══════════════════════════════════════════════════════════════════ */
