:root {
  color-scheme: light;
  --ink: #0b0d10;
  --soft: #29313a;
  --muted: #6f7782;
  --faint: #aeb5bd;
  --line: rgba(11,13,16,.1);
  --line-strong: rgba(11,13,16,.16);
  --paper: #fbfbfa;
  --panel: rgba(255,255,255,.68);
  --code: #111418;
  --code-soft: #1a1f25;
  --blue: #245cff;
  --green: #3c8f67;
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 54% -8rem, rgba(255,255,255,.92), transparent 36rem),
    radial-gradient(circle at 84% 8rem, rgba(36,92,255,.055), transparent 28rem),
    linear-gradient(180deg, rgba(11,13,16,.035), transparent 22rem);
}
a { color: inherit; text-decoration: none; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
::selection { background: rgba(36,92,255,.14); }
:focus-visible { outline: 2px solid rgba(36,92,255,.7); outline-offset: 4px; border-radius: 10px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2 + 32px));
  background: rgba(251,251,250,.78);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-size: 14px;
  font-weight: 760;
}
.brand-mark {
  width: 24px;
  height: 24px;
  background: url("https://assetiko.com/assets/logo.png") center / contain no-repeat;
}
.dev-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}
.top-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: rgba(11,13,16,.62);
}
.top-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 999px;
}
.top-links a:hover { background: rgba(11,13,16,.045); color: var(--ink); }

.docs-shell {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 240px;
  gap: 34px;
  padding: 34px 32px 72px;
}
.sidebar,
.right-rail {
  position: sticky;
  top: 92px;
  align-self: start;
}
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-right: 1px solid var(--line);
  padding: 8px 18px 8px 0;
}
.sidebar-title {
  margin: 0 0 10px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sidebar a {
  min-height: 34px;
  display: flex;
  align-items: center;
  border-radius: 10px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 590;
}
.sidebar a:hover,
.sidebar a.active { color: var(--ink); background: rgba(11,13,16,.045); }

.content { min-width: 0; }
.hero-doc {
  min-height: calc(100svh - 140px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 42px;
  padding: 64px 0 92px;
  border-bottom: 1px solid var(--line);
}
.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: rgba(11,13,16,.48);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .13em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin: 0; }
h1 {
  max-width: 900px;
  font-size: clamp(3.45rem, 6.1vw, 5.45rem);
  line-height: .96;
  letter-spacing: 0;
  font-weight: 710;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.hero-desktop-line { display: block; }
.hero-mobile-line { display: none; }
h2 {
  max-width: 820px;
  font-size: clamp(2.55rem, 5vw, 4.3rem);
  line-height: .98;
  font-weight: 700;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
h3 { font-size: 1rem; line-height: 1.25; font-weight: 720; }
.lead {
  margin-top: 26px;
  max-width: 680px;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.58;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255,255,255,.58);
}
.button.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.button:hover { transform: translateY(-1px); }

.terminal-card {
  width: min(680px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  background: linear-gradient(145deg, var(--code), var(--code-soft));
  box-shadow: 0 28px 80px rgba(11,13,16,.18);
}
.terminal-head {
  display: flex;
  gap: 7px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.terminal-head span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.28);
}
.terminal-card pre {
  margin: 0;
  padding: 22px;
  color: rgba(255,255,255,.86);
  font-size: 13px;
  line-height: 1.65;
  overflow-x: auto;
}

.doc-section {
  padding: 92px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 92px;
}
.doc-section > p {
  margin-top: 24px;
  max-width: 780px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.72;
}
.steps,
.error-grid,
.route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}
.steps article,
.error-grid article,
.route-grid article,
.notice,
.summary-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}
.steps article {
  min-height: 178px;
  padding: 22px;
}
.steps span {
  display: block;
  margin-bottom: 34px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .12em;
}
.steps p,
.error-grid span,
.route-grid span,
.notice p,
.summary-card p,
.fine-print {
  color: var(--muted);
  line-height: 1.55;
}
.steps p { margin-top: 12px; font-size: .95rem; }
.diagram {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--line);
}
.diagram div {
  min-height: 112px;
  display: flex;
  align-items: center;
  padding: 22px;
  background: rgba(255,255,255,.62);
  font-weight: 720;
}
.diagram span { display: none; }
.notice {
  margin-top: 28px;
  max-width: 780px;
  padding: 22px;
}
.notice strong { display: block; margin-bottom: 8px; }
.code-block {
  position: relative;
  margin: 28px 0 0;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  background: #101317;
  color: rgba(255,255,255,.86);
  overflow: auto;
}
.code-block code {
  display: block;
  min-width: min-content;
  padding: 26px;
  font-size: 13px;
  line-height: 1.65;
}
.copy {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 32px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.78);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.copy.copied { color: #fff; background: rgba(60,143,103,.42); }
.route-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.route-grid article,
.error-grid article {
  padding: 20px;
}
.route-grid strong,
.error-grid strong {
  display: block;
  margin-bottom: 12px;
}
.table-wrap {
  margin-top: 34px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.58);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}
th, td {
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th {
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
td { color: var(--soft); font-size: 14px; line-height: 1.35; }
td:first-child { color: var(--ink); font-weight: 760; }
td code {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12px;
}
td a {
  color: var(--ink);
  font-weight: 720;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(11,13,16,.24);
}
tr:last-child td { border-bottom: 0; }
.checklist {
  max-width: 860px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.checklist li {
  position: relative;
  padding: 15px 18px 15px 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.55);
  color: var(--soft);
}
.checklist li:before {
  content: "";
  position: absolute;
  left: 18px;
  top: 19px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}
.right-rail {
  display: grid;
  gap: 12px;
}
.summary-card {
  padding: 18px;
}
.summary-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.summary-card strong {
  display: block;
  font-size: 1.45rem;
  margin-bottom: 8px;
}
.summary-card p { font-size: .9rem; }
.footer {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 30px 32px 50px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.footer span {
  color: var(--ink);
  font-weight: 760;
  margin-right: auto;
}

@media (max-width: 1260px) {
  .docs-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .right-rail { display: none; }
  .hero-doc { min-height: auto; }
  h1 { max-width: 940px; }
  .terminal-card { max-width: 680px; }
}

@media (min-width: 1261px) and (max-width: 1390px) {
  .docs-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .right-rail { display: none; }
  .hero-doc { gap: 38px; }
  h1 {
    font-size: clamp(3.25rem, 5.4vw, 4.6rem);
  }
}

@media (max-width: 860px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }
  .topbar {
    height: auto;
    min-height: 64px;
    padding: 10px 18px;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .top-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .docs-shell {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 0 18px 54px;
  }
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 15;
    margin: 0 -18px;
    padding: 10px 18px;
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(251,251,250,.88);
    backdrop-filter: blur(18px);
  }
  .sidebar-title { display: none; }
  .sidebar a {
    min-width: max-content;
    min-height: 36px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.58);
  }
  .hero-doc {
    width: 100%;
    max-width: 100%;
    padding: 58px 0 74px;
  }
  h1 {
    max-width: 100%;
    font-size: clamp(2.3rem, 9.6vw, 3.15rem);
    line-height: 1;
    text-wrap: pretty;
  }
  .hero-desktop-line { display: none; }
  .hero-mobile-line { display: block; }
  h2 {
    font-size: clamp(2.35rem, 10.5vw, 3.45rem);
    line-height: 1;
  }
  .lead {
    width: 100%;
    max-width: 34ch;
    font-size: 1.06rem;
  }
  .doc-section { padding: 70px 0; scroll-margin-top: 96px; }
  .steps,
  .error-grid,
  .route-grid,
  .diagram {
    grid-template-columns: 1fr;
  }
  .steps article { min-height: auto; }
  .steps span { margin-bottom: 24px; }
  .terminal-card pre,
  .code-block code {
    font-size: 12px;
    line-height: 1.62;
  }
  .terminal-card {
    width: calc(100vw - 56px);
    max-width: calc(100vw - 56px);
    min-width: 0;
    border-radius: 18px;
  }
  .terminal-card pre {
    max-width: 100%;
    padding: 18px;
  }
  .terminal-card code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
  .table-wrap {
    border: 0;
    background: transparent;
    overflow: visible;
  }
  table, thead, tbody, tr, th, td { display: block; }
  table { min-width: 0; }
  thead { display: none; }
  tr {
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,.62);
    overflow: hidden;
  }
  td {
    border-bottom: 1px solid var(--line);
    padding: 13px 16px;
  }
  td:before {
    content: attr(data-label);
    display: block;
    margin-bottom: 7px;
    color: var(--faint);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  td:last-child { border-bottom: 0; }
  .footer { padding: 28px 18px 44px; }
  .footer span { flex-basis: 100%; }
}

@media (max-width: 460px) {
  .topbar { padding-inline: 14px; }
  .docs-shell { padding-inline: 14px; }
  .sidebar { margin-inline: -14px; padding-inline: 14px; }
  .hero-doc,
  .lead {
    width: 100%;
    max-width: 100%;
  }
  .terminal-card {
    width: calc(100vw - 44px);
    max-width: calc(100vw - 44px);
  }
  .lead { max-width: 31ch; }
  h1 { font-size: clamp(2.08rem, 9.6vw, 2.65rem); }
  .lead { font-size: 1rem; line-height: 1.55; }
  .terminal-card pre,
  .code-block code {
    font-size: 11px;
  }
}

@media (max-width: 600px) {
  .terminal-card {
    width: min(100%, 340px);
    max-width: 340px;
  }
}
