:root {
    --bg: #0f141a;
    --bg-soft: #151c24;
    --bg-panel: rgba(30, 38, 49, 0.94);
    --bg-panel-strong: rgba(34, 43, 55, 0.98);
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(125, 142, 165, 0.30);
    --text: #e8edf2;
    --text-soft: #b5bfcb;
    --text-muted: #8a97a6;
    --accent: #2d8a5b;
    --accent-rgb: 45, 138, 91;
    --accent-bright: #3da26d;
    --accent-strong: #246f49;
    --accent-soft: rgba(45, 138, 91, 0.12);
    --accent-blue: #6aa6ff;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
    --radius-lg: 18px;
    --radius-xl: 24px;
    --header-offset: 82px;
}

html[data-voscom-theme="light"] {
    --bg: #f3f7fb;
    --bg-soft: #eaf0f6;
    --bg-panel: rgba(255, 255, 255, 0.92);
    --bg-panel-strong: rgba(255, 255, 255, 0.98);
    --line: rgba(52, 76, 104, 0.12);
    --line-strong: rgba(52, 76, 104, 0.20);
    --text: #172434;
    --text-soft: #33465c;
    --text-muted: #6f8093;
    --accent-blue: #4c82ff;
    --shadow: 0 18px 40px rgba(57, 75, 97, 0.12);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-offset);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at top right, rgba(106, 166, 255, 0.08), transparent 26%),
        radial-gradient(circle at bottom left, rgba(45, 138, 91, 0.08), transparent 24%),
        linear-gradient(180deg, #0f141a 0%, #111821 100%);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-voscom-theme="light"] body {
    background:
        radial-gradient(circle at top right, rgba(76, 130, 255, 0.10), transparent 24%),
        radial-gradient(circle at bottom left, rgba(45, 138, 91, 0.10), transparent 22%),
        linear-gradient(180deg, #f5f8fc 0%, #edf3f8 100%);
}

a {
    color: var(--accent-blue);
}

a:hover {
    color: var(--text);
}

section[id] {
    scroll-margin-top: var(--header-offset);
}

.site-bg-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.08));
    opacity: 0.24;
}

html[data-voscom-theme="light"] .site-bg-grid {
    background-image:
        linear-gradient(rgba(18, 35, 57, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 35, 57, 0.05) 1px, transparent 1px);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.04));
    opacity: 0.34;
}

.site-bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}

.site-bg-glow-a {
    width: 360px;
    height: 360px;
    top: -100px;
    right: -80px;
    background: rgba(106, 166, 255, 0.12);
}

.site-bg-glow-b {
    width: 300px;
    height: 300px;
    bottom: -90px;
    left: -60px;
    background: rgba(45, 138, 91, 0.10);
}

html[data-voscom-theme="light"] .site-bg-glow-a {
    background: rgba(76, 130, 255, 0.16);
}

html[data-voscom-theme="light"] .site-bg-glow-b {
    background: rgba(45, 138, 91, 0.14);
}

header,
main,
section,
footer,
.container {
    position: relative;
    z-index: 1;
}

.skip-to-content {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2000;
    transform: translateY(-180%);
    border: 1px solid rgba(77, 161, 255, 0.48);
    border-radius: 0.55rem;
    background: #07111f;
    color: #cfe9ff;
    padding: 0.55rem 0.75rem;
    text-decoration: none;
    transition: transform 0.16s ease;
}

.skip-to-content:focus {
    transform: translateY(0);
}

.llm-agent-visible-shell {
    position: relative;
    z-index: 3;
    padding: 3px 0 0;
}

.llm-agent-visible-block {
    max-width: 1180px;
    margin: 0 auto;
    padding: 3px 9px;
    border: 1px solid rgba(106, 166, 255, 0.18);
    border-radius: 10px;
    background: rgba(8, 14, 20, 0.34);
    color: rgba(181, 191, 203, 0.70);
    font-size: 0.64rem;
    line-height: 1.28;
}

.llm-agent-visible-block summary {
    cursor: pointer;
    color: rgba(106, 166, 255, 0.78);
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 700;
}

.llm-agent-visible-block p {
    margin: 4px 0 0;
}

.llm-agent-visible-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.llm-agent-visible-links a {
    color: rgba(106, 166, 255, 0.82);
    text-decoration: underline;
    text-underline-offset: 3px;
}

html[data-voscom-theme="light"] .llm-agent-visible-block {
    background: rgba(255, 255, 255, 0.58);
    color: rgba(51, 70, 92, 0.76);
}

.site-header {
    background: rgba(13, 18, 24, 0.76);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16);
}

html[data-voscom-theme="light"] .site-header {
    background: rgba(243, 247, 251, 0.84);
    box-shadow: 0 8px 30px rgba(39, 54, 74, 0.08);
}

.navbar {
    --bs-navbar-padding-y: 0.9rem;
}

.navbar-brand,
.navbar-brand:hover,
.navbar-brand:focus {
    text-decoration: none;
    color: var(--text);
}

.brand-mark {
    width: 24px;
    height: 24px;
    border-radius: 9px;
    border: 1px solid rgba(var(--accent-rgb), 0.30);
    background: radial-gradient(circle at 74% 22%, rgba(var(--accent-rgb), 0.26), rgba(var(--accent-rgb), 0.08) 38%, rgba(9, 14, 20, 0.64) 100%);
    box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.28), inset 0 0 14px rgba(var(--accent-rgb), 0.10);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex: 0 0 auto;
}

.brand-mark::before {
    content: "";
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #c8f5dc 0%, var(--accent-bright) 48%, var(--accent-strong) 100%);
    -webkit-mask: url("/img/app-indicator.svg") center / contain no-repeat;
    mask: url("/img/app-indicator.svg") center / contain no-repeat;
    filter: drop-shadow(0 0 7px rgba(var(--accent-rgb), 0.64));
}

.brand-title {
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text);
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    padding-left: 0.9rem !important;
    padding-right: 0.9rem !important;
}

.nav-link.active,
.navbar-nav .nav-link.active {
    color: var(--accent-blue) !important;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--text);
}

.navbar-toggler {
    border: 1px solid var(--line-strong) !important;
    border-radius: 12px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--accent-rgb), 0.16);
}

.navbar-toggler-icon {
    filter: grayscale(1) brightness(3);
}

html[data-voscom-theme="light"] .navbar-toggler-icon {
    filter: grayscale(1) brightness(0.25);
}

.btn-lang,
.btn-primary-main,
.btn-secondary-main {
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    font-weight: 600;
    transition: all 0.18s ease;
}

.btn-lang {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-soft);
    font-size: 0.9rem;
    padding: 0.45rem 0.9rem;
    text-decoration: none;
}

.btn-lang:hover,
.btn-lang.active {
    color: var(--text);
    border-color: rgba(var(--accent-rgb), 0.45);
    background: rgba(var(--accent-rgb), 0.10);
}

.btn-primary-main {
    background: linear-gradient(180deg, var(--accent-bright) 0%, var(--accent-strong) 100%);
    border: none;
    color: #eff8f3;
    box-shadow: 0 10px 24px rgba(var(--accent-rgb), 0.24);
}

.btn-primary-main:hover,
.btn-primary-main:focus {
    color: #f7fcf9;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(var(--accent-rgb), 0.30);
}

.btn-secondary-main {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line-strong);
    color: var(--text);
}

.btn-secondary-main:hover,
.btn-secondary-main:focus {
    color: var(--text);
    border-color: rgba(106, 166, 255, 0.34);
    background: rgba(106, 166, 255, 0.08);
}

.theme-toggle-btn {
    width: 42px;
    padding-left: 0;
    padding-right: 0;
}

.theme-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.theme-toggle-icon-moon {
    display: none;
}

html[data-voscom-theme="light"] .theme-toggle-icon-sun {
    display: none;
}

html[data-voscom-theme="light"] .theme-toggle-icon-moon {
    display: inline-flex;
}

.window-card {
    background: linear-gradient(
        180deg,
        rgba(31, 39, 50, 0.96),
        rgba(24, 31, 40, 0.98)
    );
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-lg);
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-voscom-theme="light"] .window-card {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.96),
        rgba(242, 247, 252, 0.98)
    );
    border: 1px solid rgba(73, 95, 122, 0.14);
    box-shadow:
        0 18px 40px rgba(47, 67, 92, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.window-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

html[data-voscom-theme="light"] .window-topbar {
    border-bottom: 1px solid rgba(73, 95, 122, 0.12);
    background: linear-gradient(180deg, rgba(247, 250, 253, 0.95), rgba(239, 245, 250, 0.90));
}

.window-dots {
    display: flex;
    gap: 7px;
}

.window-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    display: inline-block;
}

.window-dots span:first-child {
    background: rgba(234, 95, 95, 0.85);
}

.window-dots span:nth-child(2) {
    background: rgba(210, 168, 77, 0.85);
}

.window-dots span:nth-child(3) {
    background: rgba(var(--accent-rgb), 0.85);
}

.window-title {
    color: var(--text-muted);
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.section-block {
    padding-top: 58px;
    padding-bottom: 46px;
}

.section-head {
    margin-bottom: 32px;
}

.section-kicker {
    margin-bottom: 12px;
    color: var(--accent-blue);
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-title {
    max-width: 920px;
    margin: 0;
    color: var(--text);
    font-size: clamp(1.8rem, 3.2vw, 3.15rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.section-lead {
    max-width: 920px;
    margin: 18px 0 0;
    color: var(--text-soft);
    font-size: 1.06rem;
    line-height: 1.78;
}

.section-text {
    color: var(--text-soft);
    line-height: 1.78;
    font-size: 1rem;
}

.site-footer {
    padding-top: 48px;
    padding-bottom: 36px;
}

.footer-card {
    padding: 24px;
}

.footer-text {
    color: var(--text-soft);
    line-height: 1.7;
}

.footer-link {
    color: var(--text-soft);
    text-decoration: none;
}

.footer-link:hover {
    color: var(--text);
}

.footer-separator {
    color: var(--text-muted);
    margin: 0 0.45rem;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        padding-top: 1rem;
    }

    .header-actions {
        padding-bottom: 0.35rem;
    }

    .section-block {
        padding-top: 42px;
        padding-bottom: 34px;
    }

    .footer-card {
        text-align: left;
    }
}

@media (max-width: 575.98px) {
    :root {
        --header-offset: 74px;
    }

    .btn-primary-main,
    .btn-secondary-main {
        width: 100%;
    }

    .hero-actions {
        width: 100%;
    }
}

/*
 * STL header compact patch.
 * Add this block to the end of /assets/css/voscom-base.css
 * or replace the same selectors in that file.
 */

:root {
    --header-offset: 68px;
}

.navbar {
    --bs-navbar-padding-y: 0.55rem;
}

.brand-title {
    font-size: 0.96rem;
    letter-spacing: 0.035em;
    white-space: nowrap;
}

.brand-mark {
    width: 22px;
    height: 22px;
    border-radius: 8px;
}

.nav-link {
    font-size: 0.92rem;
    padding-left: 0.55rem !important;
    padding-right: 0.55rem !important;
    white-space: nowrap;
}

.header-actions {
    flex-shrink: 0;
}

.btn-lang {
    min-height: 34px;
    padding: 0.34rem 0.62rem;
    font-size: 0.82rem;
}

.theme-toggle-btn {
    width: 36px;
}

.hero-section {
    padding-top: 64px;
}

.hero-title {
    font-size: clamp(2.55rem, 6.2vw, 5.15rem);
    letter-spacing: -0.055em;
}

.hero-subtitle {
    font-size: clamp(1.02rem, 1.65vw, 1.34rem);
}

@media (max-width: 1199.98px) {
    .brand-title {
        font-size: 0.9rem;
    }

    .nav-link {
        font-size: 0.86rem;
        padding-left: 0.42rem !important;
        padding-right: 0.42rem !important;
    }

    .btn-lang {
        padding-left: 0.52rem;
        padding-right: 0.52rem;
    }
}

@media (max-width: 991.98px) {
    :root {
        --header-offset: 74px;
    }

    .navbar {
        --bs-navbar-padding-y: 0.75rem;
    }

    .nav-link {
        white-space: normal;
        font-size: 0.96rem;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .hero-section {
        padding-top: 48px;
    }
}


/*
 * STL-VS one-page landing patch.
 * Add this block to the END of /assets/css/stl.css.
 * It compresses the first screen, makes sections viewport-oriented,
 * and visually separates landing sections from each other.
 */

/* Global landing rhythm */
:root {
    --landing-header-h: 68px;
    --landing-section-pad-y: clamp(28px, 5.2vh, 58px);
}

main > section {
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
}

html[data-voscom-theme="light"] main > section {
    border-top-color: rgba(52, 76, 104, 0.10);
}

/* Modern one-page landing sections: screen-sized, but not forced when content is large */
main > section:not(.hero-section) {
    min-height: calc(100svh - var(--landing-header-h));
    padding-top: var(--landing-section-pad-y);
    padding-bottom: var(--landing-section-pad-y);
    display: flex;
    align-items: center;
}

main > section:not(.hero-section) > .container {
    width: 100%;
}

/* Distinct section backgrounds */
main > section:nth-of-type(odd)::before,
main > section:nth-of-type(even)::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

main > section:nth-of-type(odd)::before {
    background:
        radial-gradient(circle at 8% 18%, rgba(var(--accent-rgb), 0.075), transparent 28%),
        radial-gradient(circle at 92% 70%, rgba(106, 166, 255, 0.075), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 46%);
}

main > section:nth-of-type(even)::before {
    background:
        radial-gradient(circle at 92% 18%, rgba(var(--accent-rgb), 0.07), transparent 30%),
        radial-gradient(circle at 12% 82%, rgba(106, 166, 255, 0.07), transparent 32%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), transparent 48%);
}

main > section > .container {
    position: relative;
    z-index: 1;
}

/* Optional smooth landing feel, without hard scroll locking */
@media (min-width: 992px) {
    html {
        scroll-snap-type: y proximity;
    }

    main > section {
        scroll-snap-align: start;
    }
}

/* Compact hero: make first screen fit into the viewport */
.hero-section {
    min-height: calc(100svh - var(--landing-header-h));
    padding-top: clamp(18px, 3vh, 34px);
    padding-bottom: clamp(22px, 4vh, 42px);
    display: flex;
    align-items: center;
}

.hero-section > .container {
    width: 100%;
}

.hero-title {
    margin-top: 18px;
    margin-bottom: 8px;
    font-size: clamp(2.65rem, 5.8vw, 4.85rem);
    line-height: 0.9;
    letter-spacing: -0.058em;
}

.hero-subtitle {
    margin-bottom: 14px;
    font-size: clamp(1rem, 1.55vw, 1.28rem);
}

.hero-lead {
    max-width: 720px;
    font-size: clamp(0.98rem, 1.18vw, 1.08rem);
    line-height: 1.68;
}

.hero-actions {
    margin-top: 22px;
}

/* Compact product card on the right */
.hero-window {
    max-width: 560px;
    margin-left: auto;
}

.window-topbar {
    padding-top: 10px;
    padding-bottom: 10px;
}

.stl-hero-device {
    min-height: clamp(168px, 28vh, 235px);
    padding: clamp(16px, 2.6vh, 24px);
}

.stl-hero-device img {
    max-height: clamp(170px, 30vh, 240px);
}

.stl-device-box {
    width: clamp(118px, 10vw, 142px);
    height: clamp(72px, 8vw, 92px);
    border-radius: 15px;
}

.stl-device-box span {
    font-size: clamp(0.74rem, 0.9vw, 0.9rem);
}

.stl-device-link {
    min-width: clamp(62px, 6vw, 86px);
    font-size: 0.74rem;
}

.status-item {
    padding: clamp(11px, 1.6vh, 15px) 16px;
}

.status-name {
    margin-bottom: 6px;
    font-size: 0.68rem;
}

.status-value {
    font-size: clamp(0.84rem, 0.92vw, 0.94rem);
    line-height: 1.38;
}

/* More compact section headers */
.section-head {
    margin-bottom: clamp(20px, 3vh, 30px);
}

.section-kicker {
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(1.65rem, 2.7vw, 2.65rem);
    line-height: 1.08;
}

.section-lead {
    margin-top: 14px;
    font-size: clamp(0.96rem, 1.1vw, 1.03rem);
    line-height: 1.65;
}

/* Card density */
.info-card,
.spec-card,
.price-card,
.cert-card,
.contact-card,
.architecture-note {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* Dynamic hover, not too aggressive */
.window-card,
.doc-card,
.info-card,
.spec-card,
.price-card {
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

@media (hover: hover) {
    .spec-card:hover,
    .price-card:hover {
        transform: translateY(-3px);
        border-color: rgba(var(--accent-rgb), 0.28);
        box-shadow:
            0 20px 54px rgba(0, 0, 0, 0.28),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }
}

/* Better specs density */
.spec-grid {
    gap: 14px;
}

.spec-card {
    padding: 17px 18px;
}

.spec-label {
    margin-bottom: 8px;
    font-size: 0.69rem;
}

.spec-value {
    font-size: 0.98rem;
    line-height: 1.42;
}

/* Section-specific visual accents */
#overview {
    background: rgba(255, 255, 255, 0.006);
}

#architecture {
    background: rgba(106, 166, 255, 0.018);
}

#specs {
    background: rgba(var(--accent-rgb), 0.018);
}

#software {
    background: rgba(255, 255, 255, 0.008);
}

#documents {
    background: rgba(106, 166, 255, 0.014);
}

#offer {
    background: rgba(var(--accent-rgb), 0.018);
}

#contact {
    min-height: auto;
}

/* Reveal animation classes used by updated site.js */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.55s ease,
        transform 0.55s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Laptops and narrow screens */
@media (max-width: 1399.98px) and (min-width: 992px) {
    .hero-section .row {
        --bs-gutter-x: 2rem;
    }

    .hero-title {
        font-size: clamp(2.6rem, 5.4vw, 4.55rem);
    }

    .hero-lead {
        font-size: 1rem;
    }

    .hero-window {
        max-width: 520px;
    }

    .stl-hero-device {
        min-height: 190px;
    }

    .status-item {
        padding: 12px 14px;
    }
}

@media (max-width: 1199.98px) and (min-width: 992px) {
    .hero-title {
        font-size: clamp(2.5rem, 5vw, 4.1rem);
    }

    .hero-window {
        max-width: 480px;
    }

    .stl-hero-device {
        min-height: 170px;
    }

    .status-value {
        font-size: 0.82rem;
    }
}

/* Tablets and phones: do not force screen-height pages */
@media (max-width: 991.98px) {
    html {
        scroll-snap-type: none;
    }

    main > section:not(.hero-section),
    .hero-section {
        min-height: auto;
        display: block;
        padding-top: 42px;
        padding-bottom: 42px;
    }

    .hero-window {
        max-width: none;
        margin-left: 0;
    }

    .hero-title {
        font-size: clamp(2.6rem, 15vw, 4.3rem);
    }
}

@media (max-width: 575.98px) {
    main > section:not(.hero-section),
    .hero-section {
        padding-top: 34px;
        padding-bottom: 34px;
    }

    .hero-title {
        font-size: clamp(2.45rem, 16vw, 3.7rem);
    }
}
