:root {
  --bg: #080912;
  --sidebar: #10111d;
  --panel: #12131f;
  --panel-soft: #171729;
  --field: #0b0c15;
  --line: #24263a;
  --line-strong: #3c3471;
  --text: #f4f2fb;
  --muted: #9ba2b6;
  --soft: #6f7589;
  --accent: #8f68ff;
  --accent-hot: #d84dff;
  --accent-deep: #231d4a;
  --green: #39e7a7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 90% 100%, rgba(150, 65, 255, .16), transparent 34%),
    linear-gradient(180deg, #090a13 0%, var(--bg) 48%, #07070d 100%);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

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

.shell {
  width: min(1320px, calc(100% - 40px));
  min-height: calc(100vh - 40px);
  margin: 20px auto;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
}

.sidebar,
.panel {
  border: 1px solid var(--line);
  background: rgba(16, 17, 29, .92);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

.sidebar {
  position: sticky;
  top: 20px;
  height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(143, 104, 255, .34), rgba(216, 77, 255, .16)),
    var(--accent-deep);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.side-nav {
  display: grid;
  gap: 8px;
  margin-top: 34px;
}

.side-nav a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 700;
}

.side-nav a:hover,
.side-nav a.active {
  border-color: var(--line-strong);
  background: var(--accent-deep);
  color: #cfc7ff;
}

.side-footer {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.side-footer span,
.muted,
.contact-box span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.side-footer strong,
.contact-box strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
}

.side-footer strong {
  color: #cfc7ff;
}

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

.tab-page:not(.active) {
  display: none;
}

.panel {
  padding: 30px 32px;
  border-radius: 12px;
}

.hero-panel {
  min-height: 310px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 34px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(143, 104, 255, .09), transparent 38%),
    rgba(16, 17, 29, .94);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: 44px;
  line-height: 1.07;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 25px;
  line-height: 1.2;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.lead,
.panel p,
.note {
  color: var(--muted);
}

.lead {
  max-width: 650px;
  margin-bottom: 0;
  font-size: 16px;
}

.profile-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--field);
}

.avatar {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--accent-deep);
}

.avatar span {
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.button,
.endpoint,
.download-row a {
  color: #ded8ff;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--accent-deep);
}

.button:hover,
.endpoint:hover,
.download-row a:hover {
  color: #fff;
  border-color: var(--accent);
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--field);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.pill.live,
.green {
  color: var(--green);
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 14px;
}

.tool-grid.single {
  grid-template-columns: minmax(0, 760px);
}

.tool-card {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--field);
}

.tool-card.featured {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, var(--panel-soft), var(--field));
}

.tool-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.feature-list span {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent-deep);
  color: #cfc7ff;
  font-size: 12px;
  font-weight: 800;
}

.download-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--field);
}

.download-row {
  display: grid;
  grid-template-columns: 1.2fr .55fr .7fr .7fr;
  gap: 14px;
  padding: 15px 16px;
  border-top: 1px solid var(--line);
}

.download-row:first-child {
  border-top: 0;
}

.download-row.header {
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.note {
  margin: 12px 0 0;
  font-size: 13px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  align-items: center;
}

.endpoint,
.contact-box {
  display: block;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--field);
}

@media (max-width: 860px) {
  .shell {
    width: min(100% - 24px, 720px);
    grid-template-columns: 1fr;
    margin: 12px auto;
  }

  .sidebar {
    position: static;
    height: auto;
  }

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

  .hero-panel,
  .tool-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 36px;
  }

  .download-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

@media (max-width: 520px) {
  .panel,
  .sidebar {
    padding: 22px;
  }

  .side-nav {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 31px;
  }
}
