@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@500&display=swap");

:root {
    --heading-font: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
    --body-font: "Instrument Sans", "Avenir Next", "Segoe UI", sans-serif;
    --mono-font: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

    --bg-color: #f4f8ff;
    --bg-elevated: #ffffff;
    --bg-soft: #eaf2ff;
    --bg-soft-2: #dce9ff;

    --text-primary: #11213e;
    --text-secondary: #3e557d;
    --text-tertiary: #647aa3;

    --line-color: #c8d8f4;
    --line-strong: #aac3ef;

    --primary-color: #0b74ff;
    --primary-dark: #0059d6;
    --primary-soft: rgba(11, 116, 255, 0.12);
    --accent-cyan: #00bbd8;
    --accent-green: #12bf7a;
    --accent-orange: #ff8d3a;
    --error-color: #d93b59;

    --shadow-sm: 0 12px 28px rgba(11, 42, 98, 0.1);
    --shadow-md: 0 18px 42px rgba(11, 42, 98, 0.16);
    --shadow-lg: 0 34px 70px rgba(7, 30, 76, 0.2);

    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 30px;

    --max-width: 1160px;
}

html[data-theme="dark"] {
    color-scheme: dark;

    --bg-color: #050d1f;
    --bg-elevated: #0f1a33;
    --bg-soft: #101f3f;
    --bg-soft-2: #16305d;

    --text-primary: #ecf3ff;
    --text-secondary: #b4c7e8;
    --text-tertiary: #8ea4ca;

    --line-color: #274574;
    --line-strong: #3660a0;

    --primary-color: #55a4ff;
    --primary-dark: #2b82f6;
    --primary-soft: rgba(85, 164, 255, 0.16);
    --accent-cyan: #42d5ef;
    --accent-green: #46d79b;
    --accent-orange: #ffb16f;
    --error-color: #ff7a97;

    --shadow-sm: 0 14px 30px rgba(0, 0, 0, 0.36);
    --shadow-md: 0 20px 44px rgba(0, 0, 0, 0.44);
    --shadow-lg: 0 36px 72px rgba(0, 0, 0, 0.52);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: var(--body-font);
    color: var(--text-primary);
    line-height: 1.65;
    background:
        radial-gradient(1100px 600px at 4% -8%, rgba(0, 187, 216, 0.2), transparent 55%),
        radial-gradient(900px 560px at 96% -12%, rgba(11, 116, 255, 0.2), transparent 52%),
        linear-gradient(180deg, #f9fbff 0%, #edf4ff 38%, #f5f8ff 100%);
}

html[data-theme="dark"] body {
    background:
        radial-gradient(1000px 560px at 5% -6%, rgba(66, 213, 239, 0.16), transparent 56%),
        radial-gradient(920px 600px at 98% -12%, rgba(85, 164, 255, 0.16), transparent 56%),
        linear-gradient(180deg, #060f24 0%, #07152e 40%, #08162d 100%);
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -1;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.4;
    pointer-events: none;
}

body::before {
    top: 24%;
    left: -140px;
    background: radial-gradient(circle, rgba(18, 191, 122, 0.3), transparent 70%);
}

body::after {
    right: -120px;
    bottom: 10%;
    background: radial-gradient(circle, rgba(11, 116, 255, 0.28), transparent 70%);
}

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

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

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
    width: auto;
    height: auto;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(11, 116, 255, 0.58);
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
    text-decoration: none;
    z-index: 500;
    box-shadow: var(--shadow-sm);
}

html[data-theme="dark"] .skip-link:focus {
    background: rgba(12, 22, 44, 0.95);
}

.container {
    width: min(var(--max-width), 100% - 48px);
    margin-inline: auto;
}

main {
    position: relative;
    z-index: 1;
}

main > section {
    padding: 5.2rem 0;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--heading-font);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    text-align: center;
    margin-bottom: 0.95rem;
}

.section-subtitle {
    max-width: 760px;
    margin: 0 auto 2.4rem;
    color: var(--text-secondary);
    text-align: center;
    font-size: 1.05rem;
    text-wrap: balance;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 120;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(145, 170, 220, 0.28);
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.94), rgba(248, 251, 255, 0.78));
    backdrop-filter: saturate(165%) blur(12px);
}

html[data-theme="dark"] .header {
    border-bottom-color: rgba(71, 107, 162, 0.48);
    background: linear-gradient(180deg, rgba(8, 18, 39, 0.94), rgba(8, 18, 39, 0.8));
}

.nav-container {
    width: min(var(--max-width), 100% - 48px);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--heading-font);
    font-size: 1.03rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 0.58rem 0.94rem;
    border: 1px solid rgba(136, 163, 216, 0.32);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 7px 18px rgba(14, 39, 90, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

html[data-theme="dark"] .logo {
    background: rgba(13, 25, 49, 0.88);
    border-color: rgba(61, 94, 146, 0.72);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
}

.logo:hover {
    transform: translateY(-1px);
    border-color: rgba(11, 116, 255, 0.58);
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem;
    border-radius: 999px;
    border: 1px solid rgba(136, 163, 216, 0.32);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 24px rgba(14, 39, 90, 0.08);
}

html[data-theme="dark"] .nav-menu {
    background: rgba(13, 25, 49, 0.88);
    border-color: rgba(61, 94, 146, 0.72);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34);
}

.nav-menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.89rem;
    font-weight: 700;
    padding: 0.52rem 0.92rem;
    border-radius: 999px;
    transition: color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(11, 116, 255, 0.19), rgba(0, 187, 216, 0.2));
}

.nav-menu a:hover {
    transform: translateY(-1px);
}

.theme-toggle {
    border: 1px solid rgba(136, 163, 216, 0.34);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--text-secondary);
    box-shadow: 0 10px 22px rgba(14, 39, 90, 0.09);
    padding: 0.5rem 0.76rem;
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    cursor: pointer;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

html[data-theme="dark"] .theme-toggle {
    background: rgba(13, 25, 49, 0.9);
    border-color: rgba(61, 94, 146, 0.74);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.36);
}

.theme-toggle:hover {
    transform: translateY(-1px);
    color: var(--text-primary);
    border-color: rgba(11, 116, 255, 0.6);
}

.theme-toggle:focus-visible,
a:focus-visible,
button:focus-visible {
    outline: 2px solid rgba(11, 116, 255, 0.58);
    outline-offset: 3px;
}

.theme-toggle-icon {
    font-size: 0.94rem;
}

/* Buttons */
.btn,
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.94rem;
    text-decoration: none;
    padding: 0.9rem 1.55rem;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: 0 14px 28px rgba(11, 116, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 34px rgba(11, 116, 255, 0.36);
    color: #fff;
}

.btn-secondary,
.btn {
    color: var(--primary-color);
    border-color: rgba(11, 116, 255, 0.38);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 20px rgba(11, 42, 98, 0.09);
}

html[data-theme="dark"] .btn-secondary,
html[data-theme="dark"] .btn {
    background: rgba(16, 31, 58, 0.9);
}

.btn-secondary:hover,
.btn:hover {
    transform: translateY(-2px);
    border-color: rgba(11, 116, 255, 0.66);
}

/* Page hero for secondary pages */
.page-hero {
    padding: 6rem 0 2rem;
}

.page-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(136, 163, 216, 0.34);
    border-radius: 999px;
    padding: 0.48rem 0.86rem;
    margin-bottom: 1rem;
}

.page-hero .container {
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    margin-bottom: 1rem;
}

.page-lead {
    max-width: 760px;
    margin-inline: auto;
    color: var(--text-secondary);
    font-size: 1.08rem;
    text-wrap: balance;
}

/* Home hero */
.hero {
    padding: 7rem 0 4.7rem;
    overflow: clip;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.16fr 0.84fr;
    align-items: center;
    gap: 2rem;
}

.hero-copy h1 {
    font-size: clamp(2.2rem, 4.5vw, 4.15rem);
    line-height: 1.04;
    margin-bottom: 1.18rem;
    text-wrap: balance;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(136, 163, 216, 0.34);
    background: rgba(255, 255, 255, 0.75);
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 700;
}

.hero-subtitle {
    max-width: 660px;
    color: var(--text-secondary);
    font-size: clamp(1.03rem, 2.2vw, 1.25rem);
    margin-bottom: 2rem;
    text-wrap: pretty;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
}

.hero-link {
    display: inline-block;
    margin-top: 1.05rem;
    text-decoration: none;
    font-weight: 700;
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
    margin-top: 1.9rem;
}

.hero-fact {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--text-secondary);
    border-radius: 999px;
    border: 1px solid rgba(136, 163, 216, 0.3);
    background: rgba(255, 255, 255, 0.75);
    padding: 0.45rem 0.78rem;
}

.hero-preview {
    position: relative;
    display: grid;
    gap: 0.9rem;
}

.preview-card {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(136, 163, 216, 0.34);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(233, 244, 255, 0.86));
    box-shadow: var(--shadow-md);
    padding: 1.55rem;
    position: relative;
    overflow: hidden;
}

.preview-card::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    top: -90px;
    right: -80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(11, 116, 255, 0.24), transparent 70%);
}

html[data-theme="dark"] .preview-card {
    background: linear-gradient(160deg, rgba(15, 31, 59, 0.9), rgba(14, 26, 49, 0.82));
    border-color: rgba(60, 94, 150, 0.7);
}

.preview-label {
    font-size: 0.78rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.preview-list {
    list-style: none;
    display: grid;
    gap: 0.68rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.preview-list li {
    position: relative;
    padding-left: 1.1rem;
}

.preview-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--primary-color));
}

.preview-meta {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.preview-chip {
    display: inline-flex;
    width: fit-content;
    padding: 0.52rem 0.82rem;
    border-radius: 999px;
    border: 1px solid rgba(136, 163, 216, 0.36);
    background: rgba(255, 255, 255, 0.76);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Stats */
.stats {
    padding-top: 0;
}

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

.stat-item {
    border-radius: var(--radius-md);
    border: 1px solid rgba(136, 163, 216, 0.3);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(234, 243, 255, 0.86));
    box-shadow: var(--shadow-sm);
    padding: 1.25rem 1.1rem;
    text-align: center;
}

html[data-theme="dark"] .stat-item {
    border-color: rgba(61, 94, 150, 0.72);
    background: linear-gradient(160deg, rgba(15, 31, 59, 0.9), rgba(14, 26, 49, 0.82));
}

.stat-value {
    font-family: var(--heading-font);
    font-size: clamp(1.2rem, 2.4vw, 2rem);
    color: var(--primary-color);
    margin-bottom: 0.35rem;
}

.stat-value.animated {
    animation: stat-pop 0.55s ease;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 700;
}

/* Shared card sections */
.features,
.screenshots,
.shortcuts,
.privacy-section,
.support-section,
.legal-links,
.footer,
.docs-container,
.privacy-page,
.support-page {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.3));
}

html[data-theme="dark"] .features,
html[data-theme="dark"] .screenshots,
html[data-theme="dark"] .shortcuts,
html[data-theme="dark"] .privacy-section,
html[data-theme="dark"] .support-section,
html[data-theme="dark"] .legal-links,
html[data-theme="dark"] .footer,
html[data-theme="dark"] .docs-container,
html[data-theme="dark"] .privacy-page,
html[data-theme="dark"] .support-page {
    background: linear-gradient(180deg, rgba(11, 24, 46, 0.6), rgba(8, 18, 34, 0.35));
}

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

.feature-item,
.mode-card,
.shortcut-item,
.legal-card,
.system-requirements,
.setup-steps,
.support-contact-panel,
.support-closing-card,
.support-faq-item,
.highlight-box,
.no-data-box,
.contact-box,
.privacy-highlight,
.faq-item,
.api-endpoint,
.toc,
.info-box {
    border-radius: var(--radius-md);
    border: 1px solid rgba(136, 163, 216, 0.3);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(234, 243, 255, 0.86));
    box-shadow: var(--shadow-sm);
}

html[data-theme="dark"] .feature-item,
html[data-theme="dark"] .mode-card,
html[data-theme="dark"] .shortcut-item,
html[data-theme="dark"] .legal-card,
html[data-theme="dark"] .system-requirements,
html[data-theme="dark"] .setup-steps,
html[data-theme="dark"] .support-contact-panel,
html[data-theme="dark"] .support-closing-card,
html[data-theme="dark"] .support-faq-item,
html[data-theme="dark"] .highlight-box,
html[data-theme="dark"] .no-data-box,
html[data-theme="dark"] .contact-box,
html[data-theme="dark"] .privacy-highlight,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .api-endpoint,
html[data-theme="dark"] .toc,
html[data-theme="dark"] .info-box {
    border-color: rgba(61, 94, 150, 0.72);
    background: linear-gradient(160deg, rgba(15, 31, 59, 0.9), rgba(14, 26, 49, 0.82));
}

.feature-item,
.mode-card,
.shortcut-item,
.legal-card,
.support-faq-item,
.setup-step,
.info-box,
.api-endpoint {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.feature-item:hover,
.mode-card:hover,
.shortcut-item:hover,
.legal-card:hover,
.support-faq-item:hover,
.setup-step:hover,
.info-box:hover,
.api-endpoint:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(11, 116, 255, 0.45);
}

.feature-item {
    padding: 1.3rem;
}

.feature-icon {
    display: inline-flex;
    width: 2.2rem;
    height: 2.2rem;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, rgba(11, 116, 255, 0.18), rgba(0, 187, 216, 0.22));
}

.feature-item h3 {
    margin-bottom: 0.55rem;
    font-size: 1.15rem;
}

.feature-item p {
    color: var(--text-secondary);
}

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

.mode-card {
    padding: 1.35rem;
}

.mode-card.advanced {
    border-color: rgba(18, 191, 122, 0.48);
}

.mode-header {
    display: flex;
    align-items: center;
    gap: 0.68rem;
    margin-bottom: 0.95rem;
}

.mode-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(11, 116, 255, 0.18), rgba(0, 187, 216, 0.2));
}

.mode-title {
    font-size: 1.2rem;
    font-family: var(--heading-font);
}

.mode-card ul {
    list-style: none;
    display: grid;
    gap: 0.62rem;
}

.mode-card li {
    color: var(--text-secondary);
    position: relative;
    padding-left: 1rem;
}

.mode-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.58em;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 999px;
    background: var(--accent-cyan);
}

/* Screenshots */
.gallery-shell {
    max-width: 980px;
    margin-inline: auto;
    display: grid;
    gap: 0.72rem;
}

.gallery-stage {
    position: relative;
    min-height: clamp(360px, 64vh, 700px);
    border-radius: 30px;
    border: 1px solid rgba(136, 163, 216, 0.34);
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.93), rgba(228, 241, 255, 0.86));
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 4.2rem 1.2rem;
    overflow: hidden;
}

.gallery-stage::before {
    content: "";
    position: absolute;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    top: -350px;
    right: -260px;
    background: radial-gradient(circle, rgba(11, 116, 255, 0.22), transparent 68%);
    pointer-events: none;
}

html[data-theme="dark"] .gallery-stage {
    border-color: rgba(61, 94, 150, 0.72);
    background: linear-gradient(170deg, rgba(14, 28, 55, 0.92), rgba(10, 22, 44, 0.84));
}

.gallery-main-image {
    position: relative;
    z-index: 1;
    height: min(62vh, 640px);
    width: auto;
    max-width: 100%;
    border-radius: 24px;
    border: 1px solid rgba(151, 180, 232, 0.38);
    box-shadow: 0 24px 46px rgba(9, 28, 70, 0.25);
    cursor: zoom-in;
    transition: transform 0.24s ease;
}

html[data-theme="dark"] .gallery-main-image {
    border-color: rgba(91, 130, 193, 0.72);
}

.gallery-main-image:hover {
    transform: translateY(-2px);
}

.gallery-arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    border: 1px solid rgba(166, 191, 236, 0.4);
    background: rgba(249, 252, 255, 0.84);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

html[data-theme="dark"] .gallery-arrow {
    border-color: rgba(91, 130, 193, 0.66);
    background: rgba(11, 24, 48, 0.88);
    color: var(--text-primary);
}

.gallery-arrow:hover {
    transform: translateY(-50%) scale(1.04);
    border-color: rgba(11, 116, 255, 0.58);
}

.gallery-arrow-prev {
    left: 0.85rem;
}

.gallery-arrow-next {
    right: 0.85rem;
}

.gallery-overlay {
    position: absolute;
    z-index: 2;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    border-radius: 14px;
    border: 1px solid rgba(166, 191, 236, 0.38);
    background: rgba(245, 250, 255, 0.78);
    backdrop-filter: blur(6px);
    padding: 0.55rem 0.72rem;
}

html[data-theme="dark"] .gallery-overlay {
    border-color: rgba(91, 130, 193, 0.62);
    background: rgba(11, 24, 48, 0.76);
}

.gallery-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
}

.gallery-counter {
    font-family: var(--mono-font);
    color: var(--text-secondary);
    font-size: 0.78rem;
    white-space: nowrap;
}

.gallery-progress {
    height: 5px;
    border-radius: 999px;
    background: rgba(123, 151, 205, 0.25);
    overflow: hidden;
}

.gallery-progress-value {
    display: block;
    width: 12.5%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-cyan));
    transition: width 0.25s ease;
}

.gallery-thumbs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(84px, 96px);
    gap: 0.64rem;
    overflow-x: auto;
    padding: 0.2rem 0.08rem 0.3rem;
}

.gallery-thumb {
    border: 1px solid rgba(136, 163, 216, 0.36);
    background: rgba(255, 255, 255, 0.78);
    border-radius: 14px;
    padding: 0.22rem;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    -webkit-appearance: none;
    appearance: none;
}

html[data-theme="dark"] .gallery-thumb {
    border-color: rgba(61, 94, 150, 0.72);
    background: rgba(12, 22, 44, 0.8);
}

.gallery-thumb img {
    display: block;
    width: 100%;
    height: 122px;
    border-radius: 10px;
    object-fit: cover;
}

.gallery-thumb:hover {
    transform: translateY(-1px);
    border-color: rgba(11, 116, 255, 0.54);
}

.gallery-thumb.active {
    border-color: rgba(11, 116, 255, 0.72);
    box-shadow: 0 0 0 2px rgba(11, 116, 255, 0.18);
}

/* Shortcuts panel */
.shortcuts-content {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.2rem;
    align-items: start;
}

.shortcuts-subtitle {
    text-align: left;
    margin-inline: 0;
}

.shortcuts-doc-link {
    font-weight: 700;
    text-decoration: none;
}

.shortcuts-list {
    display: grid;
    gap: 0.9rem;
}

.shortcut-item {
    display: flex;
    align-items: flex-start;
    gap: 0.82rem;
    padding: 1rem;
}

.shortcut-icon {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(11, 116, 255, 0.2), rgba(0, 187, 216, 0.24));
}

.shortcut-info h4 {
    font-size: 1.03rem;
    margin-bottom: 0.26rem;
}

.shortcut-info p {
    color: var(--text-secondary);
}

.code-block {
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #0d1933, #081026);
    border: 1px solid rgba(84, 125, 196, 0.58);
    box-shadow: 0 20px 40px rgba(5, 12, 28, 0.4);
    padding: 1rem;
    overflow-x: auto;
}

.code-block code {
    display: block;
    white-space: pre;
    font-family: var(--mono-font);
    font-size: 0.82rem;
    line-height: 1.65;
    color: #dce8ff;
}

.code-block .comment { color: #7dc98e; }
.code-block .url { color: #61b8ff; }
.code-block .keyword { color: #82aaff; }
.code-block .string { color: #f5ae72; }
.code-block .number { color: #b7d794; }
.code-block .property { color: #8fd5ff; }

/* Privacy highlight */
.privacy-highlight {
    padding: 2rem;
    text-align: center;
}

.privacy-highlight p {
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0.65rem auto 1.4rem;
}

.privacy-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.privacy-feature {
    border-radius: 14px;
    border: 1px solid rgba(136, 163, 216, 0.28);
    background: rgba(255, 255, 255, 0.7);
    padding: 0.92rem 0.72rem;
}

html[data-theme="dark"] .privacy-feature {
    border-color: rgba(61, 94, 150, 0.7);
    background: rgba(12, 22, 44, 0.72);
}

.privacy-feature-icon {
    margin-bottom: 0.32rem;
}

.privacy-feature-text {
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--text-secondary);
}

/* FAQ accordion */
.faq-list {
    max-width: 920px;
    margin-inline: auto;
    display: grid;
    gap: 0.72rem;
}

.faq-item {
    padding: 0.7rem 0.95rem;
}

.faq-question {
    position: relative;
    font-family: var(--heading-font);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.6rem 2rem 0.6rem 0.1rem;
    cursor: pointer;
}

.faq-question::before,
.faq-question::after {
    content: "";
    position: absolute;
    right: 0.35rem;
    top: 50%;
    width: 0.85rem;
    height: 2px;
    border-radius: 999px;
    background: var(--text-tertiary);
    transition: transform 0.2s ease;
}

.faq-question::after {
    transform: rotate(90deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    color: var(--text-secondary);
    padding: 0 0.1rem;
    transition: max-height 0.25s ease, padding 0.25s ease;
}

.faq-item.active .faq-question {
    color: var(--primary-color);
}

.faq-item.active .faq-question::after {
    transform: rotate(0);
}

.faq-item.active .faq-answer {
    max-height: 260px;
    padding: 0.2rem 0.1rem 0.7rem;
}

/* CTA + support + legal */
.cta-section .container,
.support-section .container {
    text-align: center;
}

.cta-section p,
.support-note {
    color: var(--text-secondary);
    max-width: 760px;
    margin: 0 auto 1.5rem;
}

.store-cta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.support-email {
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
}

.legal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.legal-card {
    text-decoration: none;
    color: inherit;
    padding: 1.15rem;
}

.legal-card h3 {
    margin-bottom: 0.4rem;
    font-size: 1.07rem;
}

.legal-card p {
    color: var(--text-secondary);
}

.footer {
    border-top: 1px solid rgba(136, 163, 216, 0.24);
    padding: 2.1rem 0;
}

html[data-theme="dark"] .footer {
    border-top-color: rgba(61, 94, 150, 0.54);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
}

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

.footer-info {
    color: var(--text-tertiary);
    text-align: right;
    font-size: 0.92rem;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(4, 10, 20, 0.86);
    z-index: 210;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: min(92vw, 1100px);
    max-height: 82vh;
    border-radius: 18px;
    border: 1px solid rgba(180, 203, 255, 0.3);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    padding: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: 1px solid rgba(202, 220, 255, 0.36);
    background: rgba(8, 18, 38, 0.76);
    color: #e6f0ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.45rem;
    font-family: inherit;
    line-height: 1;
    -webkit-appearance: none;
    appearance: none;
    user-select: none;
}

.lightbox-close {
    top: 1.4rem;
    right: 1.4rem;
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox-counter {
    position: absolute;
    bottom: 1.15rem;
    left: 50%;
    transform: translateX(-50%);
    color: #dbe8ff;
    font-family: var(--mono-font);
    font-size: 0.82rem;
    border: 1px solid rgba(202, 220, 255, 0.32);
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    background: rgba(8, 18, 38, 0.7);
}

/* Shortcuts docs page */
.docs-page {
    padding-bottom: 5rem;
}

.docs-container {
    width: min(980px, 100% - 48px);
    margin-inline: auto;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(136, 163, 216, 0.3);
    box-shadow: var(--shadow-md);
    padding: 2rem;
}

.docs-container .features-grid {
    margin-top: 1rem;
}

.docs-section {
    margin-top: 2.2rem;
}

.docs-section h2 {
    text-align: left;
    margin-bottom: 0.8rem;
}

.docs-section h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1.2rem;
}

.docs-section p {
    color: var(--text-secondary);
}

.docs-section ul {
    margin: 0.6rem 0 0;
    padding-left: 1.1rem;
    color: var(--text-secondary);
}

.docs-section li {
    margin-bottom: 0.45rem;
}

.toc {
    padding: 1.15rem 1.2rem;
}

.toc h4 {
    margin-bottom: 0.6rem;
}

.toc ul {
    list-style: none;
    display: grid;
    gap: 0.45rem;
}

.toc a {
    text-decoration: none;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.toc a::before {
    content: "#";
    color: var(--text-tertiary);
}

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

.api-endpoint {
    padding: 1rem;
    margin-top: 0.9rem;
}

.api-endpoint h4 {
    margin-bottom: 0.4rem;
    font-family: var(--mono-font);
    font-size: 0.94rem;
}

.api-endpoint p {
    margin-bottom: 0.7rem;
}

.method-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0.22rem 0.42rem;
    margin-right: 0.45rem;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

table.params {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.7rem;
    border-radius: 12px;
    overflow: hidden;
}

table.params th,
table.params td {
    text-align: left;
    padding: 0.72rem 0.75rem;
    border-bottom: 1px solid var(--line-color);
    font-size: 0.86rem;
}

table.params th {
    font-family: var(--heading-font);
    background: rgba(11, 116, 255, 0.12);
}

html[data-theme="dark"] table.params th {
    background: rgba(32, 58, 102, 0.72);
}

table.params td {
    color: var(--text-secondary);
}

table.params code,
.inline-code {
    font-family: var(--mono-font);
    background: rgba(11, 116, 255, 0.12);
    color: var(--primary-color);
    border-radius: 7px;
    padding: 0.14rem 0.34rem;
    font-size: 0.8rem;
}

.info-box {
    padding: 0.95rem 1rem;
    margin-top: 0.8rem;
}

.info-box h5 {
    font-size: 0.92rem;
    margin-bottom: 0.3rem;
}

.info-box p {
    margin: 0;
}

.info-box.warning {
    border-color: rgba(255, 141, 58, 0.55);
    background: linear-gradient(160deg, rgba(255, 244, 230, 0.9), rgba(255, 238, 216, 0.82));
}

html[data-theme="dark"] .info-box.warning {
    background: linear-gradient(160deg, rgba(62, 43, 21, 0.72), rgba(52, 37, 17, 0.68));
}

.error-table td:first-child {
    font-family: var(--mono-font);
    color: var(--error-color);
}

.docs-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 0.72rem;
    flex-wrap: wrap;
}

.docs-section .faq-item {
    padding: 0.9rem 0.95rem;
    margin-top: 0.65rem;
}

.docs-section .faq-item h3 {
    margin: 0 0 0.4rem;
    font-size: 1.04rem;
}

.docs-section .faq-item p {
    margin: 0;
}

/* Privacy page */
.privacy-page .container {
    width: min(900px, 100% - 48px);
}

.privacy-page h2 {
    text-align: left;
    margin-top: 1.55rem;
    margin-bottom: 0.55rem;
    font-size: clamp(1.32rem, 2.4vw, 1.85rem);
}

.privacy-page p,
.privacy-page ul {
    color: var(--text-secondary);
}

.privacy-page ul {
    padding-left: 1.1rem;
}

.privacy-page li {
    margin-bottom: 0.45rem;
}

.privacy-updated {
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

.highlight-box,
.no-data-box,
.contact-box {
    padding: 1rem 1.1rem;
    margin-top: 0.85rem;
}

.no-data-box {
    border-color: rgba(18, 191, 122, 0.44);
}

.contact-box {
    border-color: rgba(11, 116, 255, 0.44);
}

.privacy-link {
    word-break: break-word;
}

.privacy-divider {
    margin: 2.1rem 0 1rem;
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-color), transparent);
}

.privacy-thanks {
    color: var(--text-secondary);
    font-style: italic;
}

/* Support page */
.support-page .container {
    width: min(960px, 100% - 48px);
}

.support-intro,
.support-android-note,
.support-getting-started-intro,
.support-shortcuts-intro,
.support-help-intro,
.support-response-time {
    color: var(--text-secondary);
}

.support-intro {
    margin-bottom: 0.2rem;
}

.support-android-note {
    margin-bottom: 1.2rem;
}

.support-contact-panel {
    padding: 1.2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.support-contact-btn {
    margin-bottom: 0.62rem;
}

.support-page h2 {
    text-align: left;
    margin-top: 1.7rem;
    margin-bottom: 0.72rem;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.setup-steps {
    padding: 1rem;
    display: grid;
    gap: 0.72rem;
}

.setup-step {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    border-radius: 14px;
    border: 1px solid rgba(136, 163, 216, 0.3);
    background: rgba(255, 255, 255, 0.68);
    padding: 0.75rem 0.8rem;
}

html[data-theme="dark"] .setup-step {
    border-color: rgba(61, 94, 150, 0.7);
    background: rgba(12, 22, 44, 0.72);
}

.setup-step-number {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--heading-font);
    font-size: 0.96rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.setup-step-content h3 {
    margin-bottom: 0.22rem;
    font-size: 1.06rem;
}

.setup-step-content p {
    color: var(--text-secondary);
}

.system-requirements {
    padding: 1rem 1.1rem;
}

.system-requirements ul {
    padding-left: 1.1rem;
}

.system-requirements li {
    margin-bottom: 0.45rem;
    color: var(--text-secondary);
}

.support-faq-list {
    display: grid;
    gap: 0.7rem;
}

.support-faq-item {
    padding: 0.95rem 1rem;
}

.support-faq-item h3 {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.support-faq-item p {
    color: var(--text-secondary);
}

.section-top-gap {
    margin-top: 2rem;
}

.support-cta {
    margin-top: 1rem;
    text-align: center;
}

.support-closing-card {
    margin-top: 1.5rem;
    padding: 1rem 1.1rem;
    text-align: center;
}

.support-closing-card p {
    margin-top: 0.35rem;
    color: var(--text-secondary);
}

/* Animations */
@keyframes stat-pop {
    0% {
        transform: scale(0.9);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 1.35rem;
    }

    .shortcuts-content {
        grid-template-columns: 1fr;
    }

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

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

    .gallery-stage {
        padding-inline: 3.2rem;
    }
}

@media (max-width: 768px) {
    main > section {
        padding: 4.2rem 0;
    }

    .container,
    .nav-container,
    .docs-container,
    .privacy-page .container,
    .support-page .container {
        width: min(100% - 32px, var(--max-width));
    }

    .header {
        padding: 0.7rem 0;
    }

    .nav-container {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-menu {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        border-radius: 20px;
    }

    .theme-toggle {
        align-self: flex-end;
    }

    .hero {
        padding-top: 6.2rem;
    }

    .hero-copy h1 {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

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

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

    .gallery-stage {
        min-height: 520px;
        padding-inline: 2.8rem;
    }

    .gallery-main-image {
        height: min(56vh, 540px);
    }

    .gallery-thumbs {
        grid-auto-columns: minmax(78px, 88px);
    }

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

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-info {
        text-align: left;
    }

    .docs-container {
        padding: 1.2rem;
        margin-top: 0;
    }

    table.params {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .docs-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .lightbox {
        padding: 1rem;
    }

    .lightbox-prev {
        left: 0.4rem;
    }

    .lightbox-next {
        right: 0.4rem;
    }
}

@media (max-width: 480px) {
    .container,
    .nav-container,
    .docs-container,
    .privacy-page .container,
    .support-page .container {
        width: min(100% - 24px, var(--max-width));
    }

    .logo {
        justify-content: center;
        width: 100%;
    }

    .nav-menu {
        gap: 0.2rem;
        padding: 0.24rem;
    }

    .nav-menu a {
        font-size: 0.82rem;
        padding: 0.46rem 0.62rem;
    }

    .theme-toggle {
        width: 100%;
        justify-content: center;
    }

    .hero-cta,
    .store-cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .btn,
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .hero-facts {
        gap: 0.5rem;
    }

    .hero-fact {
        font-size: 0.72rem;
    }

    .stats-grid,
    .privacy-features {
        grid-template-columns: 1fr;
    }

    .gallery-stage {
        min-height: 420px;
        padding: 0.8rem 2.45rem 0.95rem;
        border-radius: 22px;
    }

    .gallery-main-image {
        height: min(52vh, 460px);
        border-radius: 16px;
    }

    .gallery-arrow {
        width: 2.2rem;
        height: 2.2rem;
        font-size: 1.2rem;
    }

    .gallery-arrow-prev {
        left: 0.45rem;
    }

    .gallery-arrow-next {
        right: 0.45rem;
    }

    .gallery-overlay {
        left: 0.5rem;
        right: 0.5rem;
        bottom: 0.5rem;
        padding: 0.45rem 0.55rem;
    }

    .gallery-title {
        font-size: 0.82rem;
    }

    .gallery-counter {
        font-size: 0.72rem;
    }

    .gallery-thumbs {
        grid-auto-columns: minmax(68px, 76px);
    }

    .gallery-thumb img {
        height: 102px;
    }

    .setup-step {
        flex-direction: column;
    }

    .setup-step-number {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.82rem;
    }

    .code-block {
        padding: 0.8rem;
    }

    .code-block code {
        font-size: 0.75rem;
    }

    .lightbox-close,
    .lightbox-nav {
        width: 2.2rem;
        height: 2.2rem;
        font-size: 1.2rem;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
