/* ==========================================================================
   مَنح — Landing Page Styles
   Editorial Dark × Bold Marketing
   ========================================================================== */

:root {
    --dark-bg: #0a0125;
    --dark-bg-2: #120545;
    --dark-line: rgba(255, 255, 255, 0.08);
    --dark-line-strong: rgba(255, 255, 255, 0.16);
    --dark-text: #e8e5f5;
    --dark-text-muted: #a8a3c4;
    --dark-text-faint: #6e6890;
    --accent-glow: #6b6bff;
    --accent-soft-2: rgba(51, 51, 255, 0.12);
    --violet-accent: #a78bfa;
    --light-bg: #faf9fd;
    --light-bg-2: #f3f1f9;
}

/* ---------- Dark Sections ---------- */
.dark-section {
    background-color: var(--dark-bg);
    color: var(--dark-text);
    position: relative;
    overflow: hidden;
}

.dark-section.has-noise::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.08;
    pointer-events: none;
    mix-blend-mode: overlay;
    z-index: 0;
}

.dark-section > * {
    position: relative;
    z-index: 1;
}

/* ---------- Hero ---------- */
.hero-mesh {
    background:
        radial-gradient(ellipse 80% 60% at 20% 20%, rgba(107, 107, 255, 0.28), transparent 55%),
        radial-gradient(ellipse 70% 50% at 80% 30%, rgba(167, 139, 250, 0.18), transparent 55%),
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(51, 51, 255, 0.20), transparent 60%),
        var(--dark-bg);
}

.hero-headline {
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.025em;
}

.hero-highlight {
    background: linear-gradient(120deg, #b8aafc 0%, #6b6bff 60%, #b8aafc 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shimmer 6s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 100% 70% at 50% 30%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 30%, black 30%, transparent 70%);
    pointer-events: none;
}

/* Stats float card */
.float-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--dark-line-strong);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 18px;
    transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.float-card:hover { transform: translateY(-4px); }

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--dark-line-strong);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--dark-text);
}

/* ---------- Buttons (Dark / Glow) ---------- */
.btn-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 12px;
    background: var(--accent, #3333ff);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    position: relative;
    transition: transform .15s ease, box-shadow .25s ease;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 8px 24px -8px rgba(51, 51, 255, 0.55),
        0 20px 48px -20px rgba(107, 107, 255, 0.45);
}
.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.10) inset,
        0 12px 32px -8px rgba(51, 51, 255, 0.7),
        0 28px 64px -20px rgba(107, 107, 255, 0.6);
}

.btn-outline-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--dark-text);
    font-weight: 700;
    font-size: 15px;
    border: 1px solid var(--dark-line-strong);
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}
.btn-outline-dark:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.28);
}

/* ---------- Nav ---------- */
.nav-link {
    position: relative;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-text-muted);
    transition: color .2s ease;
}
.nav-link:hover { color: var(--dark-text); }

.nav-link::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transition: transform .25s ease;
    transform-origin: right;
}
.nav-link:hover::after { transform: scaleX(1); }

/* ---------- Section Eyebrow ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: rgba(107, 107, 255, 0.12);
    border: 1px solid rgba(107, 107, 255, 0.28);
    color: #c4b9ff;
}
.eyebrow.light {
    background: var(--accent-soft, #eef0ff);
    border-color: #dcdffb;
    color: var(--accent-ink, #1f1f99);
}
.eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: currentColor;
}

/* ---------- Big Numbers ---------- */
.big-number {
    font-feature-settings: 'tnum';
    font-variant-numeric: tabular-nums;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 0.95;
}

/* ---------- Bento Cards ---------- */
.bento-card {
    background: #fff;
    border: 1px solid #e7e3f0;
    border-radius: 22px;
    padding: 32px;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    position: relative;
    overflow: hidden;
}
.bento-card:hover {
    transform: translateY(-3px);
    border-color: #c8c0e0;
    box-shadow: 0 18px 48px -20px rgba(14, 1, 53, 0.18);
}

.bento-card-dark {
    background: linear-gradient(160deg, #1a0a4d 0%, #0a0125 100%);
    border: 1px solid var(--dark-line-strong);
    color: var(--dark-text);
}

.bento-card-dark .bento-title { color: #fff; }
.bento-card-dark .bento-desc { color: var(--dark-text-muted); }

.bento-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-soft, #eef0ff);
    color: var(--accent, #3333ff);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.bento-card-dark .bento-icon {
    background: rgba(107, 107, 255, 0.16);
    color: #b8aafc;
}

.bento-title {
    font-size: 22px;
    font-weight: 800;
    color: #0c0a09;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
    line-height: 1.25;
}
.bento-desc {
    font-size: 15px;
    color: #4a4458;
    line-height: 1.65;
}

/* ---------- Mockup boxes (decorative) ---------- */
.mockup-window {
    background: #fff;
    border: 1px solid #e7e3f0;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 30px 80px -30px rgba(14, 1, 53, 0.35);
    position: relative;
}

.mockup-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #ece8f5;
    border-radius: 10px;
    background: #fafaff;
    font-size: 13px;
    color: #4a4458;
    margin-bottom: 8px;
}

.mockup-bar {
    height: 6px;
    border-radius: 999px;
    background: #ece8f5;
    overflow: hidden;
}
.mockup-bar > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #6b6bff, #a78bfa);
    border-radius: 999px;
}

/* ---------- Comparison challenges ---------- */
.challenge-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #ece8f5;
    transition: transform .2s ease, border-color .2s ease;
}
.challenge-item:hover {
    transform: translateX(-3px);
    border-color: #c8c0e0;
}

.challenge-icon-bad {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #fff1f0;
    color: #e3504e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.challenge-icon-good {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #e8f7ef;
    color: #047857;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ---------- Accordion FAQ ---------- */
.faq-item {
    border-bottom: 1px solid #e7e3f0;
}
.faq-item:first-child { border-top: 1px solid #e7e3f0; }

.faq-trigger {
    width: 100%;
    text-align: right;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    color: #0c0a09;
    transition: color .2s ease;
}
.faq-trigger:hover { color: var(--accent, #3333ff); }

.faq-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--accent-soft, #eef0ff);
    color: var(--accent, #3333ff);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform .35s cubic-bezier(.2,.8,.2,1), background .25s ease, color .25s ease;
}
.faq-item.open .faq-icon {
    background: var(--accent, #3333ff);
    color: #fff;
    transform: rotate(135deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .5s cubic-bezier(.2,.8,.2,1);
}
.faq-item.open .faq-content { max-height: 400px; }

.faq-content-inner {
    padding: 0 0 24px 36px;
    color: #4a4458;
    line-height: 1.75;
    font-size: 16px;
}

/* ---------- Scroll reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }
.reveal.delay-5 { transition-delay: .40s; }

/* ---------- Marquee ---------- */
.marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
    display: flex;
    gap: 48px;
    width: max-content;
    animation: marquee 36s linear infinite;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.marquee-item {
    color: var(--dark-text-faint);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}
.marquee-item .dot {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.6;
}

/* ---------- Hibaa Integration ---------- */
.hibaa-mark {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1 / 1;
    margin-inline: auto;
}
.hibaa-orbit {
    position: absolute;
    inset: 0;
    border: 1px dashed var(--dark-line-strong);
    border-radius: 50%;
}
.hibaa-orbit-2 { inset: 14%; }
.hibaa-orbit-3 { inset: 28%; }

.hibaa-center {
    position: absolute;
    inset: 38%;
    border-radius: 24px;
    background: linear-gradient(135deg, #3333ff, #a78bfa);
    box-shadow: 0 0 60px rgba(167, 139, 250, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -0.02em;
}

.hibaa-node {
    position: absolute;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--dark-line-strong);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-text);
    font-size: 13px;
    font-weight: 700;
}

/* Spin orbit very slowly */
.hibaa-spin {
    animation: orbitSpin 80s linear infinite;
    transform-origin: 50% 50%;
}
@keyframes orbitSpin {
    to { transform: rotate(360deg); }
}

/* ---------- Footer ---------- */
.footer-link {
    color: var(--dark-text-muted);
    font-size: 14px;
    transition: color .2s ease;
}
.footer-link:hover { color: var(--dark-text); }

/* ---------- Section anchor smooth ---------- */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 80px; }

/* ---------- Utilities ---------- */
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .hero-headline { font-size: clamp(2.25rem, 8vw, 3.5rem) !important; }
    .bento-card { padding: 24px; border-radius: 18px; }
    .bento-title { font-size: 19px; }
    .float-card { transform: scale(0.95); }
    .faq-trigger { font-size: 16px; padding: 18px 0; }
    .faq-content-inner { padding-left: 0; padding-right: 0; font-size: 15px; }
}

/* ---------- Glow circle decoration ---------- */
.glow-orb {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
}
.glow-orb.violet { background: #a78bfa; }
.glow-orb.blue { background: #6b6bff; }
