:root {
  --paper: #071015;
  --surface: #0e1a22;
  --surface-strong: #132630;
  --ink: #e8fbff;
  --muted: #8fa7b1;
  --line: #24414c;
  --accent: #36f5a1;
  --accent-dark: #071015;
  --signal: #ff4d6d;
  --warning: #ffd166;
  --red: #ff4d6d;
  --green: #36f5a1;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
  --radius: 5px;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--paper);
  font-family: "IBM Plex Sans", "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 80% 0%, rgba(54, 245, 161, 0.1), transparent 28rem),
    linear-gradient(180deg, #071015 0%, #09161d 42%, #050b0f 100%);
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

code {
  padding: 0.08rem 0.28rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #081217;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.93em;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 21, 0.92);
  box-shadow: 0 1px 0 rgba(54, 245, 161, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: #081217;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: inset 0 0 20px rgba(54, 245, 161, 0.1);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.82rem;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.top-nav a {
  padding: 0.45rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.top-nav a:hover,
.top-nav a:focus {
  border-color: var(--line);
  background: var(--surface);
  color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(54, 245, 161, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(54, 245, 161, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 77, 109, 0.12), transparent 36rem),
    transparent;
  background-size: 32px 32px, 32px 32px, auto;
}

.eyebrow,
.test-code,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow,
.test-code {
  border: 1px solid rgba(255, 77, 109, 0.65);
  background: rgba(255, 77, 109, 0.12);
  color: #ffd6de;
}

.status-pill {
  border: 1px solid rgba(54, 245, 161, 0.55);
  background: rgba(54, 245, 161, 0.12);
  color: var(--accent);
}

.hero h1 {
  max-width: 12ch;
  margin: 1rem 0;
  font-size: clamp(3rem, 10vw, 7.8rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.hero-copy {
  max-width: 48rem;
  color: #b5c8d0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: var(--accent);
  color: #03100b;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 0 28px rgba(54, 245, 161, 0.2);
}

.button.secondary {
  background: var(--surface);
}

.control-card {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.control-card__top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  background: #081217;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-weight: 900;
}

.control-card__body {
  padding: 1rem;
}

.control-step {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.control-step:last-child {
  border-bottom: 0;
}

.control-step span {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: rgba(54, 245, 161, 0.12);
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-weight: 900;
}

.section {
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem);
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.95;
}

.section-header p {
  max-width: 42rem;
  margin: 0;
  color: var(--muted);
}

.params-guide {
  border-bottom: 1px solid var(--line);
  background: rgba(14, 26, 34, 0.72);
}

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

.params-grid article {
  min-width: 0;
  padding: 1rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
}

.params-grid code,
.test-card code,
.param-line {
  overflow-wrap: anywhere;
}

.params-grid code {
  display: block;
  max-width: 100%;
}

.params-grid h3 {
  margin: 0.75rem 0 0.45rem;
  font-size: 1.2rem;
}

.params-grid p {
  margin: 0 0 0.8rem;
  color: #b5c8d0;
}

.param-rotator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin: 1rem 0 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #081217;
}

.param-rotator__copy {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
}

.param-rotator__copy p {
  margin: 0;
  color: #b5c8d0;
}

.param-rotator__copy code {
  display: block;
  width: 100%;
  overflow-wrap: anywhere;
}

.param-rotator__controls {
  display: grid;
  grid-template-columns: 6.5rem 4rem 6.5rem;
  gap: 0.5rem;
  align-items: center;
}

.param-rotator__controls button {
  min-height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.param-rotator__controls button:hover,
.param-rotator__controls button:focus {
  border-color: var(--accent);
  color: var(--accent);
}

.param-rotator__controls span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

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

.test-card {
  display: flex;
  flex-direction: column;
  min-height: 23rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.test-card__head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.test-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  line-height: 1.12;
}

.test-card p {
  margin: 0 0 1rem;
  color: #b5c8d0;
}

.test-card dl {
  display: grid;
  gap: 0.7rem;
  margin: auto 0 1rem;
}

.test-card dl div {
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
}

.test-card dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.test-card dd {
  margin: 0.18rem 0 0;
}

.param-line {
  min-height: 3.4rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #081217;
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  background: #050b0f;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

  .param-rotator {
    grid-template-columns: 1fr;
  }

  .param-rotator__controls {
    justify-content: start;
  }
}

@media (max-width: 680px) {
  .site-header,
  .section-header,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .test-grid {
    grid-template-columns: 1fr;
  }

  .params-grid {
    grid-template-columns: 1fr;
  }

  .param-rotator__controls {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 7ch;
    font-size: 4.15rem;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 3.4rem;
  }
}
