:root {
  color-scheme: light;
  --ink: #171a21;
  --muted: #67717f;
  --paper: #f4f6f8;
  --panel: #ffffff;
  --line: #d9e0e7;
  --blue: #2563eb;
  --green: #13856c;
  --red: #c24132;
  --gold: #b7791f;
  --violet: #6d5bd0;
  --shadow: 0 18px 46px rgba(31, 41, 55, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(19, 133, 108, 0.06) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
  font-family: "Yu Gothic UI", "Meiryo UI", "Segoe UI", sans-serif;
  line-height: 1.75;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px max(20px, calc((100% - 1180px) / 2));
  border-bottom: 1px solid rgba(217, 224, 231, 0.86);
  background: rgba(244, 246, 248, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 900;
  text-decoration: none;
}

.brand img,
.edition-grid img {
  border-radius: 8px;
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.topbar nav a {
  color: #384252;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  padding: 74px 0 60px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 20%, rgba(37, 99, 235, 0.16), transparent 30%),
    radial-gradient(circle at 86% 74%, rgba(194, 65, 50, 0.12), transparent 25%),
    linear-gradient(135deg, #f9fbff 0%, #eef4f8 58%, #f7f2e9 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 64px, rgba(37, 99, 235, 0.10) 64px 66px),
    repeating-linear-gradient(0deg, transparent 0 88px, rgba(19, 133, 108, 0.10) 88px 90px);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  animation: archive-grid 14s linear infinite;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  grid-template-columns: minmax(0, 0.98fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 56px;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--blue);
  font: 800 0.74rem Consolas, "Courier New", monospace;
  letter-spacing: 0.12em;
}

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

h1 {
  margin: 0;
  font-size: clamp(5.8rem, 17vw, 12rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.lead {
  margin: 20px 0 8px;
  color: #243041;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.35;
}

.summary {
  max-width: 720px;
  margin: 0;
  color: #4c5868;
  font-size: 1.04rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid #aeb8c4;
  border-radius: 6px;
  background: #ffffff;
  color: #263244;
  font-weight: 900;
  text-decoration: none;
}

.button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.24);
}

.button.muted {
  color: #7a4b00;
  border-color: rgba(183, 121, 31, 0.48);
  background: #fff8ea;
}

.archive-visual {
  position: relative;
  min-height: 430px;
  border: 1px solid rgba(130, 146, 166, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(238, 244, 248, 0.84)),
    repeating-linear-gradient(90deg, transparent 0 20px, rgba(37, 99, 235, 0.08) 20px 21px);
  box-shadow: var(--shadow);
}

.archive-visual::before,
.archive-visual::after {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), var(--blue), var(--red), transparent);
  animation: data-line 3.8s ease-in-out infinite;
}

.archive-visual::before {
  top: 82px;
}

.archive-visual::after {
  bottom: 86px;
  animation-delay: -1.9s;
}

.icon-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(68%, 300px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: 8px;
  background: #ffffff;
  transform: translate(-50%, -50%);
  box-shadow: 0 24px 54px rgba(31, 41, 55, 0.18);
}

.icon-stage img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(37, 99, 235, 0.26));
}

.data-stack {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 8px;
}

.data-stack span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.84);
  color: #526072;
  font: 700 0.74rem Consolas, "Courier New", monospace;
}

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

.intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.intro > p {
  margin: 0;
  align-self: end;
  color: #4d5968;
}

.section-block {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

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

.screenshot-grid a {
  display: block;
  overflow: hidden;
  aspect-ratio: 1457 / 1017;
  border: 1px solid #bfc9d5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.screenshot-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.feature-grid article,
.edition-grid article {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.07);
}

.feature-grid article:nth-child(2n) {
  border-top-color: rgba(19, 133, 108, 0.44);
}

.feature-grid article:nth-child(3n) {
  border-top-color: rgba(194, 65, 50, 0.40);
}

.feature-grid span {
  color: var(--violet);
  font: 800 0.74rem Consolas, "Courier New", monospace;
}

h3 {
  margin: 10px 0 6px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.feature-grid p,
.edition-grid p,
.legal p,
td {
  margin: 0;
  color: #536070;
  font-size: 0.96rem;
}

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

.edition-grid article {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.edition-grid a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 900;
}

.edition-grid strong {
  display: inline-flex;
  margin-top: 10px;
  color: var(--gold);
  font: 900 0.86rem Consolas, "Courier New", monospace;
  letter-spacing: 0.08em;
}

.pending {
  background: #fff9ed;
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

th,
td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

tr:last-child th,
tr:last-child td {
  border-bottom: 0;
}

th {
  width: 190px;
  color: #263244;
  background: #eef3f8;
}

.legal {
  max-width: 980px;
}

.legal h3 {
  margin-top: 26px;
  color: #263244;
}

.legal h3:first-of-type {
  margin-top: 0;
}

.legal p + p {
  margin-top: 10px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 44px;
  color: var(--muted);
  font-size: 0.9rem;
}

@keyframes archive-grid {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 132px 0, 0 180px;
  }
}

@keyframes data-line {
  0%,
  100% {
    opacity: 0.22;
    transform: scaleX(0.54);
  }

  50% {
    opacity: 0.86;
    transform: scaleX(1);
  }
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-grid,
  .intro {
    grid-template-columns: 1fr;
  }

  .archive-visual {
    min-height: 360px;
  }

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

@media (max-width: 640px) {
  .topbar nav {
    gap: 10px;
  }

  .topbar nav a {
    font-size: 0.8rem;
  }

  .hero {
    min-height: auto;
    padding-top: 46px;
  }

  .hero-grid,
  .intro,
  .section-block,
  .footer {
    width: min(100% - 28px, 1180px);
  }

  .screenshot-grid,
  .feature-grid,
  .edition-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  th,
  td {
    display: block;
    width: 100%;
  }

  th {
    border-bottom: 0;
  }

  .footer {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero::before,
  .archive-visual::before,
  .archive-visual::after {
    animation: none;
  }
}

.topbar-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.language-toggle {
  display: inline-grid;
  width: 42px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #aeb8c4;
  border-radius: 6px;
  background: #ffffff;
  color: var(--blue);
  font: 900 0.82rem Consolas, "Courier New", monospace;
  cursor: pointer;
}

.language-toggle:hover {
  border-color: var(--blue);
}

@media (max-width: 900px) {
  .topbar-controls {
    width: 100%;
    align-items: flex-start;
    justify-content: space-between;
  }
}
