:root {
    color-scheme: dark;
    --bg: #0b0c13;
    --panel: #11131f;
    --line: #262837;
    --text: #f5f4ff;
    --muted: #a8acc0;
    --accent: #ae9dff;
    --cta: #b1a1fd;
    font-family: Geist, Inter, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #c4b7ff; outline-offset: 5px; }
section[id] { scroll-margin-top: 90px; }
.shell { width: min(1200px, calc(100% - 112px)); margin-inline: auto; }
.section-space { margin-block-start: clamp(65px, 8vw, 112px); }

.skip-link {
    position: fixed;
    inset: 10px auto auto 10px;
    z-index: 5;
    transform: translateY(-160%);
    padding: 12px 20px;
    background: var(--cta);
    color: var(--bg);
}
.skip-link:focus { transform: none; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 3;
    border-bottom: 1px solid var(--line);
    background: rgb(11 12 19 / 94%);
    backdrop-filter: blur(16px);
}
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; gap: 10px; align-items: center; font-size: 21px; font-weight: 750; letter-spacing: -.045em; }
.site-header nav { display: flex; gap: 34px; font-size: 14px; color: var(--muted); font-weight: 550; }
.site-header nav a { padding: 10px 0; }
.site-header nav a:hover { color: var(--text); }

.button {
    min-height: 48px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border: 1px solid transparent;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
    transition: background-color .18s ease, border-color .18s ease;
}
.button-header { min-height: 37px; border-color: #413d54; color: #e5dfff; background: #171625; }
.button-header:hover { background: #272441; border-color: #655b95; }
.button-primary { color: #151027; background: var(--cta); box-shadow: 0 6px 32px rgb(145 117 255 / 20%); }
.button-primary:hover { background: #c6bcff; }
.detail-link { color: #d6d4e4; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; }
.detail-link span { color: var(--accent); }
.detail-link:hover { color: #fff; }
.windows-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    background: linear-gradient(90deg, transparent 6px, #b1a1fd 6px 8px, transparent 8px),
                linear-gradient(0deg, transparent 6px, #b1a1fd 6px 8px, transparent 8px),
                currentColor;
}
.download-icon {
    position: relative;
    width: 13px;
    height: 12px;
    border-bottom: 1.5px solid currentColor;
}
.download-icon::before {
    content: "";
    position: absolute;
    width: 1.5px;
    height: 8px;
    top: 0;
    left: 5.75px;
    background: currentColor;
}
.download-icon::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    left: 3.5px;
    top: 3px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
}

.hero {
    position: relative;
    overflow: clip;
    background:
        radial-gradient(ellipse at 76% 48%, rgb(40 38 113 / 32%), transparent 62%),
        linear-gradient(180deg, #10101b, var(--bg));
}
.hero-grid {
    min-height: clamp(500px, 45vw, 610px);
    display: grid;
    grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr);
    align-items: center;
    gap: 32px;
    padding-block: 54px 62px;
}
.hero-content { position: relative; z-index: 1; }
.eyebrow {
    margin: 0 0 14px;
    color: var(--accent);
    font: 600 12px/1.4 "IBM Plex Mono", "Cascadia Mono", monospace;
    letter-spacing: .17em;
    text-transform: uppercase;
}
.signal {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin: 0 6px 2px 0;
    border-radius: 50%;
    background: #a995ff;
    box-shadow: 0 0 13px #ad8bff;
}
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-weight: 750; letter-spacing: -.07em; }
h1 { font-size: clamp(50px, 5.45vw, 78px); line-height: 1.01; }
h1 em { color: var(--accent); font-style: normal; }
.hero-lead { max-width: 400px; margin-top: 25px; color: var(--muted); font-size: clamp(16px, 1.45vw, 19px); line-height: 1.65; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 19px 25px; margin-top: 30px; }

.hero-media {
    position: relative;
    border: 1px solid #36385b;
    border-radius: 20px;
    overflow: hidden;
    background: #090d28;
    box-shadow: 0 25px 85px rgb(0 0 0 / 35%), 0 0 70px rgb(69 64 183 / 15%);
}
.hero-media img { width: 100%; height: auto; }
.hero-media figcaption {
    position: absolute;
    right: 14px;
    bottom: 12px;
    padding: 4px 7px;
    border-radius: 4px;
    background: #080a1b;
    color: #b9bad2;
    font: 11px/1.25 "Cascadia Mono", monospace;
}

.specs { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); padding-block: 19px; }
.specs > div { min-height: 56px; display: grid; align-content: center; justify-items: center; gap: 5px; color: var(--muted); font-size: 13px; text-align: center; padding: 0 6px; }
.specs > div + div { border-inline-start: 1px solid var(--line); }
.specs .spec-value { color: var(--text); font: 600 clamp(16px, 2vw, 23px)/1.2 "IBM Plex Mono", "Cascadia Mono", monospace; letter-spacing: -.055em; }

.studio { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 46px; }
h2 { font-size: clamp(38px, 4.1vw, 60px); line-height: 1.07; }
.studio-content > p:not(.eyebrow), .download-panel p:not(.eyebrow) { color: var(--muted); font-size: 16px; line-height: 1.65; }
.studio-content > p:not(.eyebrow) { margin-top: 16px; max-width: 460px; }
.demo { border-radius: 16px; background: #121421; border: 1px solid #2c2e41; overflow: hidden; }
.demo-heading { min-height: 53px; padding: 9px 20px; border-bottom: 1px solid #2c2e41; display: flex; align-items: center; gap: 10px; }
.demo-heading h3 { font-size: 14px; font-weight: 650; }
.demo-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 20px; gap: 20px; }
.key-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-content: center; gap: 6px; }
.demo-key {
    min-height: 38px;
    aspect-ratio: 1.1;
    border-radius: 6px;
    border: 1px solid #373754;
    color: #bfbcdf;
    background: linear-gradient(150deg, #202238, #181a2c);
    font: 500 12px/1 "Cascadia Mono", monospace;
}
.demo-key:not(:disabled), .demo-profiles button:not(:disabled), summary { cursor: pointer; }
.demo-key[aria-pressed="true"], .demo-key:hover:not(:disabled) { background: #302951; border-color: #a291ff; color: #f1eaff; box-shadow: inset 0 -3px #8870de; }
.demo[data-active-profile="home"] .demo-key[aria-pressed="true"] { background: #1f3b43; border-color: #67d8d5; box-shadow: inset 0 -3px #429c9f; }
.demo-detail { padding: 4px 0; }
.demo-profiles { display: flex; flex-wrap: wrap; gap: 5px; }
.demo-profiles button { min-height: 33px; padding: 0 8px; border-radius: 5px; background: transparent; border: 1px solid #37374d; color: var(--muted); font-size: 12px; }
.demo-profiles button[aria-pressed="true"], .demo-profiles button:hover:not(:disabled) { color: #e6e1fa; border-color: #665998; background: #28213f; }
.demo-binding { margin-top: 18px; color: var(--muted); font-size: 12px; }
#demo-action { margin-top: 6px; font-size: 15px; line-height: 1.4; font-weight: 650; overflow-wrap: anywhere; }

.features { margin-block-start: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.features article { padding: 23px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.feature-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 7px; color: #d6caff; background: #27223f; font-size: 22px; }
.features h3 { margin: 13px 0 6px; font-size: 17px; letter-spacing: -.02em; }
.features p { color: var(--muted); font-size: 14px; line-height: 1.6; }

.download-panel {
    padding: clamp(24px, 4vw, 52px);
    border: 1px solid #413a63;
    border-radius: 17px;
    background: radial-gradient(ellipse at 96% 2%, #2b2155, transparent 70%), #141323;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: center;
    gap: 24px;
}
.download-panel h2 { font-size: clamp(33px, 3.7vw, 50px); }
.download-panel h2 + p { margin-top: 13px; }
.download-action { justify-self: end; text-align: right; }
.download-action .detail-link { margin-top: 6px; }
.download-panel .download-action .release-info { margin-top: 10px; font-size: 13px; }
.release-details { grid-column: 1 / -1; border-top: 1px solid #413a63; padding-top: 15px; color: #e1daf9; font-size: 14px; }
.release-details p { margin-top: 9px; }
.release-notes { white-space: pre-wrap; overflow-wrap: anywhere; }
.release-details code { overflow-wrap: anywhere; font-size: 12px; }
.site-footer { min-height: 92px; margin-top: 34px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); }

@media (max-width: 1050px) {
    .shell { width: calc(100% - 72px); }
    .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
    .studio { gap: 28px; }
}
@media (max-width: 820px) {
    .shell { width: calc(100% - 44px); }
    .hero-grid { grid-template-columns: 1fr; padding-block: 50px 30px; gap: 28px; }
    .hero-lead { margin-top: 18px; }
    .hero-actions { margin-top: 21px; }
    .hero-media { max-width: 620px; }
    .studio { grid-template-columns: 1fr; }
    .features { grid-template-columns: 1fr; }
    .download-panel { grid-template-columns: 1fr; gap: 16px; }
    .download-action { justify-self: start; text-align: left; }
}
@media (max-width: 460px) {
    .header-inner { min-height: 59px; gap: 10px; }
    .site-header nav { display: none; }
    .brand { font-size: 19px; }
    .shell { width: calc(100% - 32px); }
    section[id] { scroll-margin-top: 70px; }
    h1 { font-size: clamp(43px, 11.5vw, 56px); }
    .hero-grid { padding-top: 37px; }
    .hero-media { border-radius: 12px; }
    .specs { grid-template-columns: 1fr 1fr; gap: 0; padding-block: 0; }
    .specs > div { padding: 9px 4px; }
    .specs > div:nth-child(3) { border-inline-start: 0; }
    .specs > div:nth-child(n+3) { border-top: 1px solid var(--line); }
    .demo-body { padding: 13px; gap: 12px; }
    .demo-heading { padding-inline: 13px; }
    .demo-key { min-height: 33px; }
    .demo-profiles button { padding: 0 6px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .button { transition: none; }
}
