/* LiveRoo — Premium Marketing Landing */

:root {
    --bg-deep: #050608;
    --bg-surface: #0b1014;
    --bg-elevated: #111820;
    --bg-light: #f4f7f9;
    --bg-light-soft: #eef2f5;
    --hero-card: #ffffff;
    --glass: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;
    --text-dark-muted: #64748b;
    --accent-start: #22d3ee;
    --accent-end: #0891b2;
    --accent-glow: rgba(34, 211, 238, 0.35);
    --border-subtle: rgba(148, 163, 184, 0.15);
    --shadow-card: 0 24px 48px -12px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 40px rgba(34, 211, 238, 0.15);
    --font-en: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-ar: 'Cairo', system-ui, sans-serif;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --section-py: clamp(4rem, 10vw, 7rem);
    --container: min(1140px, calc(100% - 2.5rem));
}

[data-theme='light'] {
    --bg-deep: #f4f7f9;
    --bg-surface: #eef2f5;
    --bg-elevated: #ffffff;
    --glass: rgba(15, 23, 42, 0.03);
    --glass-border: rgba(15, 23, 42, 0.08);
    --text-primary: #0f172a;
    --text-muted: #64748b;
    --border-subtle: rgba(15, 23, 42, 0.08);
    --accent-glow: rgba(8, 145, 178, 0.15);
    --shadow-card: 0 24px 48px -12px rgba(15, 23, 42, 0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    min-height: 100dvh;
    font-family: var(--font-en);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background var(--transition), color var(--transition);
}
body[dir='rtl'] { font-family: var(--font-ar); }

.page { position: relative; isolation: isolate; }
.page__bg {
    position: fixed; inset: 0; z-index: -2;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(34, 211, 238, 0.1), transparent 55%),
        linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-surface) 100%);
    transition: background var(--transition);
}
.page__orb {
    position: fixed; border-radius: 50%; filter: blur(90px);
    pointer-events: none; z-index: -1;
    animation: float 20s ease-in-out infinite;
}
.page__orb--1 { width: 480px; height: 480px; top: -140px; right: -100px; background: var(--accent-glow); }
.page__orb--2 { width: 360px; height: 360px; bottom: 20%; left: -120px; background: rgba(8, 145, 178, 0.12); animation-delay: -8s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(16px, -24px); }
}

.container { width: var(--container); margin-inline: auto; }

/* Language */
[data-lang-only='en'], [data-lang-only='ar'] { display: none; }
html[lang='en'] [data-lang-only='en'] { display: revert; }
html[lang='ar'] [data-lang-only='ar'] { display: revert; }

/* Header */
.header {
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem;
    backdrop-filter: blur(16px);
    background: rgba(5, 6, 8, 0.75);
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition);
}
[data-theme='light'] .header { background: rgba(244, 247, 249, 0.9); }
.header__brand { display: flex; align-items: center; text-decoration: none; color: inherit; }

.logo {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    background: transparent;
}
.logo--header {
    width: auto;
    height: 2.35rem;
    filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.22));
    transition: filter var(--transition), transform 0.2s;
}
.header__brand:hover .logo--header {
    filter: drop-shadow(0 0 16px rgba(34, 211, 238, 0.38));
    transform: translateY(-1px);
}
.logo--hero {
    width: min(280px, 78vw);
    margin-bottom: 1.75rem;
    filter: drop-shadow(0 10px 36px rgba(34, 211, 238, 0.18));
}
.logo--phone {
    width: auto;
    height: 0.85rem;
    flex-shrink: 0;
    opacity: 0.95;
}
.logo--footer {
    width: min(150px, 42vw);
    margin-bottom: 1rem;
    filter: drop-shadow(0 6px 20px rgba(34, 211, 238, 0.12));
}
[data-theme='light'] .logo--header,
[data-theme='light'] .logo--hero,
[data-theme='light'] .logo--footer {
    filter: drop-shadow(0 8px 24px rgba(8, 145, 178, 0.14));
}
.header__controls { display: flex; align-items: center; gap: 0.5rem; }
.toggle-group {
    display: flex; background: var(--glass);
    border: 1px solid var(--border-subtle); border-radius: 999px; padding: 0.15rem;
}
.toggle-btn {
    border: none; background: transparent; color: var(--text-muted);
    font: inherit; font-size: 0.75rem; font-weight: 600;
    padding: 0.35rem 0.7rem; border-radius: 999px; cursor: pointer;
    transition: color var(--transition), background var(--transition);
}
.toggle-btn.is-active {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    color: #fff;
}
.theme-btn {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 999px;
    border: 1px solid var(--border-subtle); background: var(--glass);
    color: var(--text-primary); cursor: pointer;
    transition: transform 0.2s, border-color var(--transition);
}
.theme-btn:hover { border-color: var(--accent-start); transform: scale(1.05); }
.theme-btn svg { width: 17px; height: 17px; }
.theme-btn .icon-sun { display: none; }
[data-theme='light'] .theme-btn .icon-sun { display: block; }
[data-theme='light'] .theme-btn .icon-moon { display: none; }

/* Section base */
.section { padding-block: var(--section-py); position: relative; }
.section--alt { background: var(--bg-elevated); }
.section__head { text-align: center; max-width: 640px; margin-inline: auto; margin-bottom: 3rem; }
.section__eyebrow {
    display: inline-block; font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--accent-start); margin-bottom: 0.75rem;
}
.section__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700;
    line-height: 1.2; margin-bottom: 0.75rem;
}
.section__desc { color: var(--text-muted); font-size: 1.05rem; }

.reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Badge Coming Soon */
.badge-soon {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.45rem 1rem 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.35);
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--accent-start);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-glow);
    animation: badgePulse 2.5s ease-in-out infinite;
}
.badge-soon__dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent-start);
    box-shadow: 0 0 12px var(--accent-start);
    animation: dotPulse 1.5s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 20px rgba(34, 211, 238, 0.2); }
    50% { box-shadow: 0 0 32px rgba(34, 211, 238, 0.4); }
}
@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

/* Hero */
.hero {
    padding-block: clamp(3rem, 8vw, 6rem) clamp(4rem, 10vw, 7rem);
    overflow: hidden;
}
.hero__grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero__content { max-width: 560px; }
.hero__title {
    font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800;
    line-height: 1.15; margin-bottom: 1rem;
}
.hero__title span {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__desc { font-size: 1.125rem; color: var(--text-muted); margin-bottom: 1.25rem; max-width: 480px; }

/* Phone mockup */
.phone-wrap { display: flex; justify-content: center; perspective: 1200px; }
.phone {
    width: 260px; height: 520px;
    background: linear-gradient(145deg, #1a1f26 0%, #0d1117 100%);
    border-radius: 36px; padding: 10px;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(255,255,255,0.08), inset 0 1px 0 rgba(255,255,255,0.1);
    transform: rotateY(-8deg) rotateX(4deg);
    transition: transform 0.5s ease;
}
.phone-wrap:hover .phone { transform: rotateY(0) rotateX(0); }
.phone__notch {
    width: 100px; height: 24px; background: #000;
    border-radius: 0 0 14px 14px; margin: 0 auto 8px;
}
.phone__screen {
    height: calc(100% - 32px); background: #0f1419;
    border-radius: 26px; overflow: hidden; padding: 12px;
    display: flex; flex-direction: column; gap: 10px;
}
.phone__bar {
    height: 32px; background: rgba(255,255,255,0.06);
    border-radius: 10px; display: flex; align-items: center; padding: 0 10px; gap: 6px;
}
.phone__bar-line { flex: 1; height: 8px; background: rgba(255,255,255,0.08); border-radius: 4px; margin-inline-start: 0.35rem; }
.phone__cats { display: flex; gap: 6px; }
.phone__cat {
    flex: 1; height: 48px; border-radius: 10px;
    background: linear-gradient(135deg, rgba(34,211,238,0.2), rgba(8,145,178,0.1));
    border: 1px solid rgba(34,211,238,0.2);
}
.phone__card {
    flex: 1; border-radius: 12px; padding: 10px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
    display: flex; flex-direction: column; gap: 8px;
}
.phone__card-img { height: 60px; border-radius: 8px; background: linear-gradient(135deg, #22d3ee33, #0891b233); }
.phone__card-line { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.1); }
.phone__card-line--short { width: 60%; }
.phone__btn {
    height: 36px; border-radius: 10px; margin-top: auto;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
}

/* Glass cards grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

.glass-card {
    padding: 1.75rem; border-radius: var(--radius-lg);
    background: var(--glass); border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.glass-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.35);
    box-shadow: var(--shadow-glow);
}
.glass-card__icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(34,211,238,0.15), rgba(8,145,178,0.1));
    border: 1px solid rgba(34, 211, 238, 0.25);
    margin-bottom: 1rem; color: var(--accent-start);
}
.glass-card__icon svg { width: 24px; height: 24px; }
.glass-card__title { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.35rem; }
.glass-card__text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.55; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.step { text-align: center; position: relative; }
.step__num {
    width: 56px; height: 56px; margin: 0 auto 1rem;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; font-weight: 800;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    color: #fff; box-shadow: 0 8px 24px rgba(34, 211, 238, 0.35);
}
.step__title { font-weight: 700; margin-bottom: 0.35rem; }
.step__text { font-size: 0.875rem; color: var(--text-muted); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat {
    padding: 2rem 1rem; border-radius: var(--radius-lg);
    background: var(--glass); border: 1px solid var(--glass-border);
}
.stat__num {
    font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; line-height: 1;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    margin-bottom: 0.35rem;
}
.stat__label { font-size: 0.875rem; color: var(--text-muted); }

/* Partners CTA */
.partners-box {
    text-align: center; padding: clamp(2.5rem, 6vw, 4rem);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(34,211,238,0.08), rgba(8,145,178,0.04));
    border: 1px solid rgba(34, 211, 238, 0.2);
    box-shadow: var(--shadow-glow);
}
.partners-box__title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin-bottom: 0.75rem; }
.partners-box__desc { color: var(--text-muted); max-width: 520px; margin: 0 auto 1.5rem; }
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.875rem 1.75rem; border-radius: 999px;
    font: inherit; font-weight: 600; font-size: 0.9375rem;
    text-decoration: none; cursor: pointer; border: none;
    transition: transform 0.2s, box-shadow var(--transition);
}
.btn--primary {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    color: #fff; box-shadow: 0 8px 24px rgba(34, 211, 238, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(34, 211, 238, 0.45); }

/* FAQ */
.faq { max-width: 720px; margin-inline: auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq__item {
    border-radius: var(--radius-md);
    background: var(--glass); border: 1px solid var(--glass-border);
    overflow: hidden; transition: border-color var(--transition);
}
.faq__item[open] { border-color: rgba(34, 211, 238, 0.3); }
.faq__q {
    padding: 1.125rem 1.25rem; font-weight: 600; cursor: pointer;
    list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
    content: '+'; font-size: 1.25rem; color: var(--accent-start); flex-shrink: 0;
    transition: transform 0.3s;
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 1.25rem 1.125rem; color: var(--text-muted); font-size: 0.9375rem; line-height: 1.6; }

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-surface);
}
.footer__grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem; margin-bottom: 3rem;
}
.footer__brand p { font-size: 0.875rem; color: var(--text-muted); max-width: 280px; line-height: 1.6; }
.footer__col-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; }
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer__links a { color: var(--text-muted); text-decoration: none; font-size: 0.875rem; transition: color var(--transition); }
.footer__links a:hover { color: var(--accent-start); }
.footer__social { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.footer__social a {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--glass); border: 1px solid var(--border-subtle);
    color: var(--text-muted); transition: color var(--transition), border-color var(--transition);
}
.footer__social a:hover { color: var(--accent-start); border-color: var(--accent-start); }
.footer__social svg { width: 16px; height: 16px; }
.footer__bottom {
    padding-top: 2rem; border-top: 1px solid var(--border-subtle);
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem;
    font-size: 0.8125rem; color: var(--text-muted);
}
.footer__bottom a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}
.footer__bottom a:hover { color: var(--accent-start); }
.footer__credit a { font-weight: 600; }

/* Responsive */
@media (max-width: 1024px) {
    .hero__grid { grid-template-columns: 1fr; text-align: center; }
    .hero__content { max-width: none; margin-inline: auto; }
    .hero__desc { margin-inline: auto; }
    .phone-wrap { order: -1; }
    .grid-4, .stats { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .grid-4, .stats { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
    .phone { width: 220px; height: 440px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}
