:root {
    color-scheme: dark;
    --bg: #101010;
    --panel: #181918;
    --panel-lift: #20211f;
    --line: #353632;
    --text: #f6f4ed;
    --muted: #b8b7ad;
    --amber: #f6c878;
    --studio-bar-height: 34px;
    --serif: Georgia, "Times New Roman", serif;
    --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-padding-top: calc(var(--studio-bar-height) + 96px); }
body {
    margin: 0;
    padding-top: var(--studio-bar-height);
    background: var(--bg);
    color: var(--text);
    font: 16px/1.65 var(--sans);
    overflow-wrap: anywhere;
}
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; }
p + p { margin-top: .95rem; }
a { color: var(--amber); text-underline-offset: 3px; }
a:hover { color: var(--text); }
button, input, textarea, select { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
code {
    padding: .08em .32em;
    border-radius: 4px;
    background: #ffffff0d;
    color: #f1dcc1;
    font-size: .875em;
}

.wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; top: calc(var(--studio-bar-height) + 12px); left: 12px; z-index: 10; padding: 8px 15px; transform: translateY(-240%); background: var(--bg); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; inset: var(--studio-bar-height) 0 auto; z-index: 3; border-bottom: 1px solid var(--line); background: #101010f5; }
#gc-app-dropdown { max-height: calc(100dvh - var(--studio-bar-height)); overflow-y: auto; overscroll-behavior: contain; }
.site-nav { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); font: 21px var(--serif); text-decoration: none; }
.mark {
    display: inline-grid;
    width: 33px;
    height: 33px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #e6ae5e73;
    border-radius: 8px;
    background: #372818;
    color: var(--amber);
    font: italic 700 20px var(--serif);
}
.nav-links, .footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.nav-links a, .footer-links a { color: var(--muted); font-size: 14px; text-decoration: none; }
.nav-links a:hover, .footer-links a:hover, .nav-links a[aria-current] { color: var(--text); }

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(28px, 5.5vw, 76px);
    padding-block: clamp(53px, 8vw, 111px) clamp(60px, 8vw, 105px);
}
.hero::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse at 78% 40%, #c98e3623, transparent 63%);
    content: "";
}
.eyebrow {
    margin-bottom: 14px;
    color: var(--amber);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
h1 { font-size: clamp(42px, 5.45vw, 73px); line-height: 1.02; }
h1 em { color: var(--amber); font-weight: normal; }
.lead { margin-top: 22px; color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); max-width: 53ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 27px; }
.button {
    display: inline-flex;
    width: fit-content;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
}
.primary { background: var(--amber); color: #1c160e; }
.primary:hover { background: #ffe0a6; color: #1c160e; }
.quiet { color: var(--text); border-color: var(--line); }
.outline { color: var(--text); border-color: #b5a384; }
.quiet:hover, .outline:hover { border-color: var(--amber); }
.release-line { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 20px; color: var(--muted); font-size: 13px; }
.release-line span { padding-left: 12px; border-left: 1px solid var(--line); }

.preview { overflow: hidden; border: 1px solid #4b463b; border-radius: 16px; background: var(--panel); box-shadow: 0 24px 60px #0007; }
.preview-head { display: flex; align-items: center; gap: 9px; padding: 13px 17px; border-bottom: 1px solid var(--line); color: #dfdcd2; font-size: 13px; }
.signal { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 100%; background: var(--amber); }
.preview-controls { display: flex; flex-wrap: wrap; gap: 7px; padding: 12px 14px; }
.preview-controls button {
    min-height: 37px;
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel-lift);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}
.preview-controls button[aria-pressed="true"] { border-color: #ae854c; background: #382c1e; color: var(--amber); }
.preview-frame { display: grid; place-items: center; aspect-ratio: 861 / 595; margin-inline: 13px; overflow: hidden; border-radius: 7px; background: #2c2b27; }
.preview-frame img { display: block; width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.preview figcaption { padding: 12px 15px 14px; color: var(--muted); font-size: 12px; }

.section { padding-block: clamp(49px, 6vw, 80px); }
.section-intro { max-width: 620px; margin-bottom: 28px; }
h2 { font-size: clamp(31px, 4.2vw, 49px); line-height: 1.1; }
.section-intro > p:last-child, .download-card p { margin-top: 12px; color: var(--muted); }
.source-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.source-list > div { display: grid; gap: 6px; padding: 20px 16px 21px 0; border-bottom: 1px solid var(--line); }
.source-list > div:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
.source-list dt { color: var(--text); font-size: 16px; font-weight: 700; }
.source-list dd { color: var(--muted); font-size: 15px; }

.download-section { border-block: 1px solid var(--line); background: #151614; }
.download-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.download-card { display: flex; flex-direction: column; align-items: flex-start; padding: 24px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.download-card h3 { font-size: 21px; line-height: 1.2; }
.download-card p { margin-bottom: 22px; font-size: 15px; }
.download-card .button { margin-top: auto; }
.download-note { margin-top: 20px; color: var(--muted); font-size: 14px; }

.faq { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1fr); gap: 32px; }
details { border-bottom: 1px solid var(--line); padding: 13px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { padding: 3px 0; color: var(--text); font-weight: 650; }
summary::marker { color: var(--amber); }
details > p { margin: 8px 0 5px; color: var(--muted); }

.site-footer { padding-block: 32px 38px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 19px 30px; }
.footer-inner p { margin-top: 12px; color: var(--muted); font-size: 13px; }
.footer-links { margin-top: 5px; gap: 18px; }

.document { max-width: 840px; padding-block: clamp(43px, 7vw, 85px); }
.document-header h1 { font-size: clamp(46px, 6vw, 70px); }
.jump-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 22px; }
.jump-links a { font-size: 14px; }
.doc-section { margin-top: 41px; padding-top: 27px; border-top: 1px solid var(--line); }
.doc-section h2 { margin-bottom: 16px; font-size: clamp(28px, 3.4vw, 38px); }
.doc-section p, .install-list { color: var(--muted); }
.doc-section strong { color: var(--text); }
.install-list { padding-left: 24px; }
.install-list li + li { margin-top: 10px; }
.tip { margin-top: 18px; padding: 14px 16px; border-left: 2px solid var(--amber); background: var(--panel); color: var(--muted); }
.contact-form { display: grid; gap: 15px; margin-top: 20px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.contact-form label { display: grid; min-width: 0; gap: 5px; font-size: 14px; font-weight: 650; }
.contact-form input, .contact-form select, .contact-form textarea {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #51524b;
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    font-weight: 400;
}
.contact-form textarea { resize: vertical; }
.form-note { font-size: 13px; }

@media (max-width: 820px) {
    .hero { grid-template-columns: 1fr; }
    .hero-copy { max-width: 620px; }
    .preview { max-width: 650px; width: 100%; }
    .faq { grid-template-columns: 1fr; gap: 19px; }
}
@media (max-width: 520px) {
    .wrap { width: calc(100% - 34px); }
    .site-nav { gap: 9px; min-height: 61px; }
    .brand { gap: 7px; font-size: 18px; }
    .mark { width: 26px; height: 26px; font-size: 17px; }
    .nav-links { gap: 12px; }
    .nav-links a { font-size: 12px; }
    .secondary-nav { display: none; }
    .source-list, .download-grid, .form-row { grid-template-columns: 1fr; }
    .source-list > div:nth-child(even) { padding-left: 0; border-left: 0; }
    .download-card, .contact-form { padding: 17px; }
}
