:root {
  color-scheme: dark;
  --bg: #0d1116;
  --bg-2: #111820;
  --panel: #171f28;
  --panel-2: #1e2934;
  --panel-3: #263342;
  --line: #334555;
  --line-soft: #23313e;
  --text: #f2f7fb;
  --muted: #a8b8c6;
  --teal: #37c0cf;
  --teal-2: #1d7f8b;
  --orange: #ffad59;
  --yellow: #ffd45c;
  --green: #72d186;
  --red: #ef6f6c;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: 32px 32px;
  color: var(--text);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

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

h1 {
  margin-bottom: 2px;
  font-size: 20px;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

p {
  line-height: 1.58;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(95, 128, 150, 0.35);
  background: rgba(13, 17, 22, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 250px;
  gap: 12px;
  text-decoration: none;
}

.brand p,
.muted {
  margin-bottom: 0;
  color: var(--muted);
}

.mark {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  width: 42px;
  height: 42px;
  padding: 7px;
  border: 1px solid #ffc16d;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffd45c, #f57946 70%);
}

.mark span {
  border-radius: 2px;
  background: #111820;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav a {
  color: #dce8ef;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  padding: 10px 15px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
button:hover {
  border-color: #79d9e4;
}

.button.primary,
button.primary {
  border-color: #68dce8;
  background: linear-gradient(180deg, #238c99, #176b78);
  color: #f6fdff;
  box-shadow: 0 14px 34px rgba(55, 192, 207, 0.18);
}

.button.large,
button.large {
  min-height: 50px;
  padding: 13px 18px;
  font-size: 15px;
}

main {
  overflow: hidden;
}

.hero-section {
  padding: 46px 24px 30px;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
  align-items: center;
  gap: 34px;
  width: min(1240px, 100%);
  margin: 0 auto;
}

.hero-copy h2 {
  max-width: 700px;
  font-size: clamp(44px, 6.4vw, 86px);
  line-height: 0.93;
}

.hero-copy p {
  max-width: 670px;
  color: var(--muted);
  font-size: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 560px;
}

.hero-stats div,
.download-spec,
.feature-card,
.platform-card,
.midi-panel,
.download-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(23, 31, 40, 0.86);
}

.hero-stats div {
  padding: 13px 14px;
}

.hero-stats span,
.download-spec span,
.download-card span,
.platform-card span,
.proof-strip span,
.midi-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-stats strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

.product-shot,
.download-preview,
.sprite-proof {
  overflow: hidden;
  margin: 0;
  border: 1px solid #44596c;
  border-radius: 8px;
  background: #0a0e12;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.product-shot {
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transform-origin: center;
}

.product-shot img,
.download-preview img,
.sprite-proof img {
  display: block;
  width: 100%;
  height: auto;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1240px, calc(100% - 48px));
  margin: 20px auto 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.proof-strip div {
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--line-soft);
}

.proof-strip div:last-child {
  border-right: 0;
}

.proof-strip strong {
  display: block;
  margin-top: 6px;
  font-size: 16px;
}

.section {
  width: min(1180px, calc(100% - 48px));
  margin: 84px auto 0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.section-copy,
.section-heading p {
  color: var(--muted);
  font-size: 17px;
}

.workflow-grid,
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  padding: 20px;
}

.feature-card p,
.platform-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.pixel-icon {
  display: block;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: var(--teal);
  image-rendering: pixelated;
}

.import-icon {
  box-shadow: 8px 8px 0 #213142, 16px 0 0 #ffad59;
}

.align-icon {
  background: linear-gradient(90deg, var(--orange) 0 35%, var(--teal) 35% 70%, var(--yellow) 70%);
}

.edit-icon {
  background:
    linear-gradient(90deg, transparent 45%, #111820 45% 55%, transparent 55%),
    linear-gradient(transparent 45%, #111820 45% 55%, transparent 55%),
    var(--green);
}

.export-icon {
  background: linear-gradient(135deg, var(--teal) 0 48%, #111820 48% 58%, var(--orange) 58%);
}

.midi-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(23, 31, 40, 0.96), rgba(16, 24, 32, 0.92));
}

.midi-panel {
  padding: 18px;
}

.midi-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.midi-head strong {
  font-size: 22px;
}

.midi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.midi-grid span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid #506578;
  border-radius: 8px;
  background: #202b36;
  color: #e8f6fb;
  font-weight: 850;
}

.midi-grid span:nth-child(4n + 1) {
  background: #174f59;
}

.bank-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.bank-row span {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

.bank-row .active {
  border-color: #68dce8;
  color: #f6fdff;
  background: #176b78;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  color: #d7e5ed;
  line-height: 1.45;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--green);
  box-shadow: 4px 4px 0 #244b2e;
}

.download-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.66fr);
  gap: 28px;
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  margin: 84px auto 0;
  padding: 30px;
  border: 1px solid #795f39;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 173, 89, 0.17), rgba(55, 192, 207, 0.08)),
    #151b21;
}

.download-band p {
  max-width: 760px;
  color: #d5c9b5;
}

.download-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: #10161c;
}

.download-card strong {
  font-size: 20px;
}

.download-card code,
.hash {
  overflow-wrap: anywhere;
  color: #d8e7ef;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.proof-section {
  display: grid;
  grid-template-columns: minmax(270px, 0.75fr) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
}

.sprite-proof {
  background:
    linear-gradient(45deg, #eef0f2 25%, transparent 25%),
    linear-gradient(-45deg, #eef0f2 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eef0f2 75%),
    linear-gradient(-45deg, transparent 75%, #eef0f2 75%),
    #d8dde2;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  background-size: 24px 24px;
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: #9cecf5;
  font-weight: 800;
}

.section-heading {
  max-width: 820px;
}

.platform-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.platform-card {
  display: block;
  min-height: 190px;
  padding: 20px;
  text-decoration: none;
}

.platform-card strong {
  display: block;
  margin: 10px 0;
  font-size: 24px;
}

.windows-card {
  border-color: #68dce8;
  background: linear-gradient(180deg, rgba(35, 140, 153, 0.34), rgba(23, 31, 40, 0.92));
}

.faq-section {
  display: grid;
  grid-template-columns: minmax(250px, 0.5fr) minmax(0, 1fr);
  gap: 30px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 850;
}

details p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
}

.footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 84px;
  padding: 30px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer span {
  color: var(--text);
  font-weight: 850;
}

.download-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1fr);
  gap: 34px;
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  margin: 46px auto 0;
}

.download-hero h2 {
  font-size: clamp(40px, 5.8vw, 74px);
}

.download-hero p {
  color: var(--muted);
  font-size: 18px;
}

.download-meter {
  width: min(520px, 100%);
  height: 14px;
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0b0e12;
}

.download-meter > div {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--orange));
  transition: width 160ms ease;
}

.download-details {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 12px;
}

.download-spec {
  padding: 18px;
}

.download-spec strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

.hash-spec strong {
  font-size: 13px;
}

.ok {
  color: var(--green);
}

.error {
  color: var(--red);
}

pre {
  overflow-x: auto;
  margin: 0;
  padding: 16px;
  border-radius: 8px;
  background: #0b0e12;
  color: #eaf2f7;
  line-height: 1.45;
  white-space: pre-wrap;
}

code {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.code-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 0;
}

.note {
  border-left: 4px solid var(--orange);
  padding: 12px 14px;
  background: #201b12;
  color: #f3d7b7;
}

.spec-list {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 980px) {
  .hero-shell,
  .split-section,
  .midi-section,
  .download-band,
  .proof-section,
  .faq-section,
  .download-hero {
    grid-template-columns: 1fr;
  }

  .product-shot {
    transform: none;
  }

  .proof-strip,
  .platform-grid,
  .download-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  .brand {
    min-width: 0;
  }

  .nav {
    width: 100%;
  }

  .nav a {
    font-size: 13px;
  }

  .hero-section {
    padding: 30px 16px 16px;
  }

  .hero-stats,
  .proof-strip,
  .workflow-grid,
  .platform-grid,
  .download-details {
    grid-template-columns: 1fr;
  }

  .proof-strip {
    width: calc(100% - 32px);
  }

  .proof-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .proof-strip div:last-child {
    border-bottom: 0;
  }

  .section,
  .download-band,
  .download-hero {
    width: calc(100% - 32px);
    margin-top: 56px;
  }

  .midi-section,
  .download-band {
    padding: 18px;
  }

  .hero-copy h2,
  .download-hero h2 {
    font-size: 42px;
  }
}
