:root {
  color-scheme: light;
  --bg: #fbfbfd;
  --bg-strong: #ffffff;
  --ink: #111118;
  --ink-soft: #343442;
  --muted: #686878;
  --line: #dedee8;
  --line-soft: #ececf3;
  --accent: #5524c9;
  --accent-strong: #3f159e;
  --accent-soft: #f1edff;
  --green: #17a867;
  --green-soft: #e8f7ef;
  --warning: #c58312;
  --shadow: 0 22px 50px rgba(27, 24, 45, 0.14);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfbfd 42%, #f6f7fb 100%);
  color: var(--ink);
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
}

svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.github-mark svg {
  fill: currentColor;
  stroke: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 48px;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.nav-links,
.hero-actions,
.site-footer nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  text-decoration: none;
  font-size: 21px;
  font-weight: 760;
  color: var(--ink);
}

.brand img {
  border-radius: 7px;
}

.nav-links {
  gap: 32px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 650;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:not(.nav-download):hover,
.site-footer a:hover {
  color: var(--accent);
}

.nav-download,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 15px;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.nav-download,
.button.primary {
  color: #ffffff;
  background: linear-gradient(180deg, #6330df 0%, var(--accent-strong) 100%);
  box-shadow: 0 12px 26px rgba(80, 34, 190, 0.24);
}

.nav-download {
  min-height: 44px;
  padding: 0 18px;
}

.button {
  padding: 0 24px;
  border: 1px solid transparent;
}

.button.secondary {
  color: var(--ink-soft);
  background: #ffffff;
  border-color: #c9c9d7;
}

.button.full {
  width: 100%;
}

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

.button.secondary:hover {
  border-color: #a8a8bd;
  box-shadow: 0 10px 24px rgba(27, 24, 45, 0.08);
}

.icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(380px, 0.9fr) minmax(620px, 1.35fr);
  gap: 58px;
  align-items: center;
  max-width: 1440px;
  min-height: 700px;
  margin: 0 auto;
  padding: 42px 52px 34px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 540px;
  min-width: 0;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(46px, 5.4vw, 84px);
  line-height: 0.98;
  font-weight: 830;
  letter-spacing: 0;
}

.hero-copy h1 span {
  display: block;
}

.hero-lede {
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.52;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-actions .button {
  min-width: 210px;
}

.release-note {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 456px);
  margin: 22px 0 0;
  padding: 14px 16px;
  border: 1px solid #d9d1f4;
  border-radius: var(--radius);
  background: #f8f6ff;
  color: #2f157d;
  font-size: 15px;
  line-height: 1.35;
}

.github-mark {
  display: inline-flex;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.release-note.compact {
  width: 100%;
  margin-top: 0;
  font-size: 14px;
}

.product-preview {
  overflow: hidden;
  border: 1px solid #24252d;
  border-radius: var(--radius);
  background: #15161b;
  box-shadow: var(--shadow);
}

.window-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  color: #fafafa;
  background: #22232a;
  border-bottom: 1px solid #31323a;
}

.traffic {
  width: 11px;
  height: 11px;
  border-radius: 999px;
}

.traffic.red {
  background: #ff6158;
}

.traffic.yellow {
  background: #ffbd2e;
}

.traffic.green {
  background: #28c840;
}

.window-title {
  position: absolute;
  right: 18px;
  left: 96px;
  overflow: hidden;
  color: #e4e5e9;
  font-size: 13px;
  font-weight: 680;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell {
  display: grid;
  grid-template-columns: 118px minmax(310px, 1fr) 300px;
  min-height: 438px;
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 12px;
  color: #b8bac3;
  background: linear-gradient(180deg, #202127, #15161b);
  border-right: 1px solid #30313a;
  font-size: 13px;
}

.app-sidebar span {
  padding: 10px 12px;
  border-radius: 7px;
}

.app-sidebar .selected {
  color: #ffffff;
  background: var(--accent);
}

.preview-canvas {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 42%),
    #191a20;
}

.ready-status {
  align-self: flex-start;
  padding: 7px 10px;
  border-radius: 7px;
  color: #bdf4d3;
  background: rgba(23, 168, 103, 0.18);
  font-size: 12px;
  font-weight: 760;
}

.artboard {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 215px;
  margin-top: 14px;
  border: 1px solid #444754;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    #24262e;
  background-size: 24px 24px;
}

.artboard img {
  width: min(54%, 220px);
  max-height: 190px;
  object-fit: contain;
  filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.38));
}

.artboard-label {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  gap: 3px;
  min-width: 142px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background: rgba(16, 17, 22, 0.76);
  color: #ffffff;
}

.artboard-label strong {
  font-size: 13px;
}

.artboard-label span {
  color: #bfc2ce;
  font-size: 12px;
}

.job-summary {
  display: grid;
  gap: 9px;
  margin: 16px 0 0;
  color: #e6e7ec;
}

.job-summary div,
.kv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.job-summary dt,
.kv span {
  color: #a9acb8;
  font-size: 12px;
}

.job-summary dd,
.kv strong {
  margin: 0;
  font-size: 13px;
  font-weight: 720;
}

.inspector {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  background: #111216;
  border-left: 1px solid #30313a;
}

.inspector section {
  padding: 14px;
  border: 1px solid #2d2e36;
  border-radius: var(--radius);
  background: #1d1e24;
}

.inspector h2 {
  margin: 0 0 12px;
  color: #f1f2f5;
  font-size: 14px;
}

.checks {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #dfe1e7;
  font-size: 13px;
}

.checks li::before {
  display: inline-block;
  width: 19px;
  font-weight: 800;
}

.checks .pass::before {
  content: "✓";
  color: var(--green);
}

.checks .warn::before {
  content: "!";
  color: var(--warning);
}

.export-button {
  min-height: 46px;
  border: 0;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--green);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
}

.workflow-release-band {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  max-width: 1440px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.workflow-panel,
.release-panel {
  padding: 32px 52px;
}

.workflow-panel {
  border-right: 1px solid var(--line);
}

.workflow-panel h2,
.release-panel h2,
.ops-section h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(118px, 1fr));
  gap: 22px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 25px;
  right: -16px;
  width: 12px;
  height: 12px;
  border-top: 2px solid #b8b8c5;
  border-right: 2px solid #b8b8c5;
  transform: rotate(45deg);
}

.step-icon,
.ops-icon {
  display: inline-flex;
  color: var(--accent);
}

.step-icon {
  width: 48px;
  height: 48px;
}

.steps strong {
  color: var(--ink);
  font-size: 16px;
}

.release-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

.release-panel p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.release-state {
  color: var(--ink) !important;
  font-size: 28px !important;
  font-weight: 820;
  line-height: 1.1 !important;
}

.ops-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 34px 52px 38px;
  border-bottom: 1px solid var(--line);
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
  margin-top: 24px;
}

.ops-grid article {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.ops-icon {
  width: 48px;
  height: 48px;
  padding: 10px;
  border: 1px solid #cfc4f1;
  border-radius: var(--radius);
  background: #ffffff;
}

.ops-grid h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}

.ops-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 52px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer nav {
  gap: 28px;
}

.site-footer a {
  text-decoration: none;
}

@media (max-width: 1180px) {
  .site-header {
    padding: 0 28px;
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 42px 28px 34px;
  }

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

  .workflow-release-band,
  .ops-grid {
    grid-template-columns: 1fr 1fr;
  }

  .workflow-panel {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .release-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
  }

  .brand {
    font-size: 19px;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
  }

  .nav-links a:not(.nav-download) {
    display: none;
  }

  .nav-download {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    font-size: 14px;
  }

  .hero-section {
    display: block;
    width: 100%;
    max-width: 100vw;
    min-height: auto;
    padding: 34px 18px 28px;
  }

  .hero-section > * {
    min-width: 0;
  }

  .hero-copy h1 {
    font-size: clamp(38px, 11.5vw, 48px);
    line-height: 1.04;
  }

  .hero-lede {
    max-width: calc(100vw - 36px);
    font-size: 18px;
  }

  .release-note {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }

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

  .hero-actions .button,
  .button {
    width: 100%;
    min-width: 0;
  }

  .product-preview {
    margin-top: 34px;
    overflow: hidden;
  }

  .app-shell {
    grid-template-columns: 92px minmax(0, 1fr);
    min-width: 0;
  }

  .window-title {
    left: 84px;
    right: 12px;
    font-size: 12px;
  }

  .inspector {
    display: none;
  }

  .preview-canvas {
    min-width: 0;
    padding: 14px;
  }

  .artboard {
    min-height: 190px;
  }

  .artboard img {
    width: min(70%, 180px);
  }

  .artboard-label {
    right: auto;
    left: 10px;
    bottom: 10px;
    min-width: 126px;
  }

  .job-summary div {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .job-summary dd {
    overflow-wrap: anywhere;
  }

  .workflow-panel,
  .release-panel,
  .ops-section {
    padding: 28px 18px;
  }

  .workflow-release-band {
    display: block;
    width: 100%;
    max-width: 100vw;
  }

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

  .steps li {
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
  }

  .steps li span:last-child {
    grid-column: 2;
  }

  .steps li:not(:last-child)::after {
    display: none;
  }

  .ops-grid {
    gap: 22px;
  }

  .site-footer {
    flex-direction: column;
    padding: 24px 18px;
  }
}

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

  .button,
  .nav-download {
    transition: none;
  }
}
