:root {
  color-scheme: dark;
  --bg: #07090d;
  --surface: #10151b;
  --surface-2: #151d25;
  --surface-3: #0c1117;
  --line: #2d3842;
  --line-strong: #4d5e6a;
  --text: #f3f4f6;
  --muted: #a7b0ba;
  --soft: #77838f;
  --forge: #d46a3a;
  --forge-2: #f0b35f;
  --blue: #78a6ff;
  --ok: #9dcfb1;
  --danger: #e58b8b;
  --shadow: 14px 14px 0 #05070a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(ellipse at 14% 0%, rgba(212, 106, 58, 0.14) 0, transparent 38rem),
    radial-gradient(ellipse at 92% 4%, rgba(120, 166, 255, 0.08) 0, transparent 32rem),
    linear-gradient(180deg, #07090d 0%, #0b1117 48%, #07090d 100%);
  letter-spacing: 0;
}

a { color: #f0b35f; text-decoration: none; }
a:hover { color: #ffd08c; }
p { color: var(--muted); line-height: 1.65; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: 0; }
h2 { font-size: 1.35rem; margin-bottom: 10px; }
button, input, textarea, select { font: inherit; }

.topbar {
  width: min(1320px, calc(100% - 48px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  min-width: max-content;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(212, 106, 58, 0.34));
}

.brand strong, .brand small { display: block; line-height: 1.05; }
.brand strong { font-size: 1.05rem; }
.brand small { color: var(--muted); font-size: .76rem; margin-top: 4px; }

.topnav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: .92rem;
}

.topnav a, .link-button {
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 4px;
  font-weight: 700;
}

.topnav a:hover, .link-button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 4px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--forge);
  border-color: var(--forge);
  color: #130905;
}

.button.primary:hover { background: #ec7d49; color: #120804; }
.link-button { border: 0; background: transparent; min-height: 0; }

.hero {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 500px);
  gap: clamp(36px, 7vw, 86px);
  align-items: center;
  padding: clamp(54px, 9vw, 104px) 0 58px;
}

.hero h1 {
  margin: 8px 0 18px;
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: .95;
  max-width: 790px;
}

.hero p {
  max-width: 680px;
  color: #b6bec8;
  font-size: 1.12rem;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--forge-2);
  text-transform: uppercase;
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .08em;
}

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.assembly {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid #3b4650;
  border-left: 3px solid var(--forge);
  background: linear-gradient(180deg, #121922, #0b1015);
  color: var(--text);
  box-shadow: var(--shadow);
}

.assembly span, .assembly strong {
  border: 1px solid #34424d;
  padding: 12px;
  background: #0f171f;
}

.assembly span:nth-child(2) { border-left-color: var(--blue); }
.assembly span:nth-child(3) { border-left-color: var(--ok); }
.assembly span:nth-child(4) { border-left-color: var(--forge-2); }
.assembly strong {
  margin-top: 8px;
  background: #20140f;
  border-color: #7d4a2e;
  color: #ffd7a4;
  text-align: center;
}

.explain, .workflow, .languages, .app-shell, .narrow {
  width: min(1180px, calc(100% - 48px));
  margin: 44px auto;
}

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

.explain > div {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.workflow {
  border-top: 1px solid var(--line);
  padding-top: 34px;
}

.workflow ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  background: var(--line);
  border: 1px solid var(--line);
  list-style-position: inside;
}

.workflow li {
  background: var(--surface);
  color: #c8d0d8;
  padding: 15px;
  min-height: 84px;
  line-height: 1.45;
}

.language-strip { display: flex; gap: 8px; flex-wrap: wrap; }
.language-strip span {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 9px 11px;
  font-weight: 800;
}
.language-strip small { color: var(--soft); margin-left: 8px; font-weight: 700; }

.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 24px;
}

.page-heading h1 { font-size: clamp(2rem, 4vw, 3.05rem); }
.page-heading p { color: var(--muted); max-width: 760px; margin-bottom: 0; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
}

.data-table th, .data-table td {
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table th {
  color: #8d99a5;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.data-table small { display: block; color: var(--soft); margin-top: 4px; }
.data-table tr:hover td { background: rgba(255, 255, 255, 0.025); }

.status {
  display: inline-block;
  color: #ffd7a4;
  background: #21150f;
  border: 1px solid #775033;
  padding: 4px 7px;
  font-size: .74rem;
  font-weight: 850;
}

.project-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 30px;
  width: min(1320px, calc(100% - 48px));
  margin: 34px auto;
}

.side-nav {
  border-right: 1px solid var(--line);
  padding-right: 16px;
}

.side-nav a {
  display: block;
  padding: 10px 12px;
  color: var(--muted);
  border-left: 2px solid transparent;
}

.side-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.side-nav a.is-active {
  border-left-color: var(--forge);
  background: #15100d;
  color: var(--text);
  font-weight: 850;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 20px 0 32px;
  background: var(--line);
  border: 1px solid var(--line);
}

.summary-grid article, .review-box {
  background: var(--surface);
  padding: 16px;
}

.summary-grid span {
  color: #8d99a5;
  font-size: .72rem;
  text-transform: uppercase;
  font-weight: 850;
  letter-spacing: .07em;
}

.summary-grid strong { display: block; margin-top: 8px; }
.summary-grid p { margin: 7px 0 0; font-size: .85rem; }

.catalogue { display: grid; gap: 22px; }
.catalogue section { border-top: 1px solid var(--line); padding-top: 18px; }
.catalogue-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid #202a33;
}

.catalogue-row:first-of-type { border-top: 0; }
.catalogue-row p { margin: 5px 0; color: #aab3bc; }
.catalogue-row small { color: var(--soft); }
.catalogue-row input { margin-top: 3px; accent-color: var(--forge); }

.form-grid { display: grid; gap: 16px; max-width: 760px; }
label { display: grid; gap: 7px; color: #d6dce2; font-weight: 800; }
input, textarea, select {
  width: 100%;
  border: 1px solid #3c4853;
  border-radius: 3px;
  padding: 11px 12px;
  background: #090d12;
  color: var(--text);
}

input:focus, textarea:focus, select:focus {
  outline: 0;
  border-color: var(--forge);
  box-shadow: 0 0 0 2px rgba(212, 106, 58, 0.25);
}

textarea { min-height: 110px; resize: vertical; }
.build-line, .timeline, .dev-login { margin-top: 18px; }
.build-line code, .data-table code { color: #ffd7a4; }

.timeline {
  border: 1px solid var(--line);
  background: var(--surface);
}

.timeline p {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 12px;
  margin: 0;
}

.timeline p:first-child { border-top: 0; }
.timeline span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: var(--forge);
  color: #120804;
  border-radius: 50%;
  font-size: .78rem;
  font-weight: 900;
}

.note { color: var(--soft); }
button:disabled, .button:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 900px) {
  .topbar { width: min(100% - 32px, 760px); height: auto; padding: 14px 0; flex-wrap: wrap; }
  .topnav { order: 3; width: 100%; overflow-x: auto; }
  .hero, .explain, .workflow ol, .project-layout, .summary-grid { grid-template-columns: 1fr; }
  .hero, .explain, .workflow, .languages, .app-shell, .narrow, .project-layout { width: min(100% - 32px, 760px); }
  .side-nav { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 12px; overflow-x: auto; white-space: nowrap; }
  .side-nav a { display: inline-block; }
  .data-table { display: block; overflow-x: auto; }
}
