:root {
  color-scheme: dark;
  --background: #080b12;
  --surface: #111725;
  --surface-strong: #172033;
  --border: #2a3852;
  --text: #f4f7fb;
  --muted: #a8b4c8;
  --accent: #7c9cff;
  --accent-strong: #a6baff;
  --success: #61d6a4;
  --max-width: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(78, 112, 214, 0.2), transparent 34rem),
    var(--background);
  color: var(--text);
  font-family: Inter, "Segoe UI", "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.7;
}

a {
  color: var(--accent-strong);
}

a:hover {
  color: #d3ddff;
}

header,
main,
footer {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

.brand {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

nav a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.hero {
  padding: 5rem 0 3.5rem;
}

.eyebrow {
  color: var(--success);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.25;
}

h1 {
  max-width: 820px;
  margin: 0.65rem 0 1rem;
  font-size: clamp(2.45rem, 8vw, 5rem);
  letter-spacing: -0.055em;
}

h2 {
  margin-top: 0;
  font-size: clamp(1.55rem, 4vw, 2.3rem);
}

h3 {
  margin-bottom: 0.35rem;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.13rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 2.8rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  border-color: #8ba6ff;
  background: var(--accent);
  color: #071027;
}

section,
.policy {
  margin-block: 1.4rem;
  padding: clamp(1.2rem, 4vw, 2.1rem);
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(17, 23, 37, 0.88);
}

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

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.release-badge,
.release-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(97, 214, 164, 0.45);
  border-radius: 999px;
  background: rgba(97, 214, 164, 0.1);
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
}

.release-label.beta {
  border-color: rgba(166, 186, 255, 0.45);
  background: rgba(124, 156, 255, 0.12);
  color: var(--accent-strong);
}

.download-card {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.download-card .button {
  margin-top: auto;
}

.download-note {
  margin-top: 1.25rem;
  font-size: 0.9rem;
}

.card {
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: var(--surface-strong);
}

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

.notice {
  border-left: 0.25rem solid var(--success);
}

.muted,
.meta {
  color: var(--muted);
}

.policy {
  margin-top: 2rem;
}

.policy h1 {
  font-size: clamp(2rem, 6vw, 3.3rem);
}

.policy h2 {
  margin-top: 2.2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 1.35rem;
}

.policy li + li {
  margin-top: 0.35rem;
}

code {
  overflow-wrap: anywhere;
  color: #dce5ff;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 3rem;
  }

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

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