:root {
    --bg: #12182c;
    --bg-deep: #0c1222;
    --panel: #1f2742;
    --panel-soft: #283250;
    --text: #f7fbff;
    --muted: #b8c1d7;
    --ink: #242842;
    --blue: #3d58a4;
    --teal: #25c6cf;
    --mint: #57d5c6;
    --white: #ffffff;
    --line: rgba(255, 255, 255, 0.14);
    --shadow: 0 24px 70px rgba(4, 8, 20, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #f6f8fb;
    font-family: Inter, Arial, Helvetica, sans-serif;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: 12px;
    z-index: 1000;
    padding: 10px 14px;
    color: var(--bg);
    background: var(--white);
    border-radius: 8px;
    transform: translateY(-150%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

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

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    color: var(--text);
    background: rgba(18, 24, 44, 0.78);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-weight: 800;
    font-size: 20px;
    text-decoration: none;
    letter-spacing: 0;
}

.brand img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    color: rgba(247, 251, 255, 0.82);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.18s ease, background-color 0.18s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.site-nav .nav-buy {
    color: #08121e;
    background: var(--mint);
}

.site-nav .nav-buy:hover,
.site-nav .nav-buy:focus-visible {
    color: #08121e;
    background: var(--teal);
}

.language-switcher {
    position: relative;
    display: inline-block;
    margin: 0 4px;
}

.language-switcher summary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 12px;
    color: rgba(247, 251, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.03em;
    list-style: none;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.language-switcher summary::-webkit-details-marker {
    display: none;
}

.language-switcher summary::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: 2px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.18s ease;
}

.language-switcher[open] summary::after {
    transform: translateY(2px) rotate(-135deg);
}

.language-switcher summary:hover,
.language-switcher summary:focus-visible,
.language-switcher[open] summary {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
    outline: none;
}

.language-flag,
.language-menu span {
    font-size: 16px;
    line-height: 1;
}

.language-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 140;
    min-width: 178px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(18, 24, 44, 0.98);
    box-shadow: var(--shadow);
}

.site-nav .language-menu a {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    min-height: 36px;
    padding: 0 10px;
    color: rgba(247, 251, 255, 0.82);
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
}

.site-nav .language-menu a:hover,
.site-nav .language-menu a:focus-visible,
.site-nav .language-menu a.is-active {
    color: #07121f;
    background: var(--mint);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--text);
}

.hero {
    position: relative;
    min-height: 760px;
    display: grid;
    align-items: end;
    overflow: hidden;
    color: var(--text);
    background: var(--bg);
}

.hero-bg,
.hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-bg {
    object-fit: cover;
    object-position: center center;
    filter: saturate(1.16) contrast(1.06) brightness(0.98);
    transform: scale(1.012);
}

.hero-shade {
    background:
        radial-gradient(circle at 72% 32%, rgba(87, 213, 198, 0.18), transparent 34%),
        linear-gradient(90deg, rgba(5, 10, 24, 0.92) 0%, rgba(7, 13, 28, 0.78) 40%, rgba(9, 15, 30, 0.32) 72%, rgba(7, 12, 26, 0.70) 100%),
        linear-gradient(0deg, rgba(6, 10, 22, 0.88) 0%, rgba(9, 15, 30, 0.16) 42%, rgba(7, 12, 27, 0.62) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 170px 0 58px;
}

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

.hero h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(40px, 6vw, 82px);
    line-height: 0.98;
    letter-spacing: 0;
}

.hero-copy {
    max-width: 690px;
    margin: 24px 0 0;
    color: rgba(247, 251, 255, 0.86);
    font-size: clamp(18px, 2vw, 24px);
}

.hero-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 900;
    text-decoration: none;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
    outline: none;
}

.btn-primary {
    color: #06111f;
    background: var(--mint);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--teal);
}

.btn-secondary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: rgba(255, 255, 255, 0.14);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 860px;
    gap: 10px;
    margin: 54px 0 0;
}

.hero-stats div {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.hero-stats dt {
    color: var(--white);
    font-size: 24px;
    font-weight: 900;
}

.hero-stats dd {
    margin: 4px 0 0;
    color: rgba(247, 251, 255, 0.72);
}

.section {
    padding: 88px 0;
}

.intro-section {
    background: var(--white);
}

.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 70px;
    align-items: start;
}

.intro-grid h2,
.section-heading h2,
.admin-copy h2,
.cta-panel h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1.08;
    letter-spacing: 0;
}

.intro-copy p {
    margin: 0 0 18px;
    color: #5c6478;
    font-size: 18px;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-heading.align-left {
    margin: 0;
    text-align: left;
}

.section-heading p:not(.section-kicker) {
    margin: 18px 0 0;
    color: #667088;
    font-size: 18px;
}

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

.feature-card,
.module-grid article,
.benefit-list article {
    border-radius: 8px;
}

.feature-card {
    min-height: 274px;
    padding: 24px;
    background: var(--white);
    border: 1px solid #dde4ef;
    box-shadow: 0 14px 34px rgba(20, 30, 54, 0.06);
}

.feature-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--teal);
    background: #eaf8f9;
    border-radius: 8px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.feature-card h3,
.module-grid h3,
.benefit-list h3 {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 20px;
    line-height: 1.18;
}

.feature-card p,
.module-grid p,
.benefit-list p,
.admin-copy p,
.cta-panel p {
    margin: 0;
    color: #657086;
}

.section-dark {
    color: var(--text);
    background: var(--bg);
}

.section-dark h2,
.section-dark h3 {
    color: var(--text);
}

.section-dark .section-heading p:not(.section-kicker),
.section-dark .benefit-list p {
    color: rgba(247, 251, 255, 0.72);
}

.benefit-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 50px;
    align-items: start;
}

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

.benefit-list article {
    padding: 24px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--line);
}

.modules-section {
    background: var(--white);
}

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

.module-grid article {
    padding: 24px;
    background: #f2f6fb;
    border: 1px solid #dde5f0;
}

.screenshots-section {
    background: #eef3f9;
}

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

.screenshot-card {
    position: relative;
    display: block;
    min-height: 250px;
    padding: 0;
    overflow: hidden;
    color: var(--white);
    background: var(--bg);
    border: 0;
    border-radius: 8px;
    cursor: zoom-in;
    box-shadow: var(--shadow);
}

.screenshot-card.large {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 520px;
}

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

.screenshot-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(0deg, rgba(9, 15, 30, 0.88), transparent);
}

.screenshot-card span {
    position: absolute;
    left: 18px;
    bottom: 16px;
    z-index: 1;
    font-size: 18px;
    font-weight: 900;
}

.screenshot-card:hover img,
.screenshot-card:focus-visible img {
    transform: scale(1.035);
    filter: saturate(1.08);
}

.screenshot-card:focus-visible {
    outline: 3px solid var(--mint);
    outline-offset: 3px;
}

.admin-section {
    background: var(--white);
}

.admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 50px;
    align-items: center;
}

.admin-media {
    overflow: hidden;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #f3f6fb;
    box-shadow: var(--shadow);
}

.admin-media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
}

.admin-copy p {
    margin-top: 20px;
    font-size: 18px;
}

.check-list {
    display: grid;
    gap: 12px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    color: #4f5a70;
    font-weight: 700;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--mint);
    border-radius: 50%;
}

.tech-section {
    background: #f7f9fc;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.tech-grid span {
    padding: 12px 16px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid #dce4ef;
    border-radius: 8px;
    font-weight: 800;
}

.cta-section {
    color: var(--text);
    background: linear-gradient(135deg, #161d34 0%, #26365d 62%, #0d8b9a 100%);
}

.cta-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 34px;
    align-items: center;
    padding: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.cta-panel h2 {
    color: var(--text);
}

.cta-panel p {
    max-width: 720px;
    margin-top: 16px;
    color: rgba(247, 251, 255, 0.76);
    font-size: 18px;
}

.cta-actions {
    margin-top: 0;
}

.site-footer {
    padding: 34px 0;
    color: rgba(247, 251, 255, 0.72);
    background: var(--bg-deep);
}

.footer-layout {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: var(--mint);
    text-decoration: none;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: none;
    place-items: center;
    padding: 30px;
    background: rgba(5, 8, 16, 0.86);
}

.lightbox.is-open {
    display: grid;
}

.lightbox img {
    max-width: min(1180px, 96vw);
    max-height: 86vh;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.lightbox-close {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    cursor: pointer;
}

.lightbox-close::before,
.lightbox-close::after {
    content: "";
    position: absolute;
    left: 12px;
    top: 21px;
    width: 20px;
    height: 2px;
    background: var(--white);
}

.lightbox-close::before {
    transform: rotate(45deg);
}

.lightbox-close::after {
    transform: rotate(-45deg);
}

@media (max-width: 1040px) {
    .feature-grid,
    .module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-layout,
    .benefit-layout,
    .intro-grid,
    .cta-panel {
        grid-template-columns: 1fr;
    }

    .cta-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 860px) {
    .site-nav {
        position: fixed;
        left: 20px;
        right: 20px;
        top: 82px;
        display: none;
        padding: 14px;
        background: rgba(18, 24, 44, 0.98);
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: grid;
        gap: 4px;
    }

    .site-nav a {
        justify-content: center;
    }

    .language-switcher {
        display: block;
        width: 100%;
        margin: 6px 0;
    }

    .language-switcher summary {
        justify-content: center;
        width: 100%;
    }

    .language-menu {
        position: static;
        width: 100%;
        margin-top: 8px;
        box-shadow: none;
    }

    .site-nav .language-menu a {
        justify-content: center;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        min-height: 720px;
    }

    .hero-content {
        padding-top: 132px;
    }

    .hero-stats,
    .benefit-list,
    .screenshot-grid {
        grid-template-columns: 1fr;
    }

    .screenshot-card.large {
        grid-column: auto;
        grid-row: auto;
        min-height: 310px;
    }

    .screenshot-card {
        min-height: 280px;
    }

    .footer-layout {
        flex-direction: column;
    }
}

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

    .hero {
        min-height: 680px;
    }

    .hero-actions,
    .cta-actions {
        display: grid;
    }

    .btn {
        width: 100%;
    }

    .hero-stats {
        margin-top: 34px;
    }

    .section {
        padding: 64px 0;
    }

    .feature-grid,
    .module-grid {
        grid-template-columns: 1fr;
    }

    .cta-panel {
        padding: 24px;
    }
}
