:root {
    --purple: #5e2a84;
    --purple-deep: #2d123f;
    --magenta: #be008d;
    --plum: #78006e;
    --ink: #161219;
    --muted: #6f6873;
    --surface: rgba(255, 255, 255, 0.86);
    --line: rgba(94, 42, 132, 0.13);
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(46, 18, 63, 0.12);
    --radius-lg: 32px;
    --radius-md: 24px;
    --radius-sm: 17px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at 8% 8%, rgba(190, 0, 141, 0.07), transparent 28%),
        radial-gradient(circle at 90% 12%, rgba(94, 42, 132, 0.08), transparent 26%),
        #f7f4fa;
    color: var(--ink);
    font-family: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
    overflow-x: hidden;
}

button,
a {
    font: inherit;
}

button {
    border: 0;
}

svg {
    display: block;
}

.page-shell {
    position: relative;
    min-height: 100vh;
    isolation: isolate;
}

.grid-overlay {
    position: fixed;
    inset: 0;
    z-index: -4;
    pointer-events: none;
    opacity: 0.38;
    background-image:
        linear-gradient(rgba(94, 42, 132, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(94, 42, 132, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, black, transparent 86%);
}

.ambient {
    position: fixed;
    z-index: -3;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(2px);
}

.ambient--one {
    top: -260px;
    right: -170px;
    background: radial-gradient(circle, rgba(190, 0, 141, 0.13), transparent 67%);
}

.ambient--two {
    bottom: -260px;
    left: -180px;
    background: radial-gradient(circle, rgba(94, 42, 132, 0.13), transparent 68%);
}

.site-header,
main,
.site-footer {
    width: min(1320px, calc(100% - 48px));
    margin-inline: auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 28px 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    width: min(360px, 58vw);
}

.brand img {
    display: block;
    width: 100%;
    height: auto;
}

.all-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid rgba(94, 42, 132, 0.15);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--purple);
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(46, 18, 63, 0.07);
    backdrop-filter: blur(16px);
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.all-toggle:hover {
    transform: translateY(-2px);
    background: var(--purple);
    color: var(--white);
}

.all-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s ease;
}

.all-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.7fr);
    align-items: center;
    gap: 64px;
    padding: 64px 70px;
    overflow: hidden;
    border: 1px solid rgba(94, 42, 132, 0.1);
    border-radius: 40px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(249, 244, 252, 0.78)),
        radial-gradient(circle at 86% 18%, rgba(190, 0, 141, 0.1), transparent 25%);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 100%;
    background: linear-gradient(to bottom, var(--magenta), var(--purple), var(--plum));
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -45% auto;
    width: 530px;
    height: 530px;
    border: 1px solid rgba(94, 42, 132, 0.08);
    border-radius: 50%;
}

.hero__copy {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border: 1px solid rgba(190, 0, 141, 0.17);
    border-radius: 999px;
    background: rgba(190, 0, 141, 0.055);
    color: var(--plum);
    font-size: 0.94rem;
    font-weight: 800;
}

.eyebrow__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--magenta);
    box-shadow: 0 0 0 6px rgba(190, 0, 141, 0.1);
}

.hero h1 {
    max-width: 800px;
    margin: 24px 0 18px;
    font-size: clamp(2.6rem, 5.1vw, 5.7rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
    font-weight: 900;
}

.hero h1 span {
    display: block;
    color: transparent;
    background: linear-gradient(110deg, var(--purple), var(--magenta), var(--plum));
    -webkit-background-clip: text;
    background-clip: text;
}

.hero__copy > p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.4vw, 1.22rem);
    line-height: 2;
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.hero__meta > div {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 12px 15px;
    border: 1px solid rgba(94, 42, 132, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.68);
}

.hero__meta strong {
    color: var(--purple);
    font-size: 1.2rem;
    font-weight: 900;
}

.hero__meta span {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.hero__visual {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    min-height: 360px;
}

.orb {
    position: absolute;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.orb--outer {
    width: 330px;
    height: 330px;
    border: 1px solid rgba(94, 42, 132, 0.13);
    animation: spin 20s linear infinite;
}

.orb--outer::before,
.orb--outer::after,
.orb--middle::before {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.orb--outer::before {
    top: 14px;
    right: 48px;
    width: 14px;
    height: 14px;
    background: var(--magenta);
    box-shadow: 0 0 0 10px rgba(190, 0, 141, 0.09);
}

.orb--outer::after {
    bottom: 28px;
    left: 40px;
    width: 10px;
    height: 10px;
    background: var(--purple);
}

.orb--middle {
    width: 252px;
    height: 252px;
    border: 1px dashed rgba(190, 0, 141, 0.24);
    animation: spin-reverse 14s linear infinite;
}

.orb--middle::before {
    top: 50%;
    left: -6px;
    width: 12px;
    height: 12px;
    background: var(--plum);
}

.orb--inner {
    width: 172px;
    height: 172px;
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.4), transparent 30%),
        linear-gradient(145deg, var(--magenta), var(--plum) 48%, var(--purple));
    color: var(--white);
    box-shadow:
        0 30px 65px rgba(94, 42, 132, 0.28),
        inset 0 0 0 1px rgba(255, 255, 255, 0.17);
    text-align: center;
    animation: float 5s ease-in-out infinite;
}

.orb--inner::after {
    content: "";
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(255, 255, 255, 0.19);
    border-radius: 50%;
}

.orb--inner span {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    opacity: 0.72;
}

.orb--inner strong {
    display: block;
    margin-top: -4px;
    font-size: 3.8rem;
    line-height: 1;
    font-weight: 900;
}

.orbit-dot {
    position: absolute;
    border-radius: 50%;
    filter: blur(0.2px);
}

.orbit-dot--one {
    top: 54px;
    left: 46px;
    width: 18px;
    height: 18px;
    background: rgba(190, 0, 141, 0.2);
}

.orbit-dot--two {
    right: 34px;
    bottom: 82px;
    width: 28px;
    height: 28px;
    background: rgba(94, 42, 132, 0.12);
}

.orbit-dot--three {
    left: 90px;
    bottom: 26px;
    width: 7px;
    height: 7px;
    background: var(--magenta);
}

.domains {
    padding: 92px 0 28px;
}

.section-heading {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    align-items: end;
    gap: 40px;
    margin-bottom: 30px;
}

.section-heading span {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--magenta);
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.section-heading h2 {
    margin: 0;
    color: var(--purple-deep);
    font-size: clamp(2rem, 3.2vw, 3.6rem);
    line-height: 1.25;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    line-height: 1.85;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.domain-card {
    position: relative;
    align-self: start;
    overflow: hidden;
    border: 1px solid rgba(94, 42, 132, 0.1);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.79);
    box-shadow: 0 18px 44px rgba(46, 18, 63, 0.075);
    backdrop-filter: blur(18px);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.domain-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    opacity: 0;
    background: linear-gradient(90deg, transparent, var(--card-accent), transparent);
    transition: opacity 0.35s ease;
}

.domain-card::after {
    content: "";
    position: absolute;
    top: -120px;
    left: -120px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--card-accent) 12%, transparent);
    filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.domain-card:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--card-accent) 24%, transparent);
    box-shadow: 0 24px 60px rgba(46, 18, 63, 0.12);
}

.domain-card:hover::after,
.domain-card.is-open::after,
.domain-card.is-open::before {
    opacity: 1;
}

.domain-card.is-open {
    border-color: color-mix(in srgb, var(--card-accent) 35%, transparent);
    box-shadow: 0 26px 70px rgba(46, 18, 63, 0.13);
}

.domain-card__trigger {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    width: 100%;
    min-height: 150px;
    padding: 28px;
    background: transparent;
    color: inherit;
    text-align: right;
    cursor: pointer;
}

.domain-card__number {
    align-self: start;
    color: color-mix(in srgb, var(--card-accent) 72%, #ffffff);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.domain-card__icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 1px solid color-mix(in srgb, var(--card-accent) 16%, transparent);
    border-radius: 18px;
    background: color-mix(in srgb, var(--card-accent) 8%, #ffffff);
    color: var(--card-accent);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
    transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease;
}

.domain-card:hover .domain-card__icon,
.domain-card.is-open .domain-card__icon {
    transform: rotate(-5deg) scale(1.06);
    background: var(--card-accent);
    color: var(--white);
}

.domain-card__icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.domain-card__text {
    display: block;
    min-width: 0;
}

.domain-card__text strong {
    display: block;
    color: var(--purple-deep);
    font-size: clamp(1.14rem, 1.6vw, 1.48rem);
    line-height: 1.5;
    font-weight: 900;
}

.domain-card__text small {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.75;
}

.domain-card__action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(94, 42, 132, 0.055);
    color: var(--purple);
    font-size: 0.82rem;
    font-weight: 800;
}

.domain-card__action svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.35s ease;
}

.domain-card.is-open .domain-card__action {
    color: var(--card-accent);
    background: color-mix(in srgb, var(--card-accent) 8%, #ffffff);
}

.domain-card.is-open .domain-card__action svg {
    transform: rotate(180deg);
}

.domain-card__details {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
}

.domain-card.is-open .domain-card__details {
    grid-template-rows: 1fr;
    opacity: 1;
}

.domain-card__details-inner {
    min-height: 0;
    overflow: hidden;
    padding: 0 28px;
}

.domain-card.is-open .domain-card__details-inner {
    padding-bottom: 28px;
}

.detail-block {
    position: relative;
    display: grid;
    grid-template-columns: 155px minmax(0, 1fr);
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
}

.detail-block__label {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--purple);
    font-size: 0.88rem;
    font-weight: 900;
}

.detail-block__label span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: rgba(94, 42, 132, 0.075);
    color: var(--card-accent);
    font-size: 0.72rem;
}

.detail-block p {
    margin: 0;
    color: #514b54;
    font-size: 0.98rem;
    line-height: 1.95;
}

.detail-block--ai p {
    color: var(--purple-deep);
    font-weight: 600;
}

.detail-block--example {
    margin-top: 3px;
    padding: 18px;
    border: 1px solid color-mix(in srgb, var(--card-accent) 12%, transparent);
    border-radius: 18px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--card-accent) 6%, #ffffff), rgba(255, 255, 255, 0.7));
}

.detail-block--example p {
    color: var(--purple-deep);
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 58px;
    padding: 30px 0 38px;
    border-top: 1px solid rgba(94, 42, 132, 0.11);
    color: var(--muted);
}

.site-footer p {
    max-width: 820px;
    margin: 0;
    line-height: 1.8;
}

.site-footer span {
    color: var(--purple);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    to { transform: rotate(-360deg); }
}

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

@media (max-width: 1080px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero__visual {
        min-height: 310px;
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .site-header,
    main,
    .site-footer {
        width: min(100% - 26px, 1320px);
    }

    .site-header {
        align-items: flex-start;
        padding-top: 18px;
    }

    .brand {
        width: min(255px, 62vw);
    }

    .all-toggle {
        width: 46px;
        height: 46px;
        min-height: 46px;
        padding: 0;
    }

    .all-toggle span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .hero {
        padding: 42px 25px 38px;
        border-radius: 28px;
    }

    .hero h1 {
        margin-top: 18px;
        letter-spacing: -0.03em;
    }

    .hero__meta {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero__visual {
        min-height: 270px;
    }

    .orb--outer {
        width: 252px;
        height: 252px;
    }

    .orb--middle {
        width: 200px;
        height: 200px;
    }

    .orb--inner {
        width: 142px;
        height: 142px;
    }

    .orb--inner strong {
        font-size: 3rem;
    }

    .domains {
        padding-top: 64px;
    }

    .domain-card__trigger {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 14px;
        min-height: 132px;
        padding: 22px 18px;
    }

    .domain-card__number {
        display: none;
    }

    .domain-card__icon {
        width: 50px;
        height: 50px;
        border-radius: 15px;
    }

    .domain-card__action span {
        display: none;
    }

    .domain-card__action {
        width: 38px;
        height: 38px;
        justify-content: center;
        padding: 0;
    }

    .domain-card__details-inner {
        padding-inline: 18px;
    }

    .detail-block {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .detail-block--example {
        padding: 16px;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
