:root {
    --navy-950: #00172f;
    --navy-900: #001c38;
    --navy-800: #082847;
    --ink: #0a203a;
    --muted: #52657a;
    --cyan: #0aa9e8;
    --cyan-dark: #008cc8;
    --orange: #d56b05;
    --white: #ffffff;
    --surface: #f7fafc;
    --border: #d7e0e8;
    --border-strong: #aab9c7;
    --shadow: 0 16px 40px rgba(0, 27, 55, 0.08);
    --radius: 7px;
    --shell: 1280px;
    --transition: 180ms ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background: var(--white);
    font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body,
button,
a {
    font-variation-settings: "wght" 450;
}

a {
    color: inherit;
}

svg {
    display: block;
}

.shell {
    width: min(calc(100% - 48px), var(--shell));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: relative;
    z-index: 20;
    color: var(--white);
    background: var(--navy-950);
    border-bottom: 1px solid rgba(133, 189, 225, 0.28);
}

.header-inner {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    text-decoration: none;
    font-size: 22px;
    font-weight: 750;
    letter-spacing: 0.025em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    fill: var(--cyan);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 44px;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 15px;
    font-weight: 650;
    transition: color var(--transition);
}

.site-nav a:hover {
    color: var(--cyan);
}

.site-nav svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    color: var(--white);
    background: transparent;
    cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: currentColor;
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.hero {
    position: relative;
    min-height: 340px;
    color: var(--white);
    background-color: var(--navy-950);
    background-image: url("hero-cnc.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

.hero-inner {
    min-height: 340px;
    display: flex;
    align-items: center;
}

.hero-copy {
    position: relative;
    z-index: 1;
    width: min(820px, 65%);
    padding: 46px 0 50px;
}

.hero h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(40px, 3.4vw, 50px);
    line-height: 1.06;
    letter-spacing: -0.035em;
    font-weight: 750;
}

.hero p {
    max-width: 610px;
    margin: 20px 0 28px;
    color: rgba(255, 255, 255, 0.83);
    font-size: 19px;
    line-height: 1.55;
}

.button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 22px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    text-decoration: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.button svg,
.release-download svg,
.footer-link svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    color: var(--white);
    background: var(--cyan);
    box-shadow: 0 10px 28px rgba(10, 169, 232, 0.24);
}

.button-primary:hover {
    background: var(--cyan-dark);
    box-shadow: 0 13px 32px rgba(10, 169, 232, 0.3);
}

.button-large {
    min-height: 58px;
    padding-inline: 30px;
    font-size: 18px;
}

.button-outline {
    color: var(--cyan-dark);
    background: var(--white);
    border-color: var(--cyan);
}

.button-outline:hover {
    color: var(--white);
    background: var(--cyan-dark);
    border-color: var(--cyan-dark);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid #ffd166;
    outline-offset: 4px;
}

.catalog {
    padding: 30px 0 0;
}

.catalog h2,
.versions h2 {
    margin: 0;
    font-size: 29px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 750;
}

.product-list {
    margin-top: 14px;
    border-top: 1px solid var(--border);
}

.product-row {
    min-height: 132px;
    display: grid;
    grid-template-columns: minmax(360px, 1.4fr) minmax(450px, 1.65fr) 170px;
    align-items: center;
    gap: 30px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.product-identity {
    display: grid;
    grid-template-columns: 88px 1fr;
    align-items: center;
    gap: 24px;
}

.product-icon {
    width: 88px;
    height: 76px;
    display: grid;
    place-items: center;
    color: var(--cyan-dark);
}

.product-icon-toolpath {
    border: 1.5px solid var(--navy-800);
    border-radius: var(--radius);
}

.product-icon svg {
    width: 68px;
    height: 68px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.product-identity h3 {
    margin: 0 0 6px;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 750;
}

.product-identity p {
    margin: 0;
    max-width: 340px;
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.45;
}

.product-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
}

.product-meta > div {
    min-height: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 24px;
    border-left: 1px solid var(--border);
}

.product-meta dt {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.3;
}

.product-meta dd {
    margin: 4px 0 0;
    color: var(--ink);
    font-size: 16px;
    font-weight: 650;
}

.product-download {
    width: 100%;
}

.unavailable {
    grid-column: 2 / -1;
    margin: 0;
    color: var(--muted);
}

.versions {
    padding: 34px 0 48px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 14px;
}

.section-heading p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.release-table {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.release-header,
.release-row {
    display: grid;
    grid-template-columns: 1.25fr 0.8fr 0.8fr 1fr 0.85fr;
    align-items: center;
}

.release-header {
    min-height: 46px;
    color: var(--ink);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    font-weight: 750;
}

.release-header span,
.release-row > div {
    padding: 10px 22px;
}

.release-header span + span,
.release-row > div + div {
    border-left: 1px solid var(--border);
}

.release-row {
    min-height: 58px;
    color: #273d54;
    font-size: 14px;
}

.release-row + .release-row {
    border-top: 1px solid var(--border);
}

.release-table.is-collapsed .release-row-extra {
    display: none;
}

.release-row:hover {
    background: #f8fcfe;
}

.release-version {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.release-version strong {
    color: var(--ink);
    font-size: 15px;
}

.release-version span {
    color: var(--muted);
    font-size: 12px;
}

.release-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cyan-dark);
    text-decoration: none;
    font-weight: 700;
}

.release-download:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.empty-state {
    padding: 40px;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}

.site-footer {
    color: rgba(255, 255, 255, 0.82);
    background: var(--navy-950);
    border-top: 1px solid rgba(133, 189, 225, 0.2);
}

.footer-inner {
    min-height: 92px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}

.brand-footer {
    font-size: 18px;
}

.brand-footer .brand-mark {
    width: 32px;
    height: 32px;
}

.footer-inner p {
    margin: 0;
    font-size: 14px;
}

.footer-link {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: inherit;
    text-decoration: none;
    font-size: 14px;
}

.footer-link:hover {
    color: var(--cyan);
}

@media (max-width: 1080px) {
    .product-row {
        grid-template-columns: minmax(320px, 1.25fr) minmax(360px, 1.45fr) 150px;
        gap: 18px;
    }

    .product-identity {
        gap: 16px;
    }

    .product-meta > div {
        padding-inline: 15px;
    }
}

@media (min-width: 1081px) {
    .hero h1 {
        white-space: nowrap;
    }
}

@media (max-width: 860px) {
    .site-nav {
        gap: 24px;
    }

    .hero-copy {
        width: min(650px, 72%);
    }

    .product-row {
        grid-template-columns: minmax(300px, 1fr) 1fr;
        gap: 18px 28px;
        padding: 26px 0;
    }

    .product-meta {
        grid-column: 2;
    }

    .product-download {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 680px) {
    .shell {
        width: min(calc(100% - 32px), var(--shell));
    }

    .header-inner {
        min-height: 72px;
    }

    .brand {
        font-size: 20px;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
    }

    .menu-toggle {
        display: block;
    }

    .menu-toggle[aria-expanded="true"] span:nth-of-type(2) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] span:nth-of-type(3) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] span:nth-of-type(4) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .site-nav {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        display: grid;
        gap: 0;
        padding: 8px 16px 16px;
        color: var(--white);
        background: var(--navy-950);
        border-bottom: 1px solid rgba(133, 189, 225, 0.28);
        box-shadow: 0 18px 32px rgba(0, 12, 26, 0.28);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
    }

    .site-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .site-nav a {
        padding: 8px 12px;
    }

    .hero,
    .hero-inner {
        min-height: 430px;
    }

    .hero {
        background-position: 55% center;
        background-size: auto 100%;
    }

    .hero-copy {
        width: min(430px, 92%);
        padding: 42px 0 44px;
    }

    .hero h1 {
        font-size: clamp(38px, 11vw, 49px);
        line-height: 1.08;
    }

    .hero p {
        margin-block: 18px 24px;
        font-size: 17px;
    }

    .button-large {
        min-height: 56px;
        padding-inline: 25px;
        font-size: 17px;
    }

    .catalog {
        padding-top: 26px;
    }

    .catalog h2,
    .versions h2 {
        font-size: 26px;
    }

    .product-list {
        margin-top: 12px;
    }

    .product-row {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 22px 0;
    }

    .product-identity {
        grid-template-columns: 104px 1fr;
        gap: 18px;
    }

    .product-icon {
        width: 104px;
        height: 88px;
    }

    .product-identity h3 {
        font-size: 21px;
    }

    .product-identity p {
        font-size: 15px;
    }

    .product-meta {
        grid-column: auto;
        grid-template-columns: repeat(2, 1fr);
        margin-left: 122px;
    }

    .product-meta > div {
        min-height: 54px;
        padding: 0 16px;
    }

    .product-meta > div:nth-child(3) {
        grid-column: 1 / -1;
        border-top: 1px solid var(--border);
        padding-top: 8px;
    }

    .section-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .section-heading .button {
        width: 100%;
    }

    .release-table {
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .release-header {
        display: none;
    }

    .release-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px 20px;
        padding: 16px 0;
        border-bottom: 1px solid var(--border);
        font-size: 14px;
    }

    .release-row + .release-row {
        border-top: 0;
    }

    .release-row > div,
    .release-header span {
        padding: 0;
    }

    .release-row > div + div {
        border-left: 0;
    }

    .release-row > div::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 2px;
        color: var(--muted);
        font-size: 11px;
        font-weight: 650;
        text-transform: uppercase;
        letter-spacing: 0.055em;
    }

    .release-version {
        display: block;
    }

    .release-version span {
        display: block;
        margin-top: 2px;
    }

    .release-row > div:last-child {
        display: flex;
        align-items: end;
    }

    .release-row > div:last-child::before {
        display: none;
    }

    .release-download {
        min-height: 42px;
    }

    .footer-inner {
        min-height: 156px;
        grid-template-columns: 1fr;
        align-content: center;
        gap: 10px;
        padding-block: 24px;
    }

    .footer-link {
        justify-self: start;
    }
}

@media (max-width: 420px) {
    .hero {
        background-position: 25% center;
    }

    .hero-copy {
        width: 100%;
    }

    .product-identity {
        grid-template-columns: 88px 1fr;
        gap: 16px;
    }

    .product-icon {
        width: 88px;
        height: 80px;
    }

    .product-meta {
        margin-left: 104px;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
