.home-page {
    position: relative;
    overflow: hidden;
}

.home-glow {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(78px);
    opacity: 0.62;
    pointer-events: none;
    z-index: 0;
}

.home-glow.purple-right {
    inset-inline-end: -120px;
    top: 160px;
    background: radial-gradient(circle, rgba(188, 151, 240, 0.85) 0%, rgba(255, 255, 255, 0.8) 66%);
}

.home-glow.purple-left {
    inset-inline-start: -120px;
    top: 300px;
    background: radial-gradient(circle, rgba(188, 151, 240, 0.82) 0%, rgba(255, 255, 255, 0.78) 66%);
}

.home-glow.gold-mid {
    left: 50%;
    transform: translateX(-50%);
    top: 80px;
    background: radial-gradient(circle, rgba(248, 238, 196, 0.84) 0%, rgba(255, 255, 255, 0.74) 66%);
}

.home-page .site-container {
    position: relative;
    z-index: 2;
}

.home-hero {
    padding-top: 4.4rem;
    text-align: center;
}

.home-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.62rem 1.25rem;
    border-radius: 999px;
    font-size: 0.87rem;
    line-height: 1.4;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(180deg, #6c5ce7 0%, #3c3381 100%);
    border: 1px solid #e6deff;
    box-shadow: 0 6px 18px rgba(60, 51, 129, 0.2);
}

.home-kicker-dot {
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.home-title {
    margin: 1rem auto 0;
    max-width: 900px;
    color: #1c1930;
    font-size: clamp(2.05rem, 4.1vw, 3rem);
    line-height: 1.2;
    font-weight: 700;
}

.home-subtitle {
    margin: 1rem auto 0;
    max-width: 720px;
    color: #484555;
    font-size: 1.08rem;
    line-height: 1.85;
}

.home-hero-actions {
    margin-top: 1.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.home-store-btn {
    min-width: 182px;
    height: 54px;
    padding: 0.55rem 0.9rem;
    border-radius: 180px;
    background: #000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.home-store-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 164px;
}

.home-hero-visual {
    position: relative;
    width: min(1040px, 100%);
    margin: 2.3rem auto 0;
    padding: clamp(0.8rem, 1.5vw, 1.2rem);
    border-radius: 42px;
    overflow: hidden;
    isolation: isolate;
}

.home-hero-visual::before,
.home-hero-visual::after {
    content: '';
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
}

.home-hero-visual::before {
    width: 360px;
    height: 360px;
    inset-inline-start: -120px;
    top: -140px;
}

.home-hero-visual::after {
    width: 420px;
    height: 420px;
    inset-inline-end: -150px;
    bottom: -210px;
}

.home-hero-orb {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.home-hero-orb.orb-one {
    width: 16px;
    height: 16px;
    top: 22px;
    inset-inline-start: 28px;
    background: #f59e0b;
    box-shadow: 0 0 0 7px rgba(245, 158, 11, 0.2);
}

.home-hero-orb.orb-two {
    width: 12px;
    height: 12px;
    top: 40px;
    inset-inline-end: 40px;
    background: #7c3aed;
    box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.2);
}

.home-hero-orb.orb-three {
    width: 14px;
    height: 14px;
    bottom: 28px;
    inset-inline-start: 56px;
    background: #14b8a6;
    box-shadow: 0 0 0 6px rgba(20, 184, 166, 0.18);
}

.home-hero-illustration {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-inline: auto;
    border-radius: 28px;
    /* box-shadow: 0 20px 48px rgba(19, 16, 36, 0.18); */
    /* background: linear-gradient(180deg, #ffffff 0%, #f7f2ff 100%); */
    object-fit: contain;
}

.home-phone-stage {
    margin-top: 2.8rem;
    position: relative;
    min-height: 500px;
    display: grid;
    place-items: center;
}

.home-phone-frame {
    position: relative;
    width: min(365px, 100%);
    background: #fff;
    border-radius: 42px;
    padding: 12px;
    border: 2px solid #191728;
    box-shadow: 0 36px 80px rgba(15, 23, 42, 0.17);
}

.home-phone-screen {
    border-radius: 34px;
    overflow: hidden;
    background: #f4efff;
}

.home-phone-notch {
    width: 122px;
    height: 16px;
    border-radius: 120px;
    background: #000;
    margin: 8px auto 0;
}

.home-phone-top {
    padding: 1rem 1rem 1.1rem;
    background: linear-gradient(180deg, #6c5ce7 0%, #3c3381 100%);
    color: #fff;
}

.home-phone-greet {
    margin: 0;
    font-family: 'Tajawal', 'Cairo', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
}

.home-phone-student {
    margin-top: 0.8rem;
    padding: 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.2);
    font-family: 'Tajawal', 'Cairo', sans-serif;
    font-size: 0.85rem;
    line-height: 1.45;
    text-align: start;
}

.home-phone-attendance {
    margin-top: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.58rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
}

.home-phone-time {
    padding: 0.26rem 0.65rem;
    border-radius: 999px;
    background: #fff;
    color: #191b23;
    font-family: 'Tajawal', 'Cairo', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
}

.home-phone-attendance-note {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    font-size: 0.78rem;
    line-height: 1.35;
    text-align: end;
}

.home-phone-body {
    padding: 0.9rem;
}

.home-phone-search {
    border-radius: 999px;
    border: 1px solid rgba(94, 57, 224, 0.14);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
    color: rgba(115, 118, 134, 0.85);
    font-family: 'Tajawal', 'Cairo', sans-serif;
    font-size: 0.74rem;
    padding: 0.62rem 0.8rem;
    text-align: end;
}

.home-phone-quick-grid {
    margin-top: 0.88rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
}

.home-phone-quick {
    min-height: 82px;
    border-radius: 16px;
    padding: 0.45rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    font-family: 'Tajawal', 'Cairo', sans-serif;
    font-size: 0.67rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-phone-quick.orange {
    background: #fff5ed;
    color: #e87a24;
}

.home-phone-quick.blue {
    background: #f0f7ff;
    color: #2563eb;
}

.home-phone-quick.violet {
    background: #f8f4ff;
    color: #6750a4;
}

.home-phone-quick.teal {
    background: #effffe;
    color: #008985;
}

.home-phone-payment {
    margin-top: 0.88rem;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    overflow: hidden;
    position: relative;
    padding: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.home-phone-payment::after {
    content: '';
    position: absolute;
    inset-inline-end: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #943700;
}

.home-phone-pay-btn {
    border-radius: 999px;
    padding: 0.4rem 0.7rem;
    border: none;
    background: linear-gradient(180deg, #6c5ce7 0%, #3c3381 100%);
    color: #fff;
    font-family: 'Tajawal', 'Cairo', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.home-phone-pay-text {
    text-align: end;
    font-family: 'Tajawal', 'Cairo', sans-serif;
    font-size: 0.74rem;
    line-height: 1.4;
    color: #434655;
}

.home-phone-block-title {
    margin: 0.95rem 0 0.55rem;
    text-align: end;
    font-family: 'Tajawal', 'Cairo', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: #191b23;
}

.home-phone-daily-list {
    display: grid;
    gap: 0.45rem;
}

.home-phone-daily-item {
    border-radius: 10px;
    padding: 0.54rem 0.6rem;
    background: #fff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
}

.home-phone-pill {
    border-radius: 6px;
    padding: 0.2rem 0.45rem;
    font-family: 'Tajawal', 'Cairo', sans-serif;
    font-size: 0.73rem;
    line-height: 1.2;
}

.home-phone-pill.good {
    background: #fef9c3;
    color: #a16207;
}

.home-phone-pill.excellent {
    background: #7cf994;
    color: #007230;
}

.home-phone-daily-label {
    text-align: end;
    font-family: 'Tajawal', 'Cairo', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: #191b23;
}

.home-phone-schedule {
    margin-top: 0.95rem;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
    padding: 0.7rem;
    display: grid;
    gap: 0.62rem;
}

.home-phone-schedule-item {
    border-radius: 8px;
    padding: 0.52rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.52rem;
}

.home-phone-schedule-item.current {
    background: #faf3fe;
}

.home-phone-schedule-item.next {
    background: #fff;
    opacity: 0.6;
}

.home-phone-schedule-title {
    text-align: end;
    font-family: 'Tajawal', 'Cairo', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #191b23;
    line-height: 1.3;
}

.home-phone-schedule-time {
    text-align: end;
    font-family: 'Tajawal', 'Cairo', sans-serif;
    font-size: 0.74rem;
    color: #434655;
    line-height: 1.3;
}

.home-phone-class-btn {
    padding: 0.45rem 0.6rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #6c5ce7 0%, #3c3381 100%);
    color: #fff;
    border: none;
    font-family: 'Tajawal', 'Cairo', sans-serif;
    font-size: 0.73rem;
    font-weight: 700;
    white-space: nowrap;
}

.home-phone-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px rgba(108, 92, 231, 0.22);
    background: #e1e2ed;
    flex: 0 0 auto;
}

.home-phone-dot.active {
    background: linear-gradient(180deg, #6c5ce7 0%, #3c3381 100%);
}

.home-phone-nav {
    margin-top: 0.78rem;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(0, 33, 105, 0.12);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 0.6rem;
}

.home-phone-nav-item {
    text-align: center;
    font-family: 'Tajawal', 'Cairo', sans-serif;
    font-size: 0.67rem;
    font-weight: 700;
    color: #434655;
    padding: 0.35rem 0.25rem;
    border-radius: 999px;
}

.home-phone-nav-item.active {
    color: #6c5ce7;
    background: rgba(108, 92, 231, 0.15);
}

.home-stats-wrap {
    margin-top: 1rem;
    border-radius: 0;
    background: #fff;
    padding: 4.5rem 0;
}

.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.home-stat-card {
    min-height: 150px;
    border-radius: 48px;
    border: 1px solid rgba(94, 57, 224, 0.05);
    background: #fcf8ff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

.home-stat-number {
    margin: 0;
    color: #5e39e0;
    font-size: 1.12rem;
    line-height: 1.55;
    font-weight: 700;
}

.home-stat-label {
    margin: 0.2rem 0 0;
    color: #484555;
    font-size: 1.12rem;
    line-height: 1.55;
    font-weight: 700;
}

.home-services {
    padding: 4.6rem 0;
}

.home-services-head {
    text-align: center;
    margin-bottom: 3rem;
}

.home-services-title {
    margin: 0;
    color: #1c1930;
    font-size: clamp(1.9rem, 3.1vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
}

.home-services-subtitle {
    margin: 0.8rem auto 0;
    max-width: 720px;
    color: #484555;
    font-size: 1rem;
    line-height: 1.6;
}

.home-services-mosaic {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
}

.home-service-card {
    position: relative;
    border-radius: 48px;
    border: 1px solid rgba(201, 196, 216, 0.3);
    background: #f7f1ff;
    padding: 2rem;
    overflow: hidden;
    min-height: 260px;
}

.home-service-card.large {
    min-height: 312px;
}

.home-service-card.primary {
    grid-column: span 8;
}

.home-service-card.secondary {
    grid-column: span 4;
}

.home-service-card.tertiary {
    grid-column: span 4;
    min-height: 260px;
}

.home-service-card.quaternary {
    grid-column: span 8;
    background: #ebe5ff;
    display: grid;
    grid-template-columns: minmax(230px, 1fr) minmax(220px, 1fr);
    align-items: center;
    gap: 1.2rem;
}

.home-service-glow {
    position: absolute;
    width: 256px;
    height: 256px;
    border-radius: 50%;
    background: #cabeff;
    opacity: 0.3;
    filter: blur(30px);
    inset-inline-end: -35px;
    top: -42px;
    pointer-events: none;
}

.home-service-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-bottom: 1rem;
}

.home-service-icon .icon-svg {
    width: 1.35rem;
    height: 1.35rem;
    stroke-width: 2.1;
}

.home-service-icon.primary {
    background: #5e39e0;
    color: #fff;
    box-shadow: 0 8px 20px rgba(94, 57, 224, 0.24);
}

.home-service-icon.secondary {
    background: #7a61d9;
    color: #fff;
}

.home-service-icon.tertiary {
    background: #e0deef;
    color: #61616f;
}

.home-service-icon.quaternary {
    background: #603ce2;
    color: #fff;
}

.home-service-title {
    margin: 0;
    color: #1c1930;
    font-size: 1.5rem;
    line-height: 1.4;
    font-weight: 700;
    text-align: end;
}

.home-service-text {
    margin: 0.7rem 0 0;
    color: #484555;
    font-size: 1rem;
    line-height: 1.8;
    text-align: end;
}

.home-chart {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    border-radius: 32px;
    background: #fff;
    border: 1px solid rgba(201, 196, 216, 0.2);
    padding: 1rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
    position: relative;
    min-height: 190px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
}

.home-chart-pill {
    position: absolute;
    top: 0.8rem;
    inset-inline-end: 0.8rem;
    border-radius: 999px;
    border: 1px solid #bbf7d0;
    background: rgba(255, 255, 255, 0.8);
    color: #15803d;
    font-size: 0.72rem;
    line-height: 1.2;
    font-weight: 700;
    padding: 0.3rem 0.54rem;
}

.home-chart-bar {
    width: 14%;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    opacity: 0.9;
}

.home-chart-bar.b1 {
    height: 58%;
    background: #5e39e0;
}

.home-chart-bar.b2 {
    height: 68%;
    background: #5d5d6b;
}

.home-chart-bar.b3 {
    height: 34%;
    background: #7757fa;
}

.home-chart-bar.b4 {
    height: 50%;
    background: #6146be;
}

.home-chart-bar.b5 {
    height: 26%;
    background: #5e39e0;
}

.home-steps {
    background: #f7f1ff;
    padding: 5.6rem 0;
}

.home-steps-title {
    margin: 0;
    color: #1c1930;
    text-align: center;
    font-size: clamp(1.9rem, 3vw, 2rem);
    line-height: 1.32;
    font-weight: 700;
}

.home-steps-grid {
    margin-top: 3rem;
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.home-steps-grid::before {
    content: '';
    position: absolute;
    top: 52px;
    inset-inline-start: 0;
    width: 100%;
    height: 4px;
    background: rgba(94, 57, 224, 0.1);
    z-index: 0;
}

.home-step-card {
    position: relative;
    z-index: 1;
    border-radius: 48px;
    border: 1px solid rgba(94, 57, 224, 0.1);
    background: #fcf8ff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    padding: 2rem 1.2rem;
    text-align: center;
}

.home-step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin: 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #6c5ce7 0%, #3c3381 100%);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 700;
}

.home-step-title {
    margin: 1rem 0 0;
    color: #1c1930;
    font-size: 1.12rem;
    line-height: 1.55;
    font-weight: 700;
}

.home-step-text {
    margin: 0.45rem 0 0;
    color: #484555;
    font-size: 1rem;
    line-height: 1.75;
    font-weight: 400;
}

.home-faq {
    padding: 5rem 0 1.8rem;
}

.home-faq-title {
    margin: 0;
    color: #1c1930;
    text-align: center;
    font-size: clamp(1.9rem, 3vw, 2rem);
    line-height: 1.32;
    font-weight: 700;
}

.home-faq-list {
    margin: 3rem auto 0;
    max-width: 768px;
    display: grid;
    gap: 1rem;
}

.home-faq-item {
    border-radius: 48px;
    border: 1px solid rgba(94, 57, 224, 0.1);
    background: #fcf8ff;
    overflow: hidden;
}

.home-faq-item summary {
    padding: 1.2rem 1.5rem;
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.home-faq-item summary::-webkit-details-marker {
    display: none;
}

.home-faq-question {
    color: #1c1930;
    font-size: 1.5rem;
    line-height: 1.4;
    font-weight: 700;
    text-align: end;
}

.home-faq-arrow {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(94, 57, 224, 0.12);
    color: #1c1930;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 0.9rem;
    transform: rotate(0deg);
    transition: transform 0.2s ease;
}

.home-faq-item[open] .home-faq-arrow {
    transform: rotate(180deg);
}

.home-faq-answer {
    padding: 0 1.5rem 1.3rem;
    color: #484555;
    font-size: 1rem;
    line-height: 1.65;
    text-align: end;
}

@media (max-width: 1200px) {
    .home-services-mosaic {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-service-card.primary,
    .home-service-card.secondary,
    .home-service-card.tertiary,
    .home-service-card.quaternary {
        grid-column: span 1;
    }

    .home-service-card.quaternary {
        grid-template-columns: 1fr;
    }

    .home-steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-steps-grid::before {
        display: none;
    }
}

@media (max-width: 900px) {
    .home-phone-stage {
        min-height: initial;
    }

    .home-hero-actions {
        width: 100%;
    }

    .home-store-btn {
        min-width: 160px;
        max-width: 220px;
        flex: 1 1 160px;
    }

    .home-services-mosaic {
        grid-template-columns: 1fr;
    }

    .home-service-card.primary,
    .home-service-card.secondary,
    .home-service-card.tertiary,
    .home-service-card.quaternary {
        grid-column: span 1;
    }

    .home-service-card.quaternary {
        grid-template-columns: 1fr;
    }

    .home-stats-grid,
    .home-steps-grid {
        grid-template-columns: 1fr;
    }

    .home-faq-question {
        font-size: 1.2rem;
    }

    .home-hero-visual {
        border-radius: 30px;
        margin-top: 2rem;
    }
}

@media (max-width: 640px) {
    .home-hero {
        padding-top: 3rem;
    }

    .home-title {
        font-size: 2rem;
    }

    .home-subtitle {
        font-size: 1rem;
    }

    .home-store-btn {
        min-width: 152px;
        height: 50px;
    }

    .home-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .home-store-btn {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .home-phone-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-phone-payment,
    .home-phone-schedule-item {
        flex-wrap: wrap;
    }

    .home-phone-pay-btn,
    .home-phone-class-btn {
        width: 100%;
    }

    .home-services-mosaic {
        gap: 0.85rem;
    }

    .home-service-card {
        border-radius: 30px;
        padding: 1.3rem;
    }

    .home-service-title {
        font-size: 1.3rem;
    }

    .home-step-card {
        border-radius: 30px;
        padding: 1.3rem 1rem;
    }

    .home-faq-item {
        border-radius: 30px;
    }

    .home-faq-item summary,
    .home-faq-answer {
        padding-inline: 1rem;
    }

    .home-faq-question {
        font-size: 1.05rem;
    }

    .home-hero-visual {
        border-radius: 22px;
        padding: 0.55rem;
        margin-top: 1.5rem;
    }

    .home-hero-illustration {
        border-radius: 16px;
    }

    .home-hero-orb.orb-two,
    .home-hero-orb.orb-three {
        display: none;
    }
}
