/* ==========================================================================
   SenseCAP Hotspot App Showcase Page Styles
   File: 75-sensecap-app.css
   ========================================================================== */

:root {
    --app-primary: #07835f;
    --app-primary-hover: #066d4f;
    --app-primary-glow: rgba(7, 131, 95, 0.25);
    --app-dark-bg: #0b1520;
    --app-dark-card: #132233;
    --app-dark-border: rgba(255, 255, 255, 0.1);
    --app-text-light: #ffffff;
    --app-text-muted: #94a3b8;
    --app-text-dark: #0f172a;
    --app-light-bg: #f8fafc;
    --app-card-bg: #ffffff;
    --app-border-light: #e2e8f0;
    --app-radius-sm: 8px;
    --app-radius-md: 14px;
    --app-radius-lg: 20px;
    --app-radius-xl: 28px;
    --app-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Page Reset & Container */
.sensecap-app-page {
    font-family: var(--app-font);
    color: var(--app-text-dark);
    background-color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

.sensecap-app-page * {
    box-sizing: border-box;
}

.sensecap-app-container {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.app-hero {
    position: relative;
    background: linear-gradient(135deg, #071622 0%, #0d2331 50%, #061c1e 100%);
    color: var(--app-text-light);
    padding: 70px 0 90px;
    overflow: hidden;
}

.app-hero__bg-pattern {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.app-hero__glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(7, 131, 95, 0.28) 0%, transparent 70%);
    top: -150px;
    left: 20%;
    filter: blur(80px);
    pointer-events: none;
}

.app-hero__grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.app-hero__content {
    max-width: 620px;
}

.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(7, 131, 95, 0.16);
    border: 1px solid rgba(7, 131, 95, 0.4);
    color: #4ade80;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.app-badge__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 10px #4ade80;
    animation: appPulse 2s infinite ease-in-out;
}

@keyframes appPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.app-hero__title {
    font-size: clamp(2.4rem, 4.4vw, 3.6rem);
    font-weight: 900;
    line-height: 1.1;
    color: #ffffff;
    margin: 0 0 14px;
    letter-spacing: -0.025em;
}

.app-hero__subtitle {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 600;
    color: #38bdf8;
    margin: 0 0 20px;
    line-height: 1.3;
}

.app-hero__desc {
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    color: #cbd5e1;
    margin: 0 0 36px;
    line-height: 1.7;
}

/* Download Buttons */
.app-download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-bottom: 32px;
}

.app-btn-store {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    border-radius: 12px;
    background: #111e2e;
    color: #ffffff !important;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
    min-width: 170px;
}

.app-btn-store:hover {
    background: #192a3e;
    border-color: #07835f;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(7, 131, 95, 0.25);
}

.app-btn-store--primary {
    background: #07835f;
    border-color: #07835f;
}

.app-btn-store--primary:hover {
    background: #066d4f;
    border-color: #066d4f;
}

.app-btn-store__icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
}

.app-btn-store__icon img,
.app-btn-store__icon svg {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.app-btn-store__text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.15;
}

.app-btn-store__caption {
    font-size: 0.68rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.app-btn-store__name {
    font-size: 0.98rem;
    font-weight: 700;
    color: #ffffff;
}

/* Hero Trust Micro-Badges */
.app-hero__trust {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.app-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #cbd5e1;
    font-weight: 500;
}

.app-trust-item svg {
    color: #07835f;
    flex-shrink: 0;
}

/* Hero Phones Graphic */
.app-hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-hero__phones-wrap {
    position: relative;
    width: 100%;
    max-width: 440px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.app-phone-mockup {
    position: relative;
    border-radius: 28px;
    transition: transform 0.3s ease;
}

.app-phone-mockup--1 {
    width: 62%;
    z-index: 2;
    transform: translateX(-14%) rotate(-2deg);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

.app-phone-mockup--2 {
    width: 58%;
    z-index: 1;
    margin-left: -20%;
    transform: translateY(12px) rotate(4deg);
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.4));
}

.app-phone-mockup img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: inherit;
}

.app-hero__phones-wrap:hover .app-phone-mockup--1 {
    transform: translateX(-16%) rotate(-4deg) translateY(-6px);
}

.app-hero__phones-wrap:hover .app-phone-mockup--2 {
    transform: translateY(6px) rotate(6deg);
}

/* Floating status pill */
.app-hero__float-card {
    position: absolute;
    bottom: -15px;
    left: 4%;
    z-index: 3;
    padding: 10px 16px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.app-hero__float-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #07835f;
    color: #fff;
    display: grid;
    place-items: center;
}

.app-hero__float-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: #f1f5f9;
}

/* ==========================================================================
   2. HIGHLIGHTS / STATS STRIP
   ========================================================================== */
.app-stats-strip {
    background: #ffffff;
    border-bottom: 1px solid var(--app-border-light);
    padding: 24px 0;
}

.app-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.app-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    transition: all 0.2s ease;
}

.app-stat-card:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.app-stat-card__icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(7, 131, 95, 0.1);
    color: #07835f;
    display: grid;
    place-items: center;
}

.app-stat-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--app-text-dark);
    margin: 0;
    line-height: 1.25;
}

.app-stat-card__desc {
    font-size: 0.78rem;
    color: #64748b;
    margin: 2px 0 0;
    line-height: 1.3;
}

/* ==========================================================================
   3. AMAZING FEATURES SECTION
   ========================================================================== */
.app-features-section {
    padding: 85px 0 95px;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.app-features-section__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    pointer-events: none;
}

.app-section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 55px;
}

.app-section-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #07835f;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.app-section-title {
    font-size: clamp(2rem, 3.2vw, 2.7rem);
    font-weight: 800;
    color: var(--app-text-dark);
    margin: 0 0 14px;
    letter-spacing: -0.02em;
}

.app-section-subtitle {
    font-size: clamp(0.98rem, 1.4vw, 1.1rem);
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

.app-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.app-feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--app-radius-lg);
    padding: 32px 28px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.app-feature-card:hover {
    border-color: #07835f;
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(7, 131, 95, 0.1);
}

.app-feature-card__icon-wrap {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    background: #f1f5f9;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    transition: all 0.2s ease;
}

.app-feature-card:hover .app-feature-card__icon-wrap {
    background: #ecfdf5;
    transform: scale(1.05);
}

.app-feature-card__icon-wrap img {
    max-width: 44px;
    max-height: 44px;
    display: block;
}

.app-feature-card__title {
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--app-text-dark);
    margin: 0 0 12px;
    line-height: 1.3;
}

.app-feature-card__desc {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

/* ==========================================================================
   4. MORE ABOUT HOTSPOT (DEEP DIVE / CONTROL SECTION)
   ========================================================================== */
.app-control-section {
    padding: 95px 0 100px;
    background: linear-gradient(135deg, #091a26 0%, #0d2536 100%);
    color: var(--app-text-light);
    position: relative;
    overflow: hidden;
}

.app-control-section__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.12;
    pointer-events: none;
}

.app-control-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.app-control__visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.app-control__device-frame {
    position: relative;
    max-width: 380px;
    width: 100%;
    border-radius: 24px;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.45));
}

.app-control__device-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: inherit;
}

.app-control__floating-badge {
    position: absolute;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.app-control__floating-badge--top {
    top: 15%;
    left: -20px;
}

.app-control__floating-badge--bottom {
    bottom: 12%;
    right: -20px;
}

.app-control__floating-badge svg {
    color: #4ade80;
}

.app-control__content {
    max-width: 600px;
}

.app-control__content .app-section-title {
    color: #ffffff;
}

.app-control__content .app-section-subtitle {
    color: #94a3b8;
    margin-bottom: 36px;
}

.app-step-list {
    display: grid;
    gap: 16px;
}

.app-step-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 22px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.22s ease;
}

.app-step-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(7, 131, 95, 0.5);
    transform: translateX(4px);
}

.app-step-num {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #07835f 0%, #05684b 100%);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 12px rgba(7, 131, 95, 0.3);
}

.app-step-info {
    flex: 1;
}

.app-step-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px;
}

.app-step-desc {
    font-size: 0.88rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   5. A GLIMPSE OF THE APP (APP SCREEN SHOWCASE)
   ========================================================================== */
.app-screens-section {
    padding: 90px 0 100px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.app-screens-section__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    pointer-events: none;
}

.app-screens-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.app-screen-card {
    position: relative;
    border-radius: var(--app-radius-lg);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 16px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.app-screen-card:hover {
    transform: translateY(-8px);
    border-color: #07835f;
    box-shadow: 0 20px 40px rgba(7, 131, 95, 0.14);
}

.app-screen-img-wrap {
    border-radius: 14px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.app-screen-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.app-screen-card:hover .app-screen-img-wrap img {
    transform: scale(1.03);
}

.app-screen-caption {
    margin-top: 16px;
}

.app-screen-num {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #07835f;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 2px;
}

.app-screen-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--app-text-dark);
    margin: 0;
}

/* ==========================================================================
   6. HARDWARE COMPATIBILITY SECTION
   ========================================================================== */
.app-devices-section {
    padding: 75px 0 85px;
    background: #f8fafc;
    border-top: 1px solid var(--app-border-light);
    border-bottom: 1px solid var(--app-border-light);
}

.app-devices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.app-device-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.app-device-card:hover {
    border-color: #07835f;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(7, 131, 95, 0.08);
}

.app-device-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(7, 131, 95, 0.08);
    color: #07835f;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.app-device-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--app-text-dark);
    margin: 0 0 4px;
}

.app-device-card__desc {
    font-size: 0.84rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* ==========================================================================
   7. FINAL DOWNLOAD CTA BANNER
   ========================================================================== */
.app-cta-section {
    padding: 85px 0 95px;
    background: linear-gradient(135deg, #071926 0%, #0d2838 50%, #051d1f 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.app-cta-section__glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(7, 131, 95, 0.22) 0%, transparent 70%);
    bottom: -150px;
    right: 15%;
    filter: blur(80px);
    pointer-events: none;
}

.app-cta-box {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.app-cta-box .app-section-title {
    color: #ffffff;
    margin-bottom: 16px;
}

.app-cta-box .app-section-subtitle {
    color: #cbd5e1;
    margin-bottom: 36px;
}

.app-cta-box .app-download-buttons {
    justify-content: center;
    margin-bottom: 24px;
}

.app-cta-help {
    font-size: 0.88rem;
    color: #94a3b8;
    margin-top: 18px;
}

.app-cta-help a {
    color: #38bdf8;
    text-decoration: underline;
}

.app-cta-help a:hover {
    color: #ffffff;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 1080px) {
    .app-hero__grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .app-hero__content {
        max-width: 100%;
        margin: 0 auto;
    }
    .app-download-buttons {
        justify-content: center;
    }
    .app-hero__trust {
        justify-content: center;
    }
    .app-hero__visual {
        margin-top: 20px;
    }
    .app-control-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    .app-control__content {
        max-width: 100%;
        margin: 0 auto;
    }
    .app-step-item {
        text-align: left;
    }
    .app-screens-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .app-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 820px) {
    .app-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .app-devices-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .app-hero {
        padding: 50px 0 70px;
    }
    .app-features-grid {
        grid-template-columns: 1fr;
    }
    .app-screens-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }
    .app-stats-grid {
        grid-template-columns: 1fr;
    }
    .app-download-buttons {
        flex-direction: column;
        width: 100%;
    }
    .app-btn-store {
        width: 100%;
        justify-content: center;
    }
    .app-control__floating-badge {
        display: none;
    }
    .app-phone-mockup--1 {
        width: 66%;
        transform: translateX(-10%);
    }
    .app-phone-mockup--2 {
        width: 62%;
    }
}
