/* ============================================================
   Slotcar Magnet Scale (SMS) – Landing Page Styles
   ============================================================ */

:root {
    --green: #7ed321;
    --green-bright: #9dff2e;
    --green-dark: #5aa416;
    --green-glow: rgba(126, 211, 33, 0.45);
    --bg: #070a07;
    --bg-2: #0c110c;
    --surface: #111711;
    --surface-2: #171f17;
    --border: rgba(255, 255, 255, 0.08);
    --border-green: rgba(126, 211, 33, 0.35);
    --text: #f2f5f0;
    --text-dim: #a7b0a4;
    --text-mute: #6d766b;
    --radius: 18px;
    --radius-sm: 12px;
    --maxw: 1180px;
    --font-head: 'Rajdhani', 'Inter', sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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


/* ---------- Animated background ---------- */

.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image: linear-gradient(rgba(126, 211, 33, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(126, 211, 33, 0.05) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

.bg-glow {
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 700px;
    z-index: -1;
    background: radial-gradient(circle, var(--green-glow), transparent 65%);
    opacity: 0.35;
    filter: blur(40px);
    animation: floatGlow 12s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatGlow {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.3;
    }
    50% {
        transform: translateX(-50%) translateY(40px);
        opacity: 0.45;
    }
}


/* ---------- Scroll progress ---------- */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--green), var(--green-bright));
    z-index: 200;
    box-shadow: 0 0 12px var(--green-glow);
}


/* ---------- Navigation ---------- */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
    background: rgba(7, 10, 7, 0.6);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease), padding 0.3s var(--ease);
}

.nav.is-scrolled {
    background: rgba(7, 10, 7, 0.9);
    border-bottom-color: var(--border);
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.nav__logo {
    height: 38px;
    width: auto;
    border-radius: 9px;
    transition: transform 0.3s var(--ease);
}

.nav__brand:hover .nav__logo {
    transform: scale(1.05);
}

.nav__brand-name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    color: var(--text);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 1.7rem;
    margin-left: auto;
    margin-right: 1.5rem;
}

.nav__links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dim);
    position: relative;
    transition: color 0.25s var(--ease);
}

.nav__links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--green);
    transition: width 0.3s var(--ease);
}

.nav__links a:hover {
    color: var(--text);
}

.nav__links a:hover::after {
    width: 100%;
}

.nav__cta {
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    background: var(--green);
    color: #071007 !important;
    font-weight: 700 !important;
}

.nav__cta::after {
    display: none;
}

.nav__cta:hover {
    background: var(--green-bright);
    box-shadow: 0 0 20px var(--green-glow);
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
}

.lang-switch__btn {
    background: none;
    border: none;
    color: var(--text-mute);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: color 0.2s var(--ease);
}

.lang-switch__btn.is-active {
    color: var(--green-bright);
}

.lang-switch__divider {
    color: var(--text-mute);
    font-size: 0.8rem;
}

.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav__burger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav__burger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__burger.is-open span:nth-child(2) {
    opacity: 0;
}

.nav__burger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
    white-space: nowrap;
}

.btn--primary {
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: #061006;
    box-shadow: 0 8px 30px -8px var(--green-glow);
}

.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px -8px var(--green-glow);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border);
    color: var(--text);
}

.btn--ghost:hover {
    border-color: var(--border-green);
    background: rgba(126, 211, 33, 0.08);
    transform: translateY(-3px);
}

.btn--sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.btn--lg {
    padding: 1rem 2rem;
    font-size: 1.08rem;
}

.btn.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}


/* ---------- Hero ---------- */

.hero {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(7rem, 14vh, 11rem) clamp(1rem, 4vw, 2rem) 4rem;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.hero__eyebrow {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.82rem;
    color: var(--green-bright);
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--border-green);
    border-radius: 999px;
    background: rgba(126, 211, 33, 0.06);
    margin-bottom: 1.4rem;
}

.hero__title {
    font-family: var(--font-head);
    line-height: 1;
    margin-bottom: 1.4rem;
}

.hero__title-main {
    display: block;
    font-size: clamp(3rem, 8vw, 5.4rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    background: linear-gradient(120deg, #fff 30%, var(--green-bright) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__title-sub {
    display: block;
    font-size: clamp(1rem, 2.6vw, 1.5rem);
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-top: 0.6rem;
}

.hero__lead {
    font-size: 1.15rem;
    color: var(--text-dim);
    max-width: 32rem;
    margin-bottom: 2rem;
}

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

.hero__stats {
    display: flex;
    gap: clamp(1.2rem, 4vw, 2.6rem);
    list-style: none;
    flex-wrap: wrap;
}

.hero__stats li {
    display: flex;
    flex-direction: column;
}

.hero__stats strong {
    font-family: var(--font-head);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--green-bright);
    line-height: 1.1;
}

.hero__stats span {
    font-size: 0.85rem;
    color: var(--text-mute);
}


/* Hero visual */

.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__glow-ring {
    position: absolute;
    width: 115%;
    aspect-ratio: 1;
    background: radial-gradient(circle, var(--green-glow), transparent 62%);
    filter: blur(30px);
    opacity: 0.55;
    z-index: 0;
    animation: pulseGlow 5s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.95);
    }
    50% {
        opacity: 0.65;
        transform: scale(1.05);
    }
}

.hero__img {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55));
    animation: floatY 6s ease-in-out infinite;
    border-radius: var(--radius);
}

@keyframes floatY {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-18px);
    }
}

.hero__badge {
    position: absolute;
    bottom: 6%;
    left: -4%;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(12, 17, 12, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-green);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
    animation: floatY 6s ease-in-out infinite;
    animation-delay: 0.4s;
}

.hero__badge-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green-bright);
    box-shadow: 0 0 10px var(--green-bright);
    animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}


/* ---------- Marquee ---------- */

.marquee {
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.015);
}

.marquee__track {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    width: max-content;
    animation: scrollX 22s linear infinite;
}

.marquee__track span {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--text-mute);
    text-transform: uppercase;
}

.marquee__track .dot {
    color: var(--green);
}

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


/* ---------- Section base ---------- */

.section {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(4rem, 10vh, 7rem) clamp(1rem, 4vw, 2rem);
}

.section__head {
    text-align: center;
    max-width: 44rem;
    margin: 0 auto 3.5rem;
}

.section__tag {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--green-bright);
    margin-bottom: 1rem;
}

.section__title {
    font-family: var(--font-head);
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

.section__desc {
    color: var(--text-dim);
    font-size: 1.1rem;
}


/* ---------- Features ---------- */

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

.feature-card {
    padding: 2rem 1.7rem;
    background: linear-gradient(180deg, var(--surface), var(--bg-2));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(126, 211, 33, 0.12), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s var(--ease);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-green);
    box-shadow: 0 20px 45px -20px var(--green-glow);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card__icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(126, 211, 33, 0.1);
    border: 1px solid var(--border-green);
    color: var(--green-bright);
    margin-bottom: 1.3rem;
    position: relative;
}

.feature-card__icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    position: relative;
}

.feature-card p {
    color: var(--text-dim);
    font-size: 0.97rem;
    position: relative;
}


/* ---------- Split section ---------- */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 4.5rem);
    align-items: center;
}

.split--reverse .split__media {
    order: 2;
}

.split__media-inner {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: linear-gradient(160deg, var(--surface-2), var(--bg));
}

.split__media-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 20%, rgba(126, 211, 33, 0.18), transparent 55%);
    pointer-events: none;
}

.split__media-inner img {
    transition: transform 0.6s var(--ease);
}

.split__media-inner:hover img {
    transform: scale(1.05);
}

.checklist {
    list-style: none;
    margin-top: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

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

.checklist li::before {
    content: '';
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(126, 211, 33, 0.15);
    border: 1px solid var(--border-green);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239dff2e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}


/* ---------- Hardware spec cards ---------- */

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

.spec-card {
    padding: 1.8rem 1.6rem;
    background: linear-gradient(180deg, var(--surface), var(--bg-2));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.spec-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-green);
}

.spec-card__count {
    font-family: var(--font-head);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--green-bright);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.spec-card h3 {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.spec-card p {
    color: var(--text-dim);
    font-size: 0.92rem;
}


/* ---------- Wiring tables ---------- */

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

.wiring-card {
    padding: 1.8rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: linear-gradient(180deg, var(--surface), var(--bg-2));
}

.wiring-card h3 {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.1rem;
    color: var(--green-bright);
}

.wiring-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.wiring-table th {
    text-align: left;
    color: var(--text-mute);
    font-weight: 500;
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
}

.wiring-table td {
    padding: 0.55rem 0.6rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-dim);
}

.wiring-table td:last-child {
    color: var(--green-bright);
    text-align: right;
}

.wiring-table tr:last-child td {
    border-bottom: none;
}


/* ---------- Commands table ---------- */

.commands {
    max-width: 860px;
    margin: 0 auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    background: linear-gradient(180deg, var(--surface), var(--bg-2));
}

.commands table {
    width: 100%;
    border-collapse: collapse;
}

.commands th {
    text-align: left;
    padding: 0.9rem 1.2rem;
    background: rgba(126, 211, 33, 0.06);
    color: var(--green-bright);
    font-family: var(--font-head);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.78rem;
    border-bottom: 1px solid var(--border);
}

.commands td {
    padding: 0.75rem 1.2rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.95rem;
    vertical-align: top;
}

.commands tr:last-child td {
    border-bottom: none;
}

.commands tr:hover td {
    background: rgba(126, 211, 33, 0.03);
}

.commands code {
    font-family: var(--font-mono);
    font-size: 0.86rem;
    color: var(--green-bright);
    background: rgba(126, 211, 33, 0.08);
    padding: 0.15rem 0.5rem;
    border-radius: 7px;
    white-space: nowrap;
}


/* ---------- Code block ---------- */

.code-block {
    max-width: 620px;
    margin: 2rem auto 0;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: #0a0d0a;
    overflow: hidden;
}

.code-block__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.code-block__dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--text-mute);
    opacity: 0.5;
}

.code-block__title {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-mute);
}

.code-block pre {
    margin: 0;
    padding: 1.2rem 1.3rem;
    overflow-x: auto;
}

.code-block code {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-dim);
}

.code-block .cmd {
    color: var(--green-bright);
}


/* ---------- Steps ---------- */

.steps {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    counter-reset: step;
}

.step {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    padding: 1.3rem 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: linear-gradient(180deg, var(--surface), var(--bg-2));
    transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.step:hover {
    border-color: var(--border-green);
    transform: translateX(4px);
}

.step::before {
    counter-increment: step;
    content: counter(step);
    flex: none;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.1rem;
    color: #061006;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
}

.step__body h3 {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.step__body p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.step__body code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--green-bright);
    background: rgba(126, 211, 33, 0.08);
    padding: 0.1rem 0.45rem;
    border-radius: 6px;
}


/* ---------- Build gallery ---------- */

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
}

.gallery__item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: linear-gradient(160deg, var(--surface-2), var(--bg));
    transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.gallery__item:hover {
    transform: translateY(-6px);
    border-color: var(--border-green);
    box-shadow: 0 20px 45px -20px var(--green-glow);
}

.gallery__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.gallery__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.gallery__item:hover .gallery__media img {
    transform: scale(1.06);
}

.gallery__step {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    z-index: 2;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    color: #061006;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    box-shadow: 0 6px 18px rgba(126, 211, 33, 0.35);
}

.gallery__caption {
    padding: 1rem 1.2rem 1.2rem;
}

.gallery__caption h3 {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.gallery__caption p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .gallery__grid {
        grid-template-columns: 1fr;
    }
}


/* ---------- Download ---------- */

.download {
    padding-bottom: clamp(5rem, 12vh, 8rem);
}

.download__card {
    position: relative;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 3.5rem);
    border-radius: 28px;
    border: 1px solid var(--border-green);
    background: radial-gradient(circle at 50% 0%, rgba(126, 211, 33, 0.12), transparent 60%), linear-gradient(180deg, var(--surface), var(--bg-2));
    overflow: hidden;
}

.download__glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--green-glow), transparent 65%);
    opacity: 0.3;
    filter: blur(30px);
    pointer-events: none;
}

.download__logo {
    position: absolute;
    right: -30px;
    bottom: -30px;
    width: 180px;
    opacity: 0.06;
    transform: rotate(-8deg);
    pointer-events: none;
}

.download__card .section__tag,
.download__card .section__title,
.download__card .section__desc {
    position: relative;
}

.download__card .section__desc {
    max-width: 34rem;
    margin: 0 auto;
}

.download__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0 1.4rem;
    position: relative;
}

.download__note {
    color: var(--text-mute);
    font-size: 0.9rem;
    position: relative;
}


/* ---------- Footer ---------- */

.footer {
    border-top: 1px solid var(--border);
    padding: 3rem 1.5rem;
    background: var(--bg-2);
}

.footer__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
}

.footer__logo {
    height: 44px;
    width: auto;
    border-radius: 10px;
    opacity: 0.9;
}

.footer__tagline {
    font-family: var(--font-head);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.footer__links {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.9rem;
}

.footer__links a {
    color: var(--text-dim);
    transition: color 0.2s var(--ease);
}

.footer__links a:hover {
    color: var(--green-bright);
}

.footer__copy {
    font-size: 0.85rem;
    color: var(--text-mute);
}

.footer__legal {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.85rem;
    margin-top: 0.2rem;
}

.footer__legal a {
    color: var(--text-mute);
    transition: color 0.2s var(--ease);
}

.footer__legal a:hover {
    color: var(--green-bright);
}

.footer__legal .sep {
    color: var(--text-mute);
    opacity: 0.5;
}


/* ---------- Legal pages ---------- */

.legal {
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(7rem, 14vh, 10rem) clamp(1rem, 4vw, 2rem) clamp(4rem, 10vh, 6rem);
}

.legal__back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    transition: color 0.2s var(--ease);
}

.legal__back:hover {
    color: var(--green-bright);
}

.legal h1 {
    font-family: var(--font-head);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.legal h2 {
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--green-bright);
    margin: 2.2rem 0 0.7rem;
}

.legal h3 {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.4rem 0 0.5rem;
}

.legal p,
.legal li {
    color: var(--text-dim);
    font-size: 1rem;
    margin-bottom: 0.9rem;
}

.legal ul {
    padding-left: 1.3rem;
    margin-bottom: 0.9rem;
}

.legal li {
    margin-bottom: 0.4rem;
}

.legal a {
    color: var(--green-bright);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal strong {
    color: var(--text);
}

.legal__note {
    padding: 1rem 1.2rem;
    border: 1px dashed var(--border-green);
    border-radius: var(--radius-sm);
    background: rgba(126, 211, 33, 0.05);
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}


/* ---------- Reveal animation ---------- */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}


/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 8rem;
    }
    .hero__eyebrow {
        margin-inline: auto;
    }
    .hero__lead {
        margin-inline: auto;
    }
    .hero__actions,
    .hero__stats {
        justify-content: center;
    }
    .hero__visual {
        order: -1;
        max-width: 440px;
        margin: 0 auto;
    }
    .split {
        grid-template-columns: 1fr;
    }
    .split--reverse .split__media {
        order: -1;
    }
    .split__body {
        text-align: center;
    }
    .checklist {
        align-items: center;
    }
}

@media (max-width: 980px) {
    .nav__links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100dvh;
        width: min(78vw, 320px);
        flex-direction: column;
        justify-content: center;
        gap: 1.8rem;
        background: rgba(7, 10, 7, 0.97);
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--border);
        margin: 0;
        transform: translateX(100%);
        transition: transform 0.4s var(--ease);
        z-index: 90;
    }
    .nav__links.is-open {
        transform: translateX(0);
    }
    .nav__links a {
        font-size: 1.2rem;
    }
    .nav__burger {
        display: flex;
    }
}

@media (max-width: 720px) {
    .commands {
        font-size: 0.85rem;
    }
    .commands th,
    .commands td {
        padding: 0.6rem 0.8rem;
    }
}

@media (max-width: 520px) {
    .hero__stats {
        gap: 1.4rem;
    }
    .btn {
        width: 100%;
    }
    .hero__actions,
    .download__actions {
        width: 100%;
    }
    .commands code {
        white-space: normal;
    }
}