@font-face {
    font-family: "SegoeUIArabic";
    src: url("../fonts/segoeui.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "SegoeUIArabic";
    src: url("../fonts/segoeuib.ttf") format("truetype");
    font-style: normal;
    font-weight: 700 900;
}

:root {
    --page-bg-start: #902af6;
    --page-bg-mid: #5169ff;
    --page-bg-end: #48d9ff;
    --hero-blue: #0758c7;
    --hero-sky: #8ac2ef;
    --hero-warm: #f7ecd3;
    --glass: rgba(255, 255, 255, 0.78);
    --glass-strong: rgba(255, 255, 255, 0.92);
    --glass-soft: rgba(255, 255, 255, 0.24);
    --ink: #111533;
    --ink-soft: #5e698f;
    --line: rgba(255, 255, 255, 0.33);
    --shadow: 0 22px 50px rgba(44, 60, 132, 0.18);
    --shadow-soft: 0 14px 36px rgba(44, 60, 132, 0.12);
    --primary-start: #3c47ff;
    --primary-end: #a647f5;
    --radius-xl: 30px;
    --radius-lg: 24px;
    --radius-md: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.anchor-target {
    display: block;
    height: 0;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: "SegoeUIArabic", "Segoe UI", Tahoma, Arial, sans-serif;
    letter-spacing: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 55%, rgba(255, 114, 202, 0.48), transparent 22%),
        radial-gradient(circle at 94% 8%, rgba(145, 255, 252, 0.44), transparent 18%),
        linear-gradient(90deg, var(--page-bg-start) 0%, var(--page-bg-mid) 48%, var(--page-bg-end) 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.page-glow {
    position: fixed;
    z-index: 0;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.78;
    pointer-events: none;
}

.page-glow--left {
    left: -120px;
    bottom: 70px;
    width: 320px;
    height: 320px;
    background: rgba(255, 117, 207, 0.58);
}

.page-glow--right {
    top: 60px;
    right: -90px;
    width: 260px;
    height: 260px;
    background: rgba(118, 255, 255, 0.42);
}

.site-shell {
    position: relative;
    z-index: 1;
    width: min(1348px, calc(100% - 24px));
    margin: 6px auto 8px;
}

.topbar,
.hero,
.feature-card,
.portal-entry {
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.topbar {
    direction: ltr;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 8px 14px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(241, 246, 255, 0.7) 100%);
}

.topbar__actions,
.topbar__nav,
.brand {
    direction: rtl;
}

.topbar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 20px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 0.92rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.pill-btn:hover,
.hero__cta:hover,
.feature-card__more:hover {
    transform: translateY(-1px);
}

.pill-btn--primary {
    color: #fff;
    background: linear-gradient(90deg, var(--primary-start) 0%, var(--primary-end) 100%);
    box-shadow: 0 16px 28px rgba(85, 80, 245, 0.28);
}

.pill-btn--ghost {
    color: #2447e8;
    background: rgba(255, 255, 255, 0.86);
    border: 1.5px solid rgba(71, 100, 250, 0.34);
}

.pill-btn__icon {
    font-size: 0.98rem;
    line-height: 1;
}

.topbar__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    flex-wrap: wrap;
}

.topbar__link {
    position: relative;
    padding: 6px 2px;
    font-weight: 800;
    color: #1a2148;
}

.topbar__link--active {
    color: #2f52fb;
}

.topbar__link--active::after {
    content: "";
    position: absolute;
    right: 50%;
    bottom: -6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    transform: translateX(50%);
    background: #2f52fb;
    box-shadow: 0 0 0 6px rgba(47, 82, 251, 0.08);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand__copy {
    display: grid;
    gap: 4px;
    text-align: right;
}

.brand__copy strong {
    font-family: "SegoeUIArabic", "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 0.94rem;
    font-weight: 800;
    color: #2246e4;
}

.brand__copy span {
    font-size: 0.72rem;
    color: #5d6d95;
    line-height: 1.25;
}

.brand__badge {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(238, 246, 255, 0.88));
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(123, 157, 255, 0.3);
    overflow: hidden;
}

.brand__badge img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.landing {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.hero {
    direction: ltr;
    position: relative;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    min-height: 258px;
    align-items: stretch;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(90deg, #0758c7 0%, #1b76dc 32%, #97c8ec 58%, #f1e6cf 82%, #fbf6ee 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 76, 177, 0.14) 0%, rgba(7, 76, 177, 0.04) 28%, rgba(255, 255, 255, 0) 54%, rgba(251, 244, 231, 0.18) 82%, rgba(251, 244, 231, 0.28) 100%),
        url("../img/home/picindex.png") left center / auto 100% no-repeat;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.46) 0%, rgba(255, 255, 255, 0.14) 16%, rgba(255, 255, 255, 0) 34%),
        radial-gradient(circle at 94% 80%, rgba(255, 227, 162, 0.22) 0%, rgba(255, 227, 162, 0) 24%);
    pointer-events: none;
}

.hero__visual,
.hero__content {
    direction: rtl;
    position: relative;
    z-index: 1;
}

.hero__visual {
    min-height: 258px;
    overflow: visible;
    background: transparent;
}

.hero__art,
.hero__shade {
    position: absolute;
}

.hero__art {
    display: none;
}

.hero__shade {
    display: none;
}

.hero__content {
    padding: 18px 30px 16px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: right;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 28%, rgba(251, 244, 231, 0.12) 100%);
}

.hero__content::before {
    display: none;
}

.hero__eyebrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    margin-bottom: 10px;
    border-radius: 999px;
    color: #2e53f4;
    font-family: "SegoeUIArabic", "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 0.76rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.44);
    border: 1px solid rgba(111, 147, 255, 0.14);
    box-shadow: 0 8px 20px rgba(122, 152, 219, 0.08);
}

.hero__content h1 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    font-family: "SegoeUIArabic", "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: clamp(1.62rem, 2.55vw, 2.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.14);
}

.hero__content h1 span {
    display: block;
    font-family: "SegoeUIArabic", "Segoe UI", Tahoma, Arial, sans-serif;
    font-weight: inherit;
    background: linear-gradient(90deg, #2568f7 0%, #734eff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__content p {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    max-width: 350px;
    color: #5d698f;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.45;
}

.hero__cta {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 40px;
    min-width: 210px;
    padding: 0 18px;
    border-radius: 16px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary-start) 0%, var(--primary-end) 100%);
    box-shadow: 0 16px 32px rgba(78, 85, 244, 0.26);
}

.hero__cta-icon {
    font-size: 1.08rem;
    line-height: 1;
}

.hero--poster {
    display: block;
    min-height: auto;
    background: transparent;
    border-radius: 26px;
    box-shadow: var(--shadow);
    overflow: hidden;
    width: fit-content;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
}

.hero--poster::before,
.hero--poster::after {
    display: none;
}

.hero__poster-link {
    position: relative;
    display: block;
    width: auto;
}

.hero__poster {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 560px;
    height: auto;
    border-radius: 26px;
}

.hero__poster-robot {
    position: absolute;
    top: 18px;
    right: 24px;
    width: 88px;
    height: auto;
    pointer-events: none;
    filter: drop-shadow(0 14px 24px rgba(40, 92, 182, 0.22));
    z-index: 2;
}

.features {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.feature-card {
    min-height: 136px;
    padding: 14px 12px 12px;
    border-radius: 22px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(240, 246, 255, 0.72) 100%);
}

.feature-card__icon {
    position: relative;
    width: 42px;
    height: 42px;
    margin: 0 auto 10px;
    border-radius: 12px;
}

.feature-card__icon::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../img/home/icon-sheet.png");
    background-repeat: no-repeat;
    background-size: 300% 200%;
}

.feature-card__icon--clipboard::before,
.feature-card__icon--check::before {
    background-position: 0% 0%;
}

.feature-card__icon--play::before {
    background-position: 50% 0%;
}

.feature-card__icon--live::before {
    background-position: 100% 0%;
}

.feature-card__icon--wand::before {
    background-position: 0% 100%;
}

.feature-card__icon--profile::before {
    background-position: 50% 100%;
}

.feature-card__icon--grid::before {
    background-position: 100% 100%;
}

.feature-card__icon--check {
    filter: hue-rotate(-18deg) saturate(1.06);
}

.feature-card h2 {
    margin: 0 0 8px;
    min-height: 52px;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.45;
}

.feature-card p {
    margin: 0;
    min-height: 40px;
    color: var(--ink-soft);
    font-size: 0.82rem;
    line-height: 1.6;
}

.feature-card__more {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin: 8px auto 0;
    border-radius: 999px;
    color: #4164fa;
    background: rgba(65, 100, 250, 0.1);
    font-size: 1rem;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(65, 100, 250, 0.08);
}

.brand-story {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 18px;
    align-items: stretch;
}

.brand-story--compact {
    grid-template-columns: 1fr;
}

.brand-story__panel,
.brand-story__facts {
    border: 1px solid var(--line);
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 249, 255, 0.78)),
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.14), transparent 32%);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.brand-story__panel {
    display: grid;
    gap: 16px;
    padding: 24px 26px;
}

.brand-story__panel--compact {
    gap: 14px;
}

.brand-story__panel h2,
.brand-story__panel p {
    margin: 0;
}

.brand-story__panel h2 {
    font-size: clamp(1.45rem, 2vw, 2rem);
    color: #142042;
    line-height: 1.45;
}

.brand-story__panel p {
    color: #48577f;
    line-height: 1.95;
    font-size: 0.98rem;
}

.brand-story__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.brand-story__pills span {
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(32, 72, 224, 0.08);
    color: #2346df;
    font-weight: 800;
    font-size: 0.84rem;
}

.brand-story__links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.brand-story__facts {
    display: grid;
    gap: 12px;
    padding: 22px;
}

.brand-story__fact {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(116, 143, 255, 0.14);
}

.brand-story__fact strong {
    color: #10204a;
    font-size: 0.98rem;
}

.brand-story__fact span {
    color: #617093;
    font-size: 0.86rem;
    line-height: 1.7;
}

.portal-entry {
    direction: ltr;
    display: grid;
    grid-template-columns: 312px 1fr 82px;
    gap: 12px;
    align-items: center;
    min-height: 94px;
    padding: 10px 14px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 10% 50%, rgba(255, 146, 219, 0.18), transparent 22%),
        linear-gradient(90deg, rgba(209, 151, 255, 0.26) 0%, rgba(85, 101, 255, 0.26) 44%, rgba(95, 203, 255, 0.24) 100%);
}

.portal-entry__visual,
.portal-entry__content,
.portal-entry__sparkles {
    direction: rtl;
    position: relative;
}

.portal-entry__visual {
    display: flex;
    align-items: flex-end;
    gap: 5px;
}

.portal-entry__robot {
    width: 88px;
    flex: 0 0 auto;
    filter: drop-shadow(0 14px 28px rgba(83, 108, 224, 0.2));
}

.portal-entry__metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    flex: 1;
    align-self: center;
}

.metric {
    display: block;
    min-height: 32px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(241, 245, 255, 0.72) 100%);
    border: 1px solid rgba(255, 255, 255, 0.34);
    box-shadow: var(--shadow-soft);
}

.metric--wide {
    grid-column: 1 / -1;
    min-height: 40px;
}

.portal-entry__content {
    text-align: right;
}

.portal-entry__content h2 {
    margin: 0 0 2px;
    color: #eef4ff;
    font-size: clamp(1.28rem, 1.7vw, 1.95rem);
    line-height: 1.1;
    text-shadow: 0 4px 18px rgba(80, 91, 218, 0.2);
}

.portal-entry__content p {
    margin: 0 0 8px;
    max-width: 420px;
    color: rgba(247, 250, 255, 0.92);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
}

.portal-entry__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.portal-entry__actions .pill-btn--ghost {
    color: #2d53ec;
    background: rgba(255, 255, 255, 0.88);
}

.portal-entry__sparkles {
    display: grid;
    justify-items: center;
    gap: 6px;
}

.portal-entry__sparkles span {
    display: block;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.26));
    clip-path: polygon(50% 0%, 62% 36%, 100% 50%, 62% 64%, 50% 100%, 38% 64%, 0% 50%, 38% 36%);
    filter: drop-shadow(0 10px 18px rgba(255, 255, 255, 0.18));
}

.portal-entry__sparkles span:nth-child(1) {
    width: 28px;
    height: 28px;
}

.portal-entry__sparkles span:nth-child(2) {
    width: 12px;
    height: 12px;
}

.portal-entry__sparkles span:nth-child(3) {
    width: 18px;
    height: 18px;
}

@media (max-width: 1260px) {
    .features {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .portal-entry {
        grid-template-columns: 280px 1fr;
    }

    .portal-entry__sparkles {
        display: none;
    }

    .brand-story {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1080px) {
    .topbar {
        grid-template-columns: 1fr;
        justify-items: center;
    }

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

    .hero__content {
        padding: 40px 24px 32px;
    }

    .hero__visual {
        min-height: 340px;
    }

    .portal-entry {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .portal-entry__visual,
    .portal-entry__content,
    .portal-entry__actions {
        justify-content: center;
    }

    .portal-entry__content p {
        margin-right: auto;
        margin-left: auto;
    }
}

@media (max-width: 760px) {
    .site-shell {
        width: min(100% - 16px, 100%);
        margin-top: 8px;
    }

    .topbar {
        padding: 16px;
        border-radius: 24px;
    }

    .topbar__nav {
        gap: 18px;
    }

    .brand {
        justify-content: center;
    }

    .hero__brand-stack {
        top: 18px;
        left: 16px;
    }

    .hero__logo {
        width: 96px;
    }

    .hero__art {
        object-position: center 34%;
    }

    .hero__content h1 {
        font-size: 2.3rem;
    }

    .hero__poster-robot {
        top: 12px;
        right: 14px;
        width: 64px;
    }

    .hero__content p {
        font-size: 1rem;
    }

    .hero__cta,
    .pill-btn {
        width: 100%;
        min-width: 0;
    }

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

    .portal-entry__visual {
        flex-direction: column;
        align-items: center;
    }

    .portal-entry__metrics {
        width: 100%;
    }

    .portal-entry__actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .features {
        grid-template-columns: 1fr;
    }

    .topbar__actions,
    .topbar__nav {
        width: 100%;
        justify-content: center;
    }

    .topbar__nav {
        gap: 12px 20px;
    }

    .brand {
        flex-direction: column;
        text-align: center;
    }

    .brand__copy {
        text-align: center;
    }

    .hero__content {
        align-items: stretch;
    }
}
