:root {
    color-scheme: dark;
    --bg: #090909;
    --bg-soft: #111111;
    --panel: #18181c;
    --panel-soft: rgba(255, 255, 255, 0.035);
    --line: rgba(255, 255, 255, 0.09);
    --line-soft: rgba(255, 255, 255, 0.05);
    --text: #f4f1ea;
    --muted: #aaa7a1;
    --muted-strong: #d6d0c8;
    --warm: #f2d5a2;
    --warm-soft: rgba(242, 213, 162, 0.18);
    --warm-deep: #a85b2b;
    --white: #fffdf8;
    --radius-xl: 34px;
    --radius-lg: 28px;
    --radius-md: 20px;
    --shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
    --max-width: 1180px;
    font-family: "IBM Plex Sans Arabic", "Manrope", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% 12%, rgba(168, 91, 43, 0.18), transparent 22%),
        radial-gradient(circle at 50% 30%, rgba(242, 213, 162, 0.06), transparent 32%),
        linear-gradient(180deg, #0b0b0c 0%, #090909 100%);
    color: var(--text);
    line-height: 1.6;
}

body::selection {
    background: rgba(242, 213, 162, 0.16);
}

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-bg {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
    background-size: 110px 110px;
    mask-image: radial-gradient(circle at center, black 26%, transparent 78%);
    opacity: 0.18;
    pointer-events: none;
    z-index: -2;
}

.site-header,
.page-shell,
.site-footer {
    width: min(calc(100% - 32px), var(--max-width));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 16px;
    z-index: 30;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    margin-top: 16px;
    min-height: 72px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    background: rgba(11, 11, 12, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding-inline-end: 14px;
    border-inline-end: 1px solid var(--line);
}

.brand-mark p,
.brand-mark strong {
    margin: 0;
}

.brand-mark strong {
    font-size: 1rem;
}

.brand-token {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    font-weight: 800;
}

.brand-eyebrow,
.section-kicker,
.mini-label,
.card-tag,
.metric-card span,
.partner-card span,
.partner-card small {
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.site-nav a,
.footer-links a,
.inline-links a,
.section-link,
.text-link {
    transition: color 180ms ease, opacity 180ms ease;
}

.site-nav a:hover,
.footer-links a:hover,
.inline-links a:hover,
.section-link:hover,
.text-link:hover {
    color: var(--white);
}

.social-links {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-inline-start: 14px;
    border-inline-start: 1px solid var(--line);
}

.social-link,
.community-link,
.button,
.hero-card,
.product-card,
.feature-card,
.partner-card,
.auth-card,
.footer-card {
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        background 220ms ease,
        box-shadow 220ms ease;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted-strong);
}

.social-link:hover,
.community-link:hover,
.button:hover,
.hero-card:hover,
.product-card:hover,
.feature-card:hover,
.partner-card:hover,
.auth-card:hover,
.footer-card:hover {
    transform: translateY(-3px);
}

.page-shell {
    padding: 34px 0 56px;
}

.hero-section,
.content-section {
    margin-top: 26px;
}

.hero-grid {
    display: grid;
    gap: 20px;
}

.glass-panel,
.hero-card,
.product-card,
.feature-card,
.partner-card,
.auth-card,
.footer-card,
.site-footer {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.018));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.hero-card,
.auth-card,
.footer-card,
.site-footer {
    border-radius: var(--radius-xl);
}

.hero-card,
.content-section,
.site-footer {
    padding: 0;
}

.hero-main {
    position: relative;
    overflow: hidden;
    min-height: 640px;
    padding: 64px 24px 68px;
    text-align: center;
}

.hero-main::before {
    content: "";
    position: absolute;
    inset: auto 50% 16px auto;
    width: min(76vw, 680px);
    height: 240px;
    transform: translateX(50%);
    border-radius: 999px 999px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 55%),
        radial-gradient(circle at 50% 88%, rgba(242, 213, 162, 0.82), rgba(168, 91, 43, 0.42) 28%, transparent 70%);
    box-shadow:
        0 0 90px rgba(242, 213, 162, 0.16),
        inset 0 -40px 100px rgba(242, 213, 162, 0.18);
    pointer-events: none;
}

.hero-main::after {
    content: "";
    position: absolute;
    inset: auto 50% -140px auto;
    width: min(92vw, 980px);
    height: 240px;
    transform: translateX(50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 243, 221, 0.06), transparent 66%);
    pointer-events: none;
}

.hero-labels {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.halo-chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted-strong);
    font-size: 0.82rem;
}

.halo-chip-muted {
    background: rgba(242, 213, 162, 0.06);
}

.hero-main h1,
.section-heading h2,
.community-copy h2,
.cta-copy h2,
.auth-head h3,
.site-footer h3 {
    margin: 0;
    font-family: "Manrope", "IBM Plex Sans Arabic", sans-serif;
    line-height: 1.03;
}

.hero-main h1 {
    max-width: 10ch;
    margin: 20px auto 0;
    font-size: clamp(3rem, 10vw, 5.7rem);
}

.hero-text {
    max-width: 720px;
    margin: 18px auto 0;
    color: var(--muted-strong);
    font-size: clamp(1rem, 2.2vw, 1.22rem);
}

.hero-actions {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 26px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
}

.button-primary {
    background: var(--white);
    color: #151515;
}

.button-secondary {
    background: transparent;
    color: var(--muted-strong);
    text-decoration: underline;
    text-underline-offset: 4px;
    min-height: auto;
    padding: 10px 8px;
}

.hero-metrics {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 760px;
    margin: 44px auto 0;
}

.metric-card {
    padding: 16px 18px;
    border-radius: 22px;
    border: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
}

.metric-card strong {
    display: block;
    margin-top: 10px;
    font-size: clamp(1.3rem, 3vw, 1.9rem);
}

.hero-side {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 18px;
}

.visual-card,
.info-card {
    padding: 22px;
    border-radius: var(--radius-lg);
}

.abstract-scene {
    position: relative;
    min-height: 220px;
    margin-bottom: 18px;
    overflow: hidden;
    border-radius: 26px;
    background:
        radial-gradient(circle at 35% 35%, rgba(242, 213, 162, 0.16), transparent 35%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.abstract-scene::before {
    content: "";
    position: absolute;
    inset: 18px;
    background:
        repeating-radial-gradient(circle at center, transparent 0 18px, rgba(255, 255, 255, 0.03) 18px 19px);
    opacity: 0.35;
}

.abstract-scene-small {
    min-height: 200px;
    margin-bottom: 12px;
}

.mesh,
.shape {
    position: absolute;
    display: block;
}

.mesh {
    border-radius: 50%;
    filter: blur(22px);
}

.mesh-a {
    inset: 20px auto auto 18%;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(242, 213, 162, 0.36), transparent 70%);
}

.mesh-b {
    inset: auto 14% 14px auto;
    width: 170px;
    height: 170px;
    background: radial-gradient(circle, rgba(168, 91, 43, 0.26), transparent 70%);
}

.shape {
    border-radius: 999px;
}

.sphere {
    inset: 22px 18% auto auto;
    width: 112px;
    height: 112px;
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.42), transparent 32%),
        linear-gradient(145deg, rgba(255, 245, 230, 0.22), rgba(242, 213, 162, 0.1));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.ring {
    inset: 86px auto auto 14%;
    width: 148px;
    height: 148px;
    border: 14px solid rgba(255, 255, 255, 0.12);
}

.ring-soft {
    border-color: rgba(242, 213, 162, 0.18);
}

.prism {
    inset: auto 20% 24px auto;
    width: 118px;
    height: 118px;
    border-radius: 28px;
    transform: rotate(24deg);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03)),
        linear-gradient(145deg, rgba(242, 213, 162, 0.12), rgba(168, 91, 43, 0.1));
}

.disc {
    inset: auto auto 28px 18%;
    width: 80px;
    height: 80px;
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.34), transparent 30%),
        linear-gradient(145deg, rgba(242, 213, 162, 0.24), rgba(255, 255, 255, 0.04));
}

.visual-copy strong,
.product-card h3,
.feature-card h3,
.partner-card strong,
.info-card strong {
    display: block;
    margin-top: 12px;
    font-size: 1.08rem;
}

.info-card p,
.product-card p,
.feature-card p,
.cta-copy p,
.site-footer p {
    color: var(--muted);
}

.card-icon,
.community-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--white);
}

.feature-icon {
    background: rgba(242, 213, 162, 0.08);
}

.content-section {
    background: transparent;
}

.section-heading,
.community-copy {
    margin-bottom: 18px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.section-heading h2,
.community-copy h2,
.cta-copy h2,
.auth-head h3,
.site-footer h3 {
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.section-link,
.text-link {
    color: var(--muted-strong);
    font-weight: 700;
}

.bento-grid {
    display: grid;
    gap: 18px;
}

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

.product-card,
.feature-card,
.partner-card {
    padding: 24px;
    border-radius: var(--radius-lg);
}

.card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.price-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
}

.price-row strong {
    display: block;
}

.price-row small {
    color: var(--muted);
}

.product-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.015));
}

.product-card:nth-child(1),
.product-card:nth-child(4) {
    grid-column: span 2;
}

.product-card .text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
}

.feature-card:first-child {
    grid-column: 1 / -1;
    min-height: 260px;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.01)),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.02), transparent 58%);
}

.feature-card:first-child .card-icon {
    margin-inline: auto;
}

.feature-card:first-child::before {
    content: "";
    display: block;
    width: 100%;
    height: 88px;
    margin-bottom: 28px;
    background:
        radial-gradient(circle at 20% 100%, transparent 0 48px, rgba(255, 255, 255, 0.03) 48px 50px, transparent 50px 56px),
        radial-gradient(circle at 50% 100%, transparent 0 58px, rgba(255, 255, 255, 0.03) 58px 60px, transparent 60px 66px),
        radial-gradient(circle at 80% 100%, transparent 0 48px, rgba(255, 255, 255, 0.03) 48px 50px, transparent 50px 56px);
}

.partner-card {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.partner-card:first-child {
    grid-column: span 2;
    background: var(--white);
    color: #121212;
}

.partner-card:first-child span,
.partner-card:first-child small {
    color: #66615a;
}

.partner-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    font-weight: 800;
}

.community-section {
    text-align: center;
}

.community-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.community-link {
    display: grid;
    gap: 10px;
    justify-items: center;
    min-width: 112px;
    color: var(--muted-strong);
}

.community-icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
}

.cta-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
    gap: 20px;
}

.cta-card,
.auth-card {
    padding: 24px;
}

.cta-story {
    background: var(--white);
    color: #131313;
}

.cta-story .section-kicker,
.cta-story p,
.cta-story .cta-points span {
    color: #6b655f;
}

.cta-story .cta-points div {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
}

.cta-story .cta-points strong {
    background: #171717;
    color: var(--white);
}

.cta-points {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.cta-points div {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.03);
}

.cta-points strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
}

.auth-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
}

.tab-switcher {
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    border: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.03);
}

.tab-button {
    min-width: 92px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted-strong);
    font-weight: 700;
}

.tab-button.is-active {
    background: var(--white);
    color: #141414;
}

.alert-stack {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.alert {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid transparent;
}

.alert-success {
    border-color: rgba(242, 213, 162, 0.22);
    background: rgba(242, 213, 162, 0.08);
}

.alert-warning {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
}

.alert-error {
    border-color: rgba(255, 154, 154, 0.18);
    background: rgba(255, 154, 154, 0.08);
}

.alert-error ul {
    margin: 0;
    padding-inline-start: 20px;
}

.auth-form {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

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

.field {
    display: grid;
    gap: 8px;
}

.field span,
.form-note {
    color: var(--muted);
    font-size: 0.95rem;
}

.field input,
.newsletter-form input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.field input:focus,
.newsletter-form input:focus {
    border-color: rgba(242, 213, 162, 0.22);
    box-shadow: 0 0 0 4px rgba(242, 213, 162, 0.06);
}

.inline-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.92rem;
}

.site-footer {
    margin-bottom: 24px;
    padding: 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr auto;
    gap: 18px;
}

.footer-card {
    padding: 22px;
}

.newsletter-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
}

.newsletter-form .button-secondary {
    min-height: 52px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    text-decoration: none;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--muted);
}

.footer-copy {
    margin: 20px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
    color: var(--muted);
}

.placeholder-card {
    border-style: dashed;
}

.fade-up {
    opacity: 0;
    transform: translateY(24px);
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 700ms ease, transform 700ms ease;
}

@media (max-width: 1100px) {
    .site-header,
    .hero-side,
    .products-grid,
    .features-grid,
    .partners-grid,
    .cta-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .site-header {
        border-radius: 24px;
        justify-items: center;
        text-align: center;
    }

    .brand-mark,
    .social-links {
        border: 0;
        padding: 0;
    }

    .product-card:nth-child(1),
    .product-card:nth-child(4),
    .partner-card:first-child {
        grid-column: auto;
    }
}

@media (max-width: 720px) {
    .page-shell {
        padding-top: 24px;
    }

    .site-header,
    .hero-main,
    .visual-card,
    .info-card,
    .product-card,
    .feature-card,
    .partner-card,
    .cta-card,
    .auth-card,
    .footer-card,
    .site-footer {
        padding: 20px;
    }

    .hero-main {
        min-height: 560px;
    }

    .hero-main::before {
        width: min(100%, 420px);
        height: 190px;
    }

    .hero-main h1 {
        max-width: 100%;
        font-size: clamp(2.6rem, 13vw, 4rem);
    }

    .hero-metrics,
    .field-grid,
    .newsletter-form {
        grid-template-columns: 1fr;
    }

    .section-heading,
    .auth-head,
    .price-row {
        flex-direction: column;
        align-items: start;
    }

    .tab-switcher {
        width: 100%;
    }

    .tab-button {
        flex: 1 1 0;
    }

    .button,
    .newsletter-form button {
        width: 100%;
    }

    .community-links {
        justify-content: stretch;
    }

    .community-link {
        min-width: 0;
    }
}
