:root {
    --bg: #0f172a;
    --bg-sidebar: #0d1321;
    --bg-paper: #1e293b;
    --bg-elevated: #273449;
    --text: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #334155;
    --primary: #10b981;
    --primary-light: #34d399;
    --primary-dark: #059669;
    --secondary: #f59e0b;
    --secondary-dark: #d97706;
    --info: #3b82f6;
    --danger: #ef4444;
    --hover: rgba(16, 185, 129, 0.08);
    --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.4);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: radial-gradient(circle at 12% -10%, rgba(16, 185, 129, 0.23) 0%, transparent 38%),
        radial-gradient(circle at 88% 0%, rgba(59, 130, 246, 0.2) 0%, transparent 32%),
        linear-gradient(145deg, #0f172a 0%, #111b2d 46%, #0d1321 100%);
    line-height: 1.65;
    overflow-x: clip;
}

body.ltr {
    font-family: "Plus Jakarta Sans", "Segoe UI", "Roboto", sans-serif;
}

body.rtl {
    font-family: "Cairo", "Tajawal", "Segoe UI", "Roboto", sans-serif;
}

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

.container {
    width: min(1160px, calc(100% - 2rem));
    margin-inline: auto;
}

.lp-bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(85px);
    pointer-events: none;
    z-index: 0;
}

.lp-bg-orb-a {
    width: 390px;
    height: 390px;
    top: -110px;
    left: -90px;
    background: rgba(16, 185, 129, 0.2);
}

.lp-bg-orb-b {
    width: 330px;
    height: 330px;
    bottom: 12%;
    right: -50px;
    background: rgba(59, 130, 246, 0.22);
}

.lp-grid-overlay {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: linear-gradient(to right, rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at center, black 42%, transparent 100%);
}

.lp-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(51, 65, 85, 0.88);
    background: rgba(13, 19, 33, 0.78);
    backdrop-filter: blur(12px);
}

.lp-header-inner {
    min-height: 82px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.brand-mark {
    width: 2.1rem;
    height: 2.1rem;
    display: inline-grid;
    place-items: center;
    border-radius: 0.62rem;
    color: #062e28;
    font-weight: 800;
    background: linear-gradient(145deg, var(--primary-light) 0%, var(--primary) 55%, var(--primary-dark) 100%);
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.3);
}

.brand-text {
    font-size: 1.03rem;
    letter-spacing: -0.01em;
}

.brand-text strong {
    color: var(--primary-light);
}

.lp-nav {
    display: flex;
    justify-content: center;
    gap: 1.3rem;
}

.lp-nav a {
    color: var(--text-secondary);
    font-size: 0.93rem;
    transition: color 0.2s ease;
}

.lp-nav a:hover {
    color: var(--text);
}

.lp-controls {
    display: flex;
    align-items: end;
    gap: 0.68rem;
}

.select-wrap {
    display: grid;
    gap: 0.2rem;
}

.select-wrap label {
    color: var(--text-muted);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.rtl .select-wrap label {
    letter-spacing: 0;
    text-transform: none;
}

.select-wrap select {
    min-width: 132px;
    border: 1px solid var(--border);
    border-radius: 0.7rem;
    padding: 0.44rem 0.56rem;
    color: var(--text);
    background: linear-gradient(180deg, rgba(39, 52, 73, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.select-wrap select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    outline: none;
}

.btn {
    border: 0;
    cursor: pointer;
    border-radius: 0.78rem;
    padding: 0.72rem 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #052b24;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 50%, var(--primary-dark) 100%);
    box-shadow: 0 14px 34px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 18px 36px rgba(16, 185, 129, 0.42);
}

.btn-ghost {
    color: var(--text);
    border: 1px solid var(--border);
    background: rgba(39, 52, 73, 0.46);
}

.btn-ghost:hover {
    border-color: rgba(16, 185, 129, 0.6);
    background: rgba(16, 185, 129, 0.1);
}

.btn-sm {
    padding: 0.64rem 0.88rem;
}

.btn.full {
    width: 100%;
}

.section {
    position: relative;
    z-index: 1;
    padding: 5.4rem 0;
}

.section.compact {
    padding: 4.5rem 0;
}

.section.muted {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.78) 0%, rgba(17, 27, 45, 0.78) 100%);
    border-top: 1px solid rgba(51, 65, 85, 0.75);
    border-bottom: 1px solid rgba(51, 65, 85, 0.75);
}

.section-intro {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 2rem;
}

.section-intro h2 {
    margin: 0;
    font-size: clamp(1.68rem, 2.9vw, 2.46rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-intro p {
    margin-top: 0.75rem;
    color: var(--text-secondary);
}

.hero {
    padding: 5.3rem 0 4.6rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.06fr 0.94fr;
    gap: 1.3rem;
    align-items: center;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(2.1rem, 4vw, 3.36rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.hero-badge {
    display: inline-flex;
    margin: 0 0 1rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(52, 211, 153, 0.5);
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    color: #6ee7b7;
    font-weight: 600;
    font-size: 0.85rem;
}

.hero-subtitle {
    margin: 1rem 0 0;
    color: var(--text-secondary);
    max-width: 620px;
    font-size: clamp(1rem, 1.7vw, 1.16rem);
}

.hero-actions {
    margin-top: 1.55rem;
    display: flex;
    gap: 0.75rem;
}

.hero-proof {
    list-style: none;
    margin: 1.4rem 0 0;
    padding: 0;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-proof li {
    font-size: 0.89rem;
    color: #86efac;
    background: rgba(5, 150, 105, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.34);
    border-radius: 0.58rem;
    padding: 0.36rem 0.58rem;
}

.hero-panel {
    border-radius: 1.08rem;
    overflow: hidden;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(17, 27, 45, 0.95) 100%);
    box-shadow: var(--shadow-lg);
    animation: heroFloat 6.8s ease-in-out infinite;
}

.mockup-head {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.2) 0%, rgba(59, 130, 246, 0.18) 100%);
    border-bottom: 1px solid rgba(51, 65, 85, 0.9);
    display: flex;
    align-items: center;
    gap: 0.36rem;
    padding: 0.84rem 1rem;
}

.mockup-head span {
    width: 0.58rem;
    height: 0.58rem;
    border-radius: 50%;
    background: #8ef5d6;
}

.mockup-head p {
    margin: 0 0 0 0.35rem;
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 600;
}

body.rtl .mockup-head p {
    margin: 0 0.35rem 0 0;
}

.mockup-body {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    padding: 1rem;
}

.mockup-kpi {
    border: 1px solid rgba(71, 85, 105, 0.8);
    border-radius: 0.8rem;
    background: linear-gradient(180deg, rgba(39, 52, 73, 0.85) 0%, rgba(30, 41, 59, 0.82) 100%);
    padding: 0.75rem;
}

.mockup-kpi h3 {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.mockup-kpi p {
    margin: 0.38rem 0 0;
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 700;
}

.mockup-chart {
    grid-column: 1 / -1;
    height: 90px;
    border: 1px solid rgba(71, 85, 105, 0.84);
    border-radius: 0.8rem;
    background: rgba(15, 23, 42, 0.8);
    padding: 0.75rem 0.58rem;
    display: flex;
    gap: 0.38rem;
    align-items: end;
}

.bar {
    flex: 1;
    border-radius: 999px;
    background: linear-gradient(180deg, #34d399 0%, #10b981 65%, #059669 100%);
    animation: barPulse 2.7s ease-in-out infinite;
}

.bar.b1 {
    height: 24%;
}

.bar.b2 {
    height: 46%;
}

.bar.b3 {
    height: 38%;
}

.bar.b4 {
    height: 69%;
}

.bar.b5 {
    height: 41%;
}

@keyframes barPulse {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.15);
    }
}

@keyframes heroFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.stats-grid,
.features-grid,
.workflow-grid,
.pricing-grid {
    display: grid;
    gap: 1rem;
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card,
.feature-card,
.workflow-card,
.price-card {
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(39, 52, 73, 0.85) 0%, rgba(30, 41, 59, 0.82) 100%);
    box-shadow: var(--shadow-soft);
    padding: 1.05rem;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover,
.feature-card:hover,
.workflow-card:hover,
.price-card:hover {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.12);
    transform: translateY(-2px);
}

.stat-card h3,
.feature-card h3,
.workflow-card h3,
.price-card h3 {
    margin: 0;
    font-size: 1.03rem;
}

.stat-card p,
.feature-card p,
.workflow-card p {
    margin: 0.45rem 0 0;
    color: var(--text-secondary);
}

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

.pain-col {
    border-radius: 1rem;
    padding: 1.15rem;
    border: 1px solid rgba(239, 68, 68, 0.34);
    background: linear-gradient(180deg, rgba(87, 31, 31, 0.24) 0%, rgba(30, 41, 59, 0.8) 100%);
}

.pain-col.solution {
    border-color: rgba(16, 185, 129, 0.42);
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.16) 0%, rgba(30, 41, 59, 0.82) 100%);
}

.pain-col h3 {
    margin: 0;
}

.pain-col ul {
    margin: 0.85rem 0 0;
    padding-inline-start: 1rem;
    display: grid;
    gap: 0.64rem;
}

.pain-col li {
    color: var(--text-secondary);
}

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

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

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.shot-card {
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(39, 52, 73, 0.9) 0%, rgba(30, 41, 59, 0.84) 100%);
    box-shadow: var(--shadow-soft);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
    animation: showcaseFloat 8s ease-in-out infinite;
}

.shot-card:nth-child(2) {
    animation-delay: 0.9s;
}

.shot-card:nth-child(3) {
    animation-delay: 1.6s;
}

.shot-card:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.66);
    box-shadow: 0 0 26px rgba(16, 185, 129, 0.2);
}

.shot-image-wrap {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(51, 65, 85, 0.88);
}

.shot-image-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.08) 45%, transparent 80%);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
    pointer-events: none;
}

.shot-card:hover .shot-image-wrap::before {
    transform: translateX(120%);
}

.shot-image-wrap img {
    display: block;
    width: 100%;
    height: auto;
    transform: scale(1.01);
    transition: transform 0.35s ease;
}

.shot-card:hover .shot-image-wrap img {
    transform: scale(1.05);
}

.shot-content {
    padding: 1rem;
}

.shot-content h3 {
    margin: 0;
    font-size: 1.02rem;
}

.shot-content p {
    margin: 0.45rem 0 0;
    color: var(--text-secondary);
}

@keyframes showcaseFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.step {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    color: #052d27;
    font-weight: 800;
    background: linear-gradient(145deg, var(--primary-light) 0%, var(--primary) 100%);
    box-shadow: 0 8px 18px rgba(16, 185, 129, 0.24);
}

.billing-toggle {
    margin: 1rem auto 1.8rem;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.36rem;
    background: rgba(30, 41, 59, 0.9);
}

.toggle-btn {
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 0.5rem 0.95rem;
}

.toggle-btn.is-active {
    color: var(--text);
    background: rgba(16, 185, 129, 0.24);
}

.billing-toggle > span {
    color: #6ee7b7;
    font-size: 0.85rem;
    font-weight: 700;
    padding-inline-end: 0.75rem;
}

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

.price-card {
    position: relative;
}

.price-card.popular {
    border-color: rgba(16, 185, 129, 0.66);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.18);
}

.popular-badge {
    position: absolute;
    top: -0.62rem;
    left: 1rem;
    margin: 0;
    border-radius: 999px;
    padding: 0.24rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 800;
    color: #052d27;
    background: linear-gradient(135deg, #6ee7b7 0%, #10b981 100%);
}

.tier-description {
    min-height: 3.4rem;
}

.price-line {
    margin-top: 1rem;
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
}

.price-value {
    font-size: clamp(1.86rem, 3vw, 2.46rem);
    line-height: 1;
    font-weight: 800;
}

.price-currency {
    color: #6ee7b7;
    font-weight: 700;
}

.price-period {
    margin: 0.28rem 0 0;
    color: var(--text-secondary);
}

.tier-features {
    margin: 0.95rem 0;
    padding-inline-start: 1rem;
    display: grid;
    gap: 0.4rem;
}

.tier-features li {
    color: var(--text-secondary);
}

.faq-list {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    gap: 0.72rem;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 0.86rem;
    background: linear-gradient(180deg, rgba(39, 52, 73, 0.84) 0%, rgba(30, 41, 59, 0.82) 100%);
    padding: 0.84rem 0.95rem;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p {
    margin: 0.52rem 0 0;
    color: var(--text-secondary);
}

.cta {
    background: radial-gradient(circle at 22% 20%, rgba(16, 185, 129, 0.16) 0%, transparent 44%),
        radial-gradient(circle at 82% 20%, rgba(245, 158, 11, 0.17) 0%, transparent 42%);
}

.cta-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 1rem;
    align-items: start;
}

.cta-copy h2 {
    margin: 0;
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    line-height: 1.2;
}

.cta-copy p {
    margin-top: 0.85rem;
    color: var(--text-secondary);
}

.cta-form {
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.96) 0%, rgba(17, 27, 45, 0.92) 100%);
    box-shadow: var(--shadow-soft);
    padding: 1rem;
}

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

label span {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 600;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 0.7rem;
    padding: 0.63rem 0.7rem;
    color: var(--text);
    background: rgba(39, 52, 73, 0.76);
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 110px;
}

form > label {
    display: block;
    margin-top: 0.75rem;
}

form .btn.full {
    margin-top: 0.92rem;
}

.lp-footer {
    position: relative;
    z-index: 2;
    padding: 2rem 0 2.35rem;
    border-top: 1px solid rgba(51, 65, 85, 0.8);
    background: rgba(13, 19, 33, 0.55);
}

.footer-brand h3 {
    margin: 0;
}

.footer-brand p {
    margin: 0.25rem 0 0;
    color: var(--text-secondary);
}

.footer-meta {
    margin: 1rem 0 0;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.flash-wrap {
    position: relative;
    z-index: 3;
    padding-top: 0.8rem;
}

.flash-success,
.flash-error {
    border-radius: 0.8rem;
    padding: 0.72rem 0.9rem;
    font-size: 0.9rem;
}

.flash-success {
    color: #b7f7d9;
    border: 1px solid rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.15);
}

.flash-error {
    color: #fecaca;
    border: 1px solid rgba(239, 68, 68, 0.42);
    background: rgba(239, 68, 68, 0.14);
    margin-bottom: 0.72rem;
}

.flash-error ul {
    margin: 0;
    padding-inline-start: 1rem;
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1080px) {
    .lp-header-inner {
        grid-template-columns: 1fr;
        padding: 0.8rem 0;
    }

    .lp-nav {
        order: 3;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.35rem;
    }

    .lp-controls {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .hero-grid,
    .cta-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid,
    .features-grid,
    .workflow-grid,
    .pricing-grid,
    .showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .section {
        padding: 4.2rem 0;
    }

    .stats-grid,
    .features-grid,
    .workflow-grid,
    .pricing-grid,
    .showcase-grid,
    .pain-grid,
    .field-grid,
    .mockup-body {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-wrap: wrap;
    }

    .lp-controls {
        width: 100%;
    }

    .select-wrap {
        flex: 1;
    }

    .select-wrap select,
    .btn-sm {
        width: 100%;
    }
}
