:root {
  color-scheme: light;
  --night: #0c171b;
  --night-edge: #26383e;
  --deep: #102329;
  --mint: #adf4d9;
  --mint-strong: #15664f;
  --white: #f6faf7;
  --light-muted: #abbdbd;
  --paper: #f1f4ee;
  --ink: #10231e;
  --muted: #4d6158;
  --rule: #cdd9ce;
  --shell: 1130px;
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
  line-height: 1.6;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--white); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
[hidden] { display: none !important; }
section[id], .showcase[id] { scroll-margin-top: 1.25rem; }
:focus-visible { outline: 3px solid #29a776; outline-offset: 4px; }

.shell { width: min(var(--shell), calc(100% - 5rem)); margin-inline: auto; }
.skip-link { position: fixed; left: 1rem; top: 1rem; z-index: 3; translate: 0 -200%; background: var(--mint); color: var(--ink); padding: .5rem .9rem; }
.skip-link:focus { translate: 0; }

.site-header { background: #0c171b; border-bottom: 1px solid #233136; }
.header-inner {
  min-height: 4.6rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}
.brand { display: inline-flex; width: fit-content; align-items: center; gap: .65rem; font-size: 1.16rem; font-weight: 740; letter-spacing: .02em; white-space: nowrap; }
.brand img { object-fit: contain; }
.brand > span { display: inline-flex; gap: .6rem; align-items: center; }
.brand-divider { width: 1px; height: 1rem; background: #4a605e; }
.brand-desktop { color: #a9bcb9; font-size: .91rem; font-weight: 520; letter-spacing: 0; }
.site-nav, .header-actions, .footer-inner nav { display: flex; align-items: center; gap: clamp(1rem, 2.7vw, 2.25rem); font-size: .94rem; }
.site-nav a, .source-link, .footer-inner nav a { color: #b8c8c5; transition: color .16s ease; }
.site-nav a:hover, .source-link:hover, .footer-inner nav a:hover { color: var(--mint); }
.header-actions { justify-content: flex-end; gap: 1.35rem; }

.button {
  min-height: 3.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .63rem 1.15rem;
  border: 1px solid transparent;
  border-radius: .42rem;
  white-space: nowrap;
  font-size: .96rem;
  font-weight: 650;
  transition: background .16s ease, border-color .16s ease;
}
.button-small { min-height: 2.55rem; padding: .44rem .88rem; font-size: .91rem; }
.button-primary { color: #0b3024; background: var(--mint); }
.button-primary:hover { background: #cdfae9; }
.button-outline { border-color: #435954; color: var(--white); }
.button-outline:hover { background: #223d36; border-color: #719386; }
.download-symbol { width: .93rem; height: .78rem; position: relative; border: 1.5px solid currentColor; border-top: 0; border-radius: 0 0 .2rem .2rem; }
.download-symbol::after { content: ""; position: absolute; width: .4rem; aspect-ratio: 1; inset: .03rem auto auto .19rem; border-right: 1.5px solid; border-bottom: 1.5px solid; rotate: 45deg; }
.download-symbol::before { content: ""; position: absolute; height: .55rem; width: 1.5px; background: currentColor; left: calc(50% - .75px); top: -.24rem; }

.intro {
  padding: clamp(3rem, 5vw, 4.4rem) 0 clamp(3rem, 6vw, 5rem);
  background: radial-gradient(ellipse at 82% 55%, #173f42 0, transparent 55%), linear-gradient(155deg, #0c171b 18%, #112830 100%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 13.2rem; align-items: end; gap: 3rem; margin-bottom: 2.6rem; }
.eyebrow { display: flex; align-items: center; gap: .72rem; font-size: .86rem; font-weight: 700; letter-spacing: .1em; line-height: 1.3; color: var(--mint); }
.eyebrow-line { display: inline-block; width: 1.45rem; height: 1px; background: currentColor; }
h1, h2, h3 { line-height: 1.14; text-wrap: balance; }
h1 { margin-top: 1rem; font-size: clamp(3.15rem, 6vw, 5.45rem); letter-spacing: -.073em; line-height: 1.04; font-weight: 745; }
h1 span { color: var(--mint); }
.intro-description { margin-top: 1.5rem; max-width: 40rem; color: var(--light-muted); font-size: clamp(1rem, 1.55vw, 1.19rem); }
.actions { display: flex; align-items: flex-start; flex-wrap: wrap; gap: .72rem; margin-top: 1.65rem; }
.hero-specs { align-self: end; border-top: 1px solid #49605d; padding-bottom: .15rem; }
.hero-specs div { border-bottom: 1px solid #415754; padding: .73rem 0 .76rem; }
.hero-specs dt { color: var(--light-muted); font-size: .87rem; }
.hero-specs dd { display: flex; gap: .45rem; align-items: baseline; font-size: 1.06rem; font-weight: 670; }
.hero-specs dd span { font-size: .88rem; font-weight: 420; color: var(--light-muted); }

.showcase { border: 1px solid #42615e; border-radius: .8rem; overflow: hidden; background: #0f2125; box-shadow: 0 1.65rem 4rem #060c10a0; }
.showcase-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .55rem; min-height: 3.55rem; padding: .45rem .75rem .45rem 1rem; background: #112529; }
.preview-label { display: flex; align-items: center; gap: .55rem; color: #d5e5df; font-size: .92rem; font-weight: 640; white-space: nowrap; }
.status-dot { width: .48rem; aspect-ratio: 1; border-radius: 50%; background: #9aebcd; }
.view-picker { display: flex; gap: .18rem; align-items: center; }
.view-picker button { min-height: 2.25rem; padding: .28rem .85rem; border: 1px solid transparent; border-radius: .3rem; background: transparent; color: #b9cbc5; font-size: .91rem; cursor: pointer; }
.view-picker button:hover { color: #e6fff1; background: #203633; }
.view-picker button[aria-selected="true"] { color: #d9ffef; border-color: #49695e; background: #28463d; }
.screens img { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: contain; background: #132c39; }
.screens figcaption { padding: .72rem 1rem; border-top: 1px solid #344b49; color: #b6c7c1; font-size: .92rem; }

.section-light { background: var(--paper); color: var(--ink); }
.section-light .eyebrow { color: var(--mint-strong); }
.features { padding: clamp(4rem, 8vw, 6.45rem) 0 clamp(3.2rem, 6vw, 5rem); }
.section-heading { max-width: 43rem; margin-bottom: 2.45rem; }
h2 { margin-top: .8rem; font-size: clamp(2.5rem, 5.1vw, 4.3rem); font-weight: 730; letter-spacing: -.064em; }
.section-heading > p:last-child, .setup-copy > p:not(.eyebrow), .download-grid p:not(.eyebrow) { margin-top: .95rem; max-width: 38rem; font-size: 1.075rem; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--rule); }
.feature { padding: 1.65rem 1.55rem 1.9rem; }
.feature:first-child { padding-left: 0; }
.feature:not(:first-child) { border-left: 1px solid var(--rule); }
.feature h3 { margin: .95rem 0 .5rem; font-size: 1.29rem; letter-spacing: -.025em; }
.feature p, .steps p { color: var(--muted); }
.feature-icon { position: relative; display: block; width: 2.5rem; height: 2.5rem; background: #dcece1; color: #196349; border-radius: .45rem; }
.feature-icon::before { content: ""; position: absolute; inset: .78rem .61rem; border: 1.5px solid; border-radius: .15rem; }
.icon-layout::after { content: ""; position: absolute; inset: 1.37rem .64rem auto; border-top: 1.5px solid; }
.icon-folder::after { content: ""; position: absolute; left: .61rem; top: .62rem; width: .56rem; height: .32rem; background: #dcece1; border: 1.5px solid; border-bottom: 0; border-radius: .12rem .12rem 0 0; }
.icon-keys::after { content: ""; position: absolute; top: 1.1rem; left: .94rem; width: .13rem; height: .13rem; background: currentColor; box-shadow: .26rem 0, .52rem 0, .13rem .24rem, .39rem .24rem; }

.setup { padding: .4rem 0 clamp(4rem, 8vw, 6.5rem); }
.setup-grid { display: grid; grid-template-columns: .9fr 1fr; align-items: start; gap: clamp(1.8rem, 7vw, 7.35rem); }
.text-link { display: inline-block; margin-top: 1.3rem; color: #135943; font-weight: 680; text-decoration: underline; text-underline-offset: .24rem; }
.text-link:hover { color: #082f23; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.25rem 1fr; gap: .9rem; border-bottom: 1px solid var(--rule); padding: 1.05rem 0 1.25rem; }
.steps li:first-child { border-top: 1px solid var(--rule); }
.step-counter { display: grid; place-items: center; align-self: start; width: 2.15rem; aspect-ratio: 1; border-radius: 50%; background: #dbe9df; color: #145a43; font-weight: 700; line-height: 1; }
.step-counter::before { content: counter(step); }
.steps h3 { margin: .15rem 0 .35rem; font-size: 1.2rem; letter-spacing: -.02em; }

.download-section { padding: clamp(3.3rem, 7vw, 5.25rem) 0; border-block: 1px solid #263e37; background: linear-gradient(130deg, #122b23, #0e2225); }
.download-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, .35fr); align-items: center; gap: 3rem; }
.download-grid p:not(.eyebrow) { color: #c0d0c7; }
.download-grid code { color: #dcf7e9; font-size: .96em; overflow-wrap: anywhere; }
.download-spec { display: flex; align-items: center; gap: .85rem; padding: 1.15rem; border: 1px solid #456054; border-radius: .6rem; background: #193429; }
.download-spec img { width: 2.75rem; height: 2.75rem; object-fit: contain; }
.download-spec strong, .download-spec span { display: block; }
.download-spec span { color: #bdcfc4; font-size: .9rem; }
.footer-inner { min-height: 5.6rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: 1.25rem; }

@media (max-width: 850px) {
  .shell { width: calc(100% - 3rem); }
  .source-link { display: none; }
  .hero-grid { gap: 1.5rem; }
  .feature { padding-inline: 1.15rem; }
}

@media (max-width: 680px) {
  .shell { width: calc(100% - 2rem); }
  .header-inner { grid-template-columns: 1fr auto; gap: 0 .85rem; padding: .65rem 0 .5rem; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .site-nav { grid-column: 1 / -1; justify-content: flex-start; margin-top: .38rem; gap: 1.5rem; padding: .3rem 0 .2rem; }
  .intro { padding-top: 2.6rem; }
  .hero-grid { grid-template-columns: 1fr; margin-bottom: 1.7rem; }
  h1 { font-size: clamp(2.75rem, 9.6vw, 4.2rem); }
  .hero-specs { display: flex; flex-wrap: wrap; gap: .45rem 1rem; padding-block: .52rem .05rem; }
  .hero-specs div { border: 0; padding: 0; }
  .hero-specs dt { font-size: .88rem; }
  .hero-specs dd { font-size: .96rem; }
  .hero-specs dd span { display: none; }
  .showcase-toolbar { padding-inline: .6rem .42rem; }
  .preview-label, .view-picker button { font-size: .875rem; }
  .view-picker button { padding-inline: .53rem; }
  .feature-grid, .setup-grid, .download-grid { grid-template-columns: 1fr; }
  .feature, .feature:first-child { padding: 1.25rem 0; }
  .feature:not(:first-child) { border-left: 0; border-top: 1px solid var(--rule); }
  .setup-grid, .download-grid { gap: 1.8rem; }
  .download-spec { width: fit-content; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
