/* =============================================
       PAGE-LEVEL CUSTOM STYLES
       Extends the global styles.css design system
    ============================================= */

/* --- Hero: Android-specific --- */
.android-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--nav-height) + var(--announcement-height, 36px) + 60px);
    padding-bottom: 100px;
    background: var(--bg-darkest);
    overflow: hidden;
}

.android-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Grid overlay */
.android-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59, 99, 207, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 99, 207, 0.04) 1px, transparent 1px);
    background-size: 64px 64px;
}

/* Glow blobs */
.android-hero__glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 8% 50%, rgba(59, 99, 207, 0.13) 0%, transparent 65%),
        radial-gradient(ellipse 40% 40% at 88% 20%, rgba(14, 165, 233, 0.09) 0%, transparent 55%),
        radial-gradient(ellipse 30% 50% at 95% 85%, rgba(59, 99, 207, 0.07) 0%, transparent 50%);
}

/* Diagonal accent line */
.android-hero__line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    left: 62%;
    background: linear-gradient(to bottom, transparent, rgba(59, 99, 207, 0.18) 25%, rgba(59, 99, 207, 0.18) 75%, transparent);
    transform: skewX(-14deg);
}

.android-hero__line2 {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    left: 73%;
    background: linear-gradient(to bottom, transparent, rgba(14, 165, 233, 0.09) 30%, rgba(14, 165, 233, 0.09) 70%, transparent);
    transform: skewX(-14deg);
}

.android-hero__content {
    position: relative;
    z-index: 2;
}

/* Breadcrumb */
.android-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.android-hero__breadcrumb a {
    color: var(--text-muted);
    transition: color 0.2s;
}

.android-hero__breadcrumb a:hover {
    color: var(--text-white);
}

.android-hero__breadcrumb svg {
    width: 10px;
    height: 10px;
    opacity: 0.4;
}

.android-hero__breadcrumb span {
    color: var(--color-primary-light);
}

/* Badge */
.android-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: rgba(59, 99, 207, 0.1);
    border: 1px solid rgba(59, 99, 207, 0.22);
    border-radius: 100px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-primary-light);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.android-hero__badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary-light);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(91, 130, 224, 0.5);
    }

    50% {
        opacity: 0.6;
        box-shadow: 0 0 0 4px rgba(91, 130, 224, 0);
    }
}

/* Title */
.android-hero__title {
    font-family: var(--font-head);
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.03em;
    color: var(--text-white);
    margin-bottom: 28px;
}

.android-hero__title .accent {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-werqai) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.android-hero__desc {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-light);
    max-width: 820px;
    margin-bottom: 44px;
}

@media (max-width: 640px) {
    .android-hero__desc {
        font-size: 1rem;
        margin-bottom: 32px;
    }
}

.android-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-bottom: 56px;
}

/* Stats bar */
.android-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border: 1px solid var(--bg-dark-border);
    border-radius: 12px;
    background: rgba(13, 21, 37, 0.7);
    backdrop-filter: blur(8px);
    overflow: hidden;
    max-width: 560px;
}

.android-hero__stat {
    flex: 1;
    padding: 18px 24px;
    border-right: 1px solid var(--bg-dark-border);
}

.android-hero__stat:last-child {
    border-right: none;
}

.android-hero__stat-n {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.02em;
}

.android-hero__stat-l {
    font-size: 11.5px;
    text-wrap: nowrap;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Floating visual cards (right side) */
.android-hero__visual {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    z-index: 2;
    display: none;
    flex-direction: column;
    gap: 14px;
    padding-right: 40px;
}

@media (min-width: 1280px) {
    .android-hero__visual {
        display: flex;
    }
}

.android-float-card {
    background: rgba(13, 21, 37, 0.92);
    backdrop-filter: blur(20px);
    border: 1px solid var(--bg-dark-border);
    border-radius: 14px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.android-float-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--color-primary-50);
    border: 1px solid rgba(59, 99, 207, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-light);
    flex-shrink: 0;
}

.android-float-card__val {
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1;
}

.android-float-card__lbl {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 3px;
}

/* =============================================
       SERVICES SECTION
    ============================================= */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: var(--bg-dark-card);
    border: 1px solid var(--bg-dark-border);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-werqai));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.service-card:hover {
    border-color: rgba(59, 99, 207, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(59, 99, 207, 0.12);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--color-primary-50);
    border: 1px solid rgba(59, 99, 207, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-light);
    margin-bottom: 22px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.service-card:hover .service-card__icon {
    background: rgba(59, 99, 207, 0.18);
    border-color: rgba(59, 99, 207, 0.35);
}

.service-card__title {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-card__text {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 20px;
}

.service-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.service-card__tag {
    display: inline-block;
    padding: 4px 11px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--color-primary-light);
    background: var(--color-primary-50);
    border: 1px solid rgba(59, 99, 207, 0.15);
    border-radius: 5px;
}

/* =============================================
       WHY CHOOSE US - 2×2 FEATURE GRID
    ============================================= */
.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    border: 1px solid var(--bg-dark-border);
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-dark-border);
}

@media (min-width: 768px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.why-card {
    background: var(--bg-dark-card);
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: background 0.3s ease;
    position: relative;
}

.why-card:hover {
    background: var(--bg-dark-elevated);
}

.why-card__num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(59, 99, 207, 0.12);
    position: absolute;
    top: 24px;
    right: 28px;
    pointer-events: none;
    user-select: none;
}

.why-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--color-primary-50);
    border: 1px solid rgba(59, 99, 207, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-light);
    margin-bottom: 24px;
}

.why-card__title {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
    padding-right: 40px;
}

.why-card__text {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.75;
}

/* =============================================
       INDUSTRIES SECTION - HEX-STYLE GRID
    ============================================= */
.industries-mosaic {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 640px) {
    .industries-mosaic {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .industries-mosaic {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

.industry-tile {
    background: var(--bg-dark-card);
    border: 1px solid var(--bg-dark-border);
    border-radius: 14px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.industry-tile::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-werqai));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.industry-tile:hover {
    border-color: rgba(59, 99, 207, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(59, 99, 207, 0.1);
}

.industry-tile:hover::after {
    opacity: 1;
}

/* Wide tile (spans 2 cols on desktop) */
.industry-tile--wide {
    grid-column: 1 / -1;
}

@media (min-width: 640px) {
    .industry-tile--wide {
        grid-column: span 1;
    }
}

.industry-tile__icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: var(--color-primary-50);
    border: 1px solid rgba(59, 99, 207, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-light);
}

.industry-tile__name {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.3;
}

.industry-tile__solutions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.industry-tile__solution {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.industry-tile__solution svg {
    flex-shrink: 0;
    margin-top: 1px;
}

/* =============================================
       PROCESS SECTION - NUMBERED STEPS
    ============================================= */
.process-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

@media (min-width: 768px) {
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    .process-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

.process-step {
    padding: 36px 32px;
    border: 1px solid transparent;
    border-radius: 0;
    position: relative;
    transition: all 0.3s ease;
}

/* Grid borders */
.process-step {
    border-right-color: var(--bg-dark-border);
    border-bottom-color: var(--bg-dark-border);
}

@media (min-width: 768px) {
    .process-step:nth-child(2n) {
        border-right-color: transparent;
    }
}

@media (min-width: 1280px) {
    .process-step:nth-child(2n) {
        border-right-color: var(--bg-dark-border);
    }

    .process-step:nth-child(3n) {
        border-right-color: transparent;
    }
}

.process-step:hover {
    background: rgba(59, 99, 207, 0.03);
}

/* Connecting line between steps */
.process-step__connector {
    display: none;
    position: absolute;
    top: 50%;
    right: -1px;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), transparent);
    z-index: 1;
}

.process-step__num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.process-step__num::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(59, 99, 207, 0.3), transparent);
    max-width: 60px;
}

.process-step__icon {
    width: 50px;
    height: 50px;
    border-radius: 13px;
    background: var(--color-primary-50);
    border: 1px solid rgba(59, 99, 207, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-light);
    margin-bottom: 20px;
}

.process-step__title {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 10px;
}

.process-step__text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* =============================================
       SCROLL REVEAL
    ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

.reveal-delay-5 {
    transition-delay: 0.5s;
}

/* =============================================
       TECH STACK STRIP
    ============================================= */
.tech-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: var(--bg-dark-card);
    border: 1px solid var(--bg-dark-border);
    border-radius: 100px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.tech-pill:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-light);
    background: var(--color-primary-50);
}

.tech-pill__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
    opacity: 0.5;
}

/* =============================================
       SECTION DIVIDER
    ============================================= */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--bg-dark-border) 20%, var(--bg-dark-border) 80%, transparent);
}

@media (max-width: 640px) {

    .why-card {
        padding: 28px 24px;
    }

    .process-step {
        padding: 28px 20px;
    }

    .service-card {
        padding: 24px;
    }

    .service-card__icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        margin-bottom: 18px;
    }

    .service-card__title {
        font-size: 1.05rem;
    }

    .industry-tile {
        padding: 22px 18px;
    }

    .process-step__icon {
        width: 42px;
        height: 42px;
        border-radius: 11px;
    }
}

/* --- Industries Mosaic: single column on small mobile --- */
@media (max-width: 479px) {
    .industries-mosaic {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* --- Hero title: additional mobile scaling --- */
@media (max-width: 480px) {
    .android-hero__title {
        font-size: clamp(1.75rem, 7.5vw, 2.5rem);
        letter-spacing: -0.02em;
    }

    .android-hero__desc {
        font-size: 0.9375rem;
        line-height: 1.7;
        margin-bottom: 28px;
    }

    .android-hero__stat-n {
        font-size: 1.3rem;
    }

    .android-hero__stat-l {
        font-size: 11px;
    }
}

/* --- Hero stats: wrap better on tablet --- */
@media (max-width: 767px) {
    .android-hero__stats {
        max-width: 100%;
    }
}

/* --- Process steps: remove rightward border on single-col --- */
@media (max-width: 767px) {
    .process-step {
        border-right-color: transparent;
    }
}
/* ═══════════════════════════════════════
   MOBILE RESPONSIVE FIXES — May 2026
   ═══════════════════════════════════════ */

@media (max-width: 640px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .industries-mosaic {
    gap: 14px;
  }
  .android-hero__stats {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .android-hero__desc {
    font-size: 0.9375rem;
    line-height: 1.6;
  }
  .service-card {
    padding: 24px 20px;
  }
  .process-step {
    padding: 20px 16px;
  }
  .process-step__title {
    font-size: 1rem;
  }
  .industry-tile {
    padding: 20px 18px;
  }
  .why-card {
    padding: 28px 20px;
  }
  .faq-cols {
    gap: 32px;
  }
  .faq-sidebar {
    text-align: center;
  }
}
