@font-face {
  font-family: "Myriad Pro";
  src: url("../../assets/fonts/myriad/MyriadPro-Regular.otf") format("opentype");
  font-weight: 400;
}

@font-face {
  font-family: "Myriad Pro";
  src: url("../../assets/fonts/myriad/MyriadPro-Semibold.otf") format("opentype");
  font-weight: 600;
}

:root {
  --bg: #081018;
  --surface: #0d1720;
  --surface-2: #111f2a;
  --surface-3: #162938;
  --line: #244151;
  --line-soft: rgba(77, 132, 153, .35);
  --text: #eef7fb;
  --muted: #aabcc8;
  --soft: #78909d;
  --green: #17c67a;
  --cyan: #28d9d2;
  --amber: #ffb84a;
  --red: #ff5a5f;
  --shadow: 0 20px 60px rgba(0, 0, 0, .34);
  --radius: 10px;
  --sidebar: 318px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Myriad Pro", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(31, 205, 192, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 205, 192, .07) 1px, transparent 1px),
    radial-gradient(circle at 18% 4%, rgba(40, 217, 210, .14), transparent 28rem),
    radial-gradient(circle at 78% 0%, rgba(23, 198, 122, .09), transparent 28rem),
    var(--bg);
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
  line-height: 1.62;
}

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

code {
  padding: 2px 6px;
  border: 1px solid rgba(40, 217, 210, .22);
  border-radius: 6px;
  color: #dffefa;
  background: rgba(40, 217, 210, .08);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: .92em;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 16, 24, .94);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 90, 95, .55);
  border-radius: 9px;
  color: var(--red);
  background: rgba(255, 90, 95, .12);
  font-size: 24px;
  font-weight: 600;
}

.brand-title {
  display: grid;
  gap: 1px;
}

.brand-title strong {
  font-size: 21px;
  line-height: 1;
}

.brand-title span {
  color: var(--muted);
  font-size: 12px;
}

.top-meta,
.language-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.top-meta {
  margin-left: auto;
}

.pill,
.language-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(40, 217, 210, .32);
  border-radius: 8px;
  color: #d9fffb;
  background: rgba(11, 28, 37, .9);
  font-size: 13px;
  white-space: nowrap;
}

.pill.success,
.language-links a.active {
  border-color: rgba(23, 198, 122, .55);
  color: #d9ffea;
  background: rgba(23, 198, 122, .12);
}

.layout {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  gap: 28px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 24px 60px;
}

.sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 23, 32, .95);
  box-shadow: var(--shadow);
}

.sidebar h2 {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.search {
  width: 100%;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #08131c;
  outline: none;
  font: inherit;
}

.search:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(40, 217, 210, .1);
}

.doc-nav {
  margin: 0;
  padding: 0;
  list-style: none;
}

.doc-nav li {
  margin: 3px 0;
}

.doc-nav a {
  display: block;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
}

.doc-nav a:hover,
.doc-nav a.active {
  color: var(--text);
  border-color: rgba(40, 217, 210, .34);
  background: rgba(40, 217, 210, .08);
}

main {
  min-width: 0;
}

.hero {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
  padding: 34px;
  border: 1px solid rgba(40, 217, 210, .28);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(40, 217, 210, .13), transparent 42%),
    linear-gradient(90deg, rgba(23, 198, 122, .11), transparent 70%),
    rgba(13, 23, 32, .94);
  box-shadow: var(--shadow);
}

.hero h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.03;
}

.hero p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

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

.hero-card,
.mini-card {
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: rgba(8, 19, 28, .62);
}

.hero-card {
  min-height: 108px;
}

.hero-card small {
  display: block;
  color: var(--soft);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.hero-card strong,
.mini-card strong {
  display: block;
  color: var(--text);
  line-height: 1.18;
}

.hero-card strong {
  margin-top: 7px;
  font-size: 18px;
}

.mini-card strong {
  margin-bottom: 7px;
}

section {
  margin: 0 0 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 23, 32, .94);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .18);
  scroll-margin-top: 92px;
}

section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1.15;
}

section h2::before {
  content: "";
  width: 9px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(var(--cyan), var(--green));
}

section h3 {
  margin: 24px 0 10px;
  color: #dcf8f5;
  font-size: 20px;
}

section p {
  margin: 0 0 12px;
  color: var(--muted);
}

ul,
ol {
  color: var(--muted);
}

li {
  margin: 8px 0;
}

.steps {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 14px 16px 14px 56px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  color: var(--muted);
  background: rgba(8, 19, 28, .62);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #061115;
  background: var(--cyan);
  font-weight: 600;
}

.callout {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 9px;
  border: 1px solid var(--line-soft);
  background: rgba(8, 19, 28, .72);
  color: var(--muted);
}

.callout strong {
  color: var(--text);
}

.callout.success {
  border-color: rgba(23, 198, 122, .4);
  background: rgba(23, 198, 122, .08);
}

.callout.warning {
  border-color: rgba(255, 184, 74, .5);
  background: rgba(255, 184, 74, .09);
}

.callout.danger {
  border-color: rgba(255, 90, 95, .44);
  background: rgba(255, 90, 95, .09);
}

.panel-demo {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 16px;
  margin: 18px 0;
}

.mock-panel {
  padding: 16px;
  border: 1px solid rgba(40, 217, 210, .28);
  border-radius: 10px;
  background: #08131c;
}

.mock-panel h4 {
  margin: 0 0 12px;
  font-size: 16px;
}

.field,
.solution-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #0d1a24;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  padding: 11px 14px;
  border-radius: 8px;
  color: #031114;
  background: var(--cyan);
  font-weight: 600;
}

.button.green {
  background: var(--green);
}

.button.red {
  color: white;
  background: var(--red);
}

.switch {
  width: 56px;
  height: 30px;
  padding: 4px;
  border-radius: 999px;
  background: #263b48;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .08);
}

.switch::after {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #9fb3bd;
}

.switch.on {
  background: rgba(23, 198, 122, .28);
}

.switch.on::after {
  margin-left: auto;
  background: var(--green);
}

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

.checklist {
  list-style: none;
  padding-left: 0;
}

.checklist li {
  position: relative;
  padding-left: 26px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--green);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 9px;
  margin: 14px 0;
  color: var(--muted);
}

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

.table th {
  color: var(--text);
  background: var(--surface-3);
}

.table td {
  background: rgba(8, 19, 28, .56);
}

.footer {
  padding: 24px 0 0;
  color: var(--soft);
  text-align: center;
  font-size: 13px;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(40, 217, 210, .38);
  border-radius: 9px;
  color: var(--cyan);
  background: rgba(8, 16, 24, .9);
}

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

  .sidebar {
    position: relative;
    top: auto;
    max-height: none;
  }

  .hero-grid,
  .panel-demo,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

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

  .top-meta {
    margin-left: 0;
  }

  .layout {
    padding: 16px 12px 46px;
  }

  .hero,
  section {
    padding: 20px;
  }

  .button {
    width: 100%;
  }
}

@media print {
  body {
    color: #111;
    background: white;
  }

  .topbar,
  .sidebar,
  .back-to-top {
    display: none;
  }

  .layout {
    display: block;
    max-width: none;
    padding: 0;
  }

  .hero,
  section {
    break-inside: avoid;
    box-shadow: none;
    color: #111;
    background: white;
    border-color: #ccc;
  }

  section p,
  li,
  .callout,
  .mini-card {
    color: #222;
  }
}
