﻿:root {
  color-scheme: dark;
  --bg: #0b0d12;
  --bg-2: #10141c;
  --surface: #151a22;
  --surface-2: #1b2230;
  --surface-3: #232c3d;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8ecf2;
  --muted: rgba(232, 236, 242, 0.64);
  --accent: #f97316;
  --accent-2: #22d3ee;
  --accent-3: #38bdf8;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --grid: rgba(255, 255, 255, 0.04);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  position: relative;
  overflow-x: hidden;
  background: var(--bg);
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 6px;
}

input,
select,
button,
textarea {
  font-family: inherit;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid rgba(249, 115, 22, 0.5);
  outline-offset: 2px;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  position: relative;
  z-index: 1;
}

.view {
  display: none;
  animation: fade-in 0.4s ease forwards;
}

.view.is-active {
  display: block;
}

#view-setup {
  margin-top: 40px;
}

.landing {
  max-width: 560px;
  min-height: calc(100vh - 160px);
  padding: 60px 0 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.landing__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.landing h1 {
  font-family: "Bebas Neue", "Space Grotesk", sans-serif;
  font-size: clamp(48px, 6vw, 76px);
  margin: 0 0 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.landing p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.6;
}

.landing__meta {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#landing-status {
  margin-top: 16px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 18px;
}

.section-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent-2);
  margin-bottom: 6px;
}

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

.section-head p {
  margin: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.user-stack {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.user-pill,
.hint-pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 12px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.grid {
  display: grid;
  gap: 16px;
}

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

.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.row--space {
  justify-content: space-between;
  margin-top: 18px;
}

.field {
  display: block;
}

.field--span {
  grid-column: 1 / -1;
}

.field__label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.field__input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--surface-2);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field__input:focus {
  border-color: rgba(249, 115, 22, 0.6);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

.field__hint {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--accent);
  border-color: transparent;
  color: #0b0d12;
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.25);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn--twitch {
  border-color: rgba(145, 70, 255, 0.7);
  background: #7c3aed;
  color: #fff;
  box-shadow: 0 14px 34px rgba(124, 58, 237, 0.35);
}

.btn--twitch:hover {
  background: #8b5cf6;
}

.table {
  display: grid;
  gap: 10px;
}

.table-row {
  display: grid;
  grid-template-columns: 1fr 130px 130px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.table-row--wide {
  grid-template-columns: 1fr 130px 130px;
}

.table-row--header {
  background: transparent;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.12);
}

.table-row__label {
  font-size: 13px;
}

.select,
.num {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--surface-3);
  color: var(--text);
}

.check {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
}

.codeblock {
  white-space: pre-wrap;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 10, 15, 0.6);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border-left: 4px solid rgba(249, 115, 22, 0.7);
}

.details {
  margin-top: 12px;
}

.details summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
}

.list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.6;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .row--space {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
