:root {
  --bg: #f3efe6;
  --bg-raised: #faf7f1;
  --ink: #14211c;
  --muted: #5d6b64;
  --line: #ddd4c6;
  --accent: #0c6b54;
  --accent-deep: #084838;
  --dark: #101816;
  --dark-2: #1a2621;
  --paper: #fffdf8;
  --gold: #8d6a32;
  --shadow: 0 24px 60px rgba(20, 33, 28, 0.08);
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at top left, rgba(12, 107, 84, 0.08), transparent 42%),
    var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 7vw;
  background: rgba(243, 239, 230, 0.9);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  background:
    linear-gradient(var(--accent), var(--accent)) 3px 3px / 5px 5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 10px 10px / 5px 5px no-repeat;
}

.nav {
  display: flex;
  gap: 22px;
  margin-right: auto;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--ink);
}

.header-download {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent-deep);
}

.hero,
.section {
  width: min(1120px, calc(100% - 10vw));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 36px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
.ticket-name,
.balance,
.release-version {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.12;
}

.lede {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--ink);
  color: #f6f3ec;
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-block {
  width: 100%;
}

.btn-meta {
  color: #c9c2b4;
  font-weight: 500;
  font-size: 0.82rem;
}

.btn.is-waiting {
  opacity: 0.55;
  pointer-events: none;
}

.file-status {
  min-height: 1.4em;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.file-status.is-missing {
  color: #8a4b1f;
}

.ticket {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.ticket-top {
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}

.stamp {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 8px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ticket-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.ticket-name {
  margin: 4px 0 0;
  font-size: 1.8rem;
}

.ticket-version {
  margin: 0;
  color: var(--accent-deep);
  font-family: var(--serif);
  font-size: 1.4rem;
}

.ticket-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  margin: 18px 0;
}

.ticket-meta dt {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ticket-meta dd {
  margin: 2px 0 0;
  font-weight: 500;
}

.section {
  padding: 72px 0;
}

.section-heading {
  max-width: 40rem;
  margin-bottom: 32px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.2;
}

.about-grid,
.req-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.about-grid article,
.req-grid article,
.steps li {
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}

.about-grid h3,
.req-grid h3,
.steps h3,
.feature-list h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.about-grid p,
.req-grid li,
.steps p,
.feature-list p,
.faq p {
  margin: 0;
  color: var(--muted);
}

.preview {
  margin: 28px 0 0;
}

.preview figcaption {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.85rem;
}

.win {
  overflow: hidden;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  background: #f3f3f3;
  color: #1a1a1a;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
  font-family: "Segoe UI", "Segoe UI Variable", sans-serif;
}

.win-titlebar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 32px;
  background: #f3f3f3;
  border-bottom: 1px solid #e5e5e5;
}

.win-icon {
  width: 14px;
  height: 14px;
  margin-left: 12px;
  border: 1.5px solid #1a1a1a;
  border-radius: 3px;
  background:
    linear-gradient(#0c6b54, #0c6b54) 2px 2px / 4px 4px no-repeat,
    linear-gradient(#1a1a1a, #1a1a1a) 8px 8px / 4px 4px no-repeat;
}

.win-caption {
  padding-left: 8px;
  font-size: 12px;
  line-height: 32px;
}

.win-controls {
  display: flex;
  height: 32px;
}

.win-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 32px;
}

.win-min,
.win-max,
.win-x {
  display: block;
}

.win-min {
  width: 10px;
  height: 1px;
  background: #1a1a1a;
}

.win-max {
  width: 9px;
  height: 9px;
  border: 1px solid #1a1a1a;
}

.win-x {
  position: relative;
  width: 10px;
  height: 10px;
}

.win-x::before,
.win-x::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0;
  width: 1px;
  height: 10px;
  background: #1a1a1a;
}

.win-x::before {
  transform: rotate(45deg);
}

.win-x::after {
  transform: rotate(-45deg);
}

.win-close {
  background: transparent;
}

.win-body {
  display: grid;
  grid-template-columns: 168px 1fr;
  min-height: 280px;
  background: #f9f9f9;
}

.win-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  border-right: 1px solid #e5e5e5;
  background: #f3f3f3;
}

.win-nav span {
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
}

.win-nav .is-active {
  background: #ffffff;
  font-weight: 600;
  box-shadow: inset 3px 0 0 #0c6b54;
}

.win-main {
  padding: 20px 24px 24px;
}

.win-main h3 {
  margin: 0 0 16px;
  font-family: "Segoe UI", sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
}

.win .label {
  margin: 0;
  color: #5c5c5c;
  font-size: 12px;
}

.win .balance {
  margin: 2px 0 0;
  font-family: "Segoe UI", sans-serif;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.win .balance small {
  font-size: 14px;
  font-weight: 400;
  color: #5c5c5c;
}

.win .delta {
  margin: 2px 0 16px;
  color: #0c6b54;
  font-size: 13px;
}

.win-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  overflow: hidden;
  font-size: 13px;
}

.win-table th,
.win-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid #ededed;
}

.win-table th {
  color: #5c5c5c;
  font-weight: 600;
  background: #fafafa;
}

.win-table tr:last-child td {
  border-bottom: 0;
}

.win-table td:nth-child(n + 2),
.win-table th:nth-child(n + 2) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.section-ink {
  width: 100%;
  max-width: none;
  background: var(--dark);
  color: #f6f3ec;
}

.section-ink .section-heading,
.section-ink .feature-list {
  width: min(1120px, calc(100% - 10vw));
  margin-left: auto;
  margin-right: auto;
}

.section-ink .eyebrow {
  color: #d7b56a;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 48px;
}

.feature-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-list span {
  font-family: var(--serif);
  color: #8ddec4;
}

.feature-list p {
  color: #c9c2b4;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}

.steps li {
  min-height: 100%;
}

.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--accent);
}

pre {
  margin: 12px 0;
  padding: 12px;
  overflow-x: auto;
  border-radius: 10px;
  background: var(--dark);
  color: #e7f6ef;
  font-size: 0.82rem;
  line-height: 1.5;
}

.release {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.release-version {
  margin: 0 0 8px;
  font-size: 2rem;
}

.release-note {
  margin: 0 0 18px;
  color: var(--muted);
}

.hash-box {
  margin: 0;
  padding: 18px;
  border-radius: 16px;
  background: #f3efe6;
}

.hash-box dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hash-box dd {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
}

.hash-box code {
  flex: 1;
  word-break: break-all;
  font-size: 0.86rem;
}

.copy {
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 6px 10px;
  font: inherit;
  cursor: pointer;
}

.copy:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.req-grid {
  grid-template-columns: 1fr 1fr;
  margin-top: 18px;
}

.req-grid ul {
  margin: 0;
  padding-left: 18px;
}

.req-grid li + li {
  margin-top: 6px;
}

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.72);
  padding: 4px 18px 12px;
}

.faq summary {
  cursor: pointer;
  padding: 12px 0 8px;
  font-weight: 600;
}

.faq p {
  padding-bottom: 8px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: min(1120px, calc(100% - 10vw));
  margin: 0 auto;
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .hero,
  .about-grid,
  .feature-list,
  .steps,
  .release,
  .req-grid,
  .win-body {
    grid-template-columns: 1fr;
  }

  .win-nav {
    flex-direction: row;
    border-right: 0;
    border-bottom: 1px solid #e5e5e5;
  }

  .hero {
    padding-top: 36px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
