:root {
  --bg: #07090d;
  --panel: #101722;
  --panel-2: #151f2c;
  --text: #eef4ff;
  --muted: #9aa8bd;
  --line: rgba(255, 255, 255, .12);
  --orange: #ff8a1d;
  --orange-2: #ffb000;
  --blue: #44a6ff;
  --green: #41d89f;
  --shadow: 0 30px 90px rgba(0, 0, 0, .38);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% -10%, rgba(255, 138, 29, .28), transparent 30rem),
    radial-gradient(circle at 82% 8%, rgba(68, 166, 255, .18), transparent 30rem),
    linear-gradient(180deg, #080b10 0%, #080b10 42%, #0d1118 100%);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(7, 9, 13, .78);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .02em; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  color: #150b00; font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  box-shadow: 0 12px 30px rgba(255, 138, 29, .24);
}
.brand small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a { color: var(--muted); padding: 8px 10px; border-radius: 10px; font-size: 14px; font-weight: 650; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255, 255, 255, .07); }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 16px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .07);
  color: var(--text); font-weight: 800;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .16);
}
.button.primary { border: 0; background: linear-gradient(135deg, var(--orange), var(--orange-2)); color: #160b00; }
.button:hover { transform: translateY(-1px); color: inherit; }
.hero { padding: 80px 0 48px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .88fr); gap: 46px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: #ffd49d; background: rgba(255, 138, 29, .08); font-size: 13px; font-weight: 800; }
h1 { margin: 18px 0 18px; font-size: clamp(46px, 8vw, 90px); line-height: .92; letter-spacing: -.07em; }
.lead { font-size: clamp(19px, 2.2vw, 25px); color: #cfdaea; max-width: 720px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 34px; }
.note-card { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: rgba(255,255,255,.045); }
.note-card strong { display: block; font-size: 19px; }
.note-card span { color: var(--muted); font-size: 13px; }
.device-card { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035)); border-radius: 0; padding: 16px; box-shadow: var(--shadow); transform: none; }
.device-card img { border-radius: 18px; width: 100%; }
.caption { color: var(--muted); font-size: 13px; padding: 12px 4px 0; }
section { padding: 58px 0; }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head h2, .doc-main h1 { font-size: clamp(34px, 4vw, 56px); line-height: 1; margin: 0 0 14px; letter-spacing: -.045em; }
.section-head p, .doc-main > p { color: var(--muted); font-size: 18px; }
.grid { display: grid; gap: 18px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card { border: 1px solid var(--line); background: rgba(255,255,255,.055); border-radius: 22px; padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 21px; }
.card p { margin: 0; color: var(--muted); }
.card .icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px; background: rgba(255, 138, 29, .13); color: #ffc16e; font-weight: 900; }
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.035); }
.arch { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
.arch .card { position: relative; padding-top: 56px; }
.arch .card:before { counter-increment: step; content: counter(step); position: absolute; top: 18px; left: 20px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #120900; background: var(--orange-2); font-weight: 900; }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 30px; align-items: start; }
.panel { border: 1px solid var(--line); background: var(--panel); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); }
.panel-pad { padding: 28px; }
.kv { display: grid; gap: 12px; }
.kv div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv span { color: var(--muted); }
ul.clean { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
ul.clean li { position: relative; padding-left: 30px; color: #d8e1ef; }
ul.clean li:before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, var(--green), var(--blue)); }
pre { margin: 18px 0 0; padding: 20px; overflow: auto; border-radius: 18px; border: 1px solid var(--line); background: #05070a; color: #e9f4ff; }
.docs-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 38px; align-items: start; padding: 48px 0 70px; }
.sidebar { position: sticky; top: 86px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.045); padding: 14px; }
.sidebar a { display: block; padding: 9px 11px; border-radius: 11px; color: var(--muted); font-weight: 700; font-size: 14px; }
.sidebar a:hover, .sidebar a.active { color: var(--text); background: rgba(255,255,255,.08); }
.doc-main { max-width: 880px; }
.doc-main h2 { margin-top: 42px; font-size: 30px; line-height: 1.12; letter-spacing: -.025em; }
.doc-main h3 { margin-top: 28px; }
.doc-main p, .doc-main li { color: #c5d0df; }
.doc-meta { margin: -4px 0 18px; color: var(--muted) !important; font-size: 14px !important; }
.doc-main a { color: #7fc3ff; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.doc-main .callout { border: 1px solid rgba(255, 176, 0, .35); background: rgba(255, 176, 0, .08); border-radius: 18px; padding: 18px; color: #ffe2b4; }
.doc-main .callout p { color: #ffe2b4; margin: 0; }
.doc-main figure { margin: 28px 0; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: rgba(255,255,255,.04); }
.doc-main figcaption { padding: 12px 16px; color: var(--muted); font-size: 14px; }
.table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); }
.table th, .table td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: #fff; background: rgba(255,255,255,.075); }
.table td { color: #c8d3e3; }
.footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer a { color: #dce8f8; }
@media (max-width: 920px) {
  .hero-grid, .split, .docs-layout { grid-template-columns: 1fr; }
  .grid.three, .grid.two, .arch, .hero-notes { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .nav-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 560px) {
  .container { width: min(100% - 24px, 1160px); }
  .hero { padding-top: 42px; }
  h1 { font-size: 48px; }
  .nav-links a { padding-left: 7px; padding-right: 7px; }
}
.answer-box {
  margin-top: 22px;
  border: 1px solid rgba(65, 216, 159, .34);
  background: rgba(65, 216, 159, .09);
  color: #dbfff2;
  border-radius: 16px;
  padding: 16px 18px;
}
.sources-card {
  margin-top: 44px;
  border: 1px solid rgba(68, 166, 255, .28);
  background: rgba(68, 166, 255, .07);
  border-radius: 20px;
  padding: 20px;
}
.sources-card h2 { margin-top: 0; font-size: 24px; }
.sources-card p { color: #c9d8ec; }
.sources-card ul { margin: 12px 0 0; padding-left: 20px; }
.callout.moved {
  border-color: rgba(68, 166, 255, .38);
  background: rgba(68, 166, 255, .09);
}

/* Square UI pass: no rounded cards/buttons/screenshots. */
.logo-mark,
.nav-links a,
.button,
.eyebrow,
.note-card,
.device-card,
.device-card img,
.card,
.card .icon,
.panel,
pre,
.sidebar,
.sidebar a,
.doc-main .callout,
.doc-main figure,
.table,
.answer-box,
.sources-card {
  border-radius: 0;
}

/* Screenshot rendering fixes. Keep intrinsic aspect ratio and avoid empty
   rounded frames around smaller screenshots. */
.device-card img,
.panel img {
  width: 100%;
  height: auto;
}

.doc-main figure {
  display: table;
  width: auto;
  max-width: 100%;
  border: 0;
  background: transparent;
  overflow: visible;
}

.doc-main figure img {
  width: auto;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

.doc-main figcaption {
  display: table-caption;
  caption-side: bottom;
  padding: 10px 0 0;
}
