:root {
    color-scheme: dark;
    --surface: #16151c;
    --raised: #1f1d27;
    --text: #f4f1fb;
    --muted: #bdb8ca;
    --line: #3c3848;
    --accent: #d3c7ff;
    --accent-ink: #211739;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 20px; }
body {
    margin: 0;
    color: var(--text);
    background: var(--surface);
    font: 16px/1.65 Geist, Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
a:focus-visible, summary:focus-visible {
    outline: 2px solid var(--focus, var(--accent));
    outline-offset: 4px;
}
.shell {
    width: min(1160px, calc(100% - 96px));
    margin-inline: auto;
}
.skip-link {
    position: fixed;
    z-index: 2;
    top: 8px;
    left: 8px;
    padding: 8px 14px;
    background: var(--accent);
    color: var(--accent-ink);
    transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-row {
    display: flex;
    align-items: center;
    gap: 30px;
    min-height: 72px;
}
.brand {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    line-height: 1;
    font-weight: 750;
    letter-spacing: -.045em;
    white-space: nowrap;
}
.brand img { border-radius: 9px; }
.site-header nav, .site-footer nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 23px;
    color: var(--muted);
    font-size: 14px;
}
.site-header nav { margin-left: auto; }
.site-header nav a, .site-footer nav a, .text-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}
.site-header nav a:hover, .site-footer nav a:hover, .text-link:hover {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 4px;
}
.header-download {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding-inline: 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}
.header-download:hover { background: var(--raised); }

.hero {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    padding-block: 42px 44px;
}
.hero h1 {
    font-size: clamp(80px, 11.5vw, 156px);
    font-weight: 780;
    line-height: .94;
    letter-spacing: -.065em;
}
.hero-subtitle {
    margin-top: 18px;
    color: var(--accent);
    font-size: clamp(22px, 3.1vw, 40px);
    font-weight: 720;
    letter-spacing: -.025em;
    line-height: 1.2;
}
.hero-description {
    max-width: 25em;
    margin-top: 23px;
    color: var(--muted);
    font-size: clamp(16px, 1.45vw, 19px);
    line-height: 1.8;
}
.hero-install {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px 15px;
    margin-top: 30px;
    color: var(--muted);
    font-size: 13px;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 48px;
    padding: 9px 19px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    transition: background-color .15s ease;
}
.button:hover { background: #ece4ff; }
.arrow-down {
    position: relative;
    display: inline-block;
    width: 13px;
    height: 15px;
}
.arrow-down::before, .arrow-down::after {
    position: absolute;
    left: 50%;
    content: "";
}
.arrow-down::before {
    top: 1px;
    width: 1.5px;
    height: 11px;
    background: currentColor;
    transform: translateX(-50%);
}
.arrow-down::after {
    width: 7px;
    height: 7px;
    top: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateX(-50%) rotate(45deg);
}

.screenshot-stage {
    position: relative;
    isolation: isolate;
    display: grid;
    justify-items: center;
    width: 100%;
    padding: 11px 0;
    border-radius: 32px;
}
.screenshot-stage::before {
    position: absolute;
    z-index: -1;
    inset: 11% 6% 8% 10%;
    border-radius: 48% 44% 27% 42% / 34% 35% 45% 40%;
    background: #ad9be9;
    content: "";
    transform: rotate(-12deg);
}
.hero-screenshot {
    width: min(61%, 240px);
    height: auto;
    border: 4px solid #292536;
    border-radius: 25px;
    background: #f6f5fa;
    box-shadow: 0 16px 32px #140d2e4d;
}
.image-expand {
    position: absolute;
    right: 7%;
    bottom: 6%;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--raised);
    color: var(--text);
    font-size: 21px;
    line-height: 1;
}
.screenshot-stage:hover .image-expand { background: var(--accent); color: var(--accent-ink); }
.screenshot-caption {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

h2 { font-size: clamp(26px, 3.15vw, 42px); letter-spacing: -.035em; line-height: 1.2; }
.features-section { padding-block: 31px 62px; border-top: 1px solid var(--line); }
.features-section h2 { margin-bottom: 22px; }
.features-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}
.features-list article {
    padding: 12px 13px 2px 0;
    border-top: 2px solid #625679;
}
.features-list h3 { margin-bottom: 6px; font-size: 17px; }
.features-list p, .release, details p, .empty-state {
    color: var(--muted);
    overflow-wrap: anywhere;
}
.features-list p, details p { font-size: 15px; }

.download-panel {
    --focus: #35245b;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: clamp(22px, 4.3vw, 48px);
    border-radius: 24px;
    background: var(--accent);
    color: var(--accent-ink);
}
.download-panel img { border-radius: 18px; }
.download-panel h2 { font-size: clamp(24px, 2.9vw, 36px); }
.download-summary p, .download-action p { color: #4a3d60; font-size: 14px; }
.download-summary p { margin-top: 6px; }
.download-action { text-align: right; }
.download-action a + p { margin-top: 7px; }
.button-inverse { background: var(--accent-ink); color: var(--text); }
.button-inverse:hover { background: #3e2e60; }

.info-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 6vw, 80px);
    padding-block: 52px 64px;
}
.info-section h2 { margin-bottom: 14px; font-size: clamp(24px, 2.4vw, 30px); }
.empty-state, .release { border-top: 1px solid var(--line); padding: 12px 0; }
.release-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 15px; }
.release h3 { color: var(--text); }
.release time { font-size: 13px; }
.release ul { margin: 7px 0; padding-left: 1.2em; }
.text-link { gap: 5px; color: var(--accent); font-weight: 650; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 48px;
    padding: 7px 0;
    cursor: pointer;
    list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
    content: "";
    flex: 0 0 8px;
    height: 8px;
    margin-right: 4px;
    border-right: 1.5px solid var(--accent);
    border-bottom: 1.5px solid var(--accent);
    transform: translateY(-2px) rotate(45deg);
}
details[open] summary::after { transform: translateY(2px) rotate(225deg); }
details p { padding: 0 12px 12px 0; }

.site-footer { padding-block: 16px; border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 18px; }
.footer-row .brand { font-size: 17px; }

@media (max-width: 920px) {
    .shell { width: calc(100% - 56px); }
    .features-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
}

@media (max-width: 640px) {
    .shell { width: calc(100% - 36px); }
    .header-row { justify-content: space-between; min-height: 62px; }
    .site-header nav { display: none; }
    .hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        padding-block: 32px 28px;
    }
    .hero h1 { font-size: clamp(69px, 17vw, 96px); }
    .hero-subtitle { margin-top: 10px; }
    .hero-description { margin-top: 14px; }
    .hero-install { margin-top: 19px; }
    .screenshot-stage { padding-block: 5px; }
    .hero-screenshot { width: min(55%, 190px); border-width: 3px; border-radius: 18px; }
    .screenshot-stage::before { inset: 13% 7% 8%; }
    .image-expand { right: 5%; }
    .features-section { padding-block: 27px 35px; }
    .features-list { gap: 13px 16px; }
    .features-list article { padding-right: 0; }
    .features-list h3 { font-size: 16px; }
    .features-list p { font-size: 14px; }
    .download-panel { grid-template-columns: auto minmax(0, 1fr); gap: 12px; border-radius: 19px; }
    .download-panel img { width: 52px; height: 52px; border-radius: 12px; }
    .download-action { grid-column: 2; text-align: left; }
    .info-section { grid-template-columns: minmax(0, 1fr); padding-block: 35px 43px; }
    .site-footer nav { gap: 0 13px; font-size: 13px; }
}

@media (max-width: 350px) {
    .features-list { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    .button { transition: none; }
}
