:root {
    --bg: #03040a;
    --bg-soft: #0b0f1b;
    --panel: rgba(255, 255, 255, 0.03);
    --stroke: rgba(255, 255, 255, 0.08);
    --muted: #a3acbf;
    --text: #f4f6fb;
    --accent: #ff9234;
    --accent-soft: rgba(255, 146, 52, 0.22);
    --font-body: "Space Grotesk", "Sora", sans-serif;
    --font-display: "Sora", "Space Grotesk", sans-serif;
    font-size: 16px;
}

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

body {
    margin: 0;
    font-family: var(--font-body);
    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(255, 135, 34, 0.1),
            transparent
        ),
        radial-gradient(
            circle at 80% 0%,
            rgba(34, 56, 98, 0.35),
            transparent 60%
        ),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -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.07;
    pointer-events: none;
}

body.rtl {
    direction: rtl;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.8rem clamp(1rem, 5vw, 3rem);
    background: rgba(3, 5, 12, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-header__logo img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
}

.site-header__nav {
    display: flex;
    gap: 1.2rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.site-header__nav a {
    color: inherit;
    text-decoration: none;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.site-header__nav a:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.site-header__cta {
    white-space: nowrap;
}

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

.leaders {
    margin-top: 1rem;
    padding: 1.6rem 2.2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    background: linear-gradient(
        135deg,
        rgba(255, 146, 52, 0.18),
        rgba(7, 10, 18, 0.95)
    );
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.45);
}

.leaders__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.76rem;
    color: var(--muted);
    margin: 0;
}

.leaders h2 {
    margin: 0.4rem 0 0.6rem;
    font-size: 1.7rem;
    font-family: var(--font-display);
}

.leaders__list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.leaders__list li {
    position: relative;
    padding: 0.6rem 1rem 0.6rem 2rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(3, 4, 10, 0.6);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    flex: 0 1 auto;
    min-width: 210px;
}

.leaders__list li::before {
    content: "";
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd296, var(--accent));
    box-shadow: 0 0 12px rgba(255, 146, 52, 0.7);
}

.leaders__footnote {
    color: var(--muted);
    margin: 0.4rem 0 0;
    font-size: 0.92rem;
}

body.rtl .leaders__list li {
    padding-left: 0.8rem;
    padding-right: 2rem;
}

body.rtl .leaders__list li::before {
    left: auto;
    right: 0.9rem;
}

.page-shell {
    scroll-padding-top: 120px;
}

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

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

.lang-switcher button {
    border: 1px solid var(--stroke);
    background: transparent;
    color: var(--muted);
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    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, 146, 52, 0.2);
    color: var(--text);
    border-color: rgba(255, 146, 52, 0.6);
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3.5rem;
    padding: 3rem 0 2rem;
    align-items: center;
}

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

.hero__logo img {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

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

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

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 4.3rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0.6rem 0 1rem;
    text-wrap: balance;
}

.hero__lead {
    max-width: 45ch;
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 1.8rem;
}

.hero__visual {
    display: flex;
    justify-content: center;
}

.core-definition {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: linear-gradient(
        150deg,
        rgba(255, 146, 52, 0.15),
        rgba(5, 7, 15, 0.65)
    );
}

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

.core-definition__block {
    padding: 1.6rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(3, 4, 10, 0.55);
    box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.25);
}

.core-definition__block--accent {
    background: rgba(8, 12, 24, 0.8);
    border-color: rgba(255, 146, 52, 0.35);
}

.core-definition__block h3 {
    margin-top: 0;
    font-family: var(--font-display);
    font-size: 1.25rem;
}

.core-definition__list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.core-definition__list li {
    position: relative;
    padding: 0.8rem 1rem 0.8rem 1.6rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-size: 0.98rem;
}

.core-definition__list li::before {
    content: "";
    position: absolute;
    left: 0.8rem;
    top: 1.1rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd296, var(--accent));
    box-shadow: 0 0 12px rgba(255, 146, 52, 0.7);
}

.core-definition__list--labeled li {
    padding-left: 1rem;
}

.core-definition__list--labeled li::before {
    display: none;
}

.core-definition__label {
    font-weight: 600;
    color: var(--text);
    display: block;
    margin-bottom: 0.2rem;
}

.core-definition__examples {
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    padding: 1.8rem;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.example-card {
    padding: 1.2rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(4, 8, 16, 0.8);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.example-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
}

.example-card__badge {
    font-weight: 600;
    color: var(--text);
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.example-card__after {
    color: var(--text);
}

body.rtl .core-definition__list li {
    padding-left: 1rem;
    padding-right: 1.6rem;
}

body.rtl .core-definition__list li::before {
    left: auto;
    right: 0.8rem;
}

body.rtl .core-definition__list--labeled li {
    padding-right: 1rem;
}

.hero + .core-definition {
    margin-top: 2rem;
}

.torch {
    position: relative;
    padding: 2.8rem;
    border-radius: 34px;
    border: 1px solid var(--stroke);
    background: linear-gradient(
        160deg,
        rgba(12, 18, 32, 0.9),
        rgba(6, 9, 17, 0.95)
    );
    text-align: center;
    max-width: 340px;
}

.torch__halo {
    position: absolute;
    inset: 0;
    border-radius: 32px;
    background: radial-gradient(
        circle at 50% 10%,
        rgba(255, 146, 52, 0.4),
        transparent
    );
    filter: blur(12px);
    opacity: 0.7;
    pointer-events: none;
}

.torch img {
    position: relative;
    z-index: 1;
    width: 190px;
    margin: 0 auto 1.5rem;
}

.torch p {
    position: relative;
    z-index: 1;
    font-size: 0.85rem;
    color: var(--muted);
}

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

.btn--primary {
    background: linear-gradient(135deg, #ffc171, var(--accent));
    color: #0c0f17;
    box-shadow: 0 18px 40px rgba(255, 146, 52, 0.35);
}

.btn--quiet {
    background: transparent;
    border: 1px solid var(--stroke);
    color: var(--text);
}

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

.btn--quiet:hover {
    border-color: rgba(255, 146, 52, 0.5);
    color: var(--text);
}

section {
    margin-top: 3rem;
    padding: 2.5rem;
    border-radius: 28px;
    border: 1px solid var(--stroke);
    background: rgba(4, 7, 15, 0.85);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    scroll-margin-top: 140px;
}

.section-heading h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin: 0.5rem 0 1.2rem;
    letter-spacing: -0.01em;
}

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

.mechanics__step {
    padding: 1.4rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mechanics__index {
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    color: var(--muted);
    margin: 0;
}

.mechanics__step h3 {
    margin: 0;
    font-size: 1.2rem;
    font-family: var(--font-display);
}

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

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

.mechanics__diagram {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: center;
    gap: 0.6rem;
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 1.8rem;
}

.mechanics__diagram-step {
    grid-column: span 1;
    text-align: center;
}

.mechanics__diagram-step span {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.mechanics__diagram-step p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text);
}

.mechanics__diagram-connector {
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 146, 52, 0.8), transparent);
}

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

.cases__grid article {
    padding: 1.5rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    position: relative;
}

.cases__grid article::before {
    content: "";
    position: absolute;
    inset: 1rem 0.5rem 1rem 0;
    border-left: 3px solid var(--accent);
    opacity: 0.8;
}

body.rtl .cases__grid article::before {
    inset: 1rem 0 1rem 0.5rem;
    border-left: 0;
    border-right: 3px solid var(--accent);
}

.cases__tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
    margin: 0 0 0.6rem;
}

.cases__line,
.cases__result {
    margin: 0 0 0.8rem;
    color: var(--muted);
}

.cases__result {
    color: var(--text);
    font-weight: 600;
}

.cases__management {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

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

.why-us__label {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: var(--muted);
    margin: 0 0 0.8rem;
}

.why-us__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.why-us__list li {
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--muted);
}

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

.notes__grid article {
    padding: 1.4rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notes__tag {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0;
}

.notes h3 {
    margin: 0;
    font-size: 1.2rem;
    font-family: var(--font-display);
}

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

.faq {
    margin-top: 3rem;
}

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

.faq__grid article {
    padding: 1.2rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.faq__grid h3 {
    margin-top: 0;
    font-size: 1.05rem;
    font-family: var(--font-display);
}

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

.cta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    background: linear-gradient(
        135deg,
        rgba(255, 146, 52, 0.12),
        rgba(6, 9, 17, 0.95)
    );
}

.cta__copy h2 {
    margin-top: 0.4rem;
    font-size: clamp(2rem, 4vw, 2.6rem);
}

.cta__copy p {
    color: var(--muted);
}

.cta__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.form__honeypot {
    position: absolute;
    left: -200vw;
    opacity: 0;
    pointer-events: none;
}

.cta__form input,
.cta__form textarea {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--stroke);
    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, 146, 52, 0.7);
    box-shadow: 0 0 0 2px rgba(255, 146, 52, 0.2);
}

.cta__form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cta__status {
    min-height: 1.2rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.cta__status[data-state="ok"] {
    color: #5ed28f;
}

.cta__status[data-state="error"] {
    color: #ff6b6b;
}

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

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

@media (prefers-reduced-motion: no-preference) {
    @keyframes fade-up {
        from {
            opacity: 0;
            transform: translateY(18px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    body.is-loaded .hero__content,
    body.is-loaded .hero__visual,
    body.is-loaded section,
    body.is-loaded .cta {
        animation: fade-up 0.7s ease both;
    }
}

@media (max-width: 640px) {
    .site-header {
        flex-wrap: wrap;
        justify-content: center;
    }
    .site-header__nav {
        order: 3;
        flex-wrap: wrap;
        justify-content: center;
    }
    section {
        padding: 1.8rem;
    }
    .problem__list {
        flex-direction: column;
    }
    .footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .page-shell {
        scroll-padding-top: 200px;
    }
    .mechanics__diagram {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: left;
    }
    .mechanics__diagram-step {
        display: flex;
        align-items: center;
        gap: 0.7rem;
        justify-content: flex-start;
    }
    .mechanics__diagram-step span {
        width: 30px;
        height: 30px;
        margin-bottom: 0;
    }
    .mechanics__diagram-connector {
        display: none;
    }
    .leaders__list {
        flex-direction: column;
    }
    .leaders__list li {
        width: 100%;
    }
}
