/* Copyright Pautinka 2026. All Rights Reserved. */

:root {
    color-scheme: dark;
    --background: #05080d;
    --panel: #080d14;
    --text: #eef7ff;
    --muted: #a9bace;
    --line: rgba(97, 181, 255, .22);
    --cyan: #42baff;
    --violet: #8b5cff;
    --header-height: 82px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 112px; background: var(--background); }
body { margin: 0; color: var(--text); background: var(--background); font-family: Inter, Arial, Helvetica, sans-serif; line-height: 1.75; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
button { color: var(--text); }
a:hover { color: var(--cyan); }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px; background: var(--panel); }
.skip-link:focus { top: 12px; }
.header { position: sticky; top: 0; z-index: 20; height: var(--header-height); padding: 12px 32px; display: flex; align-items: center; gap: 28px; border-bottom: 1px solid var(--line); background: rgba(5, 8, 13, .95); backdrop-filter: blur(16px); }
.brand { width: 150px; flex-shrink: 0; }
.brand img { width: 150px; height: auto; }
.product-name { font-size: 15px; font-weight: 700; line-height: 1.5; }
.product-name span { display: block; font-weight: 400; font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.header-actions { display: flex; margin-left: auto; gap: 14px; align-items: center; }
.language-menu { position: relative; font-size: 14px; }
.language-menu summary { list-style: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; }
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary span { margin-left: 10px; color: var(--cyan); }
.language-menu nav { position: absolute; right: 0; top: 54px; width: 210px; max-height: calc(100dvh - 150px); overflow-y: auto; padding: 8px; background: #0b1420; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px #0009; }
.language-menu nav a { display: flex; justify-content: space-between; padding: 6px 12px; border-radius: 6px; }
.language-menu nav a:hover, .language-menu nav a[aria-current="page"] { background: #42baff18; color: var(--cyan); }
.layout { display: grid; grid-template-columns: 265px minmax(0, 1fr); max-width: 1620px; margin: 0 auto; }
.sidebar { position: sticky; top: var(--header-height); height: calc(100dvh - var(--header-height)); padding: 32px 22px; overflow-y: auto; border-right: 1px solid var(--line); }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 11px; color: var(--cyan); font-weight: 700; }
.search { margin: 26px 0; }
.search label { font-size: 12px; color: var(--muted); }
.search div { display: flex; border: 1px solid var(--line); border-radius: 10px; margin-top: 7px; background: #0b1420; }
.search input { width: 100%; min-width: 0; border: 0; padding: 10px; background: transparent; color: var(--text); font-size: 12px; }
.search input::-webkit-search-cancel-button { display: none; }
.clear-search { border: 0; background: none; padding: 0 12px; font-size: 20px; color: var(--muted); }
.toc a { display: flex; align-items: baseline; gap: 11px; padding: 10px 8px; border-left: 2px solid transparent; font-size: 13px; line-height: 1.45; margin-bottom: 3px; }
.toc a span { color: #758ea6; font-size: 11px; }
.toc a:hover, .toc a.is-current { color: var(--cyan); background: #42baff0b; border-left-color: var(--cyan); }
.sidebar-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; font-size: 12px; color: var(--muted); }
.print-button { border: 0; padding: 0; text-align: left; background: none; font-size: 12px; color: var(--muted); }
main { min-width: 0; padding: 0 56px; }
.hero { position: relative; padding: 68px 0 40px; }
.hero-copy { position: relative; max-width: 840px; }
.product-logo { position: absolute; top: 8px; right: 0; width: 70px; height: 70px; object-fit: contain; }
h1 { font-size: clamp(40px, 5.7vw, 86px); line-height: 1.04; letter-spacing: -.06em; margin: 24px 0; font-weight: 700; padding-right: 76px; }
h1 span { color: var(--cyan); }
.tagline { font-size: clamp(19px, 2vw, 25px); line-height: 1.5; color: #d9eaff; max-width: 750px; }
.hero-copy > p:not(.eyebrow):not(.tagline) { color: var(--muted); max-width: 730px; }
.primary-button { display: inline-flex; gap: 28px; align-items: center; padding: 10px 20px; margin-top: 16px; border-radius: 9px; background: #42baff; color: #05080d; font-weight: 700; font-size: 14px; }
.primary-button:hover { color: #05080d; background: #81d2ff; }
figure { margin: 0; }
.hero-art { margin-top: 36px; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); }
.hero-art img { width: 100%; }
figcaption { padding: 10px 16px; font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); }
.workspace-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-bottom: 50px; }
.workspace-links a { border: 1px solid var(--line); border-radius: 9px; padding: 15px; display: flex; gap: 12px; font-size: 11px; color: var(--cyan); background: #080d14; }
.workspace-links b { color: var(--text); font-size: 13px; font-weight: 500; }
.workspace-links a:hover { border-color: var(--cyan); }
.guide-section { padding: 58px 0; border-top: 1px solid var(--line); scroll-margin-top: 0; }
.section-number { color: var(--cyan); font-size: 12px; letter-spacing: .16em; }
h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.3; letter-spacing: -.035em; margin: 12px 0; overflow-wrap: anywhere; }
.lead { color: #bfcfe0; font-size: 18px; margin: 16px 0 26px; }
.illustration, .screenshot { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); margin: 28px 0; }
.illustration img, .screenshot img { width: 100%; }
.screenshot a { display: block; cursor: zoom-in; }
.screenshot a:focus-visible { outline: 3px solid var(--cyan); outline-offset: -3px; }
.screenshot-hint { display: block; margin-top: 5px; }
.flow { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.flow span { padding: 7px 12px; border: 1px solid var(--line); border-radius: 7px; font-size: 12px; color: var(--cyan); background: #42baff09; }
.flow span:not(:last-child)::after { content: " →"; color: var(--muted); margin-left: 10px; }
.steps { margin: 30px 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 21px 46px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #42baff66; border-radius: 50%; font-size: 12px; color: var(--cyan); background: #42baff10; }
.notes { border-left: 2px solid var(--violet); padding: 2px 0 2px 22px; color: #b6c8dc; font-size: 14px; }
.notes p { margin: 12px 0; }
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item summary { font-size: 16px; color: var(--text); padding-right: 20px; }
.faq-item p { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.search-status { padding: 20px; background: #42baff0c; border-radius: 10px; color: var(--muted); }
.footer { padding: 36px 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; font-size: 12px; color: var(--muted); }
.contents-toggle { display: none; }
.drawer-backdrop { display: none; }

@media (min-width: 1800px) {
    .hero-art { max-width: 1100px; }
}

@media (max-width: 1100px) {
    .layout { grid-template-columns: 235px minmax(0, 1fr); }
    main { padding: 0 30px; }
    .sidebar { padding-inline: 16px; }
    .workspace-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 850px) {
    :root { --header-height: 70px; }
    .header { padding: 10px 18px; gap: 16px; }
    .brand { width: 100px; }
    .brand img { width: 100px; }
    .product-name { font-size: 12px; }
    .product-name span { font-size: 9px; }
    .header-actions { gap: 8px; }
    .language-menu { font-size: 12px; }
    .language-menu summary { padding: 7px 10px; }
    .layout { display: block; }
    .sidebar { display: none; position: fixed; z-index: 31; top: var(--header-height); left: 0; width: min(330px, 88vw); background: #080d14; padding: 24px; border-right: 1px solid var(--line); }
    body.drawer-open .sidebar { display: block; }
    body.drawer-open { overflow: hidden; }
    .contents-toggle { display: block; font-size: 11px; background: #0b1420; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; max-width: 95px; line-height: 1.4; }
    .drawer-backdrop { position: fixed; display: block; inset: var(--header-height) 0 0; z-index: 30; border: 0; background: #0009; }
    main { padding: 0 26px; }
    .hero { padding-top: 38px; }
    .guide-section { padding: 42px 0; }
    .hero-copy { max-width: none; }
    h1 { font-size: 56px; }
}

@media (max-width: 500px) {
    .header { gap: 8px; padding-inline: 12px; }
    .product-name { display: none; }
    .brand { width: 90px; }
    main { padding-inline: 20px; }
    h1 { font-size: 43px; padding-right: 0; margin-top: 58px; }
    .product-logo { width: 40px; height: 40px; top: 0; }
    .tagline { font-size: 20px; }
    .hero-copy > p { font-size: 14px; }
    .workspace-links { gap: 9px; }
    .workspace-links a { padding: 12px 9px; gap: 8px; }
    .workspace-links b { font-size: 11px; }
    .steps { font-size: 14px; }
    .lead { font-size: 16px; }
    .notes { font-size: 13px; padding-left: 16px; }
}

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

@media print {
    :root { color-scheme: light; }
    body, html { background: white; color: black; }
    .header, .sidebar, .workspace-links, .hero-art, .primary-button, .footer, .drawer-backdrop, .search-status { display: none !important; }
    .layout { display: block; }
    main { padding: 0; }
    .hero { padding: 0 0 24px; }
    .product-logo { display: none; }
    h1 { font-size: 36px; padding: 0; }
    h1 span, .tagline, .hero-copy p, .lead, .notes, .faq-item p, figcaption { color: black !important; }
    .guide-section { display: block !important; padding: 24px 0; }
    h2 { font-size: 24px; break-after: avoid; }
    .steps li { break-inside: avoid; }
    .illustration, .screenshot { max-width: 600px; break-inside: avoid; }
    .flow { display: none; }
    .faq-item { display: block; }
    .faq-item > p { display: block; }
}
