:root {
  --ink: #0f172a;
  --muted: #526176;
  --line: #d8e2ee;
  --paper: #f7fafc;
  --white: #ffffff;
  --teal: #2dd4bf;
  --teal-dark: #0f766e;
  --orange: #f97316;
  --blue: #2563eb;
  --green: #65a30d;
  --shadow: 0 18px 45px rgba(15, 23, 42, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Yu Gothic UI", Meiryo, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding: 10px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: rgba(10, 18, 34, .92);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.brand img {
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .28);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  color: #d9f7f4;
  font-size: 14px;
}

.nav a {
  text-decoration: none;
}

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

.hero {
  position: relative;
  display: grid;
  gap: 28px;
  width: min(1680px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 54px;
  background: transparent;
}

.hero-bg {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 1;
  border: 1px solid rgba(15, 23, 42, .18);
  border-radius: 8px;
  box-shadow: 0 20px 54px rgba(15, 23, 42, .18);
}

.hero::after {
  content: none;
}

.hero-copy {
  position: relative;
  width: min(1120px, 100%);
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  color: var(--ink);
}

.eyebrow,
.label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 4px 12px;
  color: #083b36;
  background: #ccfbf1;
  border: 1px solid rgba(45, 212, 191, .55);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: anywhere;
  word-break: normal;
  line-break: strict;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: 0;
}

.lead {
  max-width: 650px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.9;
}

.hero-actions,
.download,
.version-grid,
.site-footer {
  display: flex;
  align-items: center;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 7px;
  text-decoration: none;
  text-align: center;
  font-weight: 800;
  line-height: 1.35;
  border: 1px solid transparent;
}

.button.primary {
  color: #0b1220;
  background: var(--teal);
  box-shadow: 0 12px 28px rgba(45, 212, 191, .25);
}

.button.primary:hover {
  background: #5eead4;
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, .72);
  border-color: var(--line);
}

.button.secondary:hover {
  background: var(--white);
}

.button.large {
  min-height: 58px;
  padding-inline: 30px;
}

.intro,
.features,
.workflow,
.download,
.versions,
.notes,
.release {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: minmax(260px, .95fr) 1.05fr;
  gap: 34px;
  padding: 72px 0 34px;
}

.intro h2,
.workflow h2,
.download h2,
.section-head h2 {
  margin: 14px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.intro p,
.workflow-copy p,
.download p {
  color: var(--muted);
  font-size: 16px;
  line-height: 2;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 32px 0 58px;
}

.features article {
  min-height: 210px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
}

.features article.with-image {
  grid-column: span 2;
}

.number {
  display: block;
  margin-bottom: 20px;
  color: var(--orange);
  font-weight: 900;
}

.features h3 {
  margin-bottom: 10px;
  font-size: 19px;
}

.features p {
  color: var(--muted);
  line-height: 1.85;
}

.feature-image {
  display: block;
  width: 100%;
  margin-top: 16px;
  border: 1px solid rgba(15, 23, 42, .14);
  border-radius: 6px;
}

.feature-image-stack {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.feature-image-stack .feature-image {
  margin-top: 0;
}

.workflow {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 34px;
  align-items: center;
  padding: 44px 0 72px;
}

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

.steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
  font-weight: 800;
}

.steps span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  color: var(--white);
  background: var(--blue);
  border-radius: 50%;
}

.download {
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 70px;
  padding: 28px;
  color: var(--white);
  background: #0f172a;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.download div {
  display: grid;
  grid-template-columns: 76px 1fr;
  column-gap: 18px;
  align-items: center;
}

.download img {
  grid-row: span 2;
  border-radius: 18px;
}

.download h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
}

.download p {
  grid-column: 2;
  margin: 6px 0 0;
  color: #cbd5e1;
}

.download-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}

.download-wait {
  width: min(560px, 100%);
  padding: 34px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .1);
}

.download-wait h1 {
  margin: 18px 0 10px;
  font-size: 28px;
}

.download-wait p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.8;
}

.versions {
  padding-bottom: 72px;
}

.section-head {
  margin-bottom: 24px;
}

.version-grid {
  gap: 14px;
}

.version-grid a {
  flex: 1 1 0;
  min-height: 118px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
}

.version-grid a:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.version-grid strong,
.version-grid span {
  display: block;
}

.version-grid strong {
  margin-bottom: 10px;
  font-size: 18px;
}

.version-grid span {
  color: var(--muted);
}

.notes {
  padding: 0 0 64px;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.note-grid article {
  min-height: 160px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
}

.note-grid h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.note-grid p {
  color: var(--muted);
  line-height: 1.85;
}

.release {
  display: grid;
  grid-template-columns: .34fr 1fr;
  gap: 24px;
  padding: 0 0 74px;
}

.release h2 {
  margin: 14px 0 0;
  font-size: clamp(28px, 4vw, 40px);
}

.release ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.release li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
}

.release strong {
  color: var(--orange);
}

.release span {
  color: var(--muted);
  line-height: 1.85;
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(20px, 4vw, 56px);
  color: #cbd5e1;
  background: #0a1222;
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 920px) {
  .intro,
  .workflow {
    grid-template-columns: 1fr;
  }

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

  .features article.with-image {
    grid-column: span 2;
  }

  .note-grid,
  .release {
    grid-template-columns: 1fr;
  }

  .download,
  .version-grid {
    align-items: stretch;
    flex-direction: column;
  }
}

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

  .nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 16px;
    font-size: 13px;
  }

  .hero {
    width: min(100% - 20px, 1680px);
    padding-top: 26px;
  }

  .hero-copy {
    width: 100%;
  }

  .lead {
    max-width: 100%;
  }

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

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

  .intro h2,
  .workflow h2,
  .download h2,
  .section-head h2 {
    font-size: clamp(26px, 8vw, 34px);
  }

  .features {
    grid-template-columns: 1fr;
  }

  .features article.with-image {
    grid-column: auto;
  }

  .release li {
    grid-template-columns: 1fr;
  }

  .download div {
    grid-template-columns: 1fr;
  }

  .download p {
    grid-column: auto;
  }
}
