:root {
  --bg: #0e1015;
  --card: #171a21;
  --inset: #1f232b;
  --control: #282d36;
  --control-hover: #313742;
  --divider: #2c313a;
  --text: #f2f3f5;
  --soft: #dfe2e7;
  --muted: #a3a9b4;
  --accent: #33c4ff;
  --accent-ink: #0e1015;
  --pink: #e07ef5;
  --radius: 16px;
  --font: "Noto Sans", "Noto Sans JP", "Noto Sans SC", sans-serif;
  --mono: "Noto Sans Mono", ui-monospace, monospace;
  color-scheme: dark;
}

[data-theme="pink"] {
  --accent: #e07ef5;
  --accent-ink: #1c0f22;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 440px;
  background: radial-gradient(70% 100% at 20% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 68%);
  pointer-events: none;
}

.wrap {
  width: min(1040px, calc(100% - 48px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 2;
}

.skip:focus { top: 12px; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--soft); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.top {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
}

.brand img { width: 36px; height: 36px; }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a.quiet {
  color: var(--soft);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
}

.nav a.quiet:hover { background: var(--control); color: var(--text); }

select, button {
  font: inherit;
  color: var(--text);
  background: var(--control);
  border: 0;
  border-radius: 999px;
  height: 40px;
}

select { padding: 0 12px; }

button { padding: 0 16px; cursor: pointer; }
button:hover, select:hover { background: var(--control-hover); }

.themes { display: flex; gap: 6px; }

.themes button {
  width: 40px;
  padding: 0;
  display: grid;
  place-items: center;
}

.themes button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--accent); }

.swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #33c4ff;
}

.swatch.pink { background: #e07ef5; }

h1 { margin: 0; font-weight: 500; }

.download h1 {
  margin-top: 8px;
  font-size: 32px;
}

.hero {
  padding: 28px 0 8px;
  text-align: center;
}

.banner {
  display: block;
  width: min(560px, 100%);
  height: auto;
  margin-inline: auto;
}

.lead {
  max-width: 62ch;
  margin: 28px auto 20px;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.5;
}

.hero .command,
.hero .note { margin-inline: auto; }

.command {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--inset);
  border-radius: var(--radius);
  padding: 10px 10px 10px 18px;
  max-width: 820px;
}

.command code {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.4;
  color: var(--soft);
  overflow-x: auto;
  flex: 1;
  padding: 6px 0;
}

.command button {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
  flex: none;
}

.command button:hover { filter: brightness(1.08); }

.note {
  max-width: 62ch;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 36px 0 8px;
}

.gallery img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius);
  background: var(--inset);
}

.features { margin: 48px 0 16px; }

.features h2.section,
.download h2.section,
.more h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 500;
}

.feature-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.feature-list li {
  position: relative;
  padding: 18px 0 18px 20px;
  border-top: 1px solid var(--divider);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(var(--accent), var(--pink));
}

.feature-list h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.feature-list p {
  margin: 4px 0 0;
  max-width: 62ch;
  color: var(--muted);
}

.others,
.get {
  margin: 64px 0 0;
  text-align: center;
}

.others h2,
.get h2 {
  margin: 0 auto;
  max-width: 28ch;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.3;
}

.others p,
.get p {
  margin: 12px auto 0;
  max-width: 46ch;
  color: var(--soft);
}

.float-apps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 22px 28px;
  margin: 28px 0 8px;
  padding: 8px 0 20px;
}

.float-apps a {
  display: block;
  animation: float 5.5s ease-in-out infinite;
}

.float-apps li:nth-child(2) a { animation-delay: -1.1s; }
.float-apps li:nth-child(3) a { animation-delay: -2.4s; }
.float-apps li:nth-child(4) a { animation-delay: -3.6s; }
.float-apps li:nth-child(5) a { animation-delay: -0.6s; }

.float-apps img {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  background: var(--inset);
}

.get {
  margin-bottom: 64px;
  padding: 40px 24px;
  background: var(--card);
  border-radius: 20px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 20px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
  text-decoration: none;
}

.cta:hover { color: var(--accent-ink); filter: brightness(1.08); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.foot {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  padding: 20px 0 32px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--divider);
  text-align: center;
}

.imprint { margin: 12px auto 72px; max-width: 40rem; }
.imprint h1 { font-size: 32px; margin-bottom: 8px; }
.imprint h2 { margin: 28px 0 4px; font-size: 16px; font-weight: 500; color: var(--muted); }
.imprint p { margin: 0; }

.foot a { color: var(--muted); }

.files { list-style: none; margin: 24px 0; padding: 0; }

.files li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 18px 0;
  border-top: 1px solid var(--divider);
}

.files a { font-weight: 500; }

.files p { margin: 4px 0 0; color: var(--muted); max-width: 62ch; }

.stack { display: grid; gap: 12px; margin-top: 20px; max-width: 820px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 720px) {
  .wrap { width: min(1040px, calc(100% - 32px)); }
  .top { flex-wrap: wrap; min-height: 0; padding: 16px 0; }
  .nav { width: 100%; margin-left: 0; flex-wrap: wrap; }
  .lead { font-size: 16px; }
  .command { flex-direction: column; align-items: stretch; padding: 12px; }
  .command button { height: 44px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery img { height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float-apps a { animation: none; }
}
