:root {
  --ink: #18212b;
  --muted: #5b6470;
  --line: #d9e0e6;
  --paper: #fbfcfd;
  --soft: #eef5f4;
  --teal: #1d8c83;
  --teal-dark: #146c66;
  --coral: #e5674f;
  --amber: #f2b43f;
  --blue: #3e79a8;
  --white: #ffffff;
  --shadow: 0 20px 48px rgba(22, 31, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Segoe UI", sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 56px);
  background: rgba(251, 252, 253, 0.9);
  border-bottom: 1px solid rgba(217, 224, 230, 0.85);
  backdrop-filter: blur(14px);
}

.brand {
  display: grid;
  gap: 1px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
  text-decoration: none;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.nav {
  display: flex;
  gap: clamp(14px, 3vw, 30px);
  font-size: 14px;
  color: var(--muted);
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--teal-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(420px, 1.05fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(38px, 6vw, 72px) clamp(20px, 4vw, 56px) clamp(42px, 6vw, 78px);
  background:
    linear-gradient(90deg, rgba(238, 245, 244, 0.96) 0%, rgba(251, 252, 253, 0.85) 48%, rgba(255, 255, 255, 0.45) 100%);
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(58px, 8vw, 96px);
  line-height: 0.92;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: keep-all;
}

.lead {
  max-width: 620px;
  margin: 26px 0 0;
  color: #35404c;
  font-size: clamp(17px, 2vw, 21px);
}

.project-meta {
  margin: 12px 0 0;
  color: var(--teal-dark);
  font-size: 16px;
  font-weight: 800;
}

.hero-note {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.25;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 12px 26px rgba(29, 140, 131, 0.24);
}

.button.primary:hover {
  background: var(--teal-dark);
}

.button.secondary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.button.secondary:hover {
  border-color: var(--blue);
}

.button.disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.button.wide {
  width: 100%;
}

.download-item {
  display: grid;
  gap: 7px;
}

.download-item.wide {
  width: 100%;
}

.release-date {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.button-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
}

.hero-media {
  margin: 0;
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.intro {
  padding: clamp(30px, 6vw, 64px) clamp(20px, 4vw, 56px);
  background: var(--ink);
  color: var(--white);
}

.intro p {
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.75;
}

.message-band,
.feature-band,
.tech-band,
.api-band,
.steps {
  padding: clamp(58px, 8vw, 96px) clamp(20px, 4vw, 56px);
}

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

h2 {
  margin: 0;
  font-size: clamp(30px, 4.5vw, 54px);
  line-height: 1.12;
  letter-spacing: 0;
}

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

.tech-band {
  background: #f8fbfb;
}

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

.tech-card {
  min-height: 260px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: 8px;
}

.tech-card h3 {
  margin: 0 0 12px;
  font-size: 21px;
  line-height: 1.35;
}

.tech-card p {
  margin: 0 0 10px;
  color: var(--muted);
}

.feature-card {
  min-height: 250px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-mark {
  width: 54px;
  height: 54px;
  margin-bottom: 28px;
  border-radius: 8px;
}

.feature-mark.draw {
  background:
    radial-gradient(circle at 68% 36%, var(--coral) 0 8px, transparent 9px),
    radial-gradient(circle at 34% 64%, var(--teal) 0 14px, transparent 15px),
    linear-gradient(135deg, rgba(242, 180, 63, 0.35), rgba(62, 121, 168, 0.18));
}

.feature-mark.asset {
  background:
    linear-gradient(45deg, transparent 44%, var(--ink) 45% 55%, transparent 56%),
    linear-gradient(135deg, var(--amber), #f7d78b);
}

.feature-mark.input {
  background:
    radial-gradient(circle at 50% 50%, var(--white) 0 7px, transparent 8px),
    conic-gradient(from 50deg, var(--teal), var(--blue), var(--coral), var(--amber), var(--teal));
}

.feature-card h3,
.step-list h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.35;
}

.feature-card p,
.step-list p,
.download-panel p,
.upload-panel p {
  margin: 0;
  color: var(--muted);
}

.message-grid dt {
  font-weight: bold;
  font-size: 107%;
}

.message-grid dd {
  margin-bottom: 1em;
}

.api-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  background: var(--ink);
}

.api-copy {
  color: var(--white);
}

.api-copy .eyebrow {
  color: #8fd6cf;
}

.api-copy h2 {
  margin-bottom: 18px;
}

.api-copy p {
  max-width: 680px;
  margin: 0;
  color: #dbe4e7;
  font-size: 17px;
}

.reference-link {
  margin-top: 28px;
  color: var(--ink);
}

.api-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.api-chip {
  display: grid;
  gap: 8px;
  min-height: 94px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--white);
}

.api-chip code {
  color: #fff2c7;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 16px;
  font-weight: 800;
}

.api-chip span {
  color: #dbe4e7;
  font-size: 14px;
}

.steps {
  background: #f2f6f6;
}

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

.step-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  min-height: 190px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.step-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--white);
  background: var(--coral);
  border-radius: 50%;
  font-weight: 800;
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
  padding: clamp(34px, 5vw, 58px) clamp(20px, 4vw, 56px);
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.download-panel h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 3.4vw, 42px);
}

.download-panel p,
.upload-panel p {
  max-width: 680px;
  font-size: 17px;
}

.download-buttons {
  margin-top: 0;
}

.windows-note {
  width: 100%;
  margin: 4px 0 0;
  padding: 14px 16px;
  color: #495360;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.65;
}

.windows-note a {
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.upload-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
  padding: clamp(34px, 5vw, 58px) clamp(20px, 4vw, 56px);
  background: #f8fbfb;
  border-bottom: 1px solid var(--line);
}

.upload-only {
  min-height: 100vh;
  display: grid;
  align-items: center;
  gap: 18px;
  padding: clamp(20px, 4vw, 48px) 0;
  background: #f8fbfb;
}

.upload-panel.standalone {
  width: min(100%, 1040px);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.upload-panel h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
}

.upload-panel h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 3.4vw, 42px);
}

.upload-form {
  display: grid;
  gap: 12px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.upload-form label {
  font-size: 14px;
  font-weight: 800;
}

.upload-form input[type="file"] {
  width: 100%;
  min-height: 46px;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
}

.upload-format {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.upload-message {
  margin: 0;
  padding: 11px 13px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.upload-message.success {
  color: var(--teal-dark);
  background: #e8f6f3;
  border: 1px solid #b9ddd8;
}

.upload-message.error {
  color: #973d2e;
  background: #fff0ed;
  border: 1px solid #f2c0b7;
}

.zip-list-panel {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 42px) clamp(20px, 4vw, 56px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.zip-list-heading {
  margin-bottom: 18px;
}

.zip-list-panel h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
}

.zip-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.zip-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 14px;
}

.zip-table th,
.zip-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.zip-table th {
  color: var(--muted);
  background: var(--soft);
  font-size: 12px;
  font-weight: 800;
}

.zip-table tr:last-child td {
  border-bottom: 0;
}

.zip-table a {
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.zip-empty {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(20px, 4vw, 56px);
  color: #dbe4e7;
  background: var(--ink);
}

.site-footer p {
  margin: 0;
  font-size: 14px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .feature-grid,
  .tech-grid,
  .api-band,
  .step-list,
  .download-panel,
  .upload-panel {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1;
  }

  .download-buttons {
    max-width: 420px;
  }
}

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

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding-top: 26px;
  }

  h1 {
    font-size: 56px;
  }

  .button {
    width: 100%;
  }

  .api-list {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .tech-card,
  .step-list li {
    min-height: 0;
  }

  .site-footer {
    flex-direction: column;
  }
}
