/* Vaultarium website – light/dark, derived from the WindowDeck and TheCommander sites */

:root {
    --color-primary: #16707E;
    --color-primary-dark: #0F5662;
    --color-primary-soft: rgba(22, 112, 126, 0.12);
    --color-secondary: #3A6FD8;
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-text: #1F2937;
    --color-text-light: #5B6472;
    --color-bg: #FFFFFF;
    --color-bg-light: #F7F8FB;
    --color-bg-alt: #EEF1F6;
    --color-border: #E3E7EE;
    --color-card: #FFFFFF;
    --max-width: 1180px;
    --radius: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 6px 16px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 28px 60px rgba(15, 23, 42, 0.18);
    --chrome-bg: linear-gradient(180deg, #ececee 0%, #dcdcdf 100%);
    --chrome-border: #c4c4c8;
    --chrome-title: #4a4a4f;
    --hero-glow: radial-gradient(1200px 500px at 50% -10%, rgba(22, 112, 126, 0.16), transparent 70%);
    /* Fixed in both themes: white text needs a dark enough petrol (contrast ≥ 4.5:1). */
    --cta-bg: #16707E;
    --cta-bg-hover: #0F5662;
}

[data-theme="dark"] {
    --color-primary: #5CC2CF;
    --color-primary-dark: #3FA9B7;
    --color-primary-soft: rgba(92, 194, 207, 0.14);
    --color-secondary: #86A8FF;
    --color-success: #34D399;
    --color-warning: #FBBF24;
    --color-text: #F3F5F9;
    --color-text-light: #A3ACBA;
    --color-bg: #0F141D;
    --color-bg-light: #161D29;
    --color-bg-alt: #232C3A;
    --color-border: #2A3342;
    --color-card: #161D29;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.45);
    --shadow-xl: 0 28px 60px rgba(0, 0, 0, 0.55);
    --chrome-bg: linear-gradient(180deg, #3a3a3d 0%, #2c2c2f 100%);
    --chrome-border: #18181a;
    --chrome-title: #a4a4a8;
    --hero-glow: radial-gradient(1200px 500px at 50% -10%, rgba(92, 194, 207, 0.18), transparent 70%);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --color-primary: #5CC2CF;
        --color-primary-dark: #3FA9B7;
        --color-primary-soft: rgba(92, 194, 207, 0.14);
        --color-secondary: #86A8FF;
        --color-success: #34D399;
        --color-warning: #FBBF24;
        --color-text: #F3F5F9;
        --color-text-light: #A3ACBA;
        --color-bg: #0F141D;
        --color-bg-light: #161D29;
        --color-bg-alt: #232C3A;
        --color-border: #2A3342;
        --color-card: #161D29;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
        --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.45);
        --shadow-xl: 0 28px 60px rgba(0, 0, 0, 0.55);
        --chrome-bg: linear-gradient(180deg, #3a3a3d 0%, #2c2c2f 100%);
        --chrome-border: #18181a;
        --chrome-title: #a4a4a8;
        --hero-glow: radial-gradient(1200px 500px at 50% -10%, rgba(92, 194, 207, 0.18), transparent 70%);
    }
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

img {
    max-width: 100%;
}

a {
    color: var(--color-primary);
}

/* Top bar */
.top-bar {
    background-color: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
    padding: 0.4rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.top-bar-label {
    font-weight: 500;
}

.top-bar-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.top-bar-link:hover {
    text-decoration: underline;
}

.top-bar-desc {
    font-weight: 400;
    color: var(--color-text-light);
}

.top-bar-sep {
    color: var(--color-border);
}

/* Header */
header.site-header {
    background-color: color-mix(in srgb, var(--color-bg) 88%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo img {
    width: 34px;
    height: 34px;
}

.nav-links {
    display: flex;
    gap: 1.6rem;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-primary);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.theme-toggle {
    background: none;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    padding: 0.45rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    transition: border-color 0.2s, background-color 0.2s;
}

.theme-toggle:hover {
    border-color: var(--color-primary);
    background-color: var(--color-bg-light);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }
[data-theme="dark"] .theme-toggle .sun-icon { display: block; }
[data-theme="dark"] .theme-toggle .moon-icon { display: none; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .sun-icon { display: block; }
    :root:not([data-theme="light"]) .theme-toggle .moon-icon { display: none; }
}

/* Language switcher */
.lang-switcher {
    display: flex;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
}

.lang-btn {
    background: none;
    border: none;
    padding: 0.35rem 0.55rem;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-light);
    transition: background-color 0.2s, color 0.2s;
    line-height: 1;
}

.lang-btn:first-child {
    border-right: 1px solid var(--color-border);
}

.lang-btn.active {
    background-color: var(--color-primary);
    color: #fff;
}

.lang-btn:not(.active):hover {
    background-color: var(--color-bg-light);
    color: var(--color-text);
}

/* Language visibility */
[lang="de"] .lang-en,
[lang="en"] .lang-de {
    display: none !important;
}

/* Theme dependent images: only hiding rules, important, so that rules like
   `.hero-image img { display: block }` cannot show both images at once – and nothing here
   shows an image the language rules hide. */
[data-theme="light"] .theme-dark-only,
[data-theme="dark"] .theme-light-only { display: none !important; }

@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .theme-dark-only { display: none !important; }
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-light-only { display: none !important; }
}

/* Layout */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    margin: 5rem 0;
}

.section-title {
    font-size: 2.3rem;
    font-weight: 750;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 0.8rem;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.8rem auto;
}

/* Hero */
.hero {
    text-align: center;
    padding: 4.5rem 1.5rem 1rem;
    margin-top: 1.5rem;
    background: var(--hero-glow);
    border-radius: var(--radius-lg);
}

.hero-icon {
    width: 96px;
    height: 96px;
    margin-bottom: 1.2rem;
    filter: drop-shadow(0 10px 22px rgba(30, 50, 120, 0.3));
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 1.1rem;
}

.hero h1 .accent {
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero .subtitle {
    font-size: 1.22rem;
    color: var(--color-text-light);
    max-width: 760px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-meta {
    display: flex;
    gap: 1.6rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.4rem;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.hero-meta svg {
    width: 16px;
    height: 16px;
    color: var(--color-success);
}

.hero-image {
    margin: 3.2rem auto 0;
    max-width: 1080px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border);
    cursor: zoom-in;
}

.hero-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* Buttons */
.cta-button,
.cta-button-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.9rem 1.8rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.08rem;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, color 0.2s;
}

.cta-button {
    background-color: var(--cta-bg);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.cta-button:hover {
    background-color: var(--cta-bg-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-button-secondary {
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.cta-button-secondary:hover {
    background-color: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

.cta-button svg,
.cta-button-secondary svg {
    width: 20px;
    height: 20px;
}

/* Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.5rem;
}

.feature-card,
.feature-detail-card {
    background-color: var(--color-card);
    padding: 1.8rem;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.feature-detail-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-icon.primary { background-color: var(--color-primary-soft); color: var(--color-primary); }
.feature-icon.secondary { background-color: rgba(58, 111, 216, 0.14); color: var(--color-secondary); }
.feature-icon.success { background-color: rgba(16, 185, 129, 0.14); color: var(--color-success); }
.feature-icon.warning { background-color: rgba(245, 158, 11, 0.15); color: var(--color-warning); }

.feature-card h3,
.feature-detail-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}

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

.feature-detail-card h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.feature-detail-card h3 .feature-icon {
    width: 38px;
    height: 38px;
    margin: 0;
}

.feature-detail-card h3 .feature-icon svg {
    width: 20px;
    height: 20px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 0.32rem 0 0.32rem 1.1rem;
    color: var(--color-text-light);
    font-size: 0.95rem;
    position: relative;
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.88rem;
    width: 6px;
    height: 6px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

/* Limits of the protection: neutral dashes instead of the colored dots */
.feature-list.limits li::before {
    background-color: var(--color-text-light);
    border-radius: 1px;
    height: 2px;
    top: 0.98rem;
}

/* Vaultarium: pre-release badge above the hero title */
.hero-badge {
    display: inline-block;
    margin: 0.4rem 0 1rem;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 650;
    letter-spacing: 0.02em;
}

/* Vaultarium: a note under the download button */
.beta-note {
    max-width: 640px;
    margin: 1.4rem auto 0;
    color: var(--color-text-light);
    font-size: 0.92rem;
}

/* Screenshots */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.8rem;
}

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

/* Vaultarium: windows of different heights side by side, aligned at the top */
.screenshots-grid.windows {
    align-items: start;
}

.screenshots-grid + .screenshots-grid {
    margin-top: 1.8rem;
}

.section-title + .faq {
    margin-top: 2.2rem;
}

.screenshot-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--color-card);
    border: 1px solid var(--color-border);
    cursor: zoom-in;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
}

.screenshot-item:hover,
.screenshot-item:focus-visible {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    outline: none;
}

.screenshot-item img {
    display: block;
    width: 100%;
    height: auto;
}

.screenshot-caption {
    padding: 0.9rem 1.1rem 1.1rem;
    text-align: center;
}

.screenshot-caption h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.screenshot-caption p {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.window-chrome {
    background: var(--chrome-bg);
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--chrome-border);
    position: relative;
}

.window-controls {
    display: flex;
    gap: 0.45rem;
}

.window-controls .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.window-controls .dot.red { background: #ff5f57; }
.window-controls .dot.yellow { background: #febc2e; }
.window-controls .dot.green { background: #28c840; }

.window-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--chrome-title);
    white-space: nowrap;
}

/* Highlight box */
.highlight-section {
    background: linear-gradient(135deg, var(--color-primary-soft), rgba(124, 92, 250, 0.08));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
}

/* Keyboard shortcuts */
.shortcuts-table {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    border-collapse: collapse;
    background: var(--color-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.shortcuts-table th,
.shortcuts-table td {
    padding: 0.8rem 1.1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.shortcuts-table th {
    background-color: var(--color-bg-alt);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-light);
}

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

.shortcuts-table td:first-child {
    white-space: nowrap;
    width: 34%;
}

kbd {
    display: inline-block;
    min-width: 1.9em;
    padding: 0.1rem 0.45rem;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    color: var(--color-text);
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-bottom-width: 3px;
    border-radius: 6px;
}

/* Version history */
.releases {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    gap: 1.2rem;
}

.release {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem 1.7rem;
}

.release-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.release-header h3 {
    font-size: 1.25rem;
}

.release-header time {
    color: var(--color-text-light);
    font-size: 0.92rem;
}

.release h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    margin: 0.9rem 0 0.3rem;
}

.release ul {
    padding-left: 1.2rem;
    color: var(--color-text-light);
}

.release li {
    margin: 0.35rem 0;
}

/* Download */
.download-section {
    text-align: center;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.2rem;
    max-width: 960px;
    margin: 2.6rem auto 0;
    text-align: left;
    counter-reset: step;
}

.step {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.3rem 1.3rem 1.3rem 3.6rem;
    position: relative;
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.step strong {
    display: block;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 1.1rem;
    top: 1.15rem;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

/* FAQ */
.faq {
    max-width: 860px;
    margin: 0 auto;
}

.faq details {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem 1.3rem;
    margin-bottom: 0.8rem;
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

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

.faq summary::after {
    content: "+";
    color: var(--color-primary);
    font-size: 1.3rem;
    line-height: 1;
}

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

.faq details p {
    margin-top: 0.7rem;
    color: var(--color-text-light);
}

/* Content pages */
.content-page {
    max-width: 880px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.content-page h1 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.content-page h2 {
    font-size: 1.6rem;
    margin: 2.6rem 0 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--color-primary);
}

.content-page h3 {
    font-size: 1.2rem;
    margin: 1.8rem 0 0.6rem;
}

.content-page p,
.content-page li {
    margin-bottom: 0.8rem;
}

.content-page ul {
    margin: 0 0 1.4rem 1.5rem;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.92);
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 94vw;
    max-height: 90vh;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    transition: background 0.2s;
}

.lightbox-close {
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    padding: 0.8rem 1rem;
    border-radius: 10px;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: var(--color-primary);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Footer */
footer {
    background-color: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
    margin-top: 5rem;
    padding: 3rem 1.5rem 2rem;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.45rem;
}

.footer-links a {
    color: var(--color-text-light);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 2rem auto 0;
    padding-top: 1.6rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 860px) {
    nav {
        flex-wrap: wrap;
        row-gap: 0.6rem;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding-top: 3rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero .subtitle {
        font-size: 1.05rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    section {
        margin: 3.5rem 0;
    }

    .screenshots-grid,
    .screenshots-grid.two-columns {
        grid-template-columns: 1fr;
    }

    .shortcuts-table td:first-child {
        white-space: normal;
    }

    .highlight-section {
        padding: 2rem 1.2rem;
    }

    .top-bar-desc {
        display: none;
    }

    .lightbox-nav {
        display: none !important;
    }
}

@media (max-width: 520px) {
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-button,
    .cta-button-secondary {
        justify-content: center;
    }

    .shortcuts-table th,
    .shortcuts-table td {
        padding: 0.6rem 0.7rem;
        font-size: 0.9rem;
    }

    .nav-controls {
        gap: 0.5rem;
    }

    .lang-btn {
        padding: 0.3rem 0.45rem;
        font-size: 0.75rem;
    }
}

/* Movement only: content must stay visible even where animations do not run. */
@keyframes fadeInUp {
    from { transform: translateY(18px); }
    to { transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .fade-in-up { animation: none; }
    .feature-card:hover, .screenshot-item:hover, .cta-button:hover, .cta-button-secondary:hover { transform: none; }
}
