/* ══════════════════════════════════════════
   GPC Scratch Landing Page — Styles
   ══════════════════════════════════════════ */

/* ── Reset & Variables ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #0a0a0f;
    --color-bg-alt: #12121a;
    --color-surface: #1a1a26;
    --color-surface-hover: #222233;
    --color-border: rgba(255, 255, 255, 0.06);
    --color-text: #e4e4ed;
    --color-text-muted: #9a9ab0;
    --color-text-faint: #6b6b82;
    --color-primary: #6c5ce7;
    --color-primary-light: #a29bfe;
    --color-accent: #00cec9;
    --color-accent-light: #81ecec;
    --gradient-brand: linear-gradient(135deg, #6c5ce7, #a29bfe, #00cec9);
    --gradient-hero: radial-gradient(ellipse at 30% 0%, rgba(108, 92, 231, 0.15) 0%, transparent 60%),
                     radial-gradient(ellipse at 70% 0%, rgba(0, 206, 201, 0.10) 0%, transparent 60%);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 60px rgba(108, 92, 231, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --font-primary: 'Inter', 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

ul {
    list-style: none;
}

/* ── Container ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Gradient text ── */
.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ══════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.btn--primary:hover {
    background: #5a4bd6;
    border-color: #5a4bd6;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.35);
}

.btn--ghost {
    background: transparent;
    color: var(--color-text-muted);
    border-color: var(--color-border);
}
.btn--ghost:hover {
    color: var(--color-text);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

.btn--icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    min-width: auto;
}
.btn--icon:hover {
    color: #7289da;
    border-color: #7289da;
    background: rgba(114, 137, 218, 0.08);
}

.btn--outline {
    background: transparent;
    color: var(--color-text);
    border-color: rgba(255, 255, 255, 0.15);
}
.btn--outline:hover {
    border-color: var(--color-primary-light);
    color: var(--color-primary-light);
    background: rgba(108, 92, 231, 0.06);
}

.btn--white {
    background: #fff;
    color: var(--color-primary);
    border-color: #fff;
    font-weight: 700;
}
.btn--white:hover {
    background: #f0eeff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

.btn--lg {
    padding: 14px 30px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

/* ══════════════════════════════════════════
   HEADER / NAV
   ══════════════════════════════════════════ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: all var(--transition);
    background: transparent;
}
.header.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--color-text);
}
.nav__logo img {
    border-radius: 10px;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav__links a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color var(--transition);
}
.nav__links a:hover {
    color: var(--color-text);
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Hamburger */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 110;
}
.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition);
}
.nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav__toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 16px 24px 24px;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
}
.mobile-menu.open {
    display: flex;
}
.mobile-menu a {
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
}
.mobile-menu a:hover {
    color: var(--color-text);
}
.mobile-menu__actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}
.mobile-menu__actions .btn {
    flex: 1;
    justify-content: center;
}

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.hero {
    padding: 160px 0 100px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-primary-light);
    margin-bottom: 24px;
}
.hero__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00cec9;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero__title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    max-width: 520px;
    margin-bottom: 32px;
}

.hero__cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero__stats {
    display: flex;
    align-items: center;
    gap: 24px;
}
.hero__stat {
    display: flex;
    flex-direction: column;
}
.hero__stat strong {
    font-size: 1.3rem;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero__stat span {
    font-size: 0.82rem;
    color: var(--color-text-faint);
}
.hero__stat-divider {
    width: 1px;
    height: 36px;
    background: var(--color-border);
}

/* Hero visual / mockup */
.hero__visual {
    position: relative;
}
.hero__visual-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.2), transparent 70%);
    pointer-events: none;
}

.hero__mockup {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.mockup__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--color-border);
}
.mockup__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.mockup__dot--red { background: #ff5f57; }
.mockup__dot--yellow { background: #ffbd2e; }
.mockup__dot--green { background: #28ca42; }
.mockup__title {
    margin-left: 12px;
    font-size: 0.82rem;
    color: var(--color-text-faint);
}

.mockup__body {
    display: grid;
    grid-template-columns: 160px 1fr;
    min-height: 280px;
}

.mockup__sidebar {
    padding: 16px 12px;
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mockup__canvas {
    padding: 20px;
    position: relative;
}
.mockup__canvas-label {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 0.7rem;
    color: var(--color-text-faint);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Blocks */
.block {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}
.block--motion { background: #4c97ff; }
.block--looks { background: #9966ff; }
.block--control { background: #ffab19; }
.block--events { background: #ffbf00; color: #333; }
.block--sensing { background: #5cb1d6; }

.block-stack {
    display: flex;
    flex-direction: column;
}
.block--snap {
    border-radius: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}
.block--snap:first-child {
    border-radius: 6px 6px 0 0;
}
.block--snap:last-child {
    border-radius: 0 0 6px 6px;
    border-bottom: none;
}
.block--indent {
    margin-left: 20px;
}

/* ══════════════════════════════════════════
   SECTION SHARED
   ══════════════════════════════════════════ */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-primary-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 560px;
    margin: 0 auto;
}

/* ══════════════════════════════════════════
   FEATURES
   ══════════════════════════════════════════ */
.features {
    padding: 100px 0;
    background: var(--color-bg-alt);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all var(--transition);
}
.feature-card:hover {
    border-color: rgba(108, 92, 231, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.feature-card__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.feature-card__icon--blue { background: rgba(76, 151, 255, 0.12); color: #4c97ff; }
.feature-card__icon--purple { background: rgba(108, 92, 231, 0.12); color: #a29bfe; }
.feature-card__icon--green { background: rgba(0, 206, 201, 0.12); color: #00cec9; }
.feature-card__icon--orange { background: rgba(255, 171, 25, 0.12); color: #ffab19; }
.feature-card__icon--pink { background: rgba(253, 121, 168, 0.12); color: #fd79a8; }
.feature-card__icon--teal { background: rgba(0, 184, 148, 0.12); color: #00b894; }

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.feature-card p {
    font-size: 0.93rem;
    color: var(--color-text-muted);
    line-height: 1.65;
}

/* ══════════════════════════════════════════
   HOW IT WORKS
   ══════════════════════════════════════════ */
.how-it-works {
    padding: 100px 0;
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    flex: 1;
    text-align: center;
    padding: 0 24px;
}
.step__number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
}
.step__content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.step__content p {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.step__connector {
    width: 60px;
    height: 2px;
    background: var(--color-border);
    margin-top: 28px;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════
   CTA SECTION
   ══════════════════════════════════════════ */
.cta-section {
    padding: 40px 0 100px;
}

.cta-box {
    position: relative;
    background: var(--gradient-brand);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    text-align: center;
    overflow: hidden;
}
.cta-box__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1), transparent 60%);
    pointer-events: none;
}
.cta-box__logo {
    margin: 0 auto 20px;
    border-radius: 16px;
    filter: brightness(1.1);
}
.cta-box h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 12px;
    color: #fff;
    position: relative;
}
.cta-box p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 500px;
    margin: 0 auto 28px;
    position: relative;
}
.cta-box .btn {
    position: relative;
}

/* ══════════════════════════════════════════
   FAQ
   ══════════════════════════════════════════ */
.faq {
    padding: 100px 0;
    background: var(--color-bg-alt);
}

.faq__list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq__item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition);
}
.faq__item[open] {
    border-color: rgba(108, 92, 231, 0.2);
}

.faq__question {
    padding: 20px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    transition: color var(--transition);
}
.faq__question::-webkit-details-marker {
    display: none;
}
.faq__question:hover {
    color: var(--color-primary-light);
}

.faq__chevron {
    flex-shrink: 0;
    transition: transform var(--transition);
}
.faq__item[open] .faq__chevron {
    transform: rotate(180deg);
}

.faq__answer {
    padding: 0 24px 20px;
}
.faq__answer p {
    font-size: 0.93rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.footer {
    padding: 60px 0 0;
    border-top: 1px solid var(--color-border);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 14px;
}
.footer__logo img {
    border-radius: 8px;
}

.footer__brand p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 300px;
}

.footer__col h4 {
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text);
    margin-bottom: 16px;
}
.footer__col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer__col a {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    transition: color var(--transition);
}
.footer__col a:hover {
    color: var(--color-primary-light);
}

.footer__bottom {
    padding: 20px 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
}
.footer__bottom p {
    font-size: 0.82rem;
    color: var(--color-text-faint);
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .hero__visual {
        max-width: 540px;
        margin: 0 auto;
        width: 100%;
    }
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav__links,
    .nav__actions {
        display: none;
    }
    .nav__toggle {
        display: flex;
    }

    .hero {
        padding: 120px 0 60px;
    }
    .hero__title {
        font-size: clamp(2rem, 6vw, 2.6rem);
    }
    .hero__stats {
        gap: 16px;
    }
    .hero__stat strong {
        font-size: 1.1rem;
    }
    .hero__cta {
        flex-direction: column;
    }
    .hero__cta .btn {
        justify-content: center;
    }

    .mockup__body {
        grid-template-columns: 1fr;
    }
    .mockup__sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
        padding: 12px;
    }

    .features__grid {
        grid-template-columns: 1fr;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }
    .step {
        padding: 0;
        max-width: 360px;
    }
    .step__connector {
        width: 2px;
        height: 40px;
        margin: 0;
    }

    .cta-box {
        padding: 40px 24px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .hero__stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .hero__stat-divider {
        display: none;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .feature-card {
        padding: 28px 20px;
    }
}

/* ══════════════════════════════════════════
   LANGUAGE TOGGLE BUTTON
   ══════════════════════════════════════════ */
.btn--lang {
    background: rgba(108, 92, 231, 0.08);
    color: var(--color-primary-light);
    border: 1.5px solid rgba(108, 92, 231, 0.25);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    padding: 8px 14px;
    cursor: pointer;
    transition: all var(--transition);
    font-family: 'Tajawal', 'Inter', sans-serif;
    min-width: 44px;
    text-align: center;
}
.btn--lang:hover {
    background: rgba(108, 92, 231, 0.18);
    border-color: var(--color-primary-light);
    color: #fff;
    transform: translateY(-1px);
}

/* ══════════════════════════════════════════
   FOOTER GRID (brand + dynamic cols)
   ══════════════════════════════════════════ */
.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer__cols-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ══════════════════════════════════════════
   COMPANY INFORMATION CARD
   ══════════════════════════════════════════ */
.footer__company {
    padding: 28px 0 32px;
    border-top: 1px solid var(--color-border);
}

.company-card {
    background: var(--color-surface);
    border: 1px solid rgba(108, 92, 231, 0.15);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    position: relative;
    overflow: hidden;
}
.company-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.company-card__title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary-light);
    margin-bottom: 20px;
}

.company-card__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 32px;
}

.company-card__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.company-card__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-light);
}
.company-card__icon svg {
    display: block;
    width: 20px;
    height: 20px;
}
.company-card__label {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-faint);
    font-weight: 500;
    margin-bottom: 2px;
}
.company-card__value {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    font-variant-numeric: tabular-nums;
}
.company-card__value--link {
    color: var(--color-primary-light);
    transition: color var(--transition);
}
.company-card__value--link:hover {
    color: var(--color-accent);
}

/* ══════════════════════════════════════════
   FOOTER BOTTOM LINKS ROW
   ══════════════════════════════════════════ */
.footer__bottom {
    padding: 20px 0;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.footer__bottom p {
    font-size: 0.82rem;
    color: var(--color-text-faint);
}
.footer__bottom-links {
    display: flex;
    align-items: center;
    gap: 16px;
}
.footer__bottom-links a {
    font-size: 0.82rem;
    color: var(--color-text-faint);
    transition: color var(--transition);
}
.footer__bottom-links a:hover {
    color: var(--color-primary-light);
}
.footer__bottom-sep {
    color: var(--color-border);
    font-size: 1rem;
}

/* ══════════════════════════════════════════
   RTL OVERRIDES (Arabic)
   ══════════════════════════════════════════ */
[dir="rtl"] body {
    font-family: 'Tajawal', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
[dir="rtl"] .mockup__title {
    margin-left: 0;
    margin-right: 12px;
}
[dir="rtl"] .mockup__canvas-label {
    right: auto;
    left: 12px;
}
[dir="rtl"] .block--indent {
    margin-left: 0;
    margin-right: 20px;
}
[dir="rtl"] .hero__badge-dot {
    order: -1;
}
[dir="rtl"] .step__connector {
    transform: none;
}
[dir="rtl"] .company-card::before {
    background: linear-gradient(270deg, var(--color-primary), var(--color-accent));
}
[dir="rtl"] .footer__bottom {
    flex-direction: row-reverse;
}

/* ══════════════════════════════════════════
   PRIVACY PAGE STYLES
   ══════════════════════════════════════════ */
.privacy-hero {
    padding: 140px 0 60px;
    background: var(--gradient-hero);
    text-align: center;
}
.privacy-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-primary-light);
    margin-bottom: 20px;
}
.privacy-hero__title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 14px;
}
.privacy-hero__meta {
    font-size: 0.9rem;
    color: var(--color-text-faint);
}

.privacy-content {
    padding: 60px 0 100px;
}
.privacy-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

/* Sticky TOC sidebar */
.privacy-toc {
    position: sticky;
    top: 90px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px;
}
.privacy-toc__title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-faint);
    margin-bottom: 14px;
}
.privacy-toc__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.privacy-toc__list a {
    font-size: 0.83rem;
    color: var(--color-text-muted);
    padding: 6px 8px;
    border-radius: 6px;
    transition: all var(--transition);
    display: block;
    line-height: 1.4;
}
.privacy-toc__list a:hover,
.privacy-toc__list a.active {
    color: var(--color-primary-light);
    background: rgba(108, 92, 231, 0.08);
}

/* Policy sections */
.privacy-sections {
    display: flex;
    flex-direction: column;
    gap: 48px;
}
.policy-section {
    scroll-margin-top: 90px;
}
.policy-section__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--color-border);
}
.policy-section__num {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(108, 92, 231, 0.1);
    color: var(--color-primary-light);
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.policy-section__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text);
}
.policy-section__body {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}
.policy-section__body p { margin-bottom: 12px; }
.policy-section__body p:last-child { margin-bottom: 0; }
.policy-section__body ul,
.policy-section__body ol {
    padding-inline-start: 20px;
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.policy-section__body li {
    list-style: disc;
    line-height: 1.7;
}
.policy-section__body ol li {
    list-style: decimal;
}
.policy-section__body strong {
    color: var(--color-text);
    font-weight: 600;
}
.policy-section__body a {
    color: var(--color-primary-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition);
}
.policy-section__body a:hover {
    color: var(--color-accent);
}

/* Highlight boxes */
.policy-highlight {
    background: rgba(108, 92, 231, 0.06);
    border: 1px solid rgba(108, 92, 231, 0.15);
    border-inline-start: 3px solid var(--color-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 16px 20px;
    margin: 16px 0;
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}
[dir="rtl"] .policy-highlight {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.policy-highlight--warning {
    background: rgba(255, 171, 25, 0.06);
    border-color: rgba(255, 171, 25, 0.3);
    border-inline-start-color: #ffab19;
}
.policy-highlight--success {
    background: rgba(0, 206, 201, 0.06);
    border-color: rgba(0, 206, 201, 0.2);
    border-inline-start-color: var(--color-accent);
}

/* Contact card at bottom */
.policy-contact-card {
    background: var(--gradient-brand);
    border-radius: var(--radius-xl);
    padding: 40px;
    text-align: center;
    margin-top: 20px;
}
.policy-contact-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}
.policy-contact-card p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}
.policy-contact-card a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--color-primary);
    font-weight: 700;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    transition: all var(--transition);
}
.policy-contact-card a:hover {
    background: #f0eeff;
    transform: translateY(-2px);
}

/* ══════════════════════════════════════════
   RESPONSIVE — NEW COMPONENTS
   ══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .privacy-layout {
        grid-template-columns: 1fr;
    }
    .privacy-toc {
        position: static;
        display: none; /* hide on mobile — scrollspy TOC not essential */
    }
    .footer__cols-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    .company-card__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .footer__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .footer__cols-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .footer__bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
    .privacy-hero {
        padding: 110px 0 40px;
    }
    .policy-contact-card {
        padding: 28px 20px;
    }
}

@media (max-width: 480px) {
    .footer__cols-wrapper {
        grid-template-columns: 1fr;
    }
    .mobile-menu__actions {
        flex-wrap: wrap;
    }
}

/* ══════════════════════════════════════════════════════════════
   LANGUAGE SPLASH  (ls__)
   ══════════════════════════════════════════════════════════════ */

/* Hide page content while the splash is pending — prevents flash */
html[data-splash="pending"] body > :not(#langSplash) {
    visibility: hidden;
}

/* ── Overlay base ── */
.ls {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #080810;
    background-image:
        radial-gradient(ellipse 60% 50% at 20% 10%, rgba(0, 128, 64, 0.18) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 80% 90%, rgba(108, 92, 231, 0.22) 0%, transparent 70%),
        radial-gradient(ellipse 40% 30% at 50% 50%, rgba(0, 206, 201, 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
    overflow: hidden;
}
.ls--visible {
    opacity: 1;
}
.ls--exit {
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

/* ── Particles ── */
.ls__particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.ls__particle {
    position: absolute;
    bottom: -6px;
    border-radius: 50%;
    background: #ffffff;
    animation: lsParticleRise linear infinite;
}
@keyframes lsParticleRise {
    0%   { transform: translateY(0)      scale(1);   }
    50%  { transform: translateY(-45vh)  scale(1.2); }
    100% { transform: translateY(-105vh) scale(0.6); opacity: 0; }
}

/* ── Inner container ── */
.ls__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    padding: 40px 24px 32px;
    max-width: 720px;
    width: 100%;
    text-align: center;
    /* Staggered entrance */
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity  0.45s 0.18s cubic-bezier(0.22, 0.61, 0.36, 1),
        transform 0.45s 0.18s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.ls--visible .ls__inner {
    opacity: 1;
    transform: translateY(0);
}

/* ── Logo ── */
.ls__header {
    width: 100%;
    display: flex;
    justify-content: center;
}
.ls__logo {
    display: flex;
    align-items: center;
    gap: 14px;
}
.ls__logo img {
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(108, 92, 231, 0.38);
}
.ls__logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}
.ls__logo-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: #e4e4ed;
    letter-spacing: -0.02em;
}
.ls__logo-since {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* ── Saudi Made badge ── */
.ls__badge-wrap {
    position: relative;
    width: 220px;
    height: 220px;
    animation: lsBadgeFloat 4.5s ease-in-out infinite;
    filter:
        drop-shadow(0 6px 28px rgba(0, 170, 80, 0.5))
        drop-shadow(0 0 50px rgba(0, 100, 50, 0.25));
}
/* When shown at bottom — slightly larger on mobile too */
.ls__badge-wrap--bottom {
    margin-top: 4px;
}
/* If image loads: show it, hide the CSS fallback */
.ls__badge-wrap:not(.ls__badge-wrap--fallback) .ls__badge-fb { display: none; }
/* If image fails: hide it, show the CSS fallback */
.ls__badge-wrap--fallback .ls__badge { display: none; }

.ls__badge {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    display: block;
}
/* CSS fallback badge (shown when image is missing) */
.ls__badge-fb {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 3px solid #006b3c;
    background: radial-gradient(circle, #005f35 0%, #003d22 100%);
}
.ls__badge-fb-flag { font-size: 2.2rem; line-height: 1; }
.ls__badge-fb-ar {
    font-size: 0.68rem;
    color: #d4af37;
    font-weight: 700;
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
}
.ls__badge-fb-en {
    font-size: 0.62rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.12em;
}
@keyframes lsBadgeFloat {
    0%, 100% { transform: translateY(0)    rotate(-2deg); }
    50%       { transform: translateY(-9px) rotate(2deg);  }
}

/* ── Headline ── */
.ls__headline {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.82);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    line-height: 1.4;
}
.ls__headline [lang="ar"] {
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
}
.ls__headline-sep {
    color: rgba(255, 255, 255, 0.22);
    font-size: 1.1em;
}

/* ── Cards row ── */
.ls__cards {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    justify-content: center;
}

/* ── Single language card ── */
.ls__card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 28px 22px;
    min-width: 190px;
    max-width: 230px;
    flex: 1;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.09);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    color: #e4e4ed;
    text-align: center;
    outline: none;
}
.ls__card:hover,
.ls__card:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(108, 92, 231, 0.6);
    transform: translateY(-5px);
    box-shadow: 0 14px 44px rgba(108, 92, 231, 0.28);
}
.ls__card--ar:hover,
.ls__card--ar:focus-visible {
    border-color: rgba(0, 128, 64, 0.65);
    box-shadow: 0 14px 44px rgba(0, 128, 64, 0.28);
}
/* Last-used highlight */
.ls__card--last {
    border-color: rgba(108, 92, 231, 0.42);
    background: rgba(108, 92, 231, 0.07);
}
.ls__card--ar.ls__card--last {
    border-color: rgba(0, 128, 64, 0.42);
    background: rgba(0, 128, 64, 0.07);
}
/* Confirmed/chosen flash */
.ls__card--chosen {
    transform: scale(1.05) !important;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}
/* "Last used" pill */
.ls__card-last-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.64rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    background: var(--color-primary, #6c5ce7);
    color: #fff;
    white-space: nowrap;
    letter-spacing: 0.04em;
}
.ls__card--ar .ls__card-last-badge {
    background: #006b3c;
    font-family: 'Tajawal', sans-serif;
}
/* Card elements */
.ls__card-flag  { font-size: 2.5rem; line-height: 1; display: block; }
.ls__card-name  { font-size: 1.4rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.ls__card--ar .ls__card-name  { font-family: 'Tajawal', sans-serif; font-size: 1.45rem; }
.ls__card-sub   { font-size: 0.82rem; color: rgba(255, 255, 255, 0.42); }
.ls__card--ar .ls__card-sub  { font-family: 'Tajawal', sans-serif; }
.ls__card-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #a29bfe;
    letter-spacing: 0.02em;
}
.ls__card--ar .ls__card-cta {
    color: #6ee7b7;
    font-family: 'Tajawal', sans-serif;
}

/* ── "or · أو" divider ── */
.ls__or {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.ls__or-line  { width: 1px; height: 38px; background: rgba(255, 255, 255, 0.1); }
.ls__or-label { font-size: 0.7rem; color: rgba(255, 255, 255, 0.28); white-space: nowrap; letter-spacing: 0.08em; }

/* ── Hint ── */
.ls__hint {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.22);
    line-height: 1.8;
}

/* ── Mobile ── */
@media (max-width: 600px) {
    .ls__cards {
        flex-direction: column;
        gap: 14px;
        width: 100%;
    }
    .ls__or {
        flex-direction: row;
        width: 100%;
    }
    .ls__or-line  { width: 100%; height: 1px; flex: 1; }
    .ls__card {
        min-width: unset;
        max-width: unset;
        width: 100%;
        flex-direction: row;
        gap: 14px;
        padding: 18px 22px;
        text-align: start;
    }
    .ls__card--ar { direction: rtl; }
    .ls__card-flag { font-size: 2rem; flex-shrink: 0; }
    .ls__card-cta  { display: none; }
    .ls__badge-wrap { width: 160px; height: 160px; }
    .ls__headline { font-size: 0.97rem; }
    .ls__hint { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   LANGUAGE SWITCH TRANSITION OVERLAY  (lso)
   ══════════════════════════════════════════════════════════════ */
.lso {
    position: fixed;
    inset: 0;
    background: #080810;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}
.lso--active {
    opacity: 0.97;
    pointer-events: all;
}

/* ══════════════════════════════════════════════════════════════
   HERO — SAUDI MADE BADGE  (floating)
   ══════════════════════════════════════════════════════════════ */
.hero__visual { position: relative; }

.hero__saudi-badge-wrap {
    position: absolute;
    bottom: -18px;
    right: -18px;
    width: 110px;
    height: 110px;
    z-index: 10;
    animation: heroSaudiFloat 5s ease-in-out infinite;
    filter:
        drop-shadow(0 4px 20px rgba(0, 160, 80, 0.45))
        drop-shadow(0 0 44px rgba(0, 100, 50, 0.2));
}
[dir="rtl"] .hero__saudi-badge-wrap {
    right: auto;
    left: -18px;
}
.hero__saudi-badge-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    display: block;
}
@keyframes heroSaudiFloat {
    0%, 100% { transform: translateY(0)    rotate(-3deg) scale(1);    }
    33%       { transform: translateY(-8px) rotate(0deg)  scale(1.02); }
    66%       { transform: translateY(-4px) rotate(3deg)  scale(0.99); }
}
@media (max-width: 1024px) {
    .hero__saudi-badge-wrap { bottom: -10px; right: -10px; width: 88px; height: 88px; }
    [dir="rtl"] .hero__saudi-badge-wrap { right: auto; left: -10px; }
}
@media (max-width: 768px) {
    .hero__saudi-badge-wrap { bottom: -8px; right: -8px; width: 70px; height: 70px; }
    [dir="rtl"] .hero__saudi-badge-wrap { right: auto; left: -8px; }
}
