
:root {
    color-scheme: light dark;
    --accent: #6366f1;
    --accent-rgb: 99, 102, 241;
    --page-bg: #fbfaf8;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-solid: #ffffff;
    --surface-muted: #f3f1ed;
    --text: #171717;
    --muted: #64615d;
    --border: rgba(23, 23, 23, 0.10);
    --nav-bg: rgba(251, 250, 248, 0.84);
    --footer-bg: #161616;
    --footer-text: #f7f7f5;
    --shadow: 0 20px 60px rgba(35, 31, 27, 0.10);
    --radius-lg: 30px;
    --radius-md: 20px;
    --content-width: 1180px;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --page-bg: #11110f;
    --surface: rgba(31, 30, 27, 0.84);
    --surface-solid: #1d1c19;
    --surface-muted: #26241f;
    --text: #f6f4ef;
    --muted: #b8b3aa;
    --border: rgba(255, 255, 255, 0.12);
    --nav-bg: rgba(17, 17, 15, 0.84);
    --footer-bg: #090909;
    --footer-text: #f7f7f5;
    --shadow: 0 22px 65px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    min-width: 320px;
    background: var(--page-bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 1000;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--surface-solid);
    color: var(--text);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    background: var(--nav-bg);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.header-inner {
    width: min(calc(100% - 36px), var(--content-width));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand-cluster {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
}

.product-brand,
.parussoft-link {
    text-decoration: none;
}

.product-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.product-brand img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 8px 22px rgba(var(--accent-rgb), 0.22);
}

.parussoft-link {
    padding-left: 14px;
    border-left: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 650;
}

.section-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-left: auto;
}

.section-nav a {
    padding: 9px 11px;
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 650;
}

.section-nav a:hover,
.section-nav a:focus-visible {
    background: var(--surface-muted);
    color: var(--text);
    outline: none;
}

.utility-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.language-link,
.theme-menu-toggle,
.mobile-menu-toggle {
    min-height: 40px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
}

.language-link {
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    font-size: 0.82rem;
    font-weight: 750;
}

.theme-control {
    position: relative;
}

.theme-menu-toggle {
    padding: 0 13px;
    font-size: 0.82rem;
    font-weight: 700;
}

.theme-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 150px;
    padding: 7px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-solid);
    box-shadow: var(--shadow);
}

.theme-menu[hidden] {
    display: none;
}

.theme-option {
    width: 100%;
    padding: 9px 11px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.theme-option:hover,
.theme-option:focus-visible,
.theme-option[aria-checked="true"] {
    background: var(--surface-muted);
    outline: none;
}

.theme-option[aria-checked="true"] {
    color: var(--accent);
    font-weight: 750;
}

.mobile-menu-toggle {
    display: none;
    padding: 0 14px;
    font-size: 0.86rem;
    font-weight: 750;
}

.section {
    padding: 104px 22px;
}

.section-inner {
    width: min(100%, var(--content-width));
    margin: 0 auto;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 76px);
    display: grid;
    align-items: center;
    padding: 92px 22px;
    background:
        radial-gradient(circle at 10% 18%, rgba(var(--accent-rgb), 0.19), transparent 31rem),
        radial-gradient(circle at 88% 26%, rgba(var(--accent-rgb), 0.11), transparent 25rem),
        linear-gradient(145deg, var(--page-bg), var(--surface-muted));
}

.hero::after {
    content: "";
    position: absolute;
    right: -8rem;
    bottom: -14rem;
    width: 34rem;
    height: 34rem;
    border: 1px solid rgba(var(--accent-rgb), 0.24);
    border-radius: 50%;
    box-shadow:
        0 0 0 5rem rgba(var(--accent-rgb), 0.04),
        0 0 0 10rem rgba(var(--accent-rgb), 0.025);
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(100%, var(--content-width));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: 72px;
    align-items: center;
}

.eyebrow,
.section-kicker {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 800px;
    margin: 0;
    font-size: clamp(3.2rem, 7vw, 6.8rem);
    line-height: 0.96;
    letter-spacing: -0.065em;
}

.hero-tagline {
    max-width: 760px;
    margin: 26px 0 0;
    font-size: clamp(1.35rem, 2.4vw, 2.1rem);
    line-height: 1.28;
    letter-spacing: -0.025em;
}

.hero-summary {
    max-width: 720px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 1.04rem;
}

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

.platform-list li {
    padding: 6px 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.hero-actions,
.download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    font-weight: 750;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    outline: none;
}

.button-primary {
    border-color: transparent;
    background: var(--accent);
    color: white;
    box-shadow: 0 14px 32px rgba(var(--accent-rgb), 0.26);
}

.hero-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 390px;
}

.hero-icon-shell {
    position: relative;
    width: min(72vw, 310px);
    aspect-ratio: 1;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.46);
    border-radius: 38%;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.56), rgba(var(--accent-rgb), 0.12));
    box-shadow: 0 40px 90px rgba(var(--accent-rgb), 0.24);
    transform: rotate(3deg);
}

html[data-theme="dark"] .hero-icon-shell {
    border-color: rgba(255, 255, 255, 0.13);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(var(--accent-rgb), 0.15));
}

.hero-icon-shell img {
    width: 100%;
    height: 100%;
    border-radius: 28%;
    object-fit: cover;
    transform: rotate(-3deg);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 48px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(2.35rem, 5vw, 4.4rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.section-heading p {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.overview {
    background: var(--surface-solid);
}

.overview-card {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 60px;
    align-items: start;
    padding: clamp(30px, 5vw, 64px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(var(--accent-rgb), 0.08), transparent 44%),
        var(--surface);
    box-shadow: var(--shadow);
}

.overview-card h2 {
    margin: 0;
    font-size: clamp(2.1rem, 4vw, 3.7rem);
    line-height: 1.06;
    letter-spacing: -0.045em;
}

.overview-copy {
    margin: 0;
    color: var(--muted);
    font-size: clamp(1.06rem, 2vw, 1.3rem);
}

.features {
    background:
        linear-gradient(180deg, var(--page-bg), var(--surface-muted));
}

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

.feature-card {
    min-height: 250px;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: 0 14px 34px rgba(35, 31, 27, 0.055);
}

.feature-number {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    background: rgba(var(--accent-rgb), 0.12);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 850;
}

.feature-card h3 {
    margin: 42px 0 10px;
    font-size: 1.24rem;
    line-height: 1.2;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.screenshots {
    overflow: hidden;
    background: var(--surface-solid);
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.screenshot-card {
    margin: 0;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-muted);
}

.screenshot-card img {
    display: block;
    width: 100%;
    height: 360px;
    border-radius: 14px;
    background: var(--surface-solid);
    object-fit: contain;
}

.screenshot-card figcaption {
    padding: 14px 3px 2px;
    color: var(--muted);
    font-size: 0.88rem;
}

.download {
    background:
        radial-gradient(circle at 82% 30%, rgba(var(--accent-rgb), 0.2), transparent 24rem),
        var(--surface-muted);
}

.download-panel {
    padding: clamp(36px, 7vw, 86px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface-solid);
    box-shadow: var(--shadow);
    text-align: center;
}

.download-panel h2 {
    margin: 0;
    font-size: clamp(2.6rem, 6vw, 5.5rem);
    line-height: 1;
    letter-spacing: -0.06em;
}

.download-panel p {
    max-width: 650px;
    margin: 20px auto 0;
    color: var(--muted);
}

.download-actions {
    justify-content: center;
}

.store-status {
    display: inline-block;
    margin-top: 26px;
    padding: 11px 17px;
    border-radius: 999px;
    background: rgba(var(--accent-rgb), 0.12);
    color: var(--accent);
    font-weight: 750;
}

.about {
    background: var(--surface-solid);
}

.about-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 34px;
    align-items: center;
    padding: clamp(30px, 5vw, 58px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.developer-mark {
    display: grid;
    width: 112px;
    height: 112px;
    place-items: center;
    border-radius: 34px;
    background: linear-gradient(145deg, var(--accent), rgba(var(--accent-rgb), 0.66));
    color: white;
    font-size: 2rem;
    font-weight: 850;
    box-shadow: 0 20px 42px rgba(var(--accent-rgb), 0.24);
}

.about-card h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    letter-spacing: -0.045em;
}

.about-card p {
    max-width: 820px;
    margin: 14px 0 0;
    color: var(--muted);
}

.text-link {
    display: inline-block;
    margin-top: 18px;
    color: var(--accent);
    font-weight: 750;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 4px;
}

.site-footer {
    padding: 58px 22px;
    background: var(--footer-bg);
    color: var(--footer-text);
}

.footer-inner {
    width: min(100%, var(--content-width));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: end;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 750;
}

.footer-brand img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}

.footer-note {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.88rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px 18px;
    max-width: 650px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: white;
    text-decoration: underline;
    text-underline-offset: 4px;
    outline: none;
}

.support-main {
    width: min(calc(100% - 36px), 940px);
    min-height: 70vh;
    margin: 0 auto;
    padding: 72px 0 110px;
}

.support-page-heading {
    margin-bottom: 30px;
}

.support-page-heading h1 {
    margin: 0;
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.support-page-heading p {
    margin: 14px 0 0;
    color: var(--muted);
}

.prose {
    padding: clamp(25px, 5vw, 56px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface-solid);
    box-shadow: var(--shadow);
    overflow-wrap: anywhere;
}

.prose > :first-child {
    margin-top: 0;
}

.prose > :last-child {
    margin-bottom: 0;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
    line-height: 1.22;
    letter-spacing: -0.025em;
}

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

.prose h2 {
    margin-top: 2.6em;
    font-size: 1.7rem;
}

.prose h3 {
    margin-top: 2.1em;
    font-size: 1.28rem;
}

.prose p,
.prose li {
    color: var(--muted);
}

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

.prose a {
    color: var(--accent);
    text-underline-offset: 3px;
}

.prose img {
    height: auto;
    border-radius: 14px;
}

.prose pre {
    max-width: 100%;
    padding: 18px;
    border-radius: 14px;
    background: var(--surface-muted);
    overflow: auto;
}

.prose code {
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.9em;
}

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

.prose th,
.prose td {
    padding: 10px;
    border: 1px solid var(--border);
    text-align: left;
}

@media (max-width: 1040px) {
    .section-nav {
        position: fixed;
        top: 76px;
        left: 18px;
        right: 18px;
        display: none;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: 18px;
        background: var(--surface-solid);
        box-shadow: var(--shadow);
    }

    .section-nav.is-open {
        display: grid;
    }

    .section-nav a {
        padding: 11px 13px;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
    }

    .utility-controls {
        margin-left: auto;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .hero-visual {
        min-height: 270px;
    }

    .hero-icon-shell {
        width: min(62vw, 260px);
    }

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

@media (max-width: 720px) {
    body {
        font-size: 16px;
    }

    .header-inner {
        width: min(calc(100% - 24px), var(--content-width));
        min-height: 68px;
        gap: 10px;
    }

    .product-brand span {
        display: none;
    }

    .product-brand img {
        width: 36px;
        height: 36px;
    }

    .parussoft-link {
        padding-left: 10px;
        font-size: 0.78rem;
    }

    .section-nav {
        top: 68px;
        left: 12px;
        right: 12px;
    }

    .theme-menu-toggle,
    .language-link {
        padding: 0 10px;
    }

    .theme-menu-toggle {
        max-width: 76px;
        overflow: hidden;
        white-space: nowrap;
    }

    .mobile-menu-toggle {
        padding: 0 11px;
    }

    .hero {
        min-height: auto;
        padding: 74px 18px 82px;
    }

    .hero h1 {
        font-size: clamp(3rem, 17vw, 5.2rem);
    }

    .hero-actions,
    .download-actions {
        display: grid;
    }

    .button {
        width: 100%;
    }

    .section {
        padding: 76px 18px;
    }

    .overview-card,
    .about-card {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .feature-grid,
    .screenshot-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: 0;
    }

    .screenshot-card img {
        height: 300px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .support-main {
        width: min(calc(100% - 24px), 940px);
        padding-top: 52px;
    }
}

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

    *,
    *::before,
    *::after {
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
    }
}
