:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  color: #f8f4fe;
  background: #0b0810;
}

* { box-sizing: border-box; }
body { margin: 0; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 6vw, 6rem);
  border-bottom: 1px solid #39284a;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: inherit;
  font-size: .91rem;
  font-weight: 750;
  letter-spacing: .06em;
  text-decoration: none;
}

.brand strong, h1 span { color: #d09aff; }

.hero {
  display: grid;
  align-items: center;
  min-height: min(38rem, 78svh);
  padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 8vw, 8rem);
  background:
    linear-gradient(90deg, #0b0810 5%, #0b0810e8 40%, #120a1c58 100%),
    linear-gradient(0deg, #0b0810, transparent 50%),
    url('/assets/overview-mountains.webp') center 45% / cover;
}

.hero-copy { max-width: 40rem; }
h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3.1rem, 8vw, 7rem);
  letter-spacing: -.06em;
  line-height: .98;
}

p { color: #c9bdd5; font-size: 1rem; line-height: 1.65; }
.hero p { max-width: 35rem; margin: 1.4rem 0 1.65rem; font-size: clamp(1.05rem, 2vw, 1.25rem); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .65rem 1.2rem;
  border-radius: .4rem;
  border: 1px solid #9e64d2;
  font-weight: 700;
  text-decoration: none;
}

.primary { background: #d09aff; color: #1a0928; }
.secondary { background: #231731; color: #f8f4fe; }
.button:hover { border-color: #f8f4fe; }
a:focus-visible, button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

.sample {
  max-width: 82rem;
  margin: auto;
  padding: 1rem clamp(1.25rem, 6vw, 5rem);
  scroll-margin-top: 1rem;
}
.sample-card {
  max-width: 42rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: #15101d;
  border: 1px solid #74468e;
  border-radius: .5rem;
}
.sample-card h3 { margin: 0; }
.sample-progress { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .45rem; margin: 1.2rem 0; }
.sample-progress progress { width: 100%; accent-color: #d09aff; }
.sample-card button { cursor: pointer; font: inherit; font-weight: 700; }
.sample-card button:disabled { cursor: default; opacity: .7; }
.sample-card [hidden] { display: none; }
#sample-result:not(:empty) { color: #cfefb9; }

.features {
  max-width: 82rem;
  margin: auto;
  padding: 1rem clamp(1.25rem, 6vw, 5rem) 4rem;
}

h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature-grid article {
  padding: 1.25rem;
  background: #15101d;
  border: 1px solid #39284a;
  border-radius: .5rem;
}
.feature-grid h3 { margin: 0 0 .5rem; font-size: 1.11rem; }
.feature-grid p { margin: 0; }

@media (max-width: 42rem) {
  .hero { min-height: 28rem; background-position: center; }
  .feature-grid { grid-template-columns: 1fr; }
}
