:root {
  color-scheme: dark;
  --background: #111315;
  --surface: #1b1e21;
  --surface-2: #25292d;
  --text: #f4f5f6;
  --muted: #acb2b8;
  --accent: #ffc107;
  --green: #35c46a;
  --border: #34383c;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at 80% 0%, #2a2616 0, var(--background) 38rem);
  color: var(--text);
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }

header, main, footer {
  width: min(76rem, calc(100% - 2rem));
  margin-inline: auto;
}
header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.25rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-right: auto;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
}
.brand img { border-radius: .5rem; }
nav { display: flex; flex-wrap: wrap; gap: 1rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a:focus { color: var(--text); }
.languages { gap: .55rem; padding-left: 1rem; border-left: 1px solid var(--border); }
.languages strong { color: var(--text); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(22rem, .95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(3rem, 8vw, 7rem) 0 5rem;
}
.hero-copy { max-width: 42rem; }
.hero-image {
  width: 100%;
  border: 1px solid #4a3434;
  border-radius: 1.4rem;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .38);
}
.availability {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1rem;
  padding: .35rem .7rem;
  border: 1px solid rgba(53, 196, 106, .45);
  border-radius: 999px;
  color: #b9f6cf;
  background: rgba(53, 196, 106, .09);
  font-size: .9rem;
  font-weight: 700;
}
.availability span { width: .55rem; height: .55rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 .25rem rgba(53, 196, 106, .13); }
.eyebrow { margin: 0; color: var(--accent); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
h1 { max-width: 13ch; margin: .55rem 0 1.25rem; font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.02; }
h2 { margin-top: 0; font-size: 1.45rem; }
h3 { margin: 0 0 .35rem; font-size: 1.2rem; }
.section-title { max-width: 22ch; margin: .45rem 0 1.5rem; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.1; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 2.2vw, 1.3rem); }
.microcopy, .note { color: var(--muted); font-size: .94rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: .75rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: .8rem;
  font-weight: 800;
  text-decoration: none;
}
.button.primary { border-color: var(--accent); background: var(--accent); color: #151719; }
.button.primary:hover, .button.primary:focus { background: #ffd54f; }
.button.secondary { color: var(--text); background: var(--surface); }

main > section:not(.hero) { margin-block: clamp(4rem, 8vw, 7rem); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card, article section, .faq details {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
}
.card p { margin-bottom: 0; color: var(--muted); }
.details .card h2 { font-size: 1.35rem; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.steps { display: grid; gap: 1rem; margin: 0; padding-left: 1.4rem; }
.steps li { padding-left: .4rem; }
.steps strong, .steps span { display: block; }
.steps span { color: var(--muted); }
.panel-demo {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  border: 1px solid #4b4f53;
  border-radius: 1.25rem;
  background: rgba(31, 32, 34, .96);
  box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, .35);
}
.handle { color: #9aa0a6; letter-spacing: .15em; }
.track { min-width: 0; }
.track strong, .track span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track span { color: var(--muted); font-size: .9rem; }
.control { font-size: 1.25rem; }
.play { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--accent); color: #151719; font-weight: 800; }

.screenshots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
figure { margin: 0; padding: .65rem; border: 1px solid var(--border); border-radius: 1rem; background: var(--surface); }
figure img { width: 100%; border-radius: .65rem; }
figcaption { padding: .75rem .35rem .25rem; color: var(--muted); text-align: center; }

.faq { max-width: 52rem; }
.faq details { margin: .75rem 0; }
.faq summary { cursor: pointer; font-weight: 800; }
.faq details p { margin-bottom: 0; color: var(--muted); }
.install-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  border: 1px solid #5f4d12;
  border-radius: 1.25rem;
  background: linear-gradient(120deg, #25220f, var(--surface));
}
.install-card img { border-radius: 1.4rem; }
.install-card h2, .install-card p { margin-bottom: .25rem; }
.install-card div > p:last-child { color: var(--muted); }

article { max-width: 52rem; padding: 2rem 0 5rem; }
article section { margin: 1rem 0; }
article ul { padding-left: 1.25rem; }
.language-block { margin-top: 3rem; }
.language-label { color: var(--green); font-weight: 700; }
footer { padding: 2rem 0 3rem; border-top: 1px solid var(--border); color: var(--muted); }
footer p { margin: .35rem 0; }

@media (max-width: 62rem) {
  header { align-items: flex-start; flex-wrap: wrap; }
  header nav:not(.languages) { order: 3; width: 100%; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 50rem; }
  .hero-image { max-width: 42rem; }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 48rem) {
  .grid, .screenshots { grid-template-columns: 1fr; }
  .screenshots { max-width: 28rem; }
  .panel-demo { grid-template-columns: auto 1fr auto auto auto; gap: .65rem; padding-inline: .8rem; }
  .install-card { grid-template-columns: auto 1fr; }
  .install-card .button { grid-column: 1 / -1; }
}

@media (max-width: 34rem) {
  header { flex-direction: column; }
  header nav:not(.languages) { order: initial; }
  .languages { padding-left: 0; border-left: 0; }
  h1 { font-size: clamp(2.35rem, 12vw, 3.4rem); }
  .panel-demo { grid-template-columns: auto 1fr auto auto; }
  .panel-demo .control:last-child { display: none; }
}
