.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(16, 29, 50, .92);
    border-bottom: 1px solid rgba(41, 72, 102, .65);
    backdrop-filter: blur(12px);
}
.nav-shell { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; }
.brand-logo { width: 30px; height: 30px; flex: 0 0 30px; object-fit: contain; }
.brand-name { font-size: 18px; }
.main-nav { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.main-nav > a:not(.button) { color: var(--color-text-secondary); }
.main-nav > a:not(.button):hover { color: var(--color-text-primary); }
.nav-toggle { display: none; background: transparent; border: 0; padding: 10px; }
.nav-toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--color-text-primary); }
.language-switcher { display: flex; align-items: center; gap: 7px; color: var(--color-text-muted); }
.language-switcher .is-active { color: var(--color-text-primary); font-weight: 600; }
.button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.button:focus-visible { outline: 2px solid #55B8F5; outline-offset: 2px; }
.button-primary { background: var(--color-primary); color: var(--color-primary-text); }
.button-primary:hover { background: var(--color-primary-hover); }
.button-primary:active { background: var(--color-primary-active); transform: translateY(1px); }
.button-secondary { border-color: var(--color-border-hover); background: rgba(20, 41, 67, .45); color: var(--color-text-primary); }
.button-secondary:hover { border-color: var(--color-primary); background: rgba(20, 41, 67, .8); }
.button:disabled { background: var(--color-disabled-bg); color: var(--color-disabled-text); border-color: var(--color-disabled-border); cursor: not-allowed; transform: none; }
.hero { padding-top: 68px; padding-bottom: 62px; }
.hero-grid, .split-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 42px; align-items: center; }
.hero h1 { max-width: 650px; margin-bottom: 16px; font-size: clamp(38px, 3.8vw, 50px); line-height: 1.1; }
.hero-lead { margin-bottom: 10px; color: var(--color-text-primary); font-size: 17px; font-weight: 600; }
.hero-text { max-width: 610px; font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.screenshot-frame { overflow: hidden; border: 1px solid var(--color-border-hover); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-elevated), var(--glow-primary); }
.screenshot-frame.compact { box-shadow: var(--shadow-card); }
.three-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mini-card, .feature-card, .doc-card, .download-card, .faq-list details {
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}
.mini-card, .feature-card { padding: 20px; }
.mini-card h2 { margin-bottom: 7px; font-size: 18px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { margin-bottom: 0; }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 34px; margin-bottom: 18px; padding: 0 10px; border-radius: var(--radius-sm); background: rgba(19, 143, 224, .12); color: var(--color-primary-hover); font: 600 13px/1 Consolas, monospace; border: 1px solid rgba(19, 143, 224, .35); }
.check-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 30px; color: var(--color-text-secondary); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--color-success); font-weight: 700; }
.download-card { padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.download-card h2 { margin-bottom: 10px; }
.download-card p { margin-bottom: 0; max-width: 720px; }
.download-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 220px; }
.doc-card { padding: 20px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.doc-card span { padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(16, 29, 50, .55); color: var(--color-text-secondary); }
.faq-list { display: grid; gap: 14px; }
.faq-list details { padding: 0 20px; }
.faq-list summary { cursor: pointer; padding: 18px 0; font-weight: 600; }
.faq-list details p { padding-bottom: 18px; margin-bottom: 0; }
.site-footer { border-top: 1px solid var(--color-border); padding: 48px 0 24px; background: #0D182A; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
.footer-grid h2 { font-size: 15px; margin-bottom: 14px; }
.footer-grid a { display: block; margin: 8px 0; color: var(--color-text-muted); }
.footer-grid a:hover { color: var(--color-text-primary); }
.footer-brand { margin-bottom: 14px; }
.footer-brand-logo { width: 28px; height: 28px; flex-basis: 28px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(41, 72, 102, .55); color: var(--color-text-muted); font-size: 14px; }

/* Detail pages */
.main-nav > a.is-active { color: var(--color-text-primary); font-weight: 600; }
.page-hero { border-bottom: 1px solid rgba(41, 72, 102, .45); }
.page-hero-copy { max-width: 760px; }
.page-hero h1 { margin-bottom: 14px; }
.page-hero p:last-child { max-width: 720px; margin-bottom: 0; }
.feature-detail-list { display: grid; gap: 18px; }
.feature-detail {
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    gap: 24px;
    align-items: stretch;
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
}
.feature-detail-reverse .feature-detail-copy { order: 2; }
.feature-detail-reverse .feature-detail-panel { order: 1; }
.feature-detail-copy h2 { margin-bottom: 8px; }
.feature-detail-copy > p { max-width: 660px; }
.feature-points { margin-top: 18px; }
.feature-detail-panel {
    display: flex;
    min-height: 180px;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    border: 1px solid rgba(19, 143, 224, .28);
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, rgba(19, 143, 224, .10), rgba(16, 29, 50, .56));
}
.feature-detail-panel strong { font-size: 18px; }
.feature-detail-panel > span:last-child { color: var(--color-text-secondary); }
.feature-detail-kicker { color: var(--color-primary-hover); font: 600 12px/1.2 Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; }
.feature-summary { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.feature-summary h2 { margin-bottom: 8px; }
.feature-summary p { max-width: 700px; margin-bottom: 0; }


/* Screenshots page */
.info-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 28px;
    padding: 16px 18px;
    border: 1px solid rgba(19, 143, 224, .32);
    border-radius: var(--radius-md);
    background: rgba(19, 143, 224, .07);
}
.info-note-mark {
    display: inline-flex;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(19, 143, 224, .16);
    color: var(--color-primary-hover);
    font-weight: 700;
}
.info-note strong { display: block; margin-bottom: 4px; }
.info-note p { margin-bottom: 0; }
.screenshots-reference-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr);
    gap: 28px;
    align-items: center;
}
.screenshot-reference-main { max-width: 100%; }
.screenshot-reference-copy h2 { margin-bottom: 10px; }
.screenshot-reference-copy p:last-child { margin-bottom: 0; }
.screenshot-area-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.screenshot-area-card {
    min-height: 150px;
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
}
.screenshot-area-card h3 { margin: 10px 0 7px; }
.screenshot-area-card p { margin-bottom: 0; }
.screenshot-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.screenshot-summary h2 { margin-bottom: 8px; }
.screenshot-summary p { max-width: 760px; margin-bottom: 0; }

/* Download page */
.download-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    gap: 18px;
    align-items: stretch;
}
.download-release-card,
.download-status-card,
.download-info-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
}
.download-release-card { padding: 24px; }
.download-release-card h2,
.download-status-card h2 { margin-bottom: 8px; }
.download-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 22px 0;
}
.download-meta div {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: rgba(16, 29, 50, .52);
    border: 1px solid rgba(41, 72, 102, .45);
}
.download-meta dt { margin-bottom: 4px; color: var(--color-text-muted); font-size: 12px; }
.download-meta dd { margin: 0; color: var(--color-text-primary); font-weight: 600; }
.download-page-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.download-status-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(145deg, rgba(19, 143, 224, .09), rgba(20, 41, 67, .9));
}
.download-status-list { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.download-status-list li { position: relative; padding-left: 22px; color: var(--color-text-secondary); }
.download-status-list li::before { content: "•"; position: absolute; left: 5px; color: var(--color-primary-hover); }
.download-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.download-info-card { padding: 18px; }
.download-info-card h3 { margin: 8px 0 6px; }
.download-info-card p { margin-bottom: 0; }
.download-page-summary { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.download-page-summary h2 { margin-bottom: 8px; }
.download-page-summary p { max-width: 760px; margin-bottom: 0; }

/* Documentation page */
.documentation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.documentation-topic {
    position: relative;
    min-height: 190px;
    padding: 22px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
}
.documentation-topic h2 { margin: 10px 0 7px; }
.documentation-topic p { margin-bottom: 34px; }
.documentation-status {
    position: absolute;
    left: 22px;
    bottom: 20px;
    display: inline-flex;
    padding: 5px 8px;
    border: 1px solid rgba(41, 72, 102, .7);
    border-radius: var(--radius-sm);
    background: rgba(16, 29, 50, .5);
    color: var(--color-text-muted);
    font-size: 12px;
}
.documentation-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.documentation-summary h2 { margin-bottom: 8px; }
.documentation-summary p { max-width: 760px; margin-bottom: 0; }

/* FAQ subpage */
.faq-page-main { padding-top: 36px; }
.faq-page-list { max-width: 900px; margin: 0 auto; }
.faq-page-list details { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); }


/* Contact subpage */
.contact-page-main { padding-top: 36px; }
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.contact-card { min-height: 100%; }
.contact-placeholder {
    margin-top: 18px;
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: rgba(16, 29, 50, 0.46);
}
.contact-placeholder span {
    color: var(--color-text-muted);
    font-size: 12px;
}
.contact-placeholder strong {
    color: var(--color-text-primary);
    font-size: 14px;
}
.compact-list { margin-top: 16px; }
.contact-note { max-width: 1080px; }

@media (max-width: 767px) {
    .contact-grid { grid-template-columns: 1fr; }
}


/* Legal pages */
.legal-page-main { padding-top: 36px; }
.legal-stack {
    display: grid;
    gap: 18px;
    max-width: 1080px;
}
.legal-card h2 { margin-bottom: 12px; }
.legal-card p + p { margin-top: 10px; }
.legal-placeholder {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.legal-placeholder > div {
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: rgba(16, 29, 50, 0.46);
}
.legal-placeholder span,
.legal-placeholder strong {
    display: block;
}
.legal-placeholder span {
    color: var(--color-text-muted);
    font-size: 12px;
    margin-bottom: 4px;
}
.legal-placeholder strong {
    color: var(--color-text-primary);
    font-size: 14px;
}
@media (max-width: 767px) {
    .legal-placeholder { grid-template-columns: 1fr; }
}

.legal-placeholder strong a { color: var(--color-text-primary); text-decoration: none; }
.legal-placeholder strong a:hover { color: var(--color-primary-hover); }


/* Legal layout refinement */
.legal-hero-inner {
    max-width: 1080px;
}
.legal-hero-inner h1 {
    margin-bottom: 0;
}
.legal-provider-label {
    margin-bottom: 8px;
}


/* Real screenshot gallery */
.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.screenshot-gallery-card {
    min-width: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.screenshot-gallery-image {
    border: 0;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    box-shadow: none;
    background: var(--color-bg-primary);
}
.screenshot-gallery-image img {
    display: block;
    width: 100%;
    height: auto;
}
.screenshot-gallery-copy {
    padding: 16px 18px 18px;
}
.screenshot-gallery-copy h3 {
    margin: 7px 0 6px;
}
.screenshot-gallery-copy p {
    margin-bottom: 0;
}
