:root {
    --bg: #02060d;
    --panel: #08101f;
    --panel-alt: #0c1526;
    --text: #f4f6fb;
    --muted: #a0a8ba;
    --accent: #ff8a2b;
    --accent-soft: rgba(255, 138, 43, 0.25);
    --border: rgba(255, 255, 255, 0.08);
    --card-radius: 20px;
    --section-radius: 28px;
    --section-pad: clamp(2.2rem, 3.4vw, 3rem);
    --section-gap: clamp(2rem, 3vw, 2.8rem);
    --shadow-soft: 0 24px 50px rgba(2, 4, 12, 0.35);
    --shadow-inset: inset 0 0 22px rgba(6, 10, 18, 0.8);
    --font-body: "Space Grotesk", "Sora", sans-serif;
    --font-display: "Sora", "Space Grotesk", sans-serif;
    font-size: 16px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    margin: 0;
    background:
        radial-gradient(
            circle at -10% -10%,
            rgba(255, 140, 26, 0.55),
            transparent 55%
        ),
        radial-gradient(
            circle at 80% 20%,
            rgba(9, 20, 36, 0.8),
            transparent 60%
        ),
        #090f18;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 140px 140px;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

body.rtl {
    direction: rtl;
}

img {
    max-width: 100%;
    display: block;
}

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

.page-shell {
    width: min(1200px, 92vw);
    margin: 0 auto 4rem;
    position: relative;
    z-index: 1;
}

.lang-switcher {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin: 1.5rem 0 0.5rem;
}

body.rtl .lang-switcher {
    justify-content: flex-start;
}

.lang-switcher button {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.lang-switcher button[aria-pressed="true"] {
    background: rgba(255, 138, 43, 0.15);
    color: var(--text);
    border-color: rgba(255, 138, 43, 0.5);
}

.hero {
    position: relative;
    display: flex;
    gap: clamp(2.5rem, 6vw, 4rem);
    padding: clamp(3.5rem, 6vw, 4.5rem) 0 3rem;
    align-items: center;
}

body.rtl .hero {
    flex-direction: row-reverse;
}

.hero__glow {
    position: absolute;
    inset: 0;
    border-radius: 40px;
    background: radial-gradient(
        circle at 20% 20%,
        rgba(255, 149, 0, 0.35),
        transparent 50%
    );
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 1;
    flex: 1;
    max-width: 560px;
}

.hero__logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
}

.hero__logo img {
    width: 52px;
    height: 52px;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45));
    border-radius: 10px;
    padding: 0;
    background: transparent;
    object-fit: cover;
}

.hero__eyebrow {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3.1rem, 6vw, 4.6rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0.4rem 0 1.2rem;
    font-weight: 600;
    text-wrap: balance;
}

.hero__lead {
    font-size: 1.15rem;
    color: var(--muted);
    margin-bottom: 2.4rem;
    max-width: 44ch;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2.6rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.8rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.btn--primary {
    background: linear-gradient(135deg, #ffbb58, var(--accent));
    color: #0b0f17;
    box-shadow: 0 18px 40px rgba(255, 138, 43, 0.35);
}

.btn--ghost {
    border: 1px solid var(--border);
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

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

.btn--ghost:hover {
    border-color: rgba(255, 138, 43, 0.4);
    background: rgba(255, 255, 255, 0.07);
}

.btn:focus-visible {
    outline: 2px solid rgba(255, 138, 43, 0.6);
    outline-offset: 2px;
}

.hero__meta {
    display: flex;
    gap: 2.5rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--border);
}

.hero__stat {
    font-size: 2.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, #ffd8a1, var(--accent));
    -webkit-background-clip: text;
    color: transparent;
    font-family: var(--font-display);
}

.hero__meta p {
    margin: 0;
    color: var(--muted);
}

.hero__meta > div {
    max-width: 240px;
}

.hero__visual {
    position: relative;
    flex: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0 1.5rem;
    gap: 1rem;
}

.hero__visual-frame {
    width: clamp(280px, 38vw, 460px);
    padding: clamp(0.6rem, 1.5vw, 1.2rem);
    border-radius: 48px;
    background: linear-gradient(145deg, #04070f, #0e1627);
    box-shadow:
        inset 0 0 40px rgba(4, 6, 12, 0.4),
        0 60px 90px rgba(2, 4, 12, 0.7);
}

.hero__visual-frame img {
    width: 100%;
    display: block;
    border-radius: 36px;
    object-fit: contain;
    background: #030914;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.45);
}

.hero__visual-desktop {
    display: block;
}

.hero__visual-mobile {
    display: none;
}

section {
    margin-top: 4rem;
    padding: var(--section-pad);
    border-radius: var(--section-radius);
    background: linear-gradient(
        135deg,
        rgba(12, 18, 32, 0.95),
        rgba(8, 12, 22, 0.95)
    );
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-soft);
}

.mission {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.mission h2 {
    max-width: 28ch;
    margin-left: auto;
    margin-right: auto;
}

.mission p {
    max-width: 64ch;
    margin-left: auto;
    margin-right: auto;
}

.mission__kicker {
    font-size: 0.78rem;
    letter-spacing: 0.22em;
}

.mission h2 {
    font-size: clamp(2.15rem, 4.2vw, 3rem);
    line-height: 1.2;
}

.mission p {
    font-size: 1.02rem;
    color: var(--muted);
}

.mission__kicker,
.section-heading p,
.cta__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    color: var(--muted);
}

body.rtl .hero__eyebrow,
body.rtl .mission__kicker,
body.rtl .section-heading p,
body.rtl .cta__eyebrow,
body.rtl .cases__meta {
    letter-spacing: 0.04em;
}

.mission h2,
.section-heading h2,
.cta h2 {
    margin: 0.6rem 0 1rem;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    font-family: var(--font-display);
    text-wrap: balance;
}

.capabilities {
    background: linear-gradient(
        145deg,
        rgba(10, 16, 28, 0.95),
        rgba(9, 14, 26, 0.98)
    );
}

.capabilities__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.card {
    padding: 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--card-radius);
    background: linear-gradient(
        145deg,
        rgba(11, 17, 29, 0.88),
        rgba(7, 11, 20, 0.92)
    );
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-height: 240px;
    box-shadow: var(--shadow-inset);
}

.card h3 {
    margin: 0;
    font-size: 1.2rem;
    font-family: var(--font-display);
    letter-spacing: -0.01em;
    font-weight: 600;
}

.card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--muted);
}

.card ul li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    margin-inline-end: 0.6rem;
    display: inline-block;
}

.promise__body {
    display: flex;
    gap: var(--section-gap);
    align-items: flex-start;
}

.checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.checklist li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--muted);
}

.checklist li::before {
    content: "✔";
    color: var(--accent);
    font-weight: 600;
}

.promise__visual {
    position: relative;
    flex: 1;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
}

.folder {
    position: relative;
    width: 300px;
    height: 200px;
    background: linear-gradient(145deg, #0e1728, #0a1220);
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    z-index: 1;
    box-shadow:
        inset 0 0 20px rgba(5, 9, 18, 0.9),
        0 25px 50px rgba(3, 6, 12, 0.6);
}

.folder__tab {
    display: none;
}

.folder__content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    height: 100%;
}

.promise__visual .glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 70% 20%,
        var(--accent-soft),
        transparent 60%
    );
    filter: blur(50px);
}

.folder__content p {
    margin: 0;
    padding: 0.6rem 0.8rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #ffb15c;
    font-weight: 600;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.1;
}

.positioning {
    text-align: center;
}

.cases__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.6rem;
}

.cases__grid article {
    background: linear-gradient(
        145deg,
        rgba(12, 18, 32, 0.9),
        rgba(7, 12, 22, 0.95)
    );
    border-radius: var(--card-radius);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-inset);
}

.cases__meta {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
}

.cases h3 {
    margin: 0.4rem 0;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.quality__body {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: var(--section-gap);
    align-items: start;
}

.quality__body p {
    margin-top: 0;
    color: var(--muted);
}

.quality__emphasis {
    margin-top: 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(255, 138, 43, 0.6);
    color: var(--text);
    font-weight: 600;
}

body.rtl .quality__emphasis {
    border-left: 0;
    border-right: 2px solid rgba(255, 138, 43, 0.6);
    padding-left: 0;
    padding-right: 1rem;
}

.quality__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.quality__list li {
    display: flex;
    gap: 0.75rem;
    color: var(--muted);
}

.quality__list li::before {
    content: "•";
    color: var(--accent);
    font-size: 1.2rem;
    line-height: 1;
}

.why {
    text-align: center;
}

.why p {
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
    color: var(--muted);
    font-size: 1.05rem;
}

.why .section-heading p {
    font-size: 0.78rem;
    letter-spacing: 0.22em;
}

.why .section-heading {
    margin-bottom: 0.6rem;
}

.cta {
    display: flex;
    gap: var(--section-gap);
    align-items: center;
    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(255, 150, 40, 0.18),
            transparent 60%
        ),
        linear-gradient(140deg, rgba(10, 16, 28, 0.95), rgba(7, 12, 22, 0.98));
}

body.rtl .cta {
    flex-direction: row-reverse;
}

.cta__form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 460px;
}

.cta__form label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    color: var(--muted);
}

.cta__form input,
.cta__form textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    color: var(--text);
    font-family: inherit;
}

.cta__form input:focus,
.cta__form textarea:focus {
    outline: none;
    border-color: rgba(255, 138, 43, 0.6);
    box-shadow: 0 0 0 2px rgba(255, 138, 43, 0.2);
}

.cta__footnote {
    color: var(--muted);
    font-size: 0.85rem;
}

.footer {
    margin-top: 3rem;
    padding: 1.5rem 0 3rem;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: no-preference) {
    body.is-loaded .hero__content {
        animation: fade-up 0.8s ease both;
    }

    body.is-loaded .hero__visual {
        animation: fade-up 0.9s ease both;
        animation-delay: 0.12s;
    }

    body.is-loaded .card {
        animation: fade-up 0.6s ease both;
    }

    body.is-loaded .card:nth-child(1) {
        animation-delay: 0.05s;
    }

    body.is-loaded .card:nth-child(2) {
        animation-delay: 0.1s;
    }

    body.is-loaded .card:nth-child(3) {
        animation-delay: 0.15s;
    }

    body.is-loaded .card:nth-child(4) {
        animation-delay: 0.2s;
    }

    body.is-loaded .card:nth-child(5) {
        animation-delay: 0.25s;
    }

    body.is-loaded .cases__grid article {
        animation: fade-up 0.6s ease both;
    }

    body.is-loaded .cases__grid article:nth-child(1) {
        animation-delay: 0.05s;
    }

    body.is-loaded .cases__grid article:nth-child(2) {
        animation-delay: 0.1s;
    }

    body.is-loaded .cases__grid article:nth-child(3) {
        animation-delay: 0.15s;
    }
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
    }
    .hero__visual {
        padding: 0.5rem 0 1.5rem;
    }
    .hero__content {
        max-width: 100%;
    }
    .hero__meta {
        flex-direction: column;
    }
    .mission h2,
    .mission p {
        max-width: 100%;
    }
    .promise__body {
        align-items: stretch;
    }
    .folder {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    .quality__body {
        grid-template-columns: 1fr;
    }
    .quality__emphasis {
        margin-bottom: 1.2rem;
    }
    .why p {
        max-width: 100%;
    }
    .promise__body,
    .cta {
        flex-direction: column;
    }
    .promise__visual,
    .cta__form {
        width: 100%;
    }
    body.rtl .hero,
    body.rtl .cta,
    body.rtl .promise__body {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .hero__visual {
        min-height: auto;
        padding: 0;
    }
    .hero__visual-desktop {
        display: none;
    }
    .hero__visual-mobile {
        display: block;
        margin: 0 auto;
        width: min(82vw, 360px);
    }
    .hero__visual-frame {
        width: min(82vw, 360px);
    }
}
