:root {
  color-scheme: dark;
  --bg: #070a0c;
  --panel: #11181c;
  --line: #273940;
  --text: #edf5f3;
  --muted: #99aaa8;
  --teal: #76f2d8;
  --amber: #f3c05f;
  --red: #ff746e;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }

.hero {
  min-height: 92vh;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 24px clamp(18px, 4vw, 56px) 56px;
  background:
    linear-gradient(rgba(7, 10, 12, 0.48), rgba(7, 10, 12, 0.82)),
    url("assets/convert-cockpit.png") center right / min(980px, 92vw) auto no-repeat,
    #070a0c;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
}
nav strong { color: var(--text); }
nav div { display: flex; gap: 18px; flex-wrap: wrap; }
nav a:hover { color: var(--teal); }
.hero-content {
  align-self: center;
  max-width: 860px;
  padding: 12vh 0 8vh;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 850;
}
h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.95;
  letter-spacing: 0;
}
.lede {
  max-width: 690px;
  color: #c3d2cf;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
}
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(118, 242, 216, 0.42);
  border-radius: 6px;
  background: rgba(17, 24, 28, 0.84);
  font-weight: 850;
}
.button.primary {
  color: #04110f;
  background: var(--teal);
}
.button:hover, .demo-mode button:hover, .plugin-row button:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
}

main { padding: 54px clamp(18px, 4vw, 56px) 80px; }
.proof-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 72px;
}
.proof-strip article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
}
.proof-strip strong {
  display: block;
  color: var(--teal);
  font-size: 34px;
}
.proof-strip span { color: var(--muted); }

.showcase {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 82px;
}
.section-copy { max-width: 780px; }
h2 {
  margin: 0 0 14px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}
.section-copy p:not(.eyebrow), .release p, .cards p, .steps p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}
figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.32);
}
figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
figcaption {
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.workflow { margin-bottom: 72px; }
.steps, .cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.steps article, .cards article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
}
.steps span {
  color: var(--amber);
  font-weight: 850;
}
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 82px;
}
.teaser-grid article {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  background: linear-gradient(180deg, rgba(118, 242, 216, 0.06), rgba(17, 24, 28, 0.94));
}
.teaser-grid span {
  color: var(--amber);
  font-weight: 850;
}
.teaser-grid h2 {
  font-size: clamp(28px, 3vw, 46px);
}
.teaser-grid p {
  color: var(--muted);
  line-height: 1.55;
}
h3 {
  margin: 10px 0 8px;
  font-size: 22px;
}
.release {
  max-width: 980px;
  padding-top: 72px;
}
.teaser-hero {
  background:
    linear-gradient(rgba(7, 10, 12, 0.36), rgba(7, 10, 12, 0.86)),
    url("assets/convert-cockpit.png") center / cover no-repeat,
    #070a0c;
}
.demo-body {
  min-height: 100vh;
  background: #080b0d;
}
.demo-shell {
  min-height: 100vh;
  padding: 24px clamp(18px, 4vw, 56px) 44px;
}
.demo-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.36fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.demo-sidebar {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #10171a;
  padding: 24px;
}
.demo-sidebar h1 {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.02;
}
.demo-sidebar p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.5;
}
.demo-mode {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 22px;
}
.demo-mode button, .plugin-row button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #151f23;
  color: var(--text);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}
.demo-mode button.is-active {
  background: var(--teal);
  color: #04110f;
  border-color: var(--teal);
}
.demo-panel {
  min-height: 700px;
  padding: 0;
}
.demo-stage {
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #10171a;
  padding: clamp(18px, 3vw, 34px);
}
.demo-stage.is-active {
  display: block;
}
.demo-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.demo-header h2 {
  max-width: 780px;
}
.metric-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.metric-board article, .status-list article, .repair-note, .package-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c1114;
  padding: 18px;
}
.metric-board strong {
  display: block;
  color: var(--teal);
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
}
.metric-board span, .status-list p, .repair-note p, .package-list span {
  color: var(--muted);
}
.status-list, .package-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.status-list article {
  display: grid;
  grid-template-columns: 14px 180px 1fr;
  gap: 14px;
  align-items: center;
}
.status-list p, .repair-note p {
  margin: 0;
}
.ok, .warn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}
.ok { background: var(--teal); box-shadow: 0 0 18px rgba(118, 242, 216, 0.55); }
.warn { background: var(--amber); box-shadow: 0 0 18px rgba(243, 192, 95, 0.45); }
.plugin-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #0c1114;
}
.plugin-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) 130px minmax(220px, 1.3fr) 100px;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.plugin-row:last-child { border-bottom: 0; }
.plugin-row.header {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 850;
}
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 850;
}
.tag.exact { background: rgba(118, 242, 216, 0.16); color: var(--teal); }
.tag.suggested { background: rgba(243, 192, 95, 0.16); color: var(--amber); }
.tag.manual { background: rgba(255, 116, 110, 0.16); color: var(--red); }
.repair-note {
  margin-top: 18px;
}
.package-list article {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 14px;
}
.package-list b {
  color: var(--teal);
}

@media (max-width: 860px) {
  .hero { background-size: 860px auto; background-position: center bottom; }
  .hero-content { padding-top: 8vh; }
  .proof-strip, .showcase, .steps, .cards, .teaser-grid, .demo-layout, .metric-board { grid-template-columns: 1fr; }
  .demo-mode { grid-template-columns: repeat(2, 1fr); }
  .demo-header, .status-list article, .package-list article { display: block; }
  .plugin-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .plugin-row.header { display: none; }
  .demo-panel { min-height: auto; }
}
