:root {
  --ink: #11151c;
  --ink-soft: #2d3441;
  --paper: #f5f7f9;
  --panel: #ffffff;
  --line: #d9e0e8;
  --muted: #667385;
  --blue: #1463ff;
  --blue-dark: #0a3ba8;
  --green: #19b36b;
  --orange: #ff7a2f;
  --violet: #6a47ff;
  --shadow: 0 24px 70px rgba(17, 21, 28, 0.14);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(17, 21, 28, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 21, 28, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 50;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(20, 99, 255, 0.45);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: 14px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(217, 224, 232, 0.88);
  background: rgba(245, 247, 249, 0.86);
  backdrop-filter: blur(20px);
}

.brand,
.header-download,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 10px;
  width: max-content;
  font-family: "Bahnschrift", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 4vw, 34px);
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 600;
}

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

.site-nav a:hover,
.site-footer a:hover {
  color: var(--blue);
}

.header-download {
  justify-self: end;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px 0 16px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

.header-download svg,
.primary-action svg {
  width: 19px;
  height: 19px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  gap: clamp(36px, 7vw, 88px);
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 104px) clamp(18px, 5vw, 64px) clamp(44px, 8vw, 86px);
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue-dark);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Bahnschrift", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3.5rem, 10vw, 7.7rem);
  font-weight: 800;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2.15rem, 5vw, 4.5rem);
  font-weight: 800;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.lede {
  max-width: 640px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.primary-action,
.secondary-action {
  justify-content: center;
  min-height: 54px;
  border-radius: var(--radius);
  font-weight: 800;
}

.primary-action {
  gap: 10px;
  padding: 0 22px 0 24px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 14px 34px rgba(20, 99, 255, 0.28);
}

.primary-action:hover {
  background: #0957ef;
}

.secondary-action {
  padding: 0 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.secondary-action:hover {
  border-color: var(--ink);
}

.release-note {
  min-height: 36px;
  color: var(--muted);
  font-size: 0.95rem;
}

.product-stage {
  position: relative;
  min-height: 520px;
  isolation: isolate;
}

.product-stage::before {
  position: absolute;
  inset: 48px 10px 18px 90px;
  z-index: -1;
  border: 1px solid rgba(17, 21, 28, 0.08);
  border-radius: 18px;
  content: "";
  background:
    linear-gradient(135deg, rgba(20, 99, 255, 0.22), transparent 44%),
    linear-gradient(315deg, rgba(255, 122, 47, 0.2), transparent 48%),
    #e8eef8;
  transform: skewY(-3deg);
}

.desktop-rail {
  position: absolute;
  top: 30px;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 74px;
  padding: 16px 0;
  border: 1px solid rgba(17, 21, 28, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.rail-node {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink-soft);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.86rem;
  font-weight: 800;
}

.rail-node.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.rail-node.hot {
  border-color: rgba(25, 179, 107, 0.35);
  background: rgba(25, 179, 107, 0.12);
  color: #087a43;
}

.rail-line {
  width: 2px;
  height: 42px;
  background: var(--line);
}

.app-window {
  position: relative;
  margin: 86px 0 0 54px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: #11151c;
  color: #fff;
  box-shadow: var(--shadow);
}

.window-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #1a202a;
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff6d6d;
}

.window-bar span:nth-child(2) {
  background: #ffd166;
}

.window-bar span:nth-child(3) {
  background: #19b36b;
}

.jump-console {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: clamp(22px, 4vw, 34px);
}

.console-label {
  margin-bottom: 4px;
  color: #aeb9ca;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.console-title {
  margin-bottom: 0;
  font-family: "Bahnschrift", "Segoe UI Variable Display", sans-serif;
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 0.9;
}

.console-badge {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid rgba(25, 179, 107, 0.38);
  border-radius: 999px;
  background: rgba(25, 179, 107, 0.14);
  color: #9ff0c5;
  font-size: 0.8rem;
  font-weight: 800;
}

.desktop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 clamp(22px, 4vw, 34px) clamp(22px, 4vw, 34px);
}

.desktop-tile {
  min-height: 128px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent),
    #1c2330;
}

.desktop-tile span {
  color: #95a2b7;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 800;
}

.desktop-tile strong {
  display: block;
  margin-top: 38px;
  font-size: 1.15rem;
}

.desktop-tile.active {
  border-color: rgba(255, 122, 47, 0.7);
  background:
    linear-gradient(135deg, rgba(255, 122, 47, 0.2), transparent 55%),
    #202433;
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px clamp(22px, 4vw, 34px) 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.signal-row span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #dce5f3;
  font-size: 0.82rem;
  font-weight: 700;
}

.feature-band,
.install-band {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 64px);
}

.feature-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.section-heading {
  max-width: 920px;
  margin: 0 auto clamp(26px, 5vw, 46px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1120px;
  margin: 0 auto;
}

.feature-card {
  min-height: 248px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.feature-card svg {
  width: 34px;
  height: 34px;
  margin-bottom: 36px;
  color: var(--blue);
}

.feature-card:nth-child(2) svg {
  color: var(--green);
}

.feature-card:nth-child(3) svg {
  color: var(--orange);
}

.feature-card p,
.download-copy p,
.install-steps p {
  margin-bottom: 0;
  color: var(--muted);
}

.download-band {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 64px);
  background:
    linear-gradient(90deg, rgba(20, 99, 255, 0.08), transparent 35%),
    linear-gradient(270deg, rgba(25, 179, 107, 0.08), transparent 42%),
    var(--paper);
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(24px, 6vw, 72px);
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
}

.download-copy {
  max-width: 650px;
}

.release-panel {
  padding: 24px;
  border: 1px solid rgba(17, 21, 28, 0.12);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 50px rgba(17, 21, 28, 0.1);
}

.release-panel dl {
  display: grid;
  gap: 14px;
  margin: 0 0 22px;
}

.release-panel div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.release-panel dt {
  color: var(--muted);
  font-size: 0.88rem;
}

.release-panel dd {
  max-width: 210px;
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
  text-align: right;
}

.wide {
  width: 100%;
}

.install-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.install-steps li {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
}

.install-steps span {
  display: block;
  margin-bottom: 52px;
  color: var(--violet);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-weight: 800;
}

.install-steps strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  justify-content: space-between;
  padding: 28px clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 940px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .site-nav {
    display: none;
  }

  .hero,
  .download-panel {
    grid-template-columns: 1fr;
  }

  .product-stage {
    min-height: auto;
  }

  .desktop-rail {
    left: 0;
  }

  .app-window {
    margin-left: 48px;
  }

  .feature-grid,
  .install-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 64px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand span {
    display: none;
  }

  .header-download {
    min-height: 40px;
    padding: 0 12px;
  }

  .header-download span {
    display: none;
  }

  .hero {
    padding-top: 42px;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.6rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .product-stage::before {
    inset: 36px 0 6px 42px;
  }

  .desktop-rail {
    width: 48px;
  }

  .rail-node {
    width: 28px;
    height: 28px;
    font-size: 0.74rem;
  }

  .rail-line {
    height: 26px;
  }

  .app-window {
    margin: 56px 0 0 34px;
    border-radius: 10px;
  }

  .desktop-grid {
    grid-template-columns: 1fr;
  }

  .desktop-tile {
    min-height: 94px;
  }

  .desktop-tile strong {
    margin-top: 20px;
  }

  .release-panel div {
    display: grid;
    gap: 2px;
  }

  .release-panel dd {
    max-width: none;
    text-align: left;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .rail-node.hot {
    animation: pulse-node 2.4s ease-in-out infinite;
  }

  .app-window {
    animation: settle-window 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
}

@keyframes pulse-node {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(25, 179, 107, 0);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(25, 179, 107, 0.14);
  }
}

@keyframes settle-window {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
