:root {
  --ink950: #050505;
  --ink900: #090a0b;
  --ink850: #0e1012;
  --ink800: #141619;
  --ink750: #1d2024;
  --ink700: #292d32;
  --line-soft: #2c3036;
  --line-strong: #60646b;
  --text-strong: #f7f4ee;
  --text-main: #e4ded4;
  --text-muted: #aeb4bd;
  --text-faint: #717b88;
  --polar: #f4f7fa;
  --warm: #d0a157;
  --warm-soft: rgba(208, 161, 87, 0.18);
  --cool: #7f8c9a;
  --cool-light: #b8c3cf;
  --success: #7bd88f;
  --error: #d76c78;
  --shadow: 0 30px 120px rgba(0, 0, 0, 0.46);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink950);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-main);
  background:
    linear-gradient(180deg, rgba(20, 22, 25, 0.92) 0, var(--ink950) 520px),
    var(--ink950);
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  width: min(1280px, calc(100% - 32px));
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  color: var(--text-strong);
}

.brand-mark,
.topnav {
  display: inline-flex;
  align-items: center;
}

.brand-mark {
  gap: 11px;
  font-weight: 850;
  text-decoration: none;
}

.brand-icon {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(208, 161, 87, 0.86);
  border-radius: 2px;
  background:
    linear-gradient(135deg, transparent 58%, var(--warm) 58%),
    var(--ink750);
}

.topnav {
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(9, 10, 11, 0.84);
  backdrop-filter: blur(18px);
}

.topnav a {
  padding: 8px 9px;
  border-radius: 3px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 760;
  text-decoration: none;
}

.topnav a:hover,
.topnav a:focus-visible {
  color: var(--text-strong);
  background: rgba(244, 247, 250, 0.08);
  outline: none;
}

.page-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 34px;
}

.hero {
  min-height: calc(100vh - 174px);
  display: grid;
  grid-template-columns: minmax(420px, 0.82fr) minmax(560px, 1.18fr);
  gap: 34px;
  align-items: center;
}

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

.release-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 18px;
  padding: 6px 10px;
  border: 1px solid rgba(208, 161, 87, 0.56);
  border-radius: 3px;
  color: #f2bc79;
  background: rgba(208, 161, 87, 0.1);
  font-size: 0.83rem;
  font-weight: 800;
}

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

h1 {
  margin-bottom: 20px;
  color: var(--text-strong);
  font-size: 5.6rem;
  line-height: 0.9;
  letter-spacing: 0;
}

.lede {
  max-width: 36rem;
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 1.09rem;
  line-height: 1.7;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.hero-proof span {
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  color: var(--text-muted);
  background: rgba(244, 247, 250, 0.035);
  font-size: 0.82rem;
  font-weight: 760;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 32px;
}

.download-card {
  position: relative;
  display: grid;
  min-height: 124px;
  align-content: center;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  background: rgba(14, 16, 18, 0.84);
  text-decoration: none;
  transition:
    transform 120ms ease,
    border-color 120ms ease,
    background 120ms ease;
}

.download-card::after {
  position: absolute;
  top: 14px;
  right: 14px;
  display: none;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 2px;
  color: var(--ink950);
  background: var(--cool-light);
  content: "Detected";
  font-size: 0.72rem;
  font-weight: 850;
}

.platform-mac [data-platform-card="mac"]::after,
.platform-windows [data-platform-card="windows"]::after {
  display: inline-flex;
  align-items: center;
}

.download-card:not(.disabled):hover,
.download-card:not(.disabled):focus-visible {
  transform: translateY(-1px);
  border-color: rgba(244, 247, 250, 0.44);
  background: rgba(23, 29, 37, 0.92);
  outline: none;
}

.download-card.primary {
  border-color: rgba(208, 161, 87, 0.72);
  background:
    linear-gradient(180deg, rgba(208, 161, 87, 0.22), rgba(208, 161, 87, 0.08)),
    var(--ink800);
  color: var(--text-strong);
}

.download-card.disabled {
  cursor: not-allowed;
  opacity: 0.68;
  pointer-events: none;
}

.download-kicker {
  color: var(--text-faint);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.download-title {
  color: var(--text-strong);
  font-size: 1.12rem;
  font-weight: 850;
}

.download-meta,
.download-checksum {
  min-height: 1.1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.download-checksum {
  overflow-wrap: anywhere;
  font-family: Menlo, ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
}

.release-status {
  min-height: 1.5rem;
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.tester-note {
  max-width: 34rem;
  margin: 10px 0 0;
  color: var(--text-faint);
  font-size: 0.87rem;
  line-height: 1.5;
}

.product-panel {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: var(--ink900);
  box-shadow: var(--shadow);
}

.app-screenshot {
  display: none;
  width: 100%;
  height: auto;
  max-height: 660px;
  object-fit: contain;
  background: var(--ink950);
}

.app-preview.has-real-screenshot .app-screenshot {
  display: block;
}

.app-preview.has-real-screenshot .workspace-preview {
  display: none;
}

.window-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--ink750);
}

.traffic-lights {
  display: flex;
  gap: 8px;
}

.traffic-lights span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #59616c;
}

.window-title {
  color: var(--text-faint);
  font-size: 0.73rem;
  font-weight: 780;
}

.workspace-preview {
  display: grid;
  min-height: 500px;
  grid-template-columns: 64px minmax(0, 1fr) 206px;
  background: var(--ink950);
}

.preview-sidebar {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 8px;
  padding: 12px 10px;
  border-right: 1px solid var(--line-soft);
  background: var(--ink900);
}

.tool-button {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(44, 48, 54, 0.88);
  border-radius: 2px;
  background: var(--ink850);
}

.tool-button::before,
.tool-button::after {
  position: absolute;
  content: "";
}

.tool-button.active {
  border-color: rgba(244, 247, 250, 0.68);
  background: var(--ink750);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}

.grid-tool::before {
  inset: 12px;
  border: 2px solid var(--text-muted);
}

.grid-tool::after {
  left: 20px;
  top: 12px;
  width: 2px;
  height: 18px;
  background: var(--text-muted);
  box-shadow: -8px 8px 0 -1px var(--text-muted), 8px 8px 0 -1px var(--text-muted);
}

.library-tool::before {
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 14px;
  border: 2px solid var(--text-muted);
  border-top-width: 7px;
}

.brush-tool::before {
  left: 13px;
  top: 12px;
  width: 17px;
  height: 5px;
  border-radius: 999px;
  background: var(--polar);
  transform: rotate(-45deg);
}

.brush-tool::after {
  left: 21px;
  top: 20px;
  width: 5px;
  height: 12px;
  border-radius: 999px;
  background: var(--polar);
  transform: rotate(45deg);
}

.stack-tool::before {
  left: 12px;
  top: 14px;
  width: 18px;
  height: 4px;
  border: 2px solid var(--text-muted);
  border-left: 0;
  border-right: 0;
}

.export-tool::before {
  left: 13px;
  bottom: 12px;
  width: 16px;
  height: 8px;
  border: 2px solid var(--text-muted);
  border-top: 0;
}

.export-tool::after {
  left: 20px;
  top: 11px;
  width: 2px;
  height: 16px;
  background: var(--text-muted);
  box-shadow: 0 -1px 0 0 var(--text-muted);
}

.preview-stage {
  display: grid;
  min-width: 0;
  grid-template-rows: 34px minmax(0, 1fr) 74px;
  gap: 8px;
  padding: 10px;
  border-right: 1px solid var(--line-soft);
  background: #060707;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 7px;
}

.toolbar-chip {
  min-width: 68px;
  padding: 7px 9px;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  color: var(--text-faint);
  background: var(--ink850);
  font-size: 0.74rem;
  font-weight: 780;
  text-align: center;
}

.toolbar-chip.active-tool {
  border-color: rgba(208, 161, 87, 0.64);
  color: var(--text-strong);
  background: rgba(208, 161, 87, 0.1);
}

.image-preview {
  position: relative;
  overflow: hidden;
  width: min(100%, 560px);
  aspect-ratio: 1 / 1.08;
  align-self: center;
  justify-self: center;
  border: 1px solid rgba(244, 247, 250, 0.06);
  border-radius: 0;
  background:
    linear-gradient(180deg, #cfd9de 0 35%, #77a9cf 35% 42%, #d8d7cf 42% 48%, #4e5b45 48% 100%);
}

.sky-band,
.cloud,
.ridge,
.forest,
.road,
.mask-outline {
  position: absolute;
}

.sky-band {
  inset: 0 0 42%;
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.94) 0 9%, transparent 10%),
    radial-gradient(circle at 43% 18%, rgba(255, 255, 255, 0.82) 0 14%, transparent 15%),
    radial-gradient(circle at 68% 26%, rgba(255, 255, 255, 0.88) 0 12%, transparent 13%),
    linear-gradient(180deg, #d4dce0, #7aaccd 60%, #d0d1cb);
}

.cloud {
  height: 42px;
  border-radius: 999px;
  background: rgba(244, 247, 250, 0.76);
  filter: blur(1px);
}

.cloud-a {
  left: 7%;
  top: 9%;
  width: 42%;
}

.cloud-b {
  right: 5%;
  top: 18%;
  width: 34%;
}

.cloud-c {
  left: 26%;
  top: 29%;
  width: 48%;
}

.ridge {
  left: -5%;
  right: -5%;
  bottom: 34%;
  height: 22%;
  background: #24333a;
  clip-path: polygon(0 75%, 12% 50%, 28% 68%, 42% 34%, 57% 58%, 71% 24%, 100% 72%, 100% 100%, 0 100%);
}

.ridge-back {
  bottom: 39%;
  background: rgba(70, 93, 109, 0.84);
  opacity: 0.76;
}

.ridge-front {
  bottom: 30%;
  background: rgba(20, 28, 26, 0.92);
}

.forest {
  left: 0;
  right: 0;
  bottom: 0;
  height: 44%;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(208, 161, 87, 0.52) 8% 10%, transparent 10% 17%, rgba(208, 161, 87, 0.48) 17% 19%, transparent 19% 29%, rgba(208, 161, 87, 0.42) 29% 31%, transparent 31%),
    repeating-linear-gradient(90deg, #1c2d1f 0 11px, #2d4028 11px 19px, #151f17 19px 28px);
}

.road {
  left: 12%;
  bottom: 0;
  width: 16%;
  height: 42%;
  background: linear-gradient(100deg, transparent 0 28%, rgba(196, 188, 168, 0.78) 29% 44%, transparent 45%);
  opacity: 0.7;
}

.mask-outline {
  right: 13%;
  top: 27%;
  width: 28%;
  height: 30%;
  border: 2px solid rgba(208, 161, 87, 0.9);
}

.mask-outline::before,
.mask-outline::after {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(208, 161, 87, 0.95);
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.7);
  content: "";
}

.mask-outline::before {
  left: 34%;
  top: 38%;
}

.mask-outline::after {
  right: 12%;
  bottom: 12%;
}

.filmstrip-wrap {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 10px;
  align-items: end;
  padding: 7px;
  border-top: 1px solid rgba(44, 48, 54, 0.56);
  background: var(--ink850);
}

.filmstrip-status {
  color: var(--text-faint);
  font-size: 0.66rem;
  font-weight: 740;
}

.filmstrip {
  display: grid;
  grid-template-columns: repeat(5, minmax(42px, 1fr));
  gap: 8px;
}

.filmstrip span {
  min-height: 46px;
  border: 1px solid rgba(244, 247, 250, 0.04);
  background:
    linear-gradient(180deg, rgba(184, 195, 207, 0.3), transparent 46%),
    var(--ink700);
}

.filmstrip span:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(208, 161, 87, 0.35), transparent 55%),
    #273123;
}

.filmstrip span.selected {
  border-color: rgba(208, 161, 87, 0.92);
  box-shadow: inset 0 0 0 1px rgba(208, 161, 87, 0.48);
}

.preview-controls {
  overflow: hidden;
  padding: 9px;
  background: var(--ink900);
}

.panel-actions {
  display: flex;
  justify-content: end;
  gap: 7px;
  margin-bottom: 10px;
}

.panel-actions span {
  width: 30px;
  height: 26px;
  border: 1px solid var(--line-soft);
  background: var(--ink850);
}

.panel-actions .active {
  border-color: var(--line-strong);
  background: var(--ink750);
}

.mode-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  color: var(--text-faint);
  font-size: 0.72rem;
}

.mode-row strong {
  padding: 6px 8px;
  border: 1px solid var(--line-soft);
  color: var(--text-muted);
  background: var(--ink850);
  font-size: 0.78rem;
}

.inspector-block {
  padding: 9px 8px;
  border: 1px solid rgba(44, 48, 54, 0.72);
  background: rgba(14, 16, 18, 0.62);
}

.inspector-block + .inspector-block {
  margin-top: 8px;
}

.inspector-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.inspector-title strong {
  color: var(--text-main);
  font-size: 0.86rem;
}

.inspector-title span {
  color: var(--text-muted);
  font-family: Menlo, ui-monospace, monospace;
  font-size: 0.66rem;
}

.histogram {
  position: relative;
  overflow: hidden;
  height: 64px;
  border: 1px solid rgba(44, 48, 54, 0.76);
  background:
    repeating-linear-gradient(0deg, transparent 0 15px, rgba(244, 247, 250, 0.06) 15px 16px),
    var(--ink950);
}

.histogram i {
  position: absolute;
  inset: auto 0 0;
  height: 62px;
  opacity: 0.72;
  clip-path: polygon(0 100%, 8% 42%, 15% 18%, 24% 36%, 37% 44%, 50% 72%, 63% 54%, 76% 44%, 90% 40%, 100% 48%, 100% 100%);
}

.hist-r {
  background: #d45a62;
  transform: translateX(9px);
}

.hist-g {
  background: #61b56f;
  transform: translateX(-3px);
}

.hist-b {
  background: #4e86d9;
  transform: translateX(-14px);
}

.slider-row {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  --value: 50%;
}

.slider-row b {
  color: var(--text-main);
  font-size: 0.76rem;
}

.slider-row i {
  position: relative;
  height: 3px;
  border: 1px solid rgba(244, 247, 250, 0.12);
  background:
    linear-gradient(90deg, transparent 0 var(--value), var(--cool) var(--value) calc(var(--value) + 2px), transparent calc(var(--value) + 2px)),
    var(--ink950);
}

.slider-row i::after {
  position: absolute;
  top: -6px;
  left: var(--value);
  width: 5px;
  height: 15px;
  border: 1px solid var(--polar);
  background: var(--ink700);
  content: "";
  transform: translateX(-50%);
}

.slider-row.val-47 {
  --value: 47%;
}

.slider-row.val-49 {
  --value: 49%;
}

.slider-row.val-52 {
  --value: 52%;
}

.slider-row.val-54 {
  --value: 54%;
}

.curve-grid {
  height: 72px;
  border: 1px solid rgba(44, 48, 54, 0.86);
  background:
    linear-gradient(135deg, transparent 49%, rgba(208, 161, 87, 0.85) 49% 51%, transparent 51%),
    repeating-linear-gradient(0deg, transparent 0 17px, rgba(244, 247, 250, 0.08) 17px 18px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(244, 247, 250, 0.08) 31px 32px),
    var(--ink950);
}

.release-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 34px 0 28px;
}

.release-summary div,
.content-grid article,
.test-grid article {
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  background: rgba(14, 16, 18, 0.78);
}

.release-summary div {
  min-height: 104px;
  padding: 22px 24px;
}

.summary-label {
  display: block;
  margin-bottom: 12px;
  color: var(--text-faint);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.release-summary strong {
  display: block;
  color: var(--text-strong);
  font-size: 1.32rem;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 76px;
}

.content-grid article {
  min-height: 210px;
  padding: 28px;
}

.content-grid h2 {
  margin-bottom: 16px;
  color: var(--text-strong);
  font-size: 1.24rem;
}

.content-grid p,
.content-grid li {
  color: var(--text-muted);
  font-size: 1.03rem;
  line-height: 1.72;
}

.content-grid p,
.content-grid ul {
  margin-bottom: 0;
}

.content-grid ul {
  padding-left: 20px;
}

.content-grid a:not([aria-disabled="true"]) {
  color: var(--polar);
}

.content-grid a[aria-disabled="true"] {
  color: var(--text-muted);
  pointer-events: none;
  text-decoration: none;
}

.feature-section,
.limits-section,
.tester-section {
  padding: 72px 0 6px;
  border-top: 1px solid var(--line-soft);
}

.limits-section,
.tester-section {
  margin-top: 72px;
}

.section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 30px;
}

.section-kicker {
  margin-bottom: 14px;
  color: #f2bc79;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.section-heading h2 {
  margin-bottom: 0;
  color: var(--text-strong);
  font-size: 3rem;
  line-height: 1.05;
  max-width: 13ch;
  text-align: right;
}

.feature-grid,
.limits-grid,
.test-grid {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.limits-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.test-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid article,
.limits-grid article,
.test-grid article {
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  background: rgba(14, 16, 18, 0.78);
}

.feature-grid article,
.limits-grid article {
  min-height: 218px;
  padding: 30px;
}

.test-grid article {
  min-height: 230px;
  padding: 30px;
}

.test-grid span {
  display: inline-flex;
  margin-bottom: 34px;
  color: #f2bc79;
  font-size: 0.86rem;
  font-weight: 850;
}

.feature-grid h3,
.limits-grid h3,
.test-grid h3 {
  margin: 0 0 18px;
  color: var(--text-strong);
  font-size: 1.3rem;
  line-height: 1.2;
}

.feature-grid p,
.limits-grid p,
.test-grid p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 1.06rem;
  line-height: 1.72;
  max-width: 34rem;
}

.noscript {
  margin-top: 18px;
  color: var(--error);
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

  .app-preview {
    order: -1;
  }
}

@media (max-width: 980px) {
  .topbar,
  .page-shell {
    width: min(100% - 24px, 760px);
  }

  .topbar {
    position: static;
  }

  h1 {
    font-size: 4.4rem;
  }

  .workspace-preview {
    min-height: 430px;
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .preview-controls {
    display: none;
  }

  .release-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
  }

  .content-grid,
  .feature-grid,
  .limits-grid,
  .test-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    display: block;
  }

  .section-heading h2 {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .topbar {
    min-height: 64px;
  }

  .topnav {
    display: none;
  }

  h1 {
    font-size: 3.25rem;
  }

  .lede {
    font-size: 1.02rem;
  }

  .download-grid,
  .release-summary,
  .content-grid,
  .feature-grid,
  .limits-grid,
  .test-grid {
    grid-template-columns: 1fr;
  }

  .workspace-preview {
    grid-template-columns: 1fr;
  }

  .release-summary div,
  .content-grid article,
  .feature-grid article,
  .limits-grid article,
  .test-grid article {
    min-height: auto;
    padding: 22px;
  }

  .preview-sidebar {
    display: none;
  }

  .preview-stage {
    grid-template-rows: 32px minmax(260px, 1fr) 74px;
  }

  .filmstrip-wrap {
    grid-template-columns: 1fr;
  }
}
