/* Homepage visual enhancements — green/gold brand, Madinah hero, product mock */

.hero-section--home {
    background: #011912;
    padding: 4.75rem 0 3.5rem;
    min-height: 520px;
}

.hero-section--home .hero-bg-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    opacity: 0.38;
    transform: scale(1.04);
    filter: saturate(0.85) contrast(1.05);
}

.hero-section--home .hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 12% 18%, rgba(181, 126, 31, 0.22), transparent 42%),
        radial-gradient(circle at 88% 12%, rgba(3, 62, 37, 0.55), transparent 45%),
        linear-gradient(120deg, rgba(1, 25, 18, 0.55) 0%, transparent 55%);
}

.hero-section--home .hero-overlay {
    background:
        linear-gradient(105deg, rgba(1, 25, 18, 0.92) 0%, rgba(1, 25, 18, 0.78) 42%, rgba(1, 25, 18, 0.55) 68%, rgba(1, 25, 18, 0.72) 100%),
        linear-gradient(180deg, rgba(1, 25, 18, 0.35) 0%, rgba(1, 25, 18, 0.82) 100%);
}

.hero-section--home .hero-bg .blob1,
.hero-section--home .hero-bg .blob2 {
    display: block;
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.35;
    animation: homeHeroBlobFloat 12s ease-in-out infinite;
}

.hero-section--home .hero-bg .blob2 {
    animation-delay: -4s;
}

@keyframes homeHeroBlobFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(12px, -18px, 0) scale(1.06); }
}

.hero-section--home .hero-heading {
    font-size: clamp(2.05rem, 4.2vw, 3.15rem);
    line-height: 1.2;
}

.hero-section--home .hero-tagline {
    border-color: rgba(212, 175, 55, 0.45);
    background: linear-gradient(135deg, rgba(181, 126, 31, 0.28), rgba(15, 23, 42, 0.55));
    color: #f5e6c8;
    padding: 0.28rem 0.95rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.hero-section--home .hero-tagline .bi {
    color: #e0c57a;
}

.hero-section--home .hero-metric-pill {
    border-color: rgba(212, 175, 55, 0.35);
    background: rgba(1, 25, 18, 0.55);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 24px -18px rgba(0, 0, 0, 0.7);
}

.hero-section--home .hero-metric-pill > .bi {
    color: #e0c57a;
}

/* Product showcase */
.hero-product-showcase {
    position: relative;
    min-height: 360px;
    padding: 1rem 0 2rem;
}

.hero-product-glow {
    position: absolute;
    inset: 12% 8% 8% 18%;
    background: radial-gradient(circle, rgba(181, 126, 31, 0.35), transparent 68%);
    filter: blur(18px);
    z-index: 0;
    animation: homeHeroGlowPulse 5.5s ease-in-out infinite;
}

@keyframes homeHeroGlowPulse {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.05); }
}

.hero-laptop {
    position: relative;
    z-index: 1;
    width: min(100%, 43rem);
    margin-inline-start: auto;
    animation: homeHeroLaptopFloat 7s ease-in-out infinite;
}

@keyframes homeHeroLaptopFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-laptop-bezel {
    background: linear-gradient(160deg, #1a2a22, #0b1510 55%, #15231c);
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 0.85rem 0.85rem 0.35rem 0.35rem;
    padding: 0.55rem 0.55rem 0.4rem;
    box-shadow:
        0 30px 60px -28px rgba(0, 0, 0, 0.75),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-laptop-screen {
    display: grid;
    grid-template-columns: 7.2rem 1fr;
    min-height: 15.5rem;
    border-radius: 0.45rem;
    overflow: hidden;
    background: #f7faf8;
    color: #14201a;
}

.hero-laptop-screen--shot {
    display: block;
    grid-template-columns: none;
    min-height: 0;
    background: #0b1510;
    aspect-ratio: 1024 / 403;
}

.hero-agent-shot {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
    image-rendering: auto;
}

.hero-laptop-base {
    height: 0.7rem;
    width: 108%;
    margin-inline-start: -4%;
    border-radius: 0 0 0.7rem 0.7rem;
    background: linear-gradient(180deg, #2a3a31, #15231c);
    box-shadow: 0 14px 24px -16px rgba(0, 0, 0, 0.8);
    position: relative;
}

.hero-laptop-base::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0.15rem;
    width: 4.5rem;
    height: 0.28rem;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
}

.hero-ui-sidebar {
    background: linear-gradient(180deg, #033e25, #022c1a);
    color: rgba(245, 230, 200, 0.92);
    padding: 0.65rem 0.45rem;
    font-size: 0.62rem;
}

.hero-ui-brand {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 800;
    margin-bottom: 0.7rem;
    padding: 0 0.25rem;
}

.hero-ui-brand img {
    border-radius: 0.2rem;
}

.hero-ui-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.2rem;
}

.hero-ui-sidebar li {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.4rem;
    border-radius: 0.35rem;
    opacity: 0.78;
}

.hero-ui-sidebar li.is-active {
    background: rgba(181, 126, 31, 0.28);
    opacity: 1;
    color: #ffe9b8;
}

.hero-ui-main {
    padding: 0.65rem 0.7rem 0.75rem;
    background:
        radial-gradient(circle at 100% 0%, rgba(181, 126, 31, 0.12), transparent 40%),
        #f7faf8;
}

.hero-ui-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
    margin-bottom: 0.55rem;
}

.hero-ui-stat {
    background: #fff;
    border: 1px solid rgba(215, 224, 217, 0.95);
    border-radius: 0.45rem;
    padding: 0.4rem 0.45rem;
    box-shadow: 0 6px 14px -12px rgba(20, 32, 26, 0.55);
}

.hero-ui-stat--accent {
    border-color: rgba(181, 126, 31, 0.45);
    background: linear-gradient(180deg, #fffaf0, #fff);
}

.hero-ui-stat-label {
    display: block;
    font-size: 0.55rem;
    color: #5c6b63;
    margin-bottom: 0.15rem;
    line-height: 1.2;
}

.hero-ui-stat strong {
    font-size: 0.95rem;
    color: #033e25;
    letter-spacing: -0.02em;
}

.hero-ui-panel {
    background: #fff;
    border: 1px solid rgba(215, 224, 217, 0.95);
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.hero-ui-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.45rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: #033e25;
}

.hero-ui-panel-head .hero-dashboard-status {
    font-size: 0.58rem;
    padding: 0.18rem 0.45rem;
    color: #166534;
    background: rgba(22, 163, 74, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.hero-ui-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.45rem;
    align-items: center;
    padding: 0.35rem 0.2rem;
    border-top: 1px solid rgba(215, 224, 217, 0.8);
}

.hero-ui-row strong {
    display: block;
    font-size: 0.62rem;
    color: #14201a;
    line-height: 1.25;
}

.hero-ui-row small {
    font-size: 0.55rem;
    color: #5c6b63;
}

.hero-ui-qr-thumb {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 0.25rem;
    background:
        linear-gradient(90deg, #14201a 25%, transparent 25%) 0 0 / 0.35rem 0.35rem,
        linear-gradient(#14201a 25%, transparent 25%) 0 0 / 0.35rem 0.35rem,
        #fff;
    border: 1px solid rgba(20, 32, 26, 0.2);
}

.hero-ui-badge {
    font-size: 0.55rem;
    font-weight: 700;
    color: #166534;
    background: #dcfce7;
    border-radius: 999px;
    padding: 0.15rem 0.4rem;
}

.hero-phone {
    position: absolute;
    z-index: 2;
    width: 13.5rem;
    right: -0.35rem;
    bottom: -0.35rem;
    background: linear-gradient(160deg, #1b2a22, #0b1510);
    border: 2px solid rgba(212, 175, 55, 0.45);
    border-radius: 1.35rem;
    padding: 0.42rem 0.32rem 0.5rem;
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.75);
    animation: homeHeroPhoneFloat 6s ease-in-out infinite;
}

[dir="rtl"] .hero-phone {
    right: auto;
    left: -0.35rem;
}

@keyframes homeHeroPhoneFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-12px) rotate(-1deg); }
}

.hero-phone-chrome {
    border-radius: 1.05rem;
    overflow: hidden;
    background: #0b1510;
    position: relative;
}

.hero-phone-chrome::before {
    content: "";
    position: absolute;
    top: 0.28rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2.35rem;
    height: 0.28rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    z-index: 2;
    pointer-events: none;
}

.hero-phone-shot {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    object-position: top center;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Trust strip */
.home-trust-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    position: relative;
    z-index: 2;
    box-shadow: 0 18px 40px -28px rgba(1, 25, 18, 0.55);
}

.home-trust-bar__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.15rem 1.35rem;
}

.home-trust-bar__item i {
    font-size: 1.25rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.home-trust-bar__item p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
}

.home-trust-bar__item strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.home-trust-bar__item--green {
    background: linear-gradient(135deg, #033e25, #022c1a);
    color: #f4f7f5;
}

.home-trust-bar__item--green i { color: #e0c57a; }

.home-trust-bar__item--gold {
    background: linear-gradient(135deg, #b57e1f, #8a5e14);
    color: #fffaf0;
}

.home-trust-bar__item--gold i { color: #fff; }

.home-trust-bar__item--light {
    background: #ffffff;
    color: #14201a;
    border-bottom: 1px solid rgba(215, 224, 217, 0.9);
}

.home-trust-bar__item--light i { color: #b57e1f; }
.home-trust-bar__item--light p { color: #5c6b63; }

.capability-card--feature {
    border-radius: 1rem;
    border-color: rgba(215, 224, 217, 0.95);
    background:
        radial-gradient(circle at 100% 0%, rgba(181, 126, 31, 0.08), transparent 42%),
        var(--surface-card, #fff);
}

.capability-card--feature:hover {
    transform: translateY(-6px);
    border-color: rgba(181, 126, 31, 0.55);
    box-shadow: 0 22px 40px -28px rgba(3, 62, 37, 0.45);
}

.icon-wrap--gold {
    background: linear-gradient(145deg, rgba(181, 126, 31, 0.18), rgba(3, 62, 37, 0.12)) !important;
    color: #8a5e14 !important;
    border: 1px solid rgba(181, 126, 31, 0.35);
    border-radius: 0.85rem !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

[data-theme="dark"] .home-trust-bar__item--light {
    background: #14201a;
    color: #e5eee8;
    border-bottom-color: #2a3a31;
}

[data-theme="dark"] .home-trust-bar__item--light p { color: #a8b5ad; }

[data-theme="dark"] .capability-card--feature {
    background:
        radial-gradient(circle at 100% 0%, rgba(212, 181, 106, 0.12), transparent 42%),
        var(--surface-card);
}

[data-theme="dark"] .icon-wrap--gold {
    color: #e0c57a !important;
    background: linear-gradient(145deg, rgba(212, 181, 106, 0.16), rgba(3, 62, 37, 0.35)) !important;
    border-color: rgba(212, 181, 106, 0.35);
}

[data-theme="dark"] .hero-laptop-screen,
[data-theme="dark"] .hero-ui-main,
[data-theme="dark"] .hero-ui-stat,
[data-theme="dark"] .hero-ui-panel,
[data-theme="dark"] .hero-phone-screen {
    background: #0f1612;
    color: #e5eee8;
}

[data-theme="dark"] .hero-ui-stat,
[data-theme="dark"] .hero-ui-panel { border-color: #2a3a31; }

[data-theme="dark"] .hero-ui-stat strong,
[data-theme="dark"] .hero-ui-panel-head,
[data-theme="dark"] .hero-ui-row strong,
[data-theme="dark"] .hero-phone-kicker { color: #e5eee8; }

@media (max-width: 991.98px) {
    .hero-product-showcase {
        min-height: 320px;
        margin-top: 0.5rem;
    }

    .hero-laptop { width: 100%; }

    .home-trust-bar { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
    .hero-laptop-screen:not(.hero-laptop-screen--shot) {
        grid-template-columns: 1fr;
        min-height: 14rem;
    }

    .hero-ui-sidebar { display: none; }

    .hero-phone {
        width: 10.25rem;
        right: 0.15rem;
        bottom: -0.1rem;
    }

    [dir="rtl"] .hero-phone { left: 0.15rem; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-section--home .hero-bg .blob1,
    .hero-section--home .hero-bg .blob2,
    .hero-laptop,
    .hero-phone,
    .hero-product-glow {
        animation: none !important;
    }
}
