/* XCounterStrike — modern tactical / industrial */

:root {
    --bg-main: #111310;
    --bg-secondary: #151814;
    --bg-section: #191d18;
    --surface: #1d211c;
    --surface-raised: #232821;
    --surface-hover: #292f27;
    --header-bg: rgba(13, 15, 12, 0.92);
    --footer-bg: #0a0c09;
    --border: #343a31;
    --border-light: #424a3e;
    --text-main: #e8eae4;
    --text-secondary: #adb2a8;
    --text-muted: #747b70;
    --accent: #c28a52;
    --accent-hover: #d69b5e;
    --accent-dark: #815b37;
    --accent-soft: rgba(194, 138, 82, 0.12);
    --success: #75a77b;
    --success-light: #a8d4ad;
    --success-soft: rgba(117, 167, 123, 0.1);
    --steel: #75868b;
    --danger: #bb6d62;
    --shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
    --header-h: 74px;
    --container: 1180px;
    --radius: 2px;
    --font:
        "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial,
        sans-serif;
    --mono:
        "Cascadia Mono", "Segoe UI Mono", "SF Mono", Consolas,
        "Liberation Mono", monospace;
    --space: 32px;
}

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

html {
    min-height: 100%;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #66503b #0d0f0c;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background: var(--bg-main);
    min-width: 320px;
    min-height: 100vh;
}

.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1 0 auto;
}

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

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-hover);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -48px;
    z-index: 80;
    padding: 8px 12px;
    background: var(--accent);
    color: #16140f;
    font-weight: 600;
}

.skip-link:focus {
    top: 12px;
}

.container {
    width: calc(100% - 40px);
    max-width: var(--container);
    margin-inline: auto;
}

::-webkit-scrollbar {
    width: 11px;
}

::-webkit-scrollbar-track {
    background: #0d0f0c;
}

::-webkit-scrollbar-thumb {
    background: #66503b;
    border: 3px solid #0d0f0c;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9a7049;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    height: var(--header-h);
    overflow: visible;
    background: rgba(13, 15, 12, 0.78);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.site-header.is-lang-open {
    background: rgb(23, 25, 21);
    border-bottom-color: rgba(194, 138, 82, 0.45);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.site-header.is-scrolled {
    background: var(--header-bg);
    border-bottom-color: var(--border);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.header-inner {
    height: var(--header-h);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}

.site-header--utility .header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    width: max-content;
    color: var(--text-main);
}

.brand__full {
    width: 150px;
    height: 28px;
}

.brand__mark {
    display: none;
    width: 28px;
    height: 28px;
}

.nav {
    display: flex;
    justify-content: center;
    gap: 22px;
}

.nav a {
    color: var(--text-secondary);
    font-size: 14px;
    letter-spacing: 0.02em;
}

.nav a:hover,
.nav a:focus-visible {
    color: var(--text-main);
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--accent-dark);
    background: var(--accent-soft);
    color: var(--text-main);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    clip-path: polygon(
        8px 0,
        100% 0,
        100% calc(100% - 8px),
        calc(100% - 8px) 100%,
        0 100%,
        0 8px
    );
}

.btn:hover {
    background: rgba(194, 138, 82, 0.2);
    color: var(--text-main);
    border-color: var(--accent);
}

.btn--primary {
    background: var(--accent);
    color: #16140f;
    border-color: var(--accent);
}

.btn--primary:hover {
    background: var(--accent-hover);
    color: #16140f;
}

.btn--ghost {
    background: transparent;
    border-color: var(--border-light);
    color: var(--text-main);
}

.btn--ghost:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.btn--header {
    min-height: 40px;
    padding: 0 14px;
    background: var(--accent);
    color: #16140f;
    border-color: var(--accent);
}

.btn--block {
    width: 100%;
}

.lang {
    position: relative;
}

.lang__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    max-width: min(220px, 42vw);
    padding: 0 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-main);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.lang__flag,
.lang-board__flag {
    width: 18px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.lang__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lang-board__current .lang-board__flag {
    width: 14px;
    height: 14px;
}

.lang__code {
    color: var(--accent);
    font-family: var(--mono);
    font-size: 12px;
}

.lang__chevron {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    margin-inline-start: 2px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

.lang__toggle[aria-expanded="true"] .lang__chevron {
    transform: rotate(-135deg) translateY(1px);
}

.lang-board {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 45;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: rgb(23, 25, 21);
    border-bottom: 1px solid rgba(194, 138, 82, 0.35);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.4);
}

.lang-board__inner {
    padding: 22px 0 28px;
}

.lang-board__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(194, 138, 82, 0.28);
}

.lang-board__kicker {
    margin: 0 0 4px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.lang-board__lead {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

.lang-board__current {
    display: flex;
    align-items: center;
    margin: 0;
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    gap: 5px;
}

.lang-board__current .section-ticker__sep {
    margin: 0 10px;
}

.lang-board__group + .lang-board__group {
    margin-top: 22px;
}

.lang-board__group-title {
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

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

.lang-board__item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    width: 100%;
    padding: 8px 12px;
    color: var(--text-secondary);
    font-size: 14px;
}

a.lang-board__item:hover,
a.lang-board__item:focus-visible {
    background: var(--accent-soft);
    color: var(--text-main);
}

.lang-board__item.is-current {
    position: relative;
    background: var(--surface-hover);
    color: var(--text-main);
}

.lang-board__item.is-current::after {
    content: "";
    position: absolute;
    inset-block: 10px;
    inset-inline-end: 0;
    width: 2px;
    background: var(--accent);
}

.lang-board__item.is-disabled {
    opacity: 0.42;
    cursor: default;
}

.lang-board__code {
    flex: 0 0 1.8em;
    color: var(--accent);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.lang-board__item.is-current .lang-board__code,
.lang-board__item.is-disabled .lang-board__code {
    color: inherit;
}

.lang-board__item.is-current .lang-board__code {
    color: var(--text-muted);
}

.lang-board__name {
    min-width: 0;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 16px;
    height: 1px;
    margin: 4px auto;
    background: var(--text-main);
}

/* Hero */

.hero {
    position: relative;
    overflow: hidden;
    padding: 56px 0 48px;
    background: var(--bg-secondary);
}

.hero__atmosphere {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero__grid {
    position: absolute;
    inset: 0;
    opacity: 0.045;
    background-image:
        linear-gradient(rgba(232, 234, 228, 0.7) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232, 234, 228, 0.7) 1px, transparent 1px);
    background-size: 48px 48px;
}

.hero__radial {
    position: absolute;
    inset: -20% 10% auto auto;
    width: 55%;
    height: 80%;
    background: radial-gradient(
        circle,
        rgba(194, 138, 82, 0.08),
        transparent 62%
    );
    opacity: 0.9;
}

.hero__noise {
    position: absolute;
    inset: 0;
    opacity: 0.035;
    background-image: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.4) 0,
        rgba(255, 255, 255, 0.4) 1px,
        transparent 1px,
        transparent 3px
    );
}

.hero__coords {
    position: absolute;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    opacity: 0.55;
}

.hero__coords--tl {
    top: 18px;
    left: 24px;
}
.hero__coords--tr {
    top: 18px;
    right: 24px;
}
.hero__coords--bl {
    bottom: 18px;
    left: 24px;
}
.hero__coords--br {
    bottom: 18px;
    right: 24px;
}

.hero__layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
    gap: var(--space);
    align-items: center;
}

.hero__copy,
.hero__frame {
    min-width: 0;
    max-width: 100%;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.22em;
}

h1,
h2,
h3 {
    margin: 0 0 12px;
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: clamp(32px, 4vw, 48px);
    max-width: 18ch;
}

h2 {
    font-size: clamp(24px, 2.4vw, 32px);
}

h3 {
    font-size: 17px;
}

.hero__lead,
.block > p,
.split p,
.final-cta p {
    color: var(--text-secondary);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0 22px;
}

.hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 0;
    padding: 0;
    margin: 0 0 16px;
    list-style: none;
}

.hero__facts li {
    padding: 0 14px;
    border-right: 1px solid var(--border);
    color: var(--text-muted);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.04em;
}

.hero__facts li:first-child {
    padding-left: 0;
}

.hero__facts li:last-child {
    border-right: 0;
}

.hero__verify {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--success-light);
    font-size: 13px;
}

.status-dot,
.check {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px var(--success-soft);
}

.check {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 0;
    background: none;
    box-shadow: none;
    border-bottom: 2px solid var(--success);
    border-right: 2px solid var(--success);
    transform: rotate(45deg) translateY(-2px);
}

.hero__frame {
    margin: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.hero__shot {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
    color: inherit;
    font: inherit;
}

.shot-placeholder.is-filled img {
    opacity: 1;
}

.shot-placeholder.is-filled::after {
    display: none;
}

.shot-placeholder {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(17, 19, 16, 0.2), rgba(17, 19, 16, 0.55)),
        repeating-linear-gradient(
            90deg,
            transparent 0 31px,
            rgba(194, 138, 82, 0.07) 32px
        ),
        repeating-linear-gradient(
            0deg,
            transparent 0 31px,
            rgba(194, 138, 82, 0.07) 32px
        ),
        var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    text-align: center;
}

.shot-placeholder img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    z-index: 0;
}

.shot-placeholder::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(17, 19, 16, 0.15),
        rgba(17, 19, 16, 0.55)
    );
    pointer-events: none;
    z-index: 1;
}

.shot-placeholder--hero {
    min-height: 280px;
}

.shot-placeholder__title,
.shot-placeholder__meta,
.shot-placeholder__label,
.shot-placeholder__mark {
    position: relative;
    z-index: 2;
}

.shot-placeholder__title {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.28em;
    color: var(--text-main);
}

.shot-placeholder__meta {
    margin-top: 6px;
    font-family: var(--mono);
    font-size: 12px;
}

.shot-placeholder__label {
    margin-top: 10px;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.shot-placeholder__mark {
    position: absolute;
    right: 16px;
    bottom: 14px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--accent);
    opacity: 0.7;
}

.shot-placeholder__crosshair {
    position: absolute;
    width: 42px;
    height: 42px;
    opacity: 0.35;
    z-index: 2;
}

.shot-placeholder__crosshair::before,
.shot-placeholder__crosshair::after {
    content: "";
    position: absolute;
    background: var(--accent);
}

.shot-placeholder__crosshair::before {
    left: 50%;
    top: 0;
    width: 1px;
    height: 100%;
}

.shot-placeholder__crosshair::after {
    top: 50%;
    left: 0;
    height: 1px;
    width: 100%;
}

.shot-placeholder__bracket {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 1px solid var(--accent);
    opacity: 0.55;
    z-index: 2;
}

.shot-placeholder__bracket--tl {
    top: 10px;
    left: 10px;
    border-right: 0;
    border-bottom: 0;
}
.shot-placeholder__bracket--tr {
    top: 10px;
    right: 10px;
    border-left: 0;
    border-bottom: 0;
}
.shot-placeholder__bracket--bl {
    bottom: 10px;
    left: 10px;
    border-right: 0;
    border-top: 0;
}
.shot-placeholder__bracket--br {
    bottom: 10px;
    right: 10px;
    border-left: 0;
    border-top: 0;
}

/* Feature ticker */

.section-ticker {
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.015);
}

.section-ticker::before,
.section-ticker::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 90px;
    z-index: 2;
    pointer-events: none;
}

.section-ticker::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-main), transparent);
}

.section-ticker::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg-main), transparent);
}

.section-ticker__track {
    display: flex;
    align-items: center;
    width: max-content;
    min-width: max-content;
    padding: 13px 0;
    animation: ticker-scroll 32s linear infinite;
}

.section-ticker__item {
    flex: 0 0 auto;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.section-ticker__sep {
    position: relative;
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    margin: 0 24px;
}

.section-ticker__sep::before,
.section-ticker__sep::after {
    content: "";
    position: absolute;
    left: 3px;
    top: -1px;
    width: 1px;
    height: 9px;
    background: var(--accent);
}

.section-ticker__sep::before {
    transform: rotate(45deg);
}

.section-ticker__sep::after {
    transform: rotate(-45deg);
}

@keyframes ticker-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.section-ticker:hover .section-ticker__track {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .section-ticker__track {
        animation: none;
    }

    .section-ticker {
        overflow-x: auto;
    }
}

/* Layout */

.layout {
    display: grid;
    grid-template-columns: minmax(0, 780px) 320px;
    gap: var(--space);
    padding: 56px 0 24px;
    align-items: start;
    min-width: 0;
}

.layout__main {
    min-width: 0;
}

.block {
    margin-bottom: 64px;
}

.block > h2 {
    margin-bottom: 16px;
}

.fact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
    margin: 22px 0 0;
    padding: 16px 0 0;
    list-style: none;
    border-top: 1px solid var(--border);
}

.fact-row span {
    display: block;
    color: var(--text-muted);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
}

.download-inline {
    display: none;
    margin: 0 0 48px;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.muted {
    margin: 0 0 16px;
    color: var(--text-muted);
}

.mini-spec {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 0 0 18px;
}

.mini-spec dt,
.verify-card dt,
.spec-board dt,
.req-grid dt {
    color: var(--text-muted);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
}

.mini-spec dd,
.verify-card dd,
.spec-board dd,
.req-grid dd {
    margin: 4px 0 0;
}

.sidebar-verify {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 8px;
    color: var(--success-light);
    font-size: 13px;
}

.text-link {
    font-size: 13px;
}

.layout__side {
    position: sticky;
    top: 100px;
}

.side-card {
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.side-card .btn + .btn {
    margin-top: 10px;
}

.download-inline .btn + .btn {
    margin-top: 10px;
}

/* Verification */

.verify-card {
    margin-top: 22px;
    padding: 22px;
    background: var(--success-soft);
    border: 1px solid rgba(117, 167, 123, 0.28);
}

.verify-card__badge {
    margin: 0 0 8px;
    color: var(--success);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.2em;
}

.verify-card__ratio {
    margin: 0 0 8px;
    font-size: 42px;
    line-height: 1;
    font-weight: 650;
    color: var(--success-light);
}

.verify-card__score p:last-child {
    color: var(--text-secondary);
    max-width: 46ch;
}

.verify-card__meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 22px 0;
}

.verify-card__hash {
    grid-column: 1 / -1;
}

.verify-card code {
    display: block;
    overflow-wrap: anywhere;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-main);
}

.note {
    margin: 16px 0 0;
    color: var(--text-muted);
    font-size: 13px;
}

/* Features */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.feature-grid li {
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.feature-grid p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.icon {
    display: block;
    width: 28px;
    height: 28px;
    margin-bottom: 12px;
    background: var(--accent);
    opacity: 0.85;
}

.icon--signal {
    clip-path: polygon(
        0 80%,
        18% 80%,
        18% 100%,
        0 100%,
        28% 40%,
        46% 40%,
        46% 100%,
        28% 100%,
        56% 0,
        74% 0,
        74% 100%,
        56% 100%,
        82% 55%,
        100% 55%,
        100% 100%,
        82% 100%
    );
}

.icon--bots {
    width: 22px;
    clip-path: polygon(
        50% 0,
        80% 18%,
        80% 45%,
        100% 58%,
        80% 72%,
        80% 100%,
        20% 100%,
        20% 72%,
        0 58%,
        20% 45%,
        20% 18%
    );
}

.icon--list {
    height: 18px;
    background:
        linear-gradient(var(--accent), var(--accent)) 0 2px / 100% 2px no-repeat,
        linear-gradient(var(--accent), var(--accent)) 0 8px / 100% 2px no-repeat,
        linear-gradient(var(--accent), var(--accent)) 0 14px / 70% 2px no-repeat;
}

.icon--proto {
    border-radius: 50%;
    background:
        radial-gradient(
            circle at 50% 50%,
            transparent 7px,
            var(--accent) 8px,
            var(--accent) 9px,
            transparent 10px
        ),
        conic-gradient(
            from 90deg,
            var(--accent) 0 20%,
            transparent 0 50%,
            var(--accent) 0 70%,
            transparent 0
        );
}

.icon--chip {
    clip-path: polygon(
        30% 0,
        70% 0,
        70% 20%,
        100% 20%,
        100% 80%,
        70% 80%,
        70% 100%,
        30% 100%,
        30% 80%,
        0 80%,
        0 20%,
        30% 20%
    );
}

.icon--files {
    width: 20px;
    clip-path: polygon(
        0 12%,
        55% 12%,
        70% 28%,
        70% 100%,
        0 100%,
        18% 0,
        18% 12%,
        0 12%
    );
}

/* Specs */

.spec-board {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.spec-board section {
    padding: 16px 18px;
    background: var(--bg-section);
    border-left: 2px solid var(--accent-dark);
}

.spec-board h3 {
    margin-bottom: 12px;
    color: var(--accent);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.spec-board dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
    margin: 0;
}

.spec-board a {
    color: var(--text-main);
    border-bottom: 1px solid var(--accent-dark);
}

/* Gallery */

.gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 22px;
}

.gallery__item {
    padding: 0;
    border: 0;
    background: none;
    cursor: default;
    color: inherit;
    font: inherit;
}

.gallery__item:not([data-lightbox-empty]) {
    cursor: zoom-in;
}

/* Play / install */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 22px;
    align-items: stretch;
}

.split article {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.steps-mini {
    margin: auto 0 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps-mini li {
    position: relative;
    padding: 6px 0 6px 36px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
}

.steps-mini li::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 8px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--accent);
}

.install-steps {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.install-steps li {
    position: relative;
    padding: 18px 0 18px 84px;
    border-bottom: 1px solid var(--border);
}

.install-steps__num {
    position: absolute;
    left: 0;
    top: 10px;
    font-size: 42px;
    font-weight: 650;
    letter-spacing: -0.04em;
    color: rgba(194, 138, 82, 0.22);
}

.req-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 22px 0 0;
    background: var(--border);
    border: 1px solid var(--border);
}

.req-grid div {
    padding: 14px 16px;
    background: var(--surface);
}

/* FAQ / troubleshooting */

.faq-list details,
.trouble-list details {
    border-bottom: 1px solid var(--border);
}

.faq-list summary,
.trouble-list summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 28px 14px 0;
    font-weight: 600;
    position: relative;
}

.faq-list summary::-webkit-details-marker,
.trouble-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after,
.trouble-list summary::after {
    content: "";
    position: absolute;
    right: 4px;
    top: 22px;
    width: 8px;
    height: 8px;
    border-right: 1px solid var(--accent);
    border-bottom: 1px solid var(--accent);
    transform: rotate(45deg);
}

.faq-list details[open] summary::after,
.trouble-list details[open] summary::after {
    transform: rotate(-135deg);
    top: 26px;
}

.faq-list details p,
.trouble-list details p {
    margin: 0 0 16px;
    color: var(--text-secondary);
}

/* Final CTA */

.final-cta {
    padding: 48px 0 72px;
    background: var(--bg-section);
    border-top: 1px solid var(--border);
}

.final-cta__inner {
    max-width: 760px;
}

/* Footer */

.site-footer {
    margin-top: auto;
    background: var(--footer-bg);
    border-top: 1px solid #1a1d18;
    padding: 48px 0 28px;
}

.footer-bar {
    display: flex;
    align-items: center;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    width: 36px;
    color: var(--text-main);
}

.footer-logo img {
    width: 36px;
    height: 36px;
}

.footer-bottom {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #1d211c;
}

.footer-bottom p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

/* Scroll top */

.scroll-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 30;
    opacity: 0;
    pointer-events: none;
    clip-path: polygon(
        8px 0,
        calc(100% - 8px) 0,
        100% 8px,
        100% calc(100% - 8px),
        calc(100% - 8px) 100%,
        8px 100%,
        0 calc(100% - 8px),
        0 8px
    );
}

.scroll-top.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-top__ring {
    position: absolute;
    inset: 0;
    background: conic-gradient(
        from -90deg,
        var(--accent) calc(var(--progress, 0) * 1%),
        #2b3129 0
    );
}

.scroll-top__face {
    position: absolute;
    inset: 3px;
    display: grid;
    place-items: center;
    background: #121510;
    clip-path: polygon(
        7px 0,
        calc(100% - 7px) 0,
        100% 7px,
        100% calc(100% - 7px),
        calc(100% - 7px) 100%,
        7px 100%,
        0 calc(100% - 7px),
        0 7px
    );
}

.scroll-top__face img {
    width: 22px;
    height: 22px;
}

.scroll-top__tip {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    padding: 4px 8px;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    color: var(--text-main);
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
}

.scroll-top:hover .scroll-top__tip,
.scroll-top:focus-visible .scroll-top__tip {
    opacity: 1;
}

/* Lightbox */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    background: rgba(8, 10, 8, 0.92);
    padding: 24px;
}

.lightbox[hidden] {
    display: none;
}

.lightbox__figure {
    position: relative;
    margin: 0;
    width: fit-content;
    max-width: min(1200px, calc(100vw - 32px));
}

.lightbox__figure img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    object-fit: contain;
}

.lightbox__close,
.lightbox__nav {
    border: 1px solid var(--accent);
    background: rgba(194, 138, 82, 0.5);
    cursor: pointer;
}

.lightbox__close:hover,
.lightbox__nav:hover {
    border-color: var(--border);
    background: rgb(23, 25, 21);
}

.lightbox__close {
    position: absolute;
    top: 8px;
    inset-inline-end: 8px;
    width: 40px;
    height: 40px;
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    transform: translateY(-50%);
}

.lightbox__nav--prev {
    inset-inline-start: 8px;
}

.lightbox__nav--next {
    inset-inline-end: 8px;
}

.lightbox__nav[hidden] {
    display: none;
}

.lightbox__nav::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-inline-start: 1px solid var(--text-main);
    border-block-end: 1px solid var(--text-main);
}

.lightbox__nav--prev::before {
    transform: translate(-30%, -50%) rotate(45deg);
}

.lightbox__nav--next::before {
    transform: translate(-70%, -50%) rotate(-135deg);
}

.lightbox__close::before,
.lightbox__close::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    height: 1px;
    background: var(--text-main);
}

.lightbox__close::before {
    transform: rotate(45deg);
}
.lightbox__close::after {
    transform: rotate(-45deg);
}

body.nav-open,
body.lang-open {
    overflow: hidden;
}

/* Responsive */

@media (max-width: 980px) {
    .header-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
    }

    .brand {
        min-width: 0;
        max-width: 100%;
    }

    .nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 20px;
        right: 20px;
        flex-direction: column;
        gap: 0;
        padding: 8px;
        background: var(--surface-raised);
        border: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    .nav.is-open {
        display: flex;
    }

    .nav a {
        padding: 12px;
    }

    .menu-toggle {
        display: inline-block;
    }

    .btn--header {
        display: none;
    }

    .brand__full {
        display: block;
        width: auto;
        height: 26px;
        max-width: min(150px, calc(100vw - 132px));
    }

    .brand__mark {
        display: none;
    }

    .header-tools {
        justify-self: end;
        margin-inline-start: auto;
    }

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

    .lang-board__inner {
        padding: 16px 0 24px;
    }

    .lang__name {
        display: none;
    }

    .hero__layout,
    .layout,
    .split,
    .feature-grid,
    .req-grid,
    .spec-board dl,
    .verify-card__meta {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: 1fr 1fr;
    }

    .layout__side {
        display: none;
    }

    .download-inline {
        display: block;
    }

    .hero {
        padding-top: 36px;
    }

    .install-steps li {
        padding-left: 0;
        padding-top: 48px;
    }
}

@media (max-width: 640px) {
    .container {
        width: calc(100% - 24px);
    }

    .hero__facts li {
        border: 0;
        padding: 4px 12px 4px 0;
    }

    .mini-spec {
        grid-template-columns: 1fr 1fr;
    }

    .scroll-top {
        right: 12px;
        bottom: 12px;
    }

    .hero__coords {
        display: none;
    }
}

@media (min-width: 981px) and (max-width: 1100px) {
    .nav {
        gap: 14px;
    }

    .lang__name {
        display: none;
    }
}

.utility-page {
    display: flex;
    align-items: center;
    padding: 48px 0 64px;
}

.error-panel,
.maintain-panel {
    position: relative;
    width: calc(100% - 40px);
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 32px;
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.error-panel__atmosphere {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.error-panel__code {
    position: relative;
    margin: 0 0 8px;
    font-size: clamp(72px, 14vw, 128px);
    font-weight: 650;
    line-height: 0.85;
    letter-spacing: -0.06em;
    color: rgba(194, 138, 82, 0.18);
}

.error-panel h1,
.maintain-panel h1 {
    position: relative;
    max-width: 18ch;
}

.error-panel p,
.maintain-panel p {
    position: relative;
    color: var(--text-secondary);
}

.page-maintenance .site-main,
.page-404 .site-main {
    background:
        radial-gradient(
            circle at 80% 10%,
            rgba(194, 138, 82, 0.06),
            transparent 36%
        ),
        var(--bg-main);
}

/* RTL / Arabic mirror */

html[dir="rtl"] .skip-link {
    left: auto;
    right: 12px;
}

html[dir="rtl"] .hero__facts li {
    border-right: 0;
    border-left: 1px solid var(--border);
}

html[dir="rtl"] .hero__facts li:first-child {
    padding-left: 14px;
    padding-right: 0;
}

html[dir="rtl"] .hero__facts li:last-child {
    border-left: 0;
}

html[dir="rtl"] .section-ticker::before {
    left: auto;
    right: 0;
    background: linear-gradient(270deg, var(--bg-main), transparent);
}

html[dir="rtl"] .section-ticker::after {
    right: auto;
    left: 0;
    background: linear-gradient(90deg, var(--bg-main), transparent);
}

html[dir="rtl"] .section-ticker__track {
    animation-direction: reverse;
}

html[dir="rtl"] .spec-board section {
    border-left: 0;
    border-right: 2px solid var(--accent-dark);
}

html[dir="rtl"] .steps-mini li {
    padding: 6px 36px 6px 0;
}

html[dir="rtl"] .steps-mini li::before {
    left: auto;
    right: 0;
}

html[dir="rtl"] .install-steps li {
    padding: 18px 84px 18px 0;
}

html[dir="rtl"] .install-steps__num {
    left: auto;
    right: 0;
}

html[dir="rtl"] .faq-list summary,
html[dir="rtl"] .trouble-list summary {
    padding: 14px 0 14px 28px;
}

html[dir="rtl"] .faq-list summary::after,
html[dir="rtl"] .trouble-list summary::after {
    right: auto;
    left: 4px;
}

html[dir="rtl"] .scroll-top {
    right: auto;
    left: 18px;
}

html[dir="rtl"] .scroll-top__tip {
    right: auto;
    left: calc(100% + 10px);
}

@media (max-width: 980px) {
    html[dir="rtl"] .install-steps li {
        padding-right: 0;
        padding-left: 0;
    }

    html[dir="rtl"] .scroll-top {
        left: 12px;
        right: auto;
    }
}

@media (max-width: 640px) {
    html[dir="rtl"] .hero__facts li {
        padding: 4px 0 4px 12px;
    }
}
