:root {
  color-scheme: light;
  --ink: #17201b;
  --muted: #5d6861;
  --line: #dbe3dd;
  --panel: #ffffff;
  --soft: #f4f7f5;
  --accent: #1d8f5f;
  --accent-ink: #0e4b34;
  --warn: #7a4b10;
  --warn-bg: #fff3d8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f7faf8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: var(--accent-ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.hero {
  min-height: 76vh;
  padding: 24px clamp(18px, 4vw, 56px) 48px;
  background:
    linear-gradient(rgba(247, 250, 248, 0.88), rgba(247, 250, 248, 0.9)),
    repeating-linear-gradient(0deg, rgba(29, 143, 95, 0.12) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(90deg, rgba(29, 143, 95, 0.12) 0 1px, transparent 1px 42px);
  border-bottom: 1px solid var(--line);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto 56px;
}

.brand {
  font-weight: 800;
  font-size: 20px;
}

.badge {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  padding: 6px 10px;
  font-size: 13px;
  color: var(--muted);
}

.hero-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 42px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-ink);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.subtitle {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 21px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--accent);
  font-weight: 700;
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.78);
}

.benchmark-visual {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  padding: 18px;
  box-shadow: 0 24px 60px rgba(23, 32, 27, 0.08);
}

.arena {
  position: relative;
  aspect-ratio: 1.25;
  min-height: 280px;
  background:
    linear-gradient(90deg, rgba(23, 32, 27, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23, 32, 27, 0.08) 1px, transparent 1px),
    #e8f0eb;
  background-size: 34px 34px;
  overflow: hidden;
}

.orbit {
  position: absolute;
  width: 56%;
  aspect-ratio: 1;
  left: 22%;
  top: 18%;
  border: 2px dashed rgba(29, 143, 95, 0.6);
  border-radius: 50%;
}

.player,
.npc {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 8px 18px rgba(23, 32, 27, 0.24);
}

.player {
  left: 72%;
  top: 46%;
  background: #2f6fb8;
}

.npc.baseline {
  left: 22%;
  top: 68%;
  background: #8f9891;
}

.npc.psydust {
  left: 58%;
  top: 42%;
  background: var(--accent);
}

.metric-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.metric-strip div,
.result-item {
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 14px;
}

.metric-label,
.result-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 4px;
}

.metric-strip strong,
.result-item strong {
  font-size: 24px;
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 44px clamp(18px, 4vw, 40px);
}

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

.section h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.section p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 17px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

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

.result-item.wide {
  grid-column: 1 / -1;
}

.video-frame {
  background: #101613;
  border: 1px solid var(--line);
  margin-top: 16px;
}

.video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #101613;
}

.video-placeholder {
  font-size: 14px;
}

.level {
  font-size: 20px;
}

.warning {
  display: inline-block;
  background: var(--warn-bg);
  border: 1px solid #f0d59a;
  color: var(--warn);
  padding: 10px 12px;
}

code {
  background: #edf2ef;
  padding: 2px 5px;
  overflow-wrap: anywhere;
}

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

.link-list a {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 14px;
  font-weight: 700;
}

footer {
  padding: 26px clamp(18px, 4vw, 40px);
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
  background: #fff;
}

@media (max-width: 840px) {
  .hero-grid,
  .split,
  .result-grid,
  .link-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .topbar {
    margin-bottom: 34px;
  }

  .benchmark-visual {
    padding: 12px;
  }

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