:root {
    color-scheme: light;
    --color-ink: #142746;
    --color-muted: #5d6f88;
    --color-soft: #eef7ff;
    --color-panel: #ffffff;
    --color-line: #d8e6f2;
    --color-blue: #1473f9;
    --color-blue-dark: #0f5ed3;
    --color-cyan: #0aa6c2;
    --color-green: #22c58a;
    --color-orange: #f7b718;
    --color-red: #e3354d;
    --shadow-sm: 0 10px 30px rgba(20, 39, 70, 0.08);
    --shadow-md: 0 24px 70px rgba(20, 39, 70, 0.14);
    --radius: 8px;
    --container: 1180px;
    --header-height: 82px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-ink);
    background: #f5faff;
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

body.nav-open {
    overflow: hidden;
}

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

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(20, 115, 249, 0.38);
    outline-offset: 4px;
}

button {
    font: inherit;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(216, 230, 242, 0.86);
    backdrop-filter: blur(18px);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 100%;
}

.brand {
    flex: 0 0 auto;
}

.brand img {
    width: 260px;
    height: auto;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    color: var(--color-muted);
    font-weight: 750;
}

.nav a {
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.nav a:not(.btn):hover {
    color: var(--color-blue);
}

.nav__demo {
    color: var(--color-ink);
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-muted);
    font-size: 0.9rem;
    font-weight: 850;
}

.language-switcher span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.language-switcher select {
    min-height: 44px;
    padding: 0 36px 0 14px;
    color: var(--color-ink);
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    box-shadow: 0 10px 24px rgba(20, 39, 70, 0.08);
    cursor: pointer;
    font: inherit;
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-direction: column;
    padding: 0;
    color: var(--color-ink);
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 24px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 850;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

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

.btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--color-blue), var(--color-cyan));
    box-shadow: 0 14px 28px rgba(20, 115, 249, 0.24);
}

.btn--primary:hover {
    box-shadow: 0 18px 36px rgba(20, 115, 249, 0.28);
}

.btn--light {
    color: var(--color-ink);
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--color-line);
}

.btn--small {
    min-height: 44px;
    padding: 12px 18px;
}

.hero {
    position: relative;
    min-height: clamp(540px, calc(100vh - 180px), 640px);
    overflow: hidden;
    isolation: isolate;
    border-bottom: 1px solid var(--color-line);
}

.hero__image {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% center;
    filter: saturate(1.06);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(244, 250, 255, 0.99) 0%, rgba(244, 250, 255, 0.94) 38%, rgba(244, 250, 255, 0.62) 64%, rgba(244, 250, 255, 0.25) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(232, 244, 253, 0.72));
}

.hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: inherit;
    padding: 44px 0 34px;
}

.eyebrow,
.section-kicker {
    margin: 0 0 14px;
    color: var(--color-cyan);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 860px;
    margin: 0;
    font-size: clamp(3.1rem, 6.2vw, 5.45rem);
    line-height: 0.94;
    letter-spacing: 0;
}

.hero__lead {
    max-width: 610px;
    margin: 22px 0 0;
    color: #435672;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 650;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    width: min(860px, 100%);
    margin: 30px 0 0;
}

.hero__stats div {
    min-height: 92px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(216, 230, 242, 0.94);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.hero__stats dt {
    margin: 0;
    color: var(--color-ink);
    font-size: 1.2rem;
    font-weight: 900;
}

.hero__stats dd {
    margin: 6px 0 0;
    color: var(--color-muted);
    font-weight: 680;
}

.section {
    padding: 88px 0;
    background: #fff;
}

.section:nth-of-type(odd) {
    background: #f5faff;
}

.section--intro {
    padding: 70px 0;
}

.intro-grid,
.benefits-layout,
.faq-layout,
.stack-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.35fr);
    gap: 58px;
    align-items: start;
}

.section h2,
.final-cta h2 {
    margin: 0;
    color: var(--color-ink);
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.intro-copy p,
.section-heading p,
.benefits-copy p,
.final-cta p {
    color: var(--color-muted);
    font-size: 1.08rem;
    font-weight: 620;
}

.intro-copy p:first-child,
.benefits-copy p:first-of-type {
    margin-top: 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 36px;
}

.section-heading--compact {
    margin-bottom: 26px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.feature-card,
.benefit-list article,
.timeline article,
.faq-list details {
    background: var(--color-panel);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.feature-card {
    min-height: 284px;
    padding: 26px;
}

.feature-icon {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    color: #fff;
    background: var(--color-blue);
    border-radius: var(--radius);
}

.feature-icon svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.feature-icon--green {
    background: var(--color-green);
}

.feature-icon--cyan {
    background: var(--color-cyan);
}

.feature-icon--orange {
    background: var(--color-orange);
    color: #142746;
}

.feature-icon--red {
    background: var(--color-red);
}

.feature-icon--gray {
    background: #6c7a86;
}

.feature-card h3,
.benefit-list h3,
.timeline h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    line-height: 1.2;
}

.feature-card p,
.benefit-list p,
.timeline p,
.faq-list p {
    margin: 0;
    color: var(--color-muted);
    font-weight: 620;
}

.section--benefits {
    background: #eef7ff;
}

.benefits-copy {
    position: sticky;
    top: calc(var(--header-height) + 34px);
}

.benefits-copy .btn {
    margin-top: 16px;
}

.benefit-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.benefit-list article {
    min-height: 190px;
    padding: 28px;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.timeline article {
    padding: 28px;
}

.timeline span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    color: var(--color-blue);
    background: #eaf4ff;
    border-radius: var(--radius);
    font-weight: 900;
}

.section--screenshots {
    background: #f5faff;
}

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

.screenshot-card {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    padding: 0;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    cursor: zoom-in;
}

.screenshot-card--wide {
    grid-column: span 2;
}

.screenshot-card img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    object-position: top left;
    transition: transform 0.32s ease;
}

.screenshot-card:hover img {
    transform: scale(1.035);
}

.screenshot-card span {
    position: absolute;
    left: 16px;
    bottom: 16px;
    padding: 9px 12px;
    color: #fff;
    background: rgba(20, 39, 70, 0.88);
    border-radius: var(--radius);
    font-size: 0.92rem;
    font-weight: 850;
}

.section--stack {
    background: #fff;
}

.stack-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.stack-list li {
    padding: 12px 16px;
    color: var(--color-ink);
    background: #f5faff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    font-weight: 850;
}

.faq-list {
    display: grid;
    gap: 14px;
}

.faq-list details {
    padding: 0;
}

.faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 72px;
    padding: 20px 24px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 900;
}

.faq-list summary::after {
    content: "+";
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    color: var(--color-blue);
    background: #eaf4ff;
    border-radius: 50%;
}

.faq-list details[open] summary::after {
    content: "-";
}

.faq-list p {
    padding: 0 24px 22px;
}

.final-cta {
    padding: 96px 0;
    color: #fff;
    background: #142746;
}

.final-cta__inner {
    max-width: 900px;
    text-align: center;
}

.final-cta h2 {
    color: #fff;
}

.final-cta p {
    color: rgba(255, 255, 255, 0.78);
}

.final-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 30px;
}

.site-footer {
    padding: 26px 0;
    color: #d6e3f2;
    background: #0d1c33;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: #fff;
    font-weight: 800;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 26px;
    background: rgba(8, 22, 42, 0.82);
}

.lightbox[hidden] {
    display: none;
}

.lightbox img {
    max-width: min(1380px, 96vw);
    max-height: 86vh;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--radius);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    min-height: 44px;
    padding: 10px 16px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 850;
}

[dir="rtl"] body {
    text-align: right;
}

[dir="rtl"] .hero__overlay {
    background:
        linear-gradient(270deg, rgba(244, 250, 255, 0.99) 0%, rgba(244, 250, 255, 0.94) 38%, rgba(244, 250, 255, 0.62) 64%, rgba(244, 250, 255, 0.25) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(232, 244, 253, 0.72));
}

[dir="rtl"] .hero__image {
    object-position: 38% center;
}

[dir="rtl"] .hero__content {
    align-items: flex-end;
}

[dir="rtl"] .hero__actions,
[dir="rtl"] .final-cta__actions {
    justify-content: flex-end;
}

[dir="rtl"] .screenshot-card span {
    right: 16px;
    left: auto;
}

[dir="rtl"] .lightbox__close {
    right: auto;
    left: 20px;
}

[dir="rtl"] .language-switcher select {
    padding: 0 14px 0 36px;
}

@media (max-width: 1080px) {
    .nav {
        gap: 16px;
    }

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

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

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

@media (max-width: 900px) {
    :root {
        --header-height: 74px;
    }

    .brand img {
        width: 220px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav {
        position: fixed;
        inset: var(--header-height) 16px auto 16px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 18px;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid var(--color-line);
        border-radius: var(--radius);
        box-shadow: var(--shadow-md);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .nav.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav a {
        padding: 12px;
    }

    .language-switcher {
        width: 100%;
        padding: 0 12px;
    }

    .language-switcher select {
        width: 100%;
    }

    .nav .btn {
        width: 100%;
    }

    .hero {
        min-height: 700px;
    }

    .hero__overlay {
        background:
            linear-gradient(180deg, rgba(244, 250, 255, 0.99) 0%, rgba(244, 250, 255, 0.94) 55%, rgba(244, 250, 255, 0.55) 100%);
    }

    .hero__image {
        object-position: 72% center;
    }

    [dir="rtl"] .hero__image {
        object-position: 28% center;
    }

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

    .intro-grid,
    .benefits-layout,
    .faq-layout,
    .stack-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .benefits-copy {
        position: static;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 28px, var(--container));
    }

    .site-header {
        height: 68px;
    }

    .brand img {
        width: 184px;
    }

    .nav {
        inset: 68px 14px auto 14px;
    }

    .hero {
        min-height: 610px;
    }

    .hero__content {
        padding: 34px 0 30px;
    }

    .hero h1 {
        font-size: clamp(2.45rem, 12vw, 3.35rem);
    }

    .hero__lead {
        font-size: 1.02rem;
    }

    .hero__actions,
    .final-cta__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    [dir="rtl"] .hero__actions,
    [dir="rtl"] .final-cta__actions {
        justify-content: stretch;
    }

    .feature-grid,
    .benefit-list,
    .timeline,
    .screenshot-grid {
        grid-template-columns: 1fr;
    }

    .hero__stats {
        display: none;
    }

    .hero__stats div {
        min-height: auto;
    }

    .section {
        padding: 64px 0;
    }

    .section--intro {
        padding: 54px 0;
    }

    .feature-card,
    .benefit-list article,
    .timeline article {
        min-height: auto;
        padding: 22px;
    }

    .screenshot-card,
    .screenshot-card img {
        min-height: 230px;
    }

    .screenshot-card--wide {
        grid-column: span 1;
    }

    .footer__inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
