﻿:root {
    --public-primary: #2563eb;
    --public-primary-dark: #1d4ed8;
    --public-secondary: #14b8a6;
    --public-text: #0f172a;
    --public-muted: #64748b;
    --public-border: #e2e8f0;
    --public-bg: #f8fafc;
    --public-white: #ffffff;
    --public-radius-lg: 28px;
    --public-radius-md: 18px;
}

html {
    scroll-behavior: smooth;
}

body.public-site {
    margin: 0;
    background: var(--public-white);
    color: var(--public-text);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* =========================
   Header
   ========================= */

.public-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

    .public-header .navbar {
        min-height: 82px;
    }

.public-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--public-text);
    font-weight: 800;
    letter-spacing: .2px;
}

    .public-brand:hover {
        color: var(--public-text);
    }

.public-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /*background: linear-gradient(135deg, var(--public-primary), var(--public-secondary));*/
    color: var(--public-white);
    font-size: 1.25rem;
}

.public-header .nav-link {
    color: #475569;
    font-weight: 600;
    padding-inline: 14px !important;
}

    .public-header .nav-link:hover {
        color: var(--public-primary);
    }

.public-dashboard-btn {
    border: 0;
    border-radius: 14px;
    background: var(--public-primary);
    color: var(--public-white);
    padding: 11px 18px;
    font-weight: 700;
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

    .public-dashboard-btn:hover {
        background: var(--public-primary-dark);
        color: var(--public-white);
    }

/* =========================
   Hero
   ========================= */

.public-hero {
    position: relative;
    overflow: hidden;
    padding: 105px 0 95px;
    background: radial-gradient(circle at 85% 15%, rgba(20, 184, 166, .10), transparent 26%), radial-gradient(circle at 15% 30%, rgba(37, 99, 235, .10), transparent 30%), linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.hero-content {
    max-width: 650px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(37, 99, 235, .08);
    color: var(--public-primary);
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: 24px;
}

.hero-title {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4.6rem);
    line-height: 1.12;
    font-weight: 850;
    letter-spacing: -1.5px;
}

    .hero-title span {
        display: block;
        margin-top: 8px;
        background: linear-gradient(90deg, var(--public-primary), var(--public-secondary));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

.hero-description {
    max-width: 590px;
    margin: 24px 0 0;
    color: var(--public-muted);
    font-size: 1.08rem;
    line-height: 1.95;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hero-primary-btn,
.hero-secondary-btn {
    min-height: 50px;
    border-radius: 14px;
    padding-inline: 20px;
    font-weight: 750;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-primary-btn {
    border: 0;
    background: var(--public-primary);
    color: var(--public-white);
    box-shadow: 0 14px 30px rgba(37, 99, 235, .18);
}

    .hero-primary-btn:hover {
        background: var(--public-primary-dark);
        color: var(--public-white);
        transform: translateY(-1px);
    }

.hero-secondary-btn {
    background: var(--public-white);
    border: 1px solid var(--public-border);
    color: #334155;
}

    .hero-secondary-btn:hover {
        border-color: #bfdbfe;
        color: var(--public-primary);
    }

/* Hero illustration */

.hero-visual {
    position: relative;
    min-height: 470px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, .18), rgba(20, 184, 166, .16));
    filter: blur(18px);
}

.hero-dashboard-card {
    position: relative;
    width: min(100%, 520px);
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 26px;
    box-shadow: 0 30px 70px rgba(15, 23, 42, .14);
    overflow: hidden;
    transform: rotate(-1deg);
}

.hero-dashboard-header {
    height: 70px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--public-border);
}

.dashboard-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #334155;
    font-size: .85rem;
}

    .dashboard-brand span {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--public-secondary);
    }

.dashboard-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #eff6ff;
    color: var(--public-primary);
}

.hero-dashboard-body {
    min-height: 300px;
    display: grid;
    grid-template-columns: 72px 1fr;
}

.dashboard-sidebar {
    padding: 24px 18px;
    border-left: 1px solid var(--public-border);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

    .dashboard-sidebar span {
        height: 10px;
        border-radius: 999px;
        background: #e2e8f0;
    }

        .dashboard-sidebar span.active {
            background: var(--public-primary);
        }

.dashboard-content {
    padding: 28px;
}

.dashboard-heading {
    width: 46%;
    height: 14px;
    background: #cbd5e1;
    border-radius: 999px;
    margin-bottom: 26px;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.dashboard-mini-card {
    min-height: 100px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fafc, #ffffff);
    border: 1px solid var(--public-border);
    display: grid;
    place-items: center;
    color: var(--public-primary);
    font-size: 1.8rem;
}

.dashboard-lines {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

    .dashboard-lines span {
        height: 10px;
        border-radius: 999px;
        background: #e2e8f0;
    }

        .dashboard-lines span:nth-child(1) {
            width: 92%;
        }

        .dashboard-lines span:nth-child(2) {
            width: 75%;
        }

        .dashboard-lines span:nth-child(3) {
            width: 58%;
        }

.hero-floating-card {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 16px;
    padding: 13px 16px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, .12);
}

    .hero-floating-card > i {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        display: grid;
        place-items: center;
        background: #eff6ff;
        color: var(--public-primary);
        font-size: 1.2rem;
    }

    .hero-floating-card strong,
    .hero-floating-card span {
        display: block;
    }

    .hero-floating-card strong {
        font-size: .9rem;
    }

    .hero-floating-card span {
        color: var(--public-muted);
        font-size: .75rem;
        margin-top: 2px;
    }

.floating-book {
    top: 14%;
    left: -2%;
}

.floating-learning {
    bottom: 10%;
    right: -2%;
}

/* =========================
   Sections
   ========================= */

.public-section {
    padding: 88px 0;
}

.section-heading {
    max-width: 760px;
    margin-inline: auto;
}

.section-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--public-primary);
    font-size: .9rem;
    font-weight: 800;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.25;
    font-weight: 820;
}

    .section-heading h2 span {
        color: var(--public-primary);
    }

.section-heading p {
    max-width: 650px;
    margin: 18px auto 0;
    color: var(--public-muted);
    line-height: 1.9;
    font-size: 1.02rem;
}

.about-section {
    padding-bottom: 48px;
}

.features-section {
    padding-top: 48px;
    background: #fbfdff;
}

/* =========================
   Feature cards
   ========================= */

.feature-card {
    height: 100%;
    background: var(--public-white);
    border: 1px solid var(--public-border);
    border-radius: var(--public-radius-md);
    padding: 28px 24px;
    transition: all .22s ease;
}

    .feature-card:hover {
        transform: translateY(-5px);
        border-color: #bfdbfe;
        box-shadow: 0 22px 45px rgba(15, 23, 42, .08);
    }

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
    color: var(--public-primary);
    font-size: 1.45rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin: 0 0 12px;
    font-size: 1.08rem;
    font-weight: 800;
}

.feature-card p {
    margin: 0;
    color: var(--public-muted);
    line-height: 1.8;
    font-size: .94rem;
}

/* =========================
   How it works
   ========================= */

.how-section {
    background: var(--public-white);
}

.learning-steps {
    margin-top: 54px;
    display: grid;
    grid-template-columns: 1fr 90px 1fr 90px 1fr;
    align-items: center;
    gap: 12px;
}

.learning-step {
    position: relative;
    min-height: 270px;
    padding: 34px 24px;
    border-radius: 22px;
    border: 1px solid var(--public-border);
    background: #ffffff;
    text-align: center;
}

.step-number {
    position: absolute;
    top: 18px;
    right: 20px;
    color: #cbd5e1;
    font-weight: 900;
    font-size: 1.15rem;
}

.step-icon {
    width: 62px;
    height: 62px;
    margin: 20px auto 22px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
    color: var(--public-primary);
    font-size: 1.6rem;
}

.learning-step h3 {
    margin: 0 0 12px;
    font-size: 1.08rem;
    font-weight: 800;
}

.learning-step p {
    margin: 0;
    color: var(--public-muted);
    line-height: 1.8;
    font-size: .94rem;
}

.step-connector {
    text-align: center;
    color: #94a3b8;
    font-size: 1.4rem;
}

/* =========================
   CTA
   ========================= */

.public-cta-section {
    padding: 30px 0 95px;
}

.public-cta {
    position: relative;
    overflow: hidden;
    border-radius: var(--public-radius-lg);
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 45%, #0f766e 135%);
    color: var(--public-white);
    padding: 65px 30px;
    text-align: center;
}

.public-cta-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    margin-inline: auto;
}

.cta-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .14);
    font-size: 1.5rem;
}

.public-cta h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 850;
}

.public-cta p {
    margin: 16px auto 24px;
    max-width: 560px;
    color: rgba(255, 255, 255, .85);
    line-height: 1.8;
}

.cta-button {
    border: 0;
    border-radius: 14px;
    background: var(--public-white);
    color: var(--public-primary-dark);
    font-weight: 800;
    padding: 12px 21px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

    .cta-button:hover {
        background: #f8fafc;
        color: var(--public-primary-dark);
        transform: translateY(-1px);
    }

.cta-decoration {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
}

.cta-decoration-one {
    width: 260px;
    height: 260px;
    top: -120px;
    left: -70px;
}

.cta-decoration-two {
    width: 340px;
    height: 340px;
    bottom: -220px;
    right: -90px;
}

/* =========================
   Footer
   ========================= */

.public-footer {
    border-top: 1px solid var(--public-border);
    background: #ffffff;
    padding: 36px 0;
}

.public-footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.public-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.public-footer-description {
    max-width: 470px;
    margin: 14px 0 0;
    color: var(--public-muted);
    line-height: 1.8;
    font-size: .9rem;
}

.public-footer-copyright {
    color: #94a3b8;
    font-size: .87rem;
    white-space: nowrap;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 991.98px) {

    .public-header .navbar-collapse {
        padding: 18px 0 8px;
    }

    .public-header .navbar-nav {
        gap: 4px;
        margin-bottom: 16px;
    }

    .public-navbar-actions {
        padding-bottom: 10px;
    }

    .public-hero {
        padding: 75px 0;
    }

    .hero-content {
        text-align: center;
        margin-inline: auto;
    }

    .hero-description {
        margin-inline: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        min-height: 400px;
        margin-top: 10px;
    }

    .floating-book {
        left: 2%;
    }

    .floating-learning {
        right: 2%;
    }

    .learning-steps {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .step-connector {
        transform: rotate(-90deg);
    }

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

    .public-footer-copyright {
        white-space: normal;
    }
}

@media (max-width: 575.98px) {

    .public-header .navbar {
        min-height: 70px;
    }

    .public-hero {
        padding: 60px 0 55px;
    }

    .hero-title {
        font-size: 2.45rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-primary-btn,
    .hero-secondary-btn {
        width: 100%;
        justify-content: center;
    }

    .hero-visual {
        min-height: 350px;
    }

    .hero-dashboard-card {
        border-radius: 20px;
    }

    .hero-dashboard-body {
        grid-template-columns: 55px 1fr;
    }

    .dashboard-content {
        padding: 20px;
    }

    .dashboard-cards {
        gap: 8px;
    }

    .hero-floating-card {
        display: none;
    }

    .public-section {
        padding: 65px 0;
    }

    .public-cta-section {
        padding-bottom: 65px;
    }

    .public-cta {
        padding: 50px 20px;
        border-radius: 22px;
    }
}


/* Allow the public landing page to scroll normally */
html,
body.public-site {
    min-height: 100%;
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden;
}

body.public-site {
    position: static !important;
}

/* =========================================================
   Public Website - Final Refinements
   ========================================================= */

/* Better Arabic typography */
body.public-site {
    font-family: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
    font-weight: 400;
}

/* Navbar */
.public-header .navbar {
    min-height: 76px;
}

.public-header .nav-link {
    font-size: .95rem;
}

/* Hero */
.public-hero {
    padding-top: 88px;
    padding-bottom: 78px;
}

.hero-title {
    font-size: clamp(2.2rem, 3.2vw, 3.2rem);
    line-height: 1.22;
    letter-spacing: -.4px;
}


.hero-description {
    font-size: 1.04rem;
    line-height: 1.9;
}

.hero-visual {
    min-height: 430px;
}

/* General sections */
.public-section {
    padding: 72px 0;
}

.about-section {
    padding-top: 72px;
    padding-bottom: 38px;
}

.features-section {
    padding-top: 38px;
    padding-bottom: 72px;
}

.section-heading h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
    line-height: 1.3;
}

.section-heading p {
    margin-top: 15px;
}

/* Features */
.feature-card {
    padding: 26px 23px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 18px;
}

.feature-card h3 {
    line-height: 1.5;
}

/* How it works */
.how-section {
    padding-top: 76px;
    padding-bottom: 65px;
}

.learning-steps {
    margin-top: 45px;
}

.learning-step {
    min-height: 245px;
    padding: 30px 24px;
}

.step-icon {
    margin-top: 16px;
    margin-bottom: 18px;
}

/* Final CTA */
.public-cta-section {
    padding-top: 18px;
    padding-bottom: 75px;
}

.public-cta {
    padding: 52px 30px;
}

    .public-cta h2 {
        font-size: clamp(1.9rem, 3.4vw, 2.7rem);
    }

/* Footer */
.public-footer {
    padding: 32px 0;
}

/* Tablet */
@media (max-width: 991.98px) {

    .public-hero {
        padding-top: 65px;
        padding-bottom: 65px;
    }

    .hero-visual {
        min-height: 380px;
    }

    .public-section {
        padding: 60px 0;
    }

    .about-section {
        padding-bottom: 30px;
    }

    .features-section {
        padding-top: 30px;
    }

    .how-section {
        padding-top: 65px;
        padding-bottom: 55px;
    }

    .public-cta-section {
        padding-top: 10px;
        padding-bottom: 60px;
    }
}

/* Mobile */
@media (max-width: 575.98px) {

    .hero-title {
        font-size: 2.25rem;
        line-height: 1.25;
    }



    .hero-description {
        font-size: .98rem;
    }

    .hero-visual {
        min-height: 330px;
    }

    .section-heading h2 {
        font-size: 1.85rem;
    }

    .learning-step {
        min-height: auto;
    }

    .public-cta {
        padding: 44px 20px;
    }
}

/* =========================================================
   Public Website - Typography Weights
   ========================================================= */

/* Regular text */
.public-header .nav-link,
.hero-description,
.section-heading p,
.feature-card p,
.learning-step p,
.public-footer {
    font-weight: 400;
}

/* Medium */
.public-btn,
.public-header .btn,
.hero-badge {
    font-weight: 500;
}

/* Main headings */
.hero-title,
.section-heading h2,
.public-cta h2 {
    font-weight: 800;
}

/* Card and step headings */
.feature-card h3,
.learning-step h3 {
    font-weight: 700;
}

/* =========================================================
   Public Website - Motion
   ========================================================= */

/* Hero entrance */
body.public-site.motion-ready .hero-intro,
body.public-site.motion-ready .hero-visual-intro {
    opacity: 0;
    will-change: opacity, transform;
}

body.public-site.motion-ready .hero-intro {
    animation: publicHeroReveal .62s cubic-bezier(.22, 1, .36, 1) forwards;
}

body.public-site.motion-ready .hero-intro-1 {
    animation-delay: .06s;
}

body.public-site.motion-ready .hero-intro-2 {
    animation-delay: .14s;
}

body.public-site.motion-ready .hero-intro-3 {
    animation-delay: .22s;
}

body.public-site.motion-ready .hero-intro-4 {
    animation-delay: .30s;
}

body.public-site.motion-ready .hero-visual-intro {
    animation: publicVisualReveal .78s .18s cubic-bezier(.22, 1, .36, 1) forwards;
}

@keyframes publicHeroReveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes publicVisualReveal {
    from {
        opacity: 0;
        transform: translateX(-22px) scale(.985);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Scroll reveal */
body.public-site.motion-ready .reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .62s cubic-bezier(.22, 1, .36, 1), transform .62s cubic-bezier(.22, 1, .36, 1);
    will-change: opacity, transform;
}

    body.public-site.motion-ready .reveal-on-scroll.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

/* Small stagger for cards and steps */
.reveal-card:nth-child(2),
.reveal-step:nth-of-type(3) {
    transition-delay: .08s;
}

.reveal-card:nth-child(3),
.reveal-step:nth-of-type(5) {
    transition-delay: .16s;
}

.reveal-card:nth-child(4) {
    transition-delay: .24s;
}

body.public-site.motion-ready .reveal-connector {
    transform: translateY(14px);
    transition-delay: .10s;
}

    body.public-site.motion-ready .reveal-connector.is-visible {
        transform: translateY(0);
    }

/* Gentle floating motion after the hero entrance */
body.public-site.motion-ready .floating-book {
    animation: publicFloatOne 5.5s 1s ease-in-out infinite;
}

body.public-site.motion-ready .floating-learning {
    animation: publicFloatTwo 6.2s 1.25s ease-in-out infinite;
}

@keyframes publicFloatOne {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

@keyframes publicFloatTwo {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

/* Accessibility: respect the user's reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-intro,
    .hero-visual-intro,
    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }

    .hero-floating-card {
        animation: none !important;
    }
}

/* Keep the mobile step connector direction while revealing it */
@media (max-width: 991.98px) {
    body.public-site.motion-ready .reveal-connector {
        transform: rotate(-90deg) translateX(-14px);
    }

        body.public-site.motion-ready .reveal-connector.is-visible {
            transform: rotate(-90deg) translateX(0);
        }
}
