:root {
  --bg: #030406;
  --panel: rgba(15, 17, 20, 0.88);
  --panel-soft: rgba(255, 255, 255, 0.035);
  --line: rgba(216, 184, 106, 0.24);
  --line-soft: rgba(255, 255, 255, 0.08);
  --gold: #d8b86a;
  --gold-soft: #f0d99b;
  --ivory: #f7f2e7;
  --muted: #aaa49a;
  --dim: #756f66;
  --cyan: #58d6ff;
  --green: #6ee7a8;
  --red: #ff7a90;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ivory);
  background:
    radial-gradient(circle at 14% 8%, rgba(216, 184, 106, 0.14), transparent 21rem),
    radial-gradient(circle at 86% 18%, rgba(88, 214, 255, 0.11), transparent 24rem),
    linear-gradient(145deg, #050506, var(--bg) 62%, #000);
  font-family: var(--font);
}

button, input { font: inherit; }

.site-exit {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(216, 184, 106, 0.62);
  border-radius: 999px;
  color: var(--ivory);
  background: rgba(3, 4, 6, 0.86);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 28px;
  align-items: end;
  max-width: 1240px;
  margin: 0 auto;
  padding: 92px clamp(18px, 4vw, 52px) 28px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 860px;
  margin-bottom: 16px;
  font-size: 86px;
  line-height: 0.92;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero-copy {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.status-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  background: linear-gradient(145deg, rgba(16, 17, 20, 0.86), rgba(5, 6, 8, 0.94));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
}

.status-card strong {
  display: block;
  margin-bottom: 7px;
  font-size: 18px;
}

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

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 20px rgba(110, 231, 168, 0.72);
}

.suite {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 52px) 36px;
}

.sidebar {
  position: sticky;
  top: 74px;
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(3, 4, 6, 0.72);
}

.nav-tab,
.action {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-tab.active {
  color: var(--ivory);
  border-color: var(--gold);
  background: rgba(216, 184, 106, 0.13);
}

.workspace {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metrics article,
.view,
.handoff-card,
.export-grid article {
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: linear-gradient(145deg, var(--panel), rgba(4, 5, 7, 0.92));
}

.metrics article {
  padding: 18px;
}

.metrics span,
.handoff-card span,
.export-grid span {
  display: block;
  color: var(--dim);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metrics strong {
  display: block;
  margin-top: 7px;
  color: var(--ivory);
  font-size: 34px;
  line-height: 1;
}

.view {
  display: none;
  min-height: 510px;
  padding: clamp(18px, 3vw, 30px);
  overflow: hidden;
}

.view.active {
  display: block;
}

.panel-head {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 22px;
}

.panel-head h2 {
  margin-bottom: 0;
  font-size: 42px;
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.action {
  flex: 0 0 auto;
  padding: 0 16px;
  color: var(--ivory);
  border-color: rgba(216, 184, 106, 0.5);
  background: linear-gradient(135deg, rgba(216, 184, 106, 0.18), rgba(88, 214, 255, 0.08));
}

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

.row,
.pipeline-row,
.issue-card {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(120px, 0.75fr) minmax(120px, 0.7fr) minmax(160px, 1.1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: var(--panel-soft);
}

.row b,
.pipeline-row b,
.issue-card b {
  color: var(--ivory);
}

.row span,
.pipeline-row span,
.issue-card span {
  color: var(--muted);
}

.tag {
  display: inline-flex;
  justify-self: start;
  padding: 6px 9px;
  border: 1px solid rgba(216, 184, 106, 0.28);
  border-radius: 999px;
  color: var(--gold-soft);
  background: rgba(216, 184, 106, 0.08);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.crawl-card {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(88, 214, 255, 0.22);
  border-radius: 16px;
  background: rgba(88, 214, 255, 0.045);
}

.crawl-meter {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.crawl-meter span {
  display: block;
  width: 18%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  transition: width 0.42s ease;
}

#crawlStatus,
.backup-status {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.issue-grid,
.pipeline,
.handoff-layout,
.export-grid {
  display: grid;
  gap: 12px;
}

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

.issue-card {
  grid-template-columns: 1fr;
  align-items: start;
  min-height: 136px;
}

.pipeline-row {
  grid-template-columns: minmax(160px, 1fr) minmax(110px, 0.6fr) minmax(100px, 0.5fr) minmax(150px, 0.8fr);
}

.handoff-layout,
.export-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.handoff-card,
.export-grid article {
  min-height: 150px;
  padding: 20px;
}

.handoff-card strong,
.export-grid strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 22px;
  line-height: 1.08;
}

.handoff-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.export-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.export-grid article {
  min-height: 112px;
}

.export-grid span {
  color: var(--green);
}

.demo-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 52px) 42px;
}

.demo-footer span {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  font-weight: 750;
}

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

  .sidebar {
    position: static;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .metrics,
  .issue-grid,
  .handoff-layout,
  .export-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h1 {
    font-size: 64px;
  }

  .panel-head h2 {
    font-size: 34px;
  }
}

@media (max-width: 680px) {
  body {
    overflow-x: hidden;
  }

  .site-exit {
    position: static;
    margin: 12px 12px 0;
  }

  .hero {
    padding-top: 34px;
    width: min(100vw, 380px);
    max-width: 380px;
    margin-left: 0;
    margin-right: 0;
    padding-left: 20px;
    padding-right: 20px;
  }

  h1 {
    max-width: min(340px, calc(100vw - 40px));
    font-size: 32px;
    line-height: 1.05;
  }

  .hero-copy {
    max-width: min(340px, calc(100vw - 40px));
    font-size: 17px;
  }

  .status-card {
    max-width: min(340px, calc(100vw - 40px));
  }

  .suite {
    width: min(100vw, 380px);
    max-width: 380px;
    margin-left: 0;
    margin-right: 0;
    padding-left: 20px;
    padding-right: 20px;
  }

  .metrics strong {
    font-size: 28px;
  }

  .panel-head h2 {
    font-size: 28px;
    line-height: 1.08;
  }

  .sidebar,
  .metrics,
  .issue-grid,
  .handoff-layout,
  .export-grid {
    grid-template-columns: 1fr;
  }

  .panel-head,
  .row,
  .pipeline-row {
    grid-template-columns: 1fr;
  }

  .panel-head {
    display: grid;
  }

  .action {
    width: 100%;
  }
}
