/* ===== SWA EDU :: Design system ===== */
:root {
    --navy-950: #040814;
    --navy-900: #070d1f;
    --navy-800: #0b1330;
    --navy-700: #111b42;
    --blue: #2563ff;
    --blue-bright: #3b82f6;
    --cyan: #22d3ee;
    --purple: #7c5cff;
    --white: #f8fafc;
    --muted: #9fb0cc;
    --line: rgba(148,180,255,.16);
    --grad: linear-gradient(135deg,var(--blue) 0%,var(--cyan) 55%,var(--purple) 100%);
    --glass: rgba(255,255,255,.045);
    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 24px 60px rgba(2,8,26,.55);
    --wrap: 1180px;
    --font: "Cairo","Tajawal",system-ui,"Segoe UI",sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: var(--font);
    background: var(--navy-950);
    color: var(--white);
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block
}

a {
    color: inherit;
    text-decoration: none
}

h1, h2, h3 {
    line-height: 1.3;
    margin: 0 0 .5rem;
    font-weight: 900;
    letter-spacing: -.2px
}

p {
    margin: 0 0 1rem
}

.container {
    width: min(var(--wrap),92%);
    margin-inline: auto
}

.skip-link {
    position: absolute;
    inset-inline-start: -9999px;
    top: 0;
    background: var(--blue);
    padding: .75rem 1rem;
    z-index: 200;
    border-radius: 0 0 10px 10px
}

    .skip-link:focus {
        inset-inline-start: 1rem
    }

:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
    border-radius: 8px
}

/* ===== Glass ===== */
.glass {
    background: var(--glass);
    border: 1px solid var(--line);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-radius: var(--radius);
}

/* ===== Buttons ===== */
.btn {
    --bg: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .85rem 1.5rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    background: var(--bg);
    color: var(--white);
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
    position: relative;
    overflow: hidden;
}

    .btn:hover {
        transform: translateY(-2px)
    }

.btn--lg {
    padding: 1.05rem 2rem;
    font-size: 1.05rem
}

.btn--sm {
    padding: .6rem 1.1rem;
    font-size: .9rem
}

.btn--block {
    width: 100%
}

.btn--primary {
    background: var(--grad);
    border-color: transparent;
    box-shadow: 0 12px 34px rgba(37,99,255,.42)
}

    .btn--primary:hover {
        box-shadow: 0 18px 44px rgba(34,211,238,.5)
    }

.btn--whatsapp {
    background: rgba(37,211,102,.12);
    border-color: rgba(37,211,102,.45);
    color: #c9ffdf
}

    .btn--whatsapp:hover {
        background: rgba(37,211,102,.22)
    }

.btn[disabled] {
    opacity: .6;
    cursor: not-allowed;
    transform: none
}

/* ===== Nav ===== */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(18px);
    background: rgba(4,8,20,.72);
    border-bottom: 1px solid transparent;
    transition: border-color .3s,background .3s
}

    .nav.is-scrolled {
        border-bottom-color: var(--line);
        background: rgba(4,8,20,.92)
    }

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 74px
}

.brand {
    display: flex;
    align-items: center;
    gap: .7rem
}

.brand__mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--grad);
    font-weight: 900;
    font-size: .85rem;
    letter-spacing: .5px;
    box-shadow: 0 8px 22px rgba(37,99,255,.45)
}

.brand__text strong {
    display: block;
    font-size: 1rem
}

.brand__text small {
    color: var(--cyan);
    font-size: .72rem;
    letter-spacing: .4px
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 1.4rem
}

    .nav__menu a {
        font-size: .95rem;
        color: var(--muted);
        font-weight: 600;
        transition: color .2s
    }

        .nav__menu a:hover {
            color: var(--white)
        }

        .nav__menu a.btn {
            color: var(--white)
        }

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: .6rem;
    cursor: pointer
}

    .nav__toggle span {
        width: 24px;
        height: 2px;
        background: var(--white);
        border-radius: 2px;
        transition: .3s
    }

    .nav__toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg)
    }

    .nav__toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0
    }

    .nav__toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg)
    }

/* ===== Hero ===== */
.hero {
    position: relative;
    padding: clamp(3rem,8vw,6.5rem) 0 clamp(3rem,7vw,5.5rem);
    overflow: hidden
}

.hero__grid-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--line) 1px,transparent 1px),linear-gradient(90deg,var(--line) 1px,transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(circle at 50% 30%,#000 0%,transparent 72%);
    opacity: .6
}

.hero__glow {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: .5;
    animation: float 12s ease-in-out infinite
}

.hero__glow--a {
    background: var(--blue);
    top: -140px;
    inset-inline-end: -120px
}

.hero__glow--b {
    background: var(--purple);
    bottom: -180px;
    inset-inline-start: -140px;
    animation-delay: -6s
}

@keyframes float {
    0%,100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-28px)
    }
}

.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(2rem,4vw,3.5rem);
    align-items: center
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--glass);
    font-size: .85rem;
    color: var(--cyan);
    font-weight: 700
}

    .pill .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--cyan);
        box-shadow: 0 0 12px var(--cyan);
        animation: pulse 1.8s infinite
    }

@keyframes pulse {
    50% {
        opacity: .35
    }
}

.hero__title {
    font-size: clamp(1.9rem,4.6vw,3.4rem);
    margin-top: 1.2rem;
    background: linear-gradient(180deg,#fff 30%,#a9c6ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.hero__sub {
    font-size: clamp(1.1rem,2.2vw,1.5rem);
    font-weight: 700;
    color: var(--cyan)
}

.hero__text {
    color: var(--muted);
    max-width: 52ch
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    margin: 1.6rem 0
}

.hero__stats {
    list-style: none;
    display: flex;
    gap: 1rem;
    padding: 0;
    margin: 1.5rem 0 0;
    flex-wrap: wrap
}

    .hero__stats li {
        flex: 1 1 120px;
        padding: .9rem 1rem;
        border-radius: var(--radius-sm);
        border: 1px solid var(--line);
        background: var(--glass);
        text-align: center
    }

    .hero__stats strong {
        display: block;
        font-size: 1.6rem;
        background: var(--grad);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent
    }

    .hero__stats span {
        font-size: .82rem;
        color: var(--muted)
    }

.hero__domain {
    margin-top: 1.4rem;
    font-family: ui-monospace,SFMono-Regular,Menlo,monospace;
    letter-spacing: 1px;
    color: var(--cyan);
    direction: ltr;
    text-align: start
}

/* Hero visual */
.hero__visual {
    position: relative;
    min-height: 340px
}

.code-card {
    padding: 0;
    overflow: hidden;
    box-shadow: var(--shadow);
    transform: perspective(1200px) rotateY(6deg) rotateX(3deg)
}

.code-card__bar {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.03)
}

    .code-card__bar i {
        width: 11px;
        height: 11px;
        border-radius: 50%;
        background: #ff5f57
    }

        .code-card__bar i:nth-child(2) {
            background: #febc2e
        }

        .code-card__bar i:nth-child(3) {
            background: #28c840
        }

    .code-card__bar span {
        margin-inline-start: auto;
        font-size: .78rem;
        color: var(--muted);
        direction: ltr
    }

.code-card__body {
    margin: 0;
    padding: 1.2rem;
    font-family: ui-monospace,SFMono-Regular,Menlo,monospace;
    font-size: .85rem;
    line-height: 1.9;
    color: #cfe1ff;
    overflow-x: auto
}

.c-key {
    color: #7c5cff;
    font-weight: 700
}

.c-str {
    color: #22d3ee
}

.c-com {
    color: #5f7396
}

.chip {
    position: absolute;
    padding: .5rem .95rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 700;
    box-shadow: var(--shadow);
    animation: float 8s ease-in-out infinite
}

.chip--1 {
    top: -14px;
    inset-inline-start: -10px;
    color: var(--cyan)
}

.chip--2 {
    bottom: 40px;
    inset-inline-end: -16px;
    color: #c4b5fd;
    animation-delay: -3s
}

.chip--3 {
    bottom: -18px;
    inset-inline-start: 24px;
    animation-delay: -5s
}

/* ===== Sections ===== */
.section {
    padding: clamp(3.2rem,7vw,5.5rem) 0;
    position: relative
}

.section--alt {
    background: linear-gradient(180deg,var(--navy-900),var(--navy-950))
}

.section__head {
    max-width: 760px;
    margin: 0 auto clamp(2rem,4vw,3rem);
    text-align: center
}

    .section__head h2 {
        font-size: clamp(1.6rem,3.4vw,2.5rem)
    }

    .section__head p {
        color: var(--muted)
    }

.eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--cyan);
    margin-bottom: .6rem
}

.grid {
    display: grid;
    gap: 1.2rem
}

.grid--2 {
    grid-template-columns: repeat(2,1fr)
}

.grid--4 {
    grid-template-columns: repeat(4,1fr)
}

.card, .stat {
    padding: 1.6rem;
    transition: transform .3s,border-color .3s,box-shadow .3s
}

    .card:hover, .stat:hover {
        transform: translateY(-6px);
        border-color: rgba(34,211,238,.4);
        box-shadow: var(--shadow)
    }

.card__icon, .stat__ico {
    font-size: 1.9rem;
    margin-bottom: .6rem
}

.card h3, .stat h3 {
    font-size: 1.1rem
}

.card p, .stat p {
    color: var(--muted);
    font-size: .94rem;
    margin: 0
}

.stat {
    text-align: center
}

.stat__num {
    display: block;
    font-size: 2.6rem;
    font-weight: 900;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.timeline {
    list-style: none;
    display: flex;
    gap: .8rem;
    padding: 0;
    margin: 2rem 0 0;
    flex-wrap: wrap
}

    .timeline li {
        flex: 1 1 140px;
        padding: 1rem;
        text-align: center;
        border-radius: var(--radius-sm);
        border: 1px dashed var(--line);
        background: rgba(255,255,255,.02)
    }

    .timeline span {
        display: block;
        font-size: .82rem;
        color: var(--muted)
    }

    .timeline b {
        font-size: 1.1rem
    }

.timeline__total {
    border-style: solid;
    border-color: rgba(34,211,238,.5);
    background: rgba(34,211,238,.08)
}

/* ===== Tracks ===== */
.track {
    position: relative;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    color: inherit;
    font: inherit;
    transition: transform .3s,border-color .3s,box-shadow .3s
}

    .track:hover {
        transform: translateY(-6px)
    }

.track__flag {
    font-size: 2.6rem;
    display: block;
    margin-bottom: .5rem
}

.track p {
    color: var(--muted);
    margin: 0
}

.track__check {
    position: absolute;
    top: 1rem;
    inset-inline-end: 1rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--grad);
    opacity: 0;
    transform: scale(.6);
    transition: .3s;
    font-weight: 900
}

.track.is-selected {
    border-color: var(--cyan);
    box-shadow: 0 0 0 1px var(--cyan),0 18px 44px rgba(34,211,238,.22)
}

    .track.is-selected .track__check {
        opacity: 1;
        transform: scale(1)
    }

/* ===== Pricing ===== */
.price-wrap {
    display: flex;
    justify-content: center
}

.price {
    position: relative;
    width: min(430px,100%);
    padding: 2.4rem 2rem;
    text-align: center;
    box-shadow: var(--shadow)
}

    .price::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: var(--radius);
        padding: 1px;
        background: var(--grad);
        -webkit-mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none
    }

.price__badge {
    position: absolute;
    top: -13px;
    inset-inline-start: 50%;
    transform: translateX(50%);
    background: var(--grad);
    padding: .3rem 1rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800
}

.price__value {
    margin: .6rem 0 1.2rem
}

    .price__value strong {
        font-size: 3.4rem;
        background: var(--grad);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent
    }

    .price__value span {
        color: var(--muted)
    }

.price__list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.6rem;
    text-align: start
}

    .price__list li {
        padding: .55rem 0;
        border-bottom: 1px dashed var(--line);
        display: flex;
        gap: .6rem;
        align-items: center
    }

        .price__list li::before {
            content: "✓";
            color: var(--cyan);
            font-weight: 900
        }

.price__note {
    margin: 1rem 0 0;
    font-size: .9rem;
    color: #ffd28a
}

/* ===== Form ===== */
.register {
    max-width: 660px
}

.form {
    padding: clamp(1.5rem,4vw,2.4rem);
    box-shadow: var(--shadow)
}

.field {
    margin-bottom: 1.3rem;
    border: 0;
    padding: 0
}

    .field label, .field legend {
        display: block;
        font-weight: 700;
        margin-bottom: .5rem;
        font-size: .96rem
    }

    .field input[type="text"], .field input[type="tel"] {
        width: 100%;
        padding: .95rem 1.1rem;
        border-radius: 14px;
        font: inherit;
        color: var(--white);
        background: rgba(255,255,255,.04);
        border: 1px solid var(--line);
        transition: border-color .2s,box-shadow .2s;
    }

    .field input::placeholder {
        color: #6b7f9e
    }

    .field input:focus {
        border-color: var(--cyan);
        box-shadow: 0 0 0 3px rgba(34,211,238,.16);
        outline: none
    }

    .field.has-error input {
        border-color: #ff6b81;
        box-shadow: 0 0 0 3px rgba(255,107,129,.14)
    }

.field__hint {
    font-size: .82rem;
    color: var(--muted);
    margin: .4rem 0 0
}

.field__error {
    font-size: .85rem;
    color: #ff8fa3;
    margin: .4rem 0 0;
    min-height: 1.1em
}

.radio-group {
    display: flex;
    gap: .9rem;
    flex-wrap: wrap
}

.radio {
    flex: 1 1 150px;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .9rem 1.1rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.03);
    cursor: pointer;
    font-weight: 700;
    transition: .25s
}

    .radio:hover {
        border-color: rgba(34,211,238,.45)
    }

    .radio input {
        accent-color: #22d3ee;
        width: 18px;
        height: 18px
    }

    .radio:has(input:checked) {
        border-color: var(--cyan);
        background: rgba(34,211,238,.1)
    }

.form__status {
    margin: 1rem 0 0;
    text-align: center;
    font-weight: 700;
    min-height: 1.3em
}

    .form__status.is-error {
        color: #ff8fa3
    }

    .form__status.is-ok {
        color: #7ef0b2
    }

.spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .8s linear infinite
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.btn.is-loading .spinner {
    display: inline-block
}

.btn.is-loading .btn__label {
    opacity: .75
}

.success {
    margin-top: 1.5rem;
    padding: 2rem;
    text-align: center;
    border-color: rgba(126,240,178,.4)
}

.success__ico {
    font-size: 2.6rem
}

.success p {
    color: var(--muted)
}

/* ===== Accordion ===== */
.accordion {
    max-width: 820px;
    margin-inline: auto;
    display: grid;
    gap: .8rem
}

.acc {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--glass);
    overflow: hidden
}

.acc__btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.05rem 1.25rem;
    background: none;
    border: 0;
    color: var(--white);
    font: inherit;
    font-weight: 700;
    text-align: start;
    cursor: pointer
}

    .acc__btn span {
        color: var(--cyan);
        font-size: 1.35rem;
        transition: transform .3s
    }

    .acc__btn[aria-expanded="true"] span {
        transform: rotate(45deg)
    }

.acc__panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
    padding: 0 1.25rem
}

.acc.is-open .acc__panel {
    padding-bottom: 1.1rem
}

.acc__panel p {
    color: var(--muted);
    margin: 0
}

/* ===== Final CTA ===== */
.final {
    padding: clamp(3.5rem,8vw,6rem) 0;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at 50% 0%,rgba(37,99,255,.28),transparent 62%),var(--navy-950);
    border-top: 1px solid var(--line)
}

    .final h2 {
        font-size: clamp(1.8rem,4vw,2.8rem)
    }

.final__lead {
    font-size: 1.15rem
}

.final__meta {
    color: var(--cyan);
    font-weight: 700
}

.final__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem
}

.final .hero__domain {
    text-align: center
}

/* ===== Footer ===== */
.footer {
    background: var(--navy-900);
    border-top: 1px solid var(--line);
    padding: 2.4rem 0
}

.footer__inner {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: 1.4fr 1fr;
    align-items: center
}

.footer__brand {
    font-size: 1.1rem
}

.footer p {
    color: var(--muted);
    font-size: .9rem;
    margin: .3rem 0 0
}

.footer nav {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: flex-end
}

    .footer nav a {
        color: var(--muted);
        font-size: .92rem
    }

        .footer nav a:hover {
            color: var(--cyan)
        }

.footer__copy {
    grid-column: 1/-1;
    border-top: 1px solid var(--line);
    padding-top: 1.2rem;
    text-align: center
}

/* ===== Floating WhatsApp ===== */
.wa-float {
    position: fixed;
    bottom: 22px;
    inset-inline-start: 22px;
    z-index: 120;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .85rem 1.15rem;
    border-radius: 999px;
    background: #25d366;
    color: #06301a;
    font-weight: 800;
    box-shadow: 0 14px 34px rgba(37,211,102,.4);
    transition: transform .25s
}

    .wa-float:hover {
        transform: translateY(-3px)
    }

.wa-float__text {
    font-size: .92rem
}

/* ===== Reveal animation ===== */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s ease,transform .7s ease
}

    .reveal.is-visible {
        opacity: 1;
        transform: none
    }

@media (prefers-reduced-motion:reduce) {
    * {
        animation: none !important;
        transition: none !important
    }

    .reveal {
        opacity: 1;
        transform: none
    }

    html {
        scroll-behavior: auto
    }
}

/* ===== Responsive ===== */
@media (max-width:1024px) {
    .grid--4 {
        grid-template-columns: repeat(2,1fr)
    }

    .hero__inner {
        grid-template-columns: 1fr
    }

    .hero__visual {
        order: -1;
        min-height: auto
    }

    .code-card {
        transform: none
    }

    .chip {
        display: none
    }
}

@media (max-width:768px) {
    .nav__toggle {
        display: flex
    }

    .nav__menu {
        position: fixed;
        inset: 74px 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: .4rem;
        padding: 1.2rem 6%;
        background: rgba(4,8,20,.98);
        border-bottom: 1px solid var(--line);
        transform: translateY(-140%);
        transition: transform .35s ease;
        max-height: calc(100vh - 74px);
        overflow: auto
    }

        .nav__menu.is-open {
            transform: none
        }

        .nav__menu a {
            padding: .8rem .2rem;
            border-bottom: 1px solid var(--line)
        }

            .nav__menu a.btn {
                margin-top: .6rem;
                border-bottom: 0;
                justify-content: center
            }

    .footer__inner {
        grid-template-columns: 1fr
    }

    .footer nav {
        justify-content: flex-start
    }

    .wa-float__text {
        display: none
    }

    .wa-float {
        padding: 1rem;
        font-size: 1.3rem
    }
}

@media (max-width:560px) {
    .grid--2, .grid--4 {
        grid-template-columns: 1fr
    }

    .hero__actions .btn, .final__actions .btn {
        width: 100%
    }
}
