/**
 * صفحهٔ اپلیکیشن اندروید حسابیکس
 *
 * @package Hesabix2
 */

.hx-android {
    --hx-and-ink: #0b1220;
    --hx-and-ink-soft: #1e293b;
    --hx-and-mist: #e0f2fe;
    --hx-and-sky: var(--brand-500, #0ea5e9);
    --hx-and-sky-deep: var(--brand-600, #0284c7);
    --hx-and-accent: var(--accent-500, #f97316);
    --hx-and-ease: cubic-bezier(0.22, 1, 0.36, 1);
    overflow-x: clip;
}

/* ——— Hero ——— */
.hx-android-hero {
    position: relative;
    color: #f8fafc;
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(14, 165, 233, 0.35) 0%, transparent 55%),
        radial-gradient(90% 70% at 0% 100%, rgba(249, 115, 22, 0.18) 0%, transparent 50%),
        linear-gradient(165deg, #020617 0%, #0c1a2e 48%, #0b2740 100%);
    padding: 2.5rem 0 4rem;
    overflow: hidden;
}

.hx-android-hero__aurora {
    position: absolute;
    inset: -20% -10% auto;
    height: 70%;
    background: conic-gradient(from 210deg at 50% 50%, rgba(14, 165, 233, 0.2), transparent 40%, rgba(56, 189, 248, 0.12), transparent 70%);
    filter: blur(40px);
    animation: hx-and-aurora 14s ease-in-out infinite alternate;
    pointer-events: none;
}

.hx-android-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
    pointer-events: none;
    opacity: 0.55;
}

.hx-android-hero__inner {
    position: relative;
    z-index: 1;
}

.hx-android-hero__crumb {
    margin-bottom: 1.25rem;
}

.hx-android-hero__grid-layout {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hx-android-hero {
        padding: 3.5rem 0 5rem;
        min-height: min(88vh, 52rem);
        display: flex;
        align-items: center;
    }
    .hx-android-hero__grid-layout {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 3rem;
    }
}

.hx-android-hero__copy {
    text-align: center;
}

@media (min-width: 1024px) {
    .hx-android-hero__copy {
        text-align: right;
    }
}

.hx-android-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #e0f2fe;
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(125, 211, 252, 0.35);
    border-radius: 999px;
}

.hx-android-hero__badge-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.25);
    animation: hx-and-pulse 2s ease-in-out infinite;
}

.hx-android-hero__title {
    margin: 0 0 1rem;
    font-size: clamp(1.85rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    background: linear-gradient(120deg, #fff 20%, #bae6fd 70%, #7dd3fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hx-android-hero__lead {
    margin: 0 auto 1.5rem;
    max-width: 36rem;
    font-size: 1.0625rem;
    line-height: 1.85;
    color: rgba(226, 232, 240, 0.88);
}

@media (min-width: 1024px) {
    .hx-android-hero__lead {
        margin-right: 0;
        margin-left: auto;
        font-size: 1.125rem;
    }
}

.hx-android-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .hx-android-hero__meta {
        justify-content: flex-start;
    }
}

.hx-android-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 0.65rem;
}

.hx-android-pill--accent {
    color: #ffedd5;
    background: rgba(249, 115, 22, 0.18);
    border-color: rgba(251, 146, 60, 0.4);
}

.hx-android-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1rem;
}

@media (min-width: 1024px) {
    .hx-android-hero__actions {
        justify-content: flex-start;
    }
}

.hx-android-hero__note {
    margin: 0;
    font-size: 0.8125rem;
    color: rgba(148, 163, 184, 0.95);
    line-height: 1.6;
}

/* CTA */
.hx-android-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, var(--hx-and-sky) 0%, var(--hx-and-sky-deep) 100%);
    border: none;
    border-radius: 0.9rem;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.2) inset,
        0 10px 28px -8px rgba(14, 165, 233, 0.55);
    transition: transform 0.25s var(--hx-and-ease), box-shadow 0.25s var(--hx-and-ease), filter 0.25s ease;
}

.hx-android-cta:hover,
.hx-android-cta:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.25) inset,
        0 16px 36px -10px rgba(14, 165, 233, 0.65);
}

.hx-android-cta--ghost {
    color: #e2e8f0 !important;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.28);
    box-shadow: none;
}

.hx-android-cta--ghost:hover,
.hx-android-cta--ghost:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    filter: none;
}

.hx-android-cta--compact {
    margin-top: 1.25rem;
}

.hx-android-cta__icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

/* Phone mockup */
.hx-android-hero__visual {
    display: flex;
    justify-content: center;
    perspective: 1200px;
}

.hx-android-phone {
    position: relative;
    width: min(100%, 17.5rem);
    animation: hx-and-float 6s ease-in-out infinite;
}

.hx-android-phone__bezel {
    position: relative;
    z-index: 1;
    padding: 0.65rem;
    border-radius: 2.1rem;
    background: linear-gradient(160deg, #334155, #0f172a 40%, #1e293b);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 25px 50px -12px rgba(0, 0, 0, 0.55),
        0 0 60px -10px rgba(14, 165, 233, 0.35);
    transform: rotateY(-8deg) rotateX(4deg);
}

.hx-android-phone__notch {
    position: absolute;
    top: 0.9rem;
    left: 50%;
    transform: translateX(-50%);
    width: 5.5rem;
    height: 1.1rem;
    border-radius: 999px;
    background: #020617;
    z-index: 2;
}

.hx-android-phone__screen {
    border-radius: 1.55rem;
    overflow: hidden;
    min-height: 28rem;
    background:
        linear-gradient(180deg, #0ea5e9 0%, #0284c7 28%, #0f172a 28%);
    color: #fff;
    padding: 1.75rem 1rem 1rem;
}

.hx-android-phone__status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 1.75rem;
    padding: 0 0.35rem;
}

.hx-android-phone__signal {
    width: 1.1rem;
    height: 0.55rem;
    border-radius: 2px;
    background: linear-gradient(90deg, #fff 0 30%, rgba(255,255,255,.45) 30% 55%, rgba(255,255,255,.25) 55% 100%);
}

.hx-android-phone__brand {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hx-android-phone__cards {
    display: grid;
    gap: 0.65rem;
}

.hx-android-phone__card {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
}

.hx-android-phone__card span {
    font-size: 0.7rem;
    opacity: 0.8;
}

.hx-android-phone__card strong {
    font-size: 1.15rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.hx-android-phone__card--a { animation: hx-and-card-in 0.7s var(--hx-and-ease) 0.15s both; }
.hx-android-phone__card--b { animation: hx-and-card-in 0.7s var(--hx-and-ease) 0.3s both; }
.hx-android-phone__card--c { animation: hx-and-card-in 0.7s var(--hx-and-ease) 0.45s both; }

.hx-android-phone__dock {
    display: flex;
    justify-content: space-around;
    margin-top: 1.75rem;
    padding: 0.75rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.55);
}

.hx-android-phone__dock span {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.15);
}

.hx-android-phone__glow {
    position: absolute;
    inset: 20% -15% -10%;
    background: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.45), transparent 65%);
    filter: blur(28px);
    z-index: 0;
    pointer-events: none;
}

/* Sections shared */
.hx-android-section-head {
    text-align: center;
    margin-bottom: 2.5rem;
}

@media (min-width: 1024px) {
    .hx-android-section-head {
        text-align: right;
    }
}

.hx-android-eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--hx-and-sky-deep);
}

.hx-android-section-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.35rem, 2.8vw, 1.85rem);
    font-weight: 800;
    color: var(--hx-and-ink-soft);
    line-height: 1.35;
}

.hx-android-section-desc {
    margin: 0 auto;
    max-width: 36rem;
    color: var(--slate-500, #64748b);
    line-height: 1.75;
}

@media (min-width: 1024px) {
    .hx-android-section-desc {
        margin-right: 0;
        margin-left: auto;
    }
}

.hx-android-section-desc--flush {
    margin-bottom: 0;
}

/* Why */
.hx-android-why {
    padding: 4rem 0;
    background: #fff;
    border-bottom: 1px solid var(--slate-100, #f1f5f9);
}

.hx-android-why__grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .hx-android-why__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.hx-android-why__item {
    padding: 1.5rem;
    border-radius: 1.25rem;
    background: linear-gradient(160deg, #f8fafc 0%, #f0f9ff 100%);
    border: 1px solid rgba(14, 165, 233, 0.12);
    transition: transform 0.3s var(--hx-and-ease), border-color 0.3s ease;
}

.hx-android-why__item:hover {
    transform: translateY(-3px);
    border-color: rgba(14, 165, 233, 0.35);
}

.hx-android-why__item h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--hx-and-ink-soft);
}

.hx-android-why__item p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--slate-500, #64748b);
}

/* Features */
.hx-android-features {
    padding: 4rem 0;
    background:
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(14, 165, 233, 0.08), transparent),
        linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.hx-android-features__grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hx-android-features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .hx-android-features__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.hx-android-feature {
    padding: 1.35rem 1.25rem;
    border-radius: 1.15rem;
    background: #fff;
    border: 1px solid var(--slate-200, #e2e8f0);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--hx-and-ease);
}

.hx-android-feature:hover {
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 12px 28px -16px rgba(14, 165, 233, 0.45);
    transform: translateY(-2px);
}

.hx-android-feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.85rem;
    border-radius: 0.75rem;
    color: var(--hx-and-sky-deep);
    background: rgba(14, 165, 233, 0.1);
}

.hx-android-feature__icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.hx-android-feature__title {
    margin: 0 0 0.4rem;
    font-size: 0.975rem;
    font-weight: 700;
    color: var(--hx-and-ink-soft);
}

.hx-android-feature__desc {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.7;
    color: var(--slate-500, #64748b);
}

/* Install */
.hx-android-install {
    padding: 4rem 0;
    background: #0f172a;
    color: #e2e8f0;
}

.hx-android-install .hx-android-eyebrow {
    color: #7dd3fc;
}

.hx-android-install .hx-android-section-title {
    color: #fff;
}

.hx-android-install .hx-android-section-desc {
    color: #94a3b8;
}

.hx-android-install__layout {
    display: grid;
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .hx-android-install__layout {
        grid-template-columns: 0.9fr 1.1fr;
        gap: 3.5rem;
    }
}

.hx-android-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.hx-android-step {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.hx-android-step__num {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    font-weight: 800;
    font-size: 0.9rem;
    color: #0f172a;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
}

.hx-android-step__title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: #f1f5f9;
}

.hx-android-step__desc {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.7;
    color: #94a3b8;
}

/* Requirements */
.hx-android-reqs {
    padding: 2.5rem 0;
    background: linear-gradient(90deg, #f0f9ff, #fff 40%, #fff7ed);
    border-bottom: 1px solid var(--slate-100, #f1f5f9);
}

.hx-android-reqs__inner {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .hx-android-reqs__inner {
        grid-template-columns: 0.7fr 1.3fr;
        align-items: center;
    }
}

.hx-android-reqs__title {
    margin: 0 0 0.4rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--hx-and-ink-soft);
}

.hx-android-reqs__desc {
    margin: 0;
    font-size: 0.9rem;
    color: var(--slate-500, #64748b);
}

.hx-android-reqs__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

@media (min-width: 640px) {
    .hx-android-reqs__list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.hx-android-reqs__list li {
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    background: #fff;
    border: 1px solid rgba(14, 165, 233, 0.15);
    font-size: 0.875rem;
    color: var(--slate-600, #475569);
}

.hx-android-reqs__list strong {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--hx-and-ink-soft);
    font-size: 0.75rem;
}

/* FAQ */
.hx-android-faq {
    padding: 4rem 0;
    background: #fff;
}

.hx-android-faq__list {
    max-width: 44rem;
    margin: 0 auto;
    display: grid;
    gap: 0.65rem;
}

@media (min-width: 1024px) {
    .hx-android-faq__list {
        margin-right: 0;
        margin-left: auto;
    }
}

.hx-android-faq__item {
    border-radius: 1rem;
    border: 1px solid var(--slate-200, #e2e8f0);
    background: var(--slate-50, #f8fafc);
    overflow: hidden;
}

.hx-android-faq__q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    text-align: right;
    font: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--hx-and-ink-soft);
    background: transparent;
    border: none;
    cursor: pointer;
}

.hx-android-faq__q:hover {
    background: #fff;
}

.hx-android-faq__icon {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: rgba(14, 165, 233, 0.12);
    color: var(--hx-and-sky-deep);
    font-size: 1.1rem;
    line-height: 1;
    transition: transform 0.25s var(--hx-and-ease);
}

.hx-android-faq__q[aria-expanded="true"] .hx-android-faq__icon {
    transform: rotate(45deg);
    background: var(--hx-and-sky);
    color: #fff;
}

.hx-android-faq__a {
    padding: 0 1.25rem 1.15rem;
}

.hx-android-faq__a p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.75;
    color: var(--slate-500, #64748b);
}

/* Final */
.hx-android-final {
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
    color: #fff;
    background: #020617;
}

.hx-android-final__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 80% at 80% 20%, rgba(14, 165, 233, 0.35), transparent 55%),
        radial-gradient(ellipse 50% 60% at 10% 90%, rgba(249, 115, 22, 0.2), transparent 50%);
    pointer-events: none;
}

.hx-android-final__inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

@media (min-width: 1024px) {
    .hx-android-final__inner {
        text-align: right;
    }
}

.hx-android-final__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
}

.hx-android-final__desc {
    margin: 0 0 1.5rem;
    max-width: 32rem;
    color: #94a3b8;
    line-height: 1.75;
}

@media (min-width: 1024px) {
    .hx-android-final__desc {
        margin-right: 0;
        margin-left: auto;
    }
}

.hx-android-final__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 1024px) {
    .hx-android-final__actions {
        justify-content: flex-start;
    }
}

.hx-android-final__link {
    color: #7dd3fc;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
}

.hx-android-final__link:hover {
    color: #fff;
    text-decoration: underline;
}

/* Reveal */
.hx-android-reveal {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 0.7s var(--hx-and-ease), transform 0.7s var(--hx-and-ease);
}

.hx-android-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@keyframes hx-and-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes hx-and-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2); }
    50% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0.08); }
}

@keyframes hx-and-aurora {
    from { transform: translateX(-4%) rotate(0deg); }
    to { transform: translateX(4%) rotate(8deg); }
}

@keyframes hx-and-card-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hx-android-hero__aurora,
    .hx-android-phone,
    .hx-android-hero__badge-dot,
    .hx-android-phone__card--a,
    .hx-android-phone__card--b,
    .hx-android-phone__card--c {
        animation: none !important;
    }
    .hx-android-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .hx-android-phone__bezel {
        transform: none;
    }
}
