:root {
  color-scheme: light;
  --ink: #18202a;
  --muted: #5a6673;
  --line: #d9dee4;
  --panel: #ffffff;
  --page: #f4f6f7;
  --metal: #2e3844;
  --accent: #2f7d57;
  --accent-strong: #1f6845;
  --signal: #c98226;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 0 32px;
  background: rgba(244, 246, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

nav a,
footer a {
  text-decoration: none;
}

nav a:hover,
footer a:hover {
  color: var(--accent-strong);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 48px;
  align-items: center;
  width: min(1120px, calc(100% - 48px));
  min-height: calc(82vh - 64px);
  margin: 0 auto;
  padding: 64px 0 44px;
}

.intro-copy {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 5.8rem;
  line-height: 0.95;
}

h2 {
  margin-bottom: 18px;
  font-size: 1.85rem;
  line-height: 1.15;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.lede {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.22rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  font-weight: 700;
  text-decoration: none;
}

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

.button:hover {
  border-color: var(--accent);
}

.panel-preview {
  width: 100%;
  border: 1px solid #202a34;
  border-radius: 8px;
  background: #28323d;
  box-shadow: 0 22px 55px rgba(20, 28, 36, 0.22);
  color: #edf1f4;
  overflow: hidden;
}

.panel-title {
  padding: 14px 16px;
  background: #1f2730;
  border-bottom: 1px solid #3d4854;
  font-weight: 800;
}

.level-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 16px 10px;
  color: #d8e1e7;
}

.xp-bar {
  height: 18px;
  margin: 0 16px 18px;
  border: 1px solid #64707b;
  background: #151b21;
}

.xp-bar span {
  display: block;
  width: 62%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--signal));
}

.stats-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-top: 1px solid #3d4854;
}

.stats-grid span,
.stats-grid strong {
  min-width: 0;
  padding: 10px 16px;
  border-bottom: 1px solid #3d4854;
}

.stats-grid span {
  color: #aeb9c2;
}

.stats-grid strong {
  text-align: right;
}

.band {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: 28px;
  padding: 34px max(24px, calc((100vw - 1120px) / 2));
  color: #f2f5f7;
  background: var(--metal);
}

.band p:last-child {
  margin-bottom: 0;
  color: #d3dbe2;
}

.band .eyebrow {
  color: #8ed0ad;
}

.content {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0;
}

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

.feature-grid article,
.doc-grid a {
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.feature-grid p,
.doc-grid span,
.split p,
.steps {
  color: var(--muted);
}

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

.doc-grid a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 132px;
  text-decoration: none;
}

.doc-grid a:hover {
  border-color: var(--accent);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.7fr);
  gap: 48px;
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.steps {
  margin: 0;
  padding-left: 22px;
}

.steps li + li {
  margin-top: 10px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  padding: 28px 24px 38px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

footer span {
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
    padding: 18px 24px;
  }

  nav {
    flex-wrap: wrap;
    row-gap: 10px;
  }

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

  .intro {
    width: min(100% - 32px, 640px);
    min-height: auto;
    padding-top: 42px;
  }

  .content {
    width: min(100% - 32px, 640px);
  }

  h1 {
    font-size: 3.6rem;
  }

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