:root {
  --ink: #f2f0e8;
  --muted: #b7b0a4;
  --dim: #7d7569;
  --bg: #151613;
  --panel: #21231e;
  --panel-2: #2b2d27;
  --line: #46483f;
  --acid: #caff3f;
  --copper: #d88954;
  --steel: #7fb5c8;
  --danger: #ff6e5b;
  --ok: #7ed97a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 78% 12%, rgba(202, 255, 63, 0.14), transparent 28rem),
    var(--bg);
  background-size: 34px 34px, 34px 34px, auto, auto;
  color: var(--ink);
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", "Liberation Mono", Menlo, monospace;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(21, 22, 19, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--acid);
  color: var(--acid);
  box-shadow: inset 0 0 0 1px rgba(202, 255, 63, 0.25);
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

nav a:hover {
  color: var(--acid);
}

main {
  overflow: hidden;
}

.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding: clamp(30px, 5vw, 64px) clamp(18px, 5vw, 72px) clamp(22px, 4vw, 46px);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 760px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--acid);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(28px, 4.2vw, 56px);
  line-height: 1;
  margin-bottom: 16px;
}

h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.lede,
.section-head p,
.split-section p,
.faq p {
  color: var(--muted);
  line-height: 1.7;
}

.lede {
  max-width: 760px;
  font-size: 16px;
}

.short-answer {
  max-width: 760px;
  color: var(--steel);
  line-height: 1.65;
}

.hero-actions,
.control-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  padding: 0 18px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--acid);
}

.button:disabled {
  cursor: not-allowed;
  color: var(--dim);
}

.button.primary {
  background: var(--acid);
  color: #171912;
  border-color: var(--acid);
}

.button.secondary {
  background: transparent;
  color: var(--acid);
  border-color: var(--acid);
}

.button.ghost {
  background: transparent;
}

.button.full {
  width: 100%;
}

.signal-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(202, 255, 63, 0.12), rgba(127, 181, 200, 0.08));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.signal-panel > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  background: rgba(21, 22, 19, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.metric {
  color: var(--acid);
  font-size: 42px;
  font-weight: 900;
}

.metric-label {
  color: var(--muted);
  text-align: right;
  font-size: 12px;
}

.tool-band,
.content-grid,
.split-section,
.faq {
  padding: clamp(34px, 5vw, 68px) clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-head.compact {
  margin-bottom: 18px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 18px;
}

.input-pane,
.result-pane,
.path-card,
.code-preview {
  background: rgba(33, 35, 30, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.input-pane,
.result-pane {
  padding: 18px;
}

.dropzone {
  display: grid;
  gap: 8px;
  min-height: 120px;
  place-items: center;
  padding: 22px;
  border: 1px dashed var(--steel);
  background: rgba(127, 181, 200, 0.08);
  text-align: center;
  cursor: pointer;
}

.dropzone input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.drop-title {
  font-size: 18px;
  font-weight: 900;
}

.drop-copy,
.label {
  color: var(--dim);
  font-size: 12px;
  text-transform: uppercase;
}

.text-label {
  display: block;
  margin: 18px 0 8px;
  color: var(--muted);
  font-size: 13px;
}

textarea {
  width: 100%;
  min-height: 280px;
  resize: vertical;
  padding: 16px;
  border: 1px solid var(--line);
  background: #11120f;
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
}

textarea:focus,
.button:focus-visible,
.tab:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 2px;
}

.status-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line);
  background: #171812;
}

.status-dot {
  width: 13px;
  height: 13px;
  margin-top: 4px;
  background: var(--dim);
}

.status-card.good .status-dot {
  background: var(--ok);
}

.status-card.warn .status-dot {
  background: var(--copper);
}

.status-card.bad .status-dot {
  background: var(--danger);
}

.status-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.result-grid > div {
  min-height: 76px;
  padding: 14px;
  background: var(--panel-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.result-grid strong {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.notice-list {
  margin: 14px 0;
  padding: 16px;
  background: #171812;
  border: 1px solid var(--line);
}

.notice-list ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.6;
}

.os-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.tab {
  min-width: 110px;
  min-height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.tab.active {
  color: #171912;
  background: var(--acid);
  border-color: var(--acid);
}

.path-card {
  padding: 22px;
}

.path-card code {
  display: block;
  padding: 16px;
  overflow-x: auto;
  background: #11120f;
  border: 1px solid var(--line);
  color: var(--acid);
}

.path-card ol {
  color: var(--muted);
  line-height: 1.8;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: center;
}

.code-preview {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  color: var(--steel);
  line-height: 1.6;
}

.faq {
  max-width: none;
}

.faq details {
  max-width: 920px;
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-weight: 900;
}

.faq p {
  margin: 12px 0 0;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: var(--dim);
  font-size: 12px;
}

footer a {
  color: var(--acid);
}

.legal-page {
  max-width: 860px;
  padding: clamp(42px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.legal-page h1 {
  font-size: clamp(42px, 7vw, 72px);
}

.legal-page p {
  color: var(--muted);
  line-height: 1.8;
}

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .workspace,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .signal-panel {
    display: none;
  }

  h1 {
    font-size: clamp(38px, 12vw, 58px);
  }
}

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

  .button {
    width: 100%;
  }

  .signal-panel > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .metric-label {
    text-align: left;
  }
}
