/* Ren'Py Translator — marketing site
   Visual language borrowed straight from the app itself (app/theme.py):
   deep indigo canvas, glass cards, blue -> violet -> pink accent gradient. */

:root {
    --bg: #05060d;
    --bg-soft: #0a0e1c;
    --bg-elevated: #10142a;
    --card: rgba(21, 27, 51, 0.55);
    --card-solid: #131a30;
    --border: rgba(148, 163, 196, 0.16);
    --border-strong: rgba(148, 163, 196, 0.32);
    --text: #f3f5fb;
    --text-soft: #aab3cf;
    --text-muted: #737d9e;
    --primary: #3b82f6;
    --primary-2: #6366f1;
    --accent: #ec4899;
    --accent-2: #f43f5e;
    --success: #22c55e;
    --brand-gradient: linear-gradient(95deg, var(--primary) 0%, var(--primary-2) 55%, var(--accent) 100%);
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --shadow-glow: 0 30px 80px -20px rgba(99, 102, 241, 0.35);
    --shadow-card: 0 18px 48px -18px rgba(2, 4, 14, 0.65);
    --container: min(1180px, calc(100% - 40px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

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

a {
    color: inherit;
}

code, pre {
    font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    background: var(--brand-gradient);
    color: #fff;
    padding: 0.7rem 1.1rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
}

/* ---------------- Background ambience ---------------- */
.bg-glow {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-glow::before,
.bg-glow::after,
.bg-glow i {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.32;
}

.bg-glow::before {
    width: 640px;
    height: 640px;
    top: -220px;
    left: -160px;
    background: var(--primary-2);
}

.bg-glow::after {
    width: 560px;
    height: 560px;
    top: 280px;
    right: -220px;
    background: var(--accent);
    opacity: 0.24;
}

.bg-glow i {
    width: 520px;
    height: 520px;
    left: 30%;
    bottom: -260px;
    background: var(--primary);
    opacity: 0.22;
    display: block;
}

.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(148, 163, 196, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 196, 0.05) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
    pointer-events: none;
}

/* ---------------- Nav ---------------- */
.site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    padding: 0.9rem 0;
    transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
    border-bottom: 1px solid transparent;
}

.site-nav.is-scrolled {
    background: rgba(5, 6, 13, 0.72);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    font-weight: 800;
    line-height: 1;
    min-width: 0;
    color: var(--text);
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--brand-gradient);
    display: grid;
    place-items: center;
    color: #fff;
    flex: 0 0 auto;
    box-shadow: 0 6px 18px -4px rgba(99, 102, 241, 0.55);
}

.brand-name {
    white-space: nowrap;
    font-size: 1.02rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.92rem;
    font-weight: 650;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-soft);
    transition: color 0.15s ease;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    gap: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
}

.lang-switch button {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.lang-switch button:hover {
    color: var(--text);
}

.lang-switch button.is-active {
    background: var(--brand-gradient);
    color: #fff;
}

.nav-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 40px;
    padding: 0.5rem 0.9rem;
    background: var(--brand-gradient);
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.88rem;
    box-shadow: 0 10px 24px -8px rgba(99, 102, 241, 0.6);
    transition: transform 0.18s ease;
}

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

.lang-switch-mobile,
.nav-download-mobile {
    display: none;
}

.nav-toggle {
    display: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

/* ---------------- Buttons ---------------- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 50px;
    padding: 0.85rem 1.3rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.96rem;
    text-decoration: none;
    line-height: 1.1;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

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

.button-primary {
    background: var(--brand-gradient);
    color: #fff;
    box-shadow: 0 16px 38px -12px rgba(99, 102, 241, 0.65);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border-color: var(--border-strong);
}

.button-secondary:hover {
    border-color: var(--primary-2);
}

.button-ghost {
    background: transparent;
    color: var(--text-soft);
    border-color: var(--border);
}

.button-block {
    width: 100%;
}

/* ---------------- Hero ---------------- */
.hero {
    position: relative;
    padding: clamp(7.5rem, 12vw, 10.5rem) 0 6rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 36px;
    padding: 0.32rem 0.85rem 0.32rem 0.55rem;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-soft);
    font-size: 0.82rem;
    font-weight: 800;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

h1, h2, h3, h4 {
    margin: 0;
    line-height: 1.12;
    letter-spacing: -0.01em;
}

h1 {
    margin-top: 1.3rem;
    font-size: clamp(2.5rem, 4.6vw, 3.75rem);
    font-weight: 850;
}

.text-gradient {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    max-width: 560px;
    margin: 1.35rem 0 0;
    color: var(--text-soft);
    font-size: 1.12rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2.1rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: 560px;
    margin-top: 2.5rem;
}

.stat {
    padding: 0.9rem 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 1.4rem;
    font-weight: 850;
}

.stat span {
    display: block;
    margin-top: 0.2rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.hero-visual {
    position: relative;
}

.window-frame {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 3px;
    background: linear-gradient(160deg, rgba(99, 102, 241, 0.55), rgba(236, 72, 153, 0.35) 45%, rgba(59, 130, 246, 0.15));
    box-shadow: var(--shadow-glow), var(--shadow-card);
}

.window-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: calc(var(--radius-lg) - 3px);
}

.window-frame::after {
    content: "";
    position: absolute;
    inset: -40px;
    z-index: -1;
    background: radial-gradient(closest-side, rgba(99, 102, 241, 0.25), transparent 70%);
    filter: blur(10px);
}

.float-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    background: rgba(10, 14, 28, 0.85);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(10px);
    font-size: 0.82rem;
    font-weight: 750;
    box-shadow: var(--shadow-card);
}

.float-chip.chip-langs {
    top: -18px;
    right: 18px;
}

.float-chip.chip-free {
    bottom: -18px;
    left: 18px;
}

.float-chip .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
}

/* ---------------- Sections ---------------- */
.section {
    padding: 6.5rem 0;
    position: relative;
}

.section-tight {
    padding-top: 0;
}

.section-head {
    max-width: 700px;
    margin-bottom: 3rem;
}

.section-head.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.kicker {
    display: inline-block;
    margin: 0 0 0.8rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.14);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #c7d2ff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

h2 {
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
    font-weight: 800;
}

.lead {
    margin: 1rem 0 0;
    color: var(--text-soft);
    font-size: 1.06rem;
}

/* ---------------- Cards ---------------- */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--card);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-card);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

.feature-card {
    padding: 1.6rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
}

.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--brand-gradient);
    color: #fff;
    margin-bottom: 1.15rem;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 750;
}

.feature-card p, .lead-card p {
    margin: 0.65rem 0 0;
    color: var(--text-soft);
}

.feature-card code, .lead p code, details p code, .rule-card code, .legend li code {
    background: rgba(148, 163, 196, 0.14);
    border-radius: 5px;
    padding: 0.1rem 0.35rem;
    font-size: 0.85em;
    color: #dbe4ff;
}

/* ---------------- Steps (download) ---------------- */
.step-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 0;
}

.step-card {
    padding: 1.5rem 1.3rem;
    position: relative;
}

.step-number {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--brand-gradient);
    color: #fff;
    font-weight: 850;
    margin-bottom: 1rem;
}

.step-card h3 {
    font-size: 1.02rem;
    font-weight: 750;
}

.step-card p {
    margin: 0.55rem 0 0;
    color: var(--text-soft);
    font-size: 0.94rem;
}

.install-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
    margin-top: 2rem;
    align-items: start;
}

.install-panel {
    padding: 1.7rem;
}

.install-panel h3 {
    font-size: 1.2rem;
}

.install-panel > p {
    color: var(--text-soft);
    margin: 0.6rem 0 0;
}

.code-box {
    margin-top: 1.2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #0a0d18;
}

.code-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 750;
}

.copy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--text-soft);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease;
}

.copy-button:hover, .copy-button:focus-visible {
    border-color: var(--accent);
    color: #fff;
}

pre {
    margin: 0;
    padding: 1.1rem;
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.8;
    color: #d7e0ff;
}

.release-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    margin: 1.3rem 0;
}

.release-meta-item {
    border-top: 2px solid var(--primary-2);
    padding-top: 0.6rem;
}

.release-meta-item strong {
    display: block;
    font-size: 1.2rem;
}

.release-meta-item span {
    display: block;
    margin-top: 0.2rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

/* ---------------- Screenshot showcase (screenshot + numbered legend) ---------------- */
.showcase {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.2rem;
    align-items: center;
    margin-top: 1rem;
}

.showcase.reverse {
    grid-template-columns: 0.85fr 1.15fr;
}

.showcase.reverse .showcase-shot {
    order: 2;
}

.showcase-shot {
    border-radius: var(--radius-lg);
    padding: 3px;
    background: linear-gradient(160deg, rgba(99, 102, 241, 0.45), rgba(236, 72, 153, 0.22));
    box-shadow: var(--shadow-card);
}

.showcase-shot img {
    border-radius: calc(var(--radius-lg) - 3px);
    width: 100%;
    height: auto;
}

.showcase-caption {
    margin-top: 0.9rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

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

.legend li {
    display: flex;
    gap: 0.9rem;
    color: var(--text-soft);
}

.legend .num {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.18);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #c7d2ff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.85rem;
}

.legend strong {
    color: var(--text);
    display: block;
}

/* ---------------- Workflow tabs ---------------- */
.workflow-tabs {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.6rem;
    flex-wrap: wrap;
}

.workflow-tab {
    appearance: none;
    cursor: pointer;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-soft);
    font: inherit;
    font-weight: 750;
    font-size: 0.9rem;
    padding: 0.7rem 1.1rem;
    border-radius: 999px;
    transition: all 0.15s ease;
}

.workflow-tab.is-active {
    background: var(--brand-gradient);
    color: #fff;
    border-color: transparent;
}

.workflow-panel {
    display: none;
}

.workflow-panel.is-active {
    display: block;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 1.3rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.check-list li {
    position: relative;
    padding: 0.75rem 0 0.75rem 2.1rem;
    border-top: 1px solid var(--border);
    color: var(--text-soft);
}

.check-list li:first-child {
    border-top: 0;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--brand-gradient);
}

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

.workflow-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

/* ---------------- Rules ---------------- */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

.rule-card {
    padding: 1.5rem;
}

.rule-card h3 {
    font-size: 1.08rem;
}

.rule-card p {
    margin: 0.6rem 0 0;
    color: var(--text-soft);
}

.rule-card .codes {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.9rem;
    flex-wrap: wrap;
}

/* ---------------- Multilingual strip ---------------- */
.lang-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
    margin-top: 2rem;
}

.lang-card {
    padding: 1.3rem;
    text-align: center;
}

.lang-card img {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-bottom: 1rem;
}

.lang-card strong {
    display: block;
    font-size: 1.05rem;
}

.lang-card span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ---------------- FAQ ---------------- */
.details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

details {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--card);
    padding: 1.15rem 1.3rem;
}

details[open] {
    border-color: var(--border-strong);
}

summary {
    cursor: pointer;
    color: var(--text);
    font-weight: 750;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: "+";
    font-size: 1.3rem;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

details[open] summary::after {
    transform: rotate(45deg);
}

details p {
    margin: 0.8rem 0 0;
    color: var(--text-soft);
}

/* ---------------- CTA band ---------------- */
.cta-band {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 2.6rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(120deg, rgba(59, 130, 246, 0.18), rgba(236, 72, 153, 0.14));
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-card);
}

.cta-band p {
    margin: 0.7rem 0 0;
    color: var(--text-soft);
}

/* ---------------- Footer ---------------- */
footer {
    padding: 4rem 0 2.2rem;
    border-top: 1px solid var(--border);
    color: var(--text-soft);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
}

footer a {
    color: var(--text-soft);
    text-decoration: none;
    transition: color 0.15s ease;
}

footer a:hover, footer a:focus-visible {
    color: #fff;
}

footer strong {
    color: var(--text);
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0.85rem 0 0;
}

footer li {
    margin: 0.5rem 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2.6rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ---------------- Animations ---------------- */
.fade-in {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1040px) {
    .hero-grid, .workflow-body {
        grid-template-columns: 1fr;
    }
    .hero-visual { order: -1; }
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .install-columns, .details-grid, .rules-grid, .lang-strip {
        grid-template-columns: 1fr;
    }
    .showcase, .showcase.reverse {
        grid-template-columns: 1fr;
    }
    .showcase.reverse .showcase-shot { order: 0; }
    .cta-band { grid-template-columns: 1fr; text-align: left; }
}

@media (max-width: 760px) {
    :root { --container: min(1180px, calc(100% - 28px)); }

    .nav-inner { flex-wrap: wrap; row-gap: 0.7rem; }
    .brand-name { max-width: 44vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .nav-right { gap: 0.6rem; }
    .nav-right > .lang-switch:not(.lang-switch-mobile),
    .nav-right > .nav-download:not(.nav-download-mobile) { display: none; }

    .nav-links {
        display: none;
        order: 3;
        width: 100%;
    }
    .nav-links.is-open {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
        padding-top: 0.9rem;
        margin-top: 0.2rem;
        border-top: 1px solid var(--border);
    }
    .nav-links.is-open a:not(.nav-download-mobile) {
        padding: 0.7rem 0.4rem;
        border-radius: var(--radius-sm);
    }
    .nav-links.is-open a:not(.nav-download-mobile):hover {
        background: rgba(255, 255, 255, 0.05);
    }
    .nav-download-mobile {
        display: inline-flex;
        justify-content: center;
        margin-top: 0.6rem;
    }
    .lang-switch-mobile {
        display: inline-flex;
        align-self: center;
        margin-top: 0.6rem;
    }

    .nav-toggle { display: inline-flex; flex: 0 0 auto; }
    .hero { padding-top: 7rem; }
    .hero-stats, .feature-grid, .step-grid, .release-meta, .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-actions, .button { width: 100%; }
    .section { padding: 4rem 0; }
    .float-chip { position: static; display: inline-flex; margin: 0.6rem 0.4rem 0 0; }
}
