/* ═══════════════════════════════════
   SHARED SECTION UTILITIES
   (Override app.css defaults for the Home page layout)
═══════════════════════════════════ */
.section {
    padding: 96px 0;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--brand);
    background: var(--brand-light);
    border: 1px solid rgba(11,116,209,0.2);
    border-radius: 999px;
    padding: 5px 14px;
    margin-bottom: 20px;
}

.red-eyebrow {
    color: #dc2626 !important;
    background: rgba(220,38,38,0.07) !important;
    border-color: rgba(220,38,38,0.2) !important;
}

.section-title {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

    .section-title em {
        font-style: italic;
        color: var(--brand);
    }

.section-sub {
    font-size: 17px;
    color: var(--text-2);
    line-height: 1.75;
    max-width: 600px;
    margin: 0 auto 48px;
    text-align: center;
}

/* ═══════════════════════════════════
   HERO — two-column, left copy + right laptop
═══════════════════════════════════ */
.hero {
    position: relative;
    background: var(--bg);
    overflow: hidden;
    padding: 72px 0 80px;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.45;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 90% 100% at 100% 50%, black 30%, transparent 80%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 0.9fr 1.4fr;
    gap: 40px;
    align-items: center;
}

/* ── Left copy ── */
.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-light);
    border: 1px solid rgba(11,116,209,0.2);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: 0.8px;
    margin-bottom: 24px;
    animation: fadeUp 0.5s 0.05s ease both;
}

.hero-tag-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.35; }
}

.hero-h1 {
    font-size: clamp(30px, 4.2vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--text);
    margin-bottom: 8px;
    animation: fadeUp 0.5s 0.1s ease both;
}

    .hero-h1 em {
        font-style: italic;
        color: var(--brand);
    }

.hero-h1-accent {
    display: block;
    background: linear-gradient(100deg, var(--brand) 0%, #0ea5e9 55%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Active system badge (synced with carousel) ── */
.hero-system-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--brand-light);
    border: 1px solid rgba(11,116,209,0.22);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--brand);
    margin-bottom: 20px;
    animation: fadeUp 0.5s 0.06s ease both;
    transition: opacity 0.2s ease, background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.hero-system-badge.badge-fading { opacity: 0; }

.hero-system-badge[data-system="school"] {
    background: rgba(5,150,105,0.1);
    border-color: rgba(5,150,105,0.22);
    color: #059669;
}

.hero-system-badge[data-system="medical"] {
    background: rgba(8,145,178,0.1);
    border-color: rgba(8,145,178,0.22);
    color: #0891b2;
}

.hero-systems-line {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand);
    margin-bottom: 14px;
    animation: fadeUp 0.5s 0.15s ease both;
}

.hero-sub {
    font-size: 16px;
    font-weight: 600;
    color: var(--brand);
    margin-bottom: 24px;
    animation: fadeUp 0.5s 0.18s ease both;
}

.hero-checks {
    list-style: none;
    padding: 0;
    margin: 48px 0 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: fadeUp 0.5s 0.22s ease both;
}

    .hero-checks li {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 16px;
        font-weight: 600;
        color: var(--text);
    }

    .hero-checks i {
        color: var(--brand);
        font-size: 17px;
        flex-shrink: 0;
    }

.hero-cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    animation: fadeUp 0.5s 0.28s ease both;
}

.btn-primary-lg {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 28px;
    background: var(--brand);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(11,116,209,0.35);
    border: 1.5px solid transparent;
}

    .btn-primary-lg:hover {
        background: #fff;
        color: var(--brand);
        border-color: var(--brand);
        transform: translateY(-2px) scale(1.025);
        box-shadow: 0 10px 32px rgba(11,116,209,0.22);
    }

.btn-ghost-lg {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 22px;
    border: 1.5px solid var(--border);
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    background: var(--surface);
    transition: all 0.2s ease;
}

    .btn-ghost-lg:hover {
        border-color: var(--brand);
        color: var(--brand);
        background: var(--brand-light);
    }

.hero-note {
    font-size: 12px;
    color: var(--text-3);
    animation: fadeUp 0.5s 0.33s ease both;
}

/* ── Right: promotional video ── */
.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeUp 0.7s 0.2s ease both;
}

.hero-video-wrap {
    width: 100%;
    max-width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0a1628;
}

.hero-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* ── Laptop/desktop device mockup around the hero video (Home hero only) ── */
.home-hero-device {
    width: 100%;
    max-width: 100%;
}

.home-hero-device-bezel {
    position: relative;
    background: linear-gradient(180deg, #1e2b45 0%, #0d1728 100%);
    border-radius: 18px;
    padding: 14px 14px 18px;
    box-shadow: 0 24px 64px rgba(11, 116, 209, 0.2), 0 8px 24px rgba(0, 0, 0, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.home-hero-device-cam {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #060d1a;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
}

.home-hero-device-screen {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    overflow: hidden;
    background: #0a1628;
}

/* Base/chin below the screen, like a laptop's lower deck */
.home-hero-device-base {
    position: relative;
    height: 14px;
    margin: 0 -4px;
    background: linear-gradient(180deg, #263757 0%, #0f1a30 100%);
    border-radius: 0 0 9px 9px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.home-hero-device-base::after {
    content: "";
    position: absolute;
    left: -22px;
    right: -22px;
    bottom: -9px;
    height: 9px;
    background: linear-gradient(180deg, #1c2a46 0%, #0b1424 100%);
    clip-path: polygon(3% 0, 97% 0, 100% 100%, 0 100%);
    border-radius: 0 0 12px 12px;
}

.home-hero-device-base-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 4px;
    background: #0a1220;
    border-radius: 0 0 6px 6px;
}

/* Outer clip container — both laptop and phone frames live inside */
.device-showcase {
    width: 100%;
    max-width: 580px;
    height: 440px;
    overflow: hidden;
    filter: drop-shadow(0 24px 48px rgba(11,116,209,0.12)) drop-shadow(0 8px 16px rgba(0,0,0,0.1));
}

/* Inner laptop mockup */
.laptop-mockup {
    width: 100%;
}

/* Bezeled screen frame */
.laptop-screen-area {
    background: #1a2236;
    border-radius: 14px 14px 0 0;
    border: 9px solid #1a2236;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 10;
}

/* Track: 6 slides (desktop + mobile for each of 3 systems) */
.device-track {
    display: flex;
    width: 600%;
    height: 100%;
    transform: translateX(0);
    transition: transform 0.52s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.device-slide {
    width: 16.6667%;
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-sizing: border-box;
}

/* Shared mock UI inside each laptop slide */
.mock-slide-inner {
    display: flex;
    width: 100%;
    height: 100%;
}

.mock-sidebar {
    width: 22%;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.mock-logo {
    height: 20px;
    background: var(--brand-light);
    border-radius: 5px;
    margin-bottom: 12px;
}

.mock-nav-item {
    height: 24px;
    border-radius: 5px;
    background: var(--bg);
}

    .mock-nav-item.active {
        background: var(--brand-light);
        border-left: 3px solid var(--brand);
    }

.mock-content {
    flex: 1;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

.mock-header {
    height: 20px;
    background: var(--border);
    border-radius: 5px;
    width: 40%;
}

.mock-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.mock-kpi {
    height: 52px;
    border-radius: 7px;
    opacity: 0.75;
}

    .mock-kpi.blue   { background: linear-gradient(135deg, #0b74d1, #0ea5e9); }
    .mock-kpi.green  { background: linear-gradient(135deg, #059669, #34d399); }
    .mock-kpi.orange { background: linear-gradient(135deg, #d97706, #fbbf24); }
    .mock-kpi.purple { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
    .mock-kpi.teal   { background: linear-gradient(135deg, #0891b2, #22d3ee); }
    .mock-kpi.red    { background: linear-gradient(135deg, #dc2626, #f87171); }

.mock-chart {
    flex: 1;
    border-radius: 7px;
    background: var(--surface);
    border: 1px solid var(--border);
    min-height: 40px;
}

.mock-chart-alt   { background: linear-gradient(180deg, var(--brand-light) 0%, var(--surface) 100%); }
.mock-chart-green { background: linear-gradient(180deg, rgba(5,150,105,0.12) 0%, var(--surface) 100%); border: 1px solid var(--border); }
.mock-chart-teal  { background: linear-gradient(180deg, rgba(8,145,178,0.12) 0%, var(--surface) 100%); border: 1px solid var(--border); }

.mock-logo-green { background: rgba(5,150,105,0.15); }
.mock-logo-teal  { background: rgba(8,145,178,0.15); }

.mock-nav-item.active.mock-nav-green {
    background: rgba(5,150,105,0.12);
    border-left-color: #059669;
}

.mock-nav-item.active.mock-nav-teal {
    background: rgba(8,145,178,0.12);
    border-left-color: #0891b2;
}

.mock-table {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mock-row {
    height: 18px;
    border-radius: 4px;
    background: var(--border);
    opacity: 0.7;
}

    .mock-row.tall { height: 28px; }

/* Laptop chin + base */
.laptop-chin {
    height: 20px;
    background: linear-gradient(180deg, #d0d5dd 0%, #b8bec9 100%);
    border-radius: 0 0 4px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.laptop-notch {
    width: 60px;
    height: 8px;
    border-radius: 4px;
    background: rgba(0,0,0,0.12);
}

.laptop-base {
    height: 10px;
    background: linear-gradient(180deg, #b8bec9 0%, #9aa0ac 100%);
    border-radius: 0 0 6px 6px;
    margin: 0 12px;
}

.laptop-foot {
    height: 4px;
    background: #8a909c;
    border-radius: 0 0 8px 8px;
    margin: 0 24px;
}

/* System tab switcher below laptop */
.slide-tabs {
    display: flex;
    gap: 4px;
    margin-top: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4px;
    width: 100%;
    max-width: 380px;
}

.slide-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 10px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

    .slide-tab i {
        font-size: 12px;
        flex-shrink: 0;
    }

    .slide-tab:hover {
        color: var(--text);
        background: var(--bg);
    }

    .slide-tab.active {
        background: var(--brand);
        color: #fff;
        box-shadow: 0 2px 8px rgba(11,116,209,0.28);
    }

    /* Progress bar fills over the auto-advance interval */
    .slide-tab.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        height: 2px;
        width: 100%;
        background: rgba(255,255,255,0.38);
        transform: scaleX(0);
        transform-origin: left;
        animation: tabProgress 3.2s linear forwards;
    }

@keyframes tabProgress {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════
   TRUST STRIP
═══════════════════════════════════ */
.trust-strip {
    background: var(--brand);
    padding: 16px 0;
}

.trust-strip-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.trust-tagline {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    letter-spacing: 0.15px;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 600px) {
    .trust-tagline {
        font-size: 13px;
    }
}

/* ═══════════════════════════════════
   PROBLEM SECTION
═══════════════════════════════════ */
.problem-section {
    background: var(--surface);
    text-align: center;
    overflow: hidden;
}

.problem-header {
    max-width: 680px;
    margin: 0 auto 56px;
}

.problem-desc {
    font-size: 17px;
    color: var(--text-2);
    line-height: 1.75;
    margin-bottom: 16px;
}

.problem-cta-hint {
    font-size: 15px;
    color: var(--text-2);
}

    .problem-cta-hint strong {
        color: var(--text);
    }

.problem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 820px;
    margin: 0 auto;
}

.problem-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    border-radius: 14px;
    border: 1px solid rgba(220,38,38,0.15);
    background: rgba(220,38,38,0.03);
    text-align: left;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

    .problem-card:hover {
        border-color: rgba(220,38,38,0.35);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(220,38,38,0.07);
    }

.problem-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(220,38,38,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
    font-size: 18px;
    flex-shrink: 0;
}

.problem-card strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.problem-card p {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.55;
    margin: 0;
}

/* ─────────────────────────────────────────
   PROBLEM SECTION — scroll-reveal animations
───────────────────────────────────────── */

.reveal-scale {
    opacity: 0;
    transform: scale(0.95) translateY(12px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scale.is-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* ═══════════════════════════════════
   SERVICES SECTION
═══════════════════════════════════ */
.services-section {
    background: var(--bg);
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 980px;
    margin: 0 auto;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 28px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.3s ease;
}

    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 16px 48px rgba(11, 116, 209, 0.14);
        border-color: rgba(11, 116, 209, 0.3);
    }

.service-card-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: background 0.3s ease;
}

    .service-card:hover .service-card-icon {
        background: var(--brand);
    }

    .service-card-icon i {
        font-size: 28px;
        color: var(--brand);
        transition: color 0.3s ease;
    }

    .service-card:hover .service-card-icon i {
        color: #fff;
    }

.service-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.service-card-desc {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.7;
    margin: 0;
}

/* ═══════════════════════════════════
   WHY / KEY FEATURES SECTION
═══════════════════════════════════ */
.why-section {
    background: var(--surface);
    text-align: center;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 8px;
}

.why-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: left;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

    .why-card.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    .why-card:hover {
        border-color: var(--brand);
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(11,116,209,0.08);
    }

.why-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

    .why-card-icon i {
        font-size: 20px;
        color: var(--brand);
    }

.why-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.why-card p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.65;
    margin: 0;
}

/* ═══════════════════════════════════
   STEPS / HOW IT WORKS
═══════════════════════════════════ */
.steps-section {
    background: var(--bg);
    text-align: center;
}

.steps-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    text-align: left;
}

    .steps-list::before {
        content: '';
        position: absolute;
        left: 24px;
        top: 48px;
        bottom: 48px;
        width: 1px;
        background: linear-gradient(to bottom, var(--brand), transparent);
        opacity: 0.3;
    }

.step-item {
    display: flex;
    gap: 24px;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}

    .step-item:last-child {
        border-bottom: none;
    }

.step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px rgba(11,116,209,0.2);
}

.step-body {
    flex: 1;
    padding-top: 4px;
}

.step-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--brand);
    background: var(--brand-light);
    border-radius: 999px;
    padding: 3px 10px;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.step-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.step-body p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.65;
    margin-bottom: 14px;
}

.step-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

    .step-tags span {
        font-size: 12px;
        font-weight: 500;
        color: var(--text-2);
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 6px;
        padding: 3px 10px;
    }

/* ═══════════════════════════════════
   CTA SECTION
═══════════════════════════════════ */
.cta-section {
    position: relative;
    overflow: hidden;
    background: #080f1e;
    padding: 96px 0;
    text-align: center;
}

.cta-noise {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(11,116,209,0.25) 0%, transparent 70%);
    pointer-events: none;
}

.cta-inner {
    position: relative;
    z-index: 1;
}

.cta-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #60a5fa;
    background: rgba(96,165,250,0.1);
    border: 1px solid rgba(96,165,250,0.25);
    border-radius: 999px;
    padding: 5px 16px;
    margin-bottom: 24px;
}

.cta-title {
    font-size: clamp(32px, 5vw, 60px);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

    .cta-title em {
        font-style: italic;
        color: #60a5fa;
    }

.cta-sub {
    font-size: 17px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.cta-white {
    background: #fff !important;
    color: #080f1e !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
}

    .cta-white:hover {
        background: #f0f9ff !important;
        box-shadow: 0 8px 28px rgba(0,0,0,0.4) !important;
    }

.cta-ghost {
    border-color: rgba(255,255,255,0.2) !important;
    color: rgba(255,255,255,0.8) !important;
    background: rgba(255,255,255,0.05) !important;
}

    .cta-ghost:hover {
        border-color: rgba(255,255,255,0.45) !important;
        color: #fff !important;
    }

.cta-stat-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.cta-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 32px;
}

    .cta-stat strong {
        font-size: 28px;
        font-weight: 800;
        color: #fff;
        line-height: 1;
        margin-bottom: 4px;
    }

    .cta-stat span {
        font-size: 12px;
        color: rgba(255,255,255,0.45);
        text-transform: uppercase;
        letter-spacing: 0.8px;
    }

.cta-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.1);
}

/* ═══════════════════════════════════
   PHONE MOCKUP — full-size, for mobile slides
═══════════════════════════════════ */
.phone-mockup {
    height: 88%;
    aspect-ratio: 9 / 16;
    background: #1a2236;
    border-radius: 28px;
    border: 8px solid #1a2236;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(0,0,0,0.38), 0 6px 16px rgba(0,0,0,0.22), 0 0 0 1px rgba(255,255,255,0.07);
    display: flex;
    flex-direction: column;
}

.phone-notch-row {
    height: 15px;
    background: #1a2236;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.phone-island {
    display: block;
    width: 42px;
    height: 7px;
    border-radius: 4px;
    background: rgba(255,255,255,0.12);
}

.phone-screen {
    flex: 1;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-phone-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
    display: block;
    padding: 6px;
    box-sizing: border-box;
}

.phone-home-bar {
    height: 12px;
    background: #1a2236;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .phone-home-bar::after {
        content: '';
        display: block;
        width: 42px;
        height: 4px;
        border-radius: 2px;
        background: rgba(255,255,255,0.2);
    }

/* ─── Phone mock UI content ─── */
.pmock {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.pmock-statusbar {
    height: 8px;
    border-radius: 4px;
    background: var(--border);
    opacity: 0.5;
    margin-bottom: 2px;
}

.pmock-appbar {
    height: 22px;
    border-radius: 7px;
    width: 68%;
    opacity: 0.85;
}

    .pmock-appbar.blue-bar  { background: linear-gradient(90deg, #0b74d1, #0ea5e9); }
    .pmock-appbar.green-bar { background: linear-gradient(90deg, #059669, #34d399); }
    .pmock-appbar.teal-bar  { background: linear-gradient(90deg, #0891b2, #22d3ee); }

.pmock-kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.pmock-kpi {
    height: 44px;
    border-radius: 8px;
    opacity: 0.82;
}

    .pmock-kpi.blue   { background: linear-gradient(135deg, #0b74d1, #0ea5e9); }
    .pmock-kpi.green  { background: linear-gradient(135deg, #059669, #34d399); }
    .pmock-kpi.orange { background: linear-gradient(135deg, #d97706, #fbbf24); }
    .pmock-kpi.purple { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
    .pmock-kpi.teal   { background: linear-gradient(135deg, #0891b2, #22d3ee); }
    .pmock-kpi.red    { background: linear-gradient(135deg, #dc2626, #f87171); }

.pmock-chart {
    flex: 1;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    min-height: 40px;
}

    .pmock-chart.green-c { background: linear-gradient(180deg, rgba(5,150,105,0.15) 0%, var(--surface) 100%); }
    .pmock-chart.teal-c  { background: linear-gradient(180deg, rgba(8,145,178,0.15) 0%, var(--surface) 100%); }

.pmock-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pmock-row {
    height: 14px;
    border-radius: 4px;
    background: var(--border);
    opacity: 0.6;
}

    .pmock-row.tall { height: 22px; }

/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-copy {
        align-items: center;
        text-align: center;
    }

    .hero-checks {
        align-items: flex-start;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta-row {
        justify-content: center;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 680px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 64px 0;
    }

    .hero {
        padding: 48px 0 56px;
    }

    .home-hero-device {
        display: none;
    }

    .hero-h1 {
        letter-spacing: -0.5px;
    }

    .mock-kpi-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .problem-grid,
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    /* On mobile the grid stacks to 1 col — both cards come from left */
    .reveal-right {
        transform: translateX(-60px);
    }

    .reveal-right.is-visible {
        transform: translateX(0);
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .steps-list::before {
        display: none;
    }

    .cta-stat {
        padding: 0 16px;
    }

        .cta-stat strong {
            font-size: 22px;
        }
}

@media (max-width: 480px) {
    .hero-cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary-lg,
    .btn-ghost-lg {
        justify-content: center;
    }

    .cta-stat-row {
        gap: 16px;
    }

    .cta-stat-divider {
        display: none;
    }
}

/* ── RTL: flip directional icons inside hero CTA buttons ── */
html[dir="rtl"] .btn-primary-lg .fa-arrow-right,
html[dir="rtl"] .btn-ghost-lg .fa-play {
    transform: scaleX(-1);
}

/* ── RTL: problem cards ──
   .problem-card has text-align:left hardcoded; override it for RTL.
   Flex row direction reverses automatically via dir=rtl, so icon stays
   on the trailing (right) edge without extra rules. */
html[dir="rtl"] .problem-card {
    text-align: right;
}
