/* ==========================================================================
   Rassvet — project site
   Palette follows the app: rack graphite, patch-cable teal, dawn amber, sky blue.
   ========================================================================== */

:root {
  --bg: #070d1a;
  --bg-2: #0b1426;
  --bg-3: #101b31;
  --panel: rgba(18, 28, 48, 0.62);
  --panel-solid: #111b2f;
  --line: rgba(148, 170, 205, 0.14);
  --line-strong: rgba(148, 170, 205, 0.26);
  --ink: #e8eef7;
  --ink-2: #b4c1d4;
  --muted: #7d8ba1;

  --sun-1: #ffc531;
  --sun-2: #ff9f1c;
  --sun-3: #ff6b3d;
  --sky: #2d8cff;
  --cable: #0f8b8d;
  --cable-bright: #22b5b0;
  --led-green: #3dcb7a;
  --led-amber: #e8a33d;
  --led-red: #e5484d;

  --grad: linear-gradient(100deg, var(--sun-1) 0%, var(--sun-2) 30%, #ff7a59 55%, var(--sky) 100%);
  --glow: 0 0 0 1px var(--line), 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 50px -24px rgba(0, 0, 0, 0.7);

  --font: "Be Vietnam Pro", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f6f8fb;
  --bg-2: #eef2f7;
  --bg-3: #e6ecf3;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-solid: #ffffff;
  --line: rgba(24, 32, 43, 0.09);
  --line-strong: rgba(24, 32, 43, 0.18);
  --ink: #131a24;
  --ink-2: #3a4556;
  --muted: #5d6b7e;
  --glow: 0 0 0 1px var(--line), 0 30px 70px -30px rgba(20, 40, 80, 0.25);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 18px 40px -28px rgba(20, 40, 80, 0.35);
  color-scheme: light;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
code, kbd, pre { font-family: var(--mono); }
:not(pre) > code {
  font-size: 0.86em;
  padding: 0.12em 0.42em;
  border-radius: 6px;
  background: rgba(45, 140, 255, 0.12);
  color: var(--ink);
  border: 1px solid var(--line);
}
kbd {
  font-size: 0.72rem;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-2);
  line-height: 1.4;
}
::selection { background: rgba(255, 159, 28, 0.35); }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--cable-bright); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }

.grad {
  background: var(--grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

/* ----------------------------------------------------------- backgrounds */
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.aurora { position: fixed; inset: 0; z-index: -3; overflow: hidden; pointer-events: none; }
.aurora span {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5;
  animation: drift 24s var(--ease) infinite alternate;
}
.aurora span:nth-child(1) { width: 55vw; height: 55vw; left: -10vw; top: -20vw; background: radial-gradient(circle, rgba(255, 159, 28, 0.38), transparent 65%); }
.aurora span:nth-child(2) { width: 50vw; height: 50vw; right: -15vw; top: 10vh; background: radial-gradient(circle, rgba(45, 140, 255, 0.35), transparent 65%); animation-delay: -8s; }
.aurora span:nth-child(3) { width: 45vw; height: 45vw; left: 30vw; bottom: -25vw; background: radial-gradient(circle, rgba(34, 181, 176, 0.25), transparent 65%); animation-delay: -16s; }
:root[data-theme="light"] .aurora span { opacity: 0.35; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(6vw, 4vh, 0) scale(1.15); }
}

.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 100;
  background: var(--grad); transform-origin: 0 50%; transform: scaleX(0);
}

/* -------------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-color: var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand img { transition: transform 0.6s var(--ease-spring); }
.brand:hover img { transform: rotate(-12deg) scale(1.08); }
.nav__links { display: flex; gap: 4px; margin-left: 12px; }
.nav__links a {
  position: relative; padding: 8px 12px; border-radius: 8px; font-size: 0.92rem; color: var(--ink-2);
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover { color: var(--ink); background: rgba(127, 150, 190, 0.08); }
.nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--grad);
}
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.kbd-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 12px;
  border-radius: 10px; border: 1px solid var(--line-strong); background: var(--panel);
  color: var(--muted); font-size: 0.88rem; transition: border-color 0.2s, color 0.2s;
}
.kbd-btn:hover { border-color: var(--cable-bright); color: var(--ink); }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--panel); transition: border-color 0.2s, transform 0.2s;
}
.icon-btn:hover { border-color: var(--cable-bright); }
.icon-btn:active { transform: scale(0.94); }
#theme-toggle .i-moon { display: none; }
:root[data-theme="light"] #theme-toggle .i-sun { display: none; }
:root[data-theme="light"] #theme-toggle .i-moon { display: block; }
.burger { display: none; flex-direction: column; gap: 5px; }
.burger span { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.3s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------------------------------------------------------------- buttons */
.btn {
  --mx: 0px; --my: 0px;
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 600; font-size: 0.98rem;
  transition: transform 0.25s var(--ease), box-shadow 0.3s, background 0.3s, border-color 0.3s;
  transform: translate(var(--mx), var(--my));
  white-space: nowrap;
}
.btn svg { transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--sm { height: 38px; padding: 0 14px; font-size: 0.88rem; border-radius: 10px; }
.btn--primary {
  color: #1a1004;
  background: linear-gradient(135deg, var(--sun-1), var(--sun-2) 60%, var(--sun-3));
  box-shadow: 0 10px 30px -10px rgba(255, 159, 28, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  overflow: hidden;
}
.btn--primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.8s var(--ease);
}
.btn--primary:hover::after { transform: translateX(120%); }
.btn--primary:hover { box-shadow: 0 16px 40px -12px rgba(255, 159, 28, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn--primary kbd { border-color: rgba(26, 16, 4, 0.3); color: #3b2506; background: rgba(255, 255, 255, 0.25); }
.btn--ghost { border: 1px solid var(--line-strong); background: var(--panel); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--cable-bright); box-shadow: 0 0 0 4px rgba(34, 181, 176, 0.12); }
.btn .gh { fill: currentColor; stroke: none; }

/* ------------------------------------------------------------------- hero */
.hero { position: relative; padding: 72px 0 40px; overflow-x: clip; }
.hero__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--panel); font-size: 0.84rem; color: var(--ink-2);
  transition: border-color 0.2s;
}
.pill:hover { border-color: var(--sun-2); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--led-green); box-shadow: 0 0 0 0 rgba(61, 203, 122, 0.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(61, 203, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 203, 122, 0); } }
.hero__title {
  font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 800;
  margin: 22px 0 20px;
}
.hero__lead { font-size: 1.12rem; color: var(--ink-2); max-width: 34rem; margin: 0 0 30px; }
.hero__lead em { color: var(--muted); font-style: normal; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 44px 0 0; padding: 18px 0 0;
  border-top: 1px solid var(--line);
}
.stats div { margin: 0; }
.stats dt { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stats dd { margin: 0; font-size: 0.8rem; color: var(--muted); line-height: 1.35; }

.hero__visual { position: relative; perspective: 1400px; }
.sun { position: absolute; inset: -12% -8% auto auto; width: 70%; aspect-ratio: 1; z-index: -1; }
.sun__disc {
  position: absolute; inset: 18%; border-radius: 50%;
  background: radial-gradient(circle at 50% 60%, var(--sun-1), var(--sun-2) 45%, rgba(255, 107, 61, 0.0) 72%);
  filter: blur(18px); opacity: 0.75; animation: rise 7s var(--ease) infinite alternate;
}
.sun__rays {
  position: absolute; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 197, 49, 0.10) 0 6deg, transparent 6deg 18deg);
  mask: radial-gradient(circle, #000 30%, transparent 70%);
  -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%);
  animation: spin 80s linear infinite;
}
@keyframes rise { from { transform: translateY(10%); } to { transform: translateY(-4%); } }
@keyframes spin { to { transform: rotate(360deg); } }

.window {
  position: relative; border-radius: 16px; overflow: hidden; background: var(--panel-solid);
  box-shadow: var(--glow), 0 0 120px -40px rgba(45, 140, 255, 0.5);
  transform: rotateY(var(--ry, -8deg)) rotateX(var(--rx, 4deg));
  transform-style: preserve-3d; transition: transform 0.6s var(--ease);
}
.window__bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bg-3); }
.window__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.window__bar i:nth-child(2) { background: #febc2e; }
.window__bar i:nth-child(3) { background: #28c840; }
.window__url {
  margin: 0 auto; font-family: var(--mono); font-size: 0.72rem; color: var(--muted);
  padding: 3px 12px; border-radius: 6px; background: rgba(127, 150, 190, 0.08); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%;
}
.window__tabs { display: flex; gap: 2px; padding: 6px 8px 0; background: var(--bg-3); border-bottom: 1px solid var(--line); overflow-x: auto; }
.window__tabs button {
  position: relative; padding: 7px 14px 9px; font-size: 0.8rem; color: var(--muted); border-radius: 8px 8px 0 0;
  transition: color 0.2s, background 0.2s;
}
.window__tabs button:hover { color: var(--ink); }
.window__tabs button.is-active { color: var(--ink); background: var(--panel-solid); }
.window__tabs button.is-active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: var(--cable-bright); border-radius: 2px; }
.window__body { position: relative; aspect-ratio: 16 / 10; background: #f3f5f8; }
.shot {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left;
  opacity: 0; transform: scale(1.03); transition: opacity 0.6s var(--ease), transform 0.9s var(--ease);
}
.shot.is-active { opacity: 1; transform: none; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line-strong); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6); font-size: 0.85rem;
  animation: bob 6s ease-in-out infinite;
}
.float-card b { display: block; font-weight: 600; }
.float-card small { color: var(--muted); font-size: 0.74rem; }
.float-card--a { left: -28px; bottom: 16%; }
.float-card--b { right: -18px; top: 22%; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.led { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.led--green { background: var(--led-green); box-shadow: 0 0 12px var(--led-green); }
.spark { width: 90px; height: 28px; stroke: var(--sky); stroke-width: 2.2; stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 3s var(--ease) 0.8s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.marquee {
  margin-top: 80px; overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0;
  mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { font-weight: 600; font-size: 1.05rem; color: var(--muted); letter-spacing: -0.01em; white-space: nowrap; transition: color 0.2s; }
.marquee span:hover { color: var(--ink); }
.marquee span::before { content: "◆"; margin-right: 56px; color: var(--sun-2); opacity: 0.5; font-size: 0.6em; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------- sections */
.section { position: relative; padding: 120px 0; overflow-x: clip; }
.section--alt { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg-2) 70%, transparent) 12%, color-mix(in srgb, var(--bg-2) 70%, transparent) 88%, transparent); }
.section__head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.section__head p { color: var(--ink-2); font-size: 1.08rem; margin: 0; }
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--sun-2); margin-bottom: 14px;
}
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.08; letter-spacing: -0.035em; font-weight: 800; margin: 0 0 18px; }
h3 { font-size: 1.2rem; letter-spacing: -0.02em; margin: 0 0 8px; }
h4 { font-size: 1.02rem; letter-spacing: -0.01em; margin: 0 0 6px; }

/* ------------------------------------------------------------------ bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  --x: 50%; --y: 50%;
  position: relative; padding: 26px; border-radius: var(--radius); background: var(--panel);
  border: 1px solid var(--line); box-shadow: var(--shadow-card); overflow: hidden; isolation: isolate;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform 0.4s var(--ease), border-color 0.3s;
}
.card p { color: var(--ink-2); margin: 0; font-size: 0.95rem; }
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(420px circle at var(--x) var(--y), rgba(255, 159, 28, 0.12), transparent 45%);
}
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(300px circle at var(--x) var(--y), rgba(255, 197, 49, 0.6), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.spot:hover::before, .spot:hover::after { opacity: 1; }
.card--xl { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.card--tall { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.card--wide { grid-column: span 2; }
.card__icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px; font-size: 1.3rem;
  color: var(--sun-1); background: linear-gradient(135deg, rgba(255, 159, 28, 0.18), rgba(45, 140, 255, 0.14)); border: 1px solid var(--line-strong);
}
.card__link { margin-top: auto; padding-top: 18px; font-weight: 600; font-size: 0.92rem; color: var(--cable-bright); transition: letter-spacing 0.3s var(--ease); }
.card__link:hover { letter-spacing: 0.02em; }
.mini-chart { margin-top: 20px; flex: 1; min-height: 160px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.12); overflow: hidden; }
:root[data-theme="light"] .mini-chart { background: rgba(255, 255, 255, 0.6); }
.mini-chart canvas { width: 100%; height: 100%; display: block; }
.typing-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; font-family: var(--mono); font-size: 0.88rem; }
.typing-list li {
  display: flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(127, 150, 190, 0.05); color: var(--ink-2);
  transition: transform 0.4s var(--ease), border-color 0.3s, background 0.3s;
}
.typing-list li.is-hot { border-color: var(--cable-bright); background: rgba(34, 181, 176, 0.1); transform: translateX(6px); color: var(--ink); }
.tag { color: var(--sun-2); }

/* ---------------------------------------------------------------- palette */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.split__copy p { color: var(--ink-2); font-size: 1.05rem; }
.checks { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; color: var(--ink-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 6px;
  background: rgba(34, 181, 176, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322b5b0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 13px no-repeat;
  border: 1px solid rgba(34, 181, 176, 0.35);
}
.demo { position: relative; padding: 40px 0; }
.demo::before {
  content: ""; position: absolute; inset: 0 -10%; z-index: -1; border-radius: 40px;
  background: radial-gradient(ellipse at center, rgba(45, 140, 255, 0.2), transparent 65%);
}
.demo__palette, .cmdk__panel {
  border-radius: 16px; overflow: hidden; background: var(--panel-solid); border: 1px solid var(--line-strong);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
.demo__input, .cmdk__input { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
.demo__input svg, .cmdk__input svg { color: var(--muted); font-size: 1.15rem; flex: none; }
.demo__input kbd, .cmdk__input kbd { margin-left: auto; }
.caret { width: 2px; height: 1.2em; background: var(--sun-2); animation: blink 1s steps(1) infinite; margin-left: -10px; }
@keyframes blink { 50% { opacity: 0; } }
.demo__results, .cmdk__list { list-style: none; margin: 0; padding: 8px; min-height: 300px; max-height: 360px; overflow: auto; }
.demo__results .grp, .cmdk__list .grp { padding: 10px 12px 6px; font-size: 0.75rem; color: var(--muted); font-weight: 600; }
.demo__results .row, .cmdk__list .row {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: 0.94rem;
  animation: row-in 0.35s var(--ease) both;
}
.demo__results .row small, .cmdk__list .row small { margin-left: auto; color: var(--muted); font-size: 0.78rem; }
.demo__results .row svg, .cmdk__list .row svg { color: var(--muted); flex: none; }
.demo__results .row.is-sel, .cmdk__list .row.is-sel { background: rgba(34, 181, 176, 0.14); box-shadow: inset 0 0 0 1px rgba(34, 181, 176, 0.3); }
.demo__results .row.is-sel svg, .cmdk__list .row.is-sel svg { color: var(--cable-bright); }
mark { background: none; color: var(--sun-1); font-weight: 600; }
@keyframes row-in { from { opacity: 0; transform: translateY(6px); } }
.demo__foot, .cmdk__foot { display: flex; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 0.75rem; color: var(--muted); }
.demo__foot .r, .cmdk__foot .r { margin-left: auto; }

/* ---------------------------------------------------------------- monitors */
.monitor-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.panel {
  border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-card);
  padding: 20px 22px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.panel__head b { display: block; }
.panel__head small { color: var(--muted); font-size: 0.8rem; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(127, 150, 190, 0.08); border: 1px solid var(--line); }
.seg button { padding: 4px 10px; font-size: 0.78rem; border-radius: 7px; color: var(--muted); font-family: var(--mono); transition: all 0.2s; }
.seg button.is-on { color: var(--ink); background: var(--panel-solid); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
#live-chart { width: 100%; height: 260px; display: block; }
.legend { width: 100%; border-collapse: collapse; font-size: 0.82rem; margin-top: 10px; font-variant-numeric: tabular-nums; }
.legend th { text-align: right; font-weight: 500; color: var(--muted); padding: 6px 4px; border-bottom: 1px solid var(--line); }
.legend th:first-child, .legend td:first-child { text-align: left; }
.legend td { text-align: right; padding: 6px 4px; font-family: var(--mono); }
.legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.panel--gauge { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.panel--gauge .panel__head { align-self: stretch; }
.gauge { width: 100%; max-width: 280px; height: auto; }
.gauge path { fill: none; stroke-width: 16; stroke-linecap: round; }
.gauge__track { stroke: rgba(127, 150, 190, 0.18); }
.gauge__fill { stroke: url(#g-grad); stroke-dasharray: 251.3; stroke-dashoffset: 251.3; transition: stroke-dashoffset 1.6s var(--ease); filter: drop-shadow(0 0 8px rgba(45, 140, 255, 0.5)); }
.gauge__value { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; margin-top: -62px; font-variant-numeric: tabular-nums; }
.gauge__scale { display: flex; justify-content: space-between; width: 100%; max-width: 280px; color: var(--muted); font-size: 0.8rem; margin-top: 14px; }

.code { border-radius: var(--radius); background: #0a111f; border: 1px solid var(--line-strong); overflow: hidden; box-shadow: var(--shadow-card); color: #c9d2de; }
.code__bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid rgba(148, 170, 205, 0.14); font-family: var(--mono); font-size: 0.78rem; color: #7d8a9c; }
.code pre { margin: 0; padding: 18px 20px; overflow: auto; font-size: 0.82rem; line-height: 1.7; }
.code .k, .term .k { color: #7cc4ff; }
.code .s, .term .s { color: #ffc56a; }
.code .c, .term .c { color: #5d6b7e; font-style: italic; }
.code .f { color: #6ee7c8; }
.code .t { color: #c4a3ff; }
.copy {
  font-family: var(--mono); font-size: 0.72rem; padding: 4px 10px; border-radius: 6px; border: 1px solid rgba(148, 170, 205, 0.26); color: #b4c1d4;
  transition: all 0.2s;
}
.copy:hover { border-color: var(--cable-bright); color: #fff; }
.copy.is-done { border-color: var(--led-green); color: var(--led-green); }

.shot-card {
  margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); cursor: zoom-in;
  box-shadow: var(--shadow-card); background: #f3f5f8;
}
.shot-card img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 1.2s var(--ease); }
.shot-card:hover img { transform: scale(1.05); }
.shot-card figcaption, .gallery figcaption {
  position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 10px 14px; border-radius: 10px; font-size: 0.85rem;
  background: rgba(7, 13, 26, 0.78); color: #e8eef7; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transform: translateY(6px); opacity: 0.92; transition: transform 0.4s var(--ease), opacity 0.4s;
}
.shot-card:hover figcaption, .gallery figure:hover figcaption { transform: none; opacity: 1; }
.feature-row { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-row li { padding: 18px 20px; border-left: 2px solid; border-image: var(--grad) 1; }
.feature-row b { display: block; }
.feature-row span { color: var(--muted); font-size: 0.88rem; }

/* -------------------------------------------------------------- extensions */
.ext { display: grid; grid-template-columns: 300px 1fr; gap: 18px; align-items: stretch; }
.tree { border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); padding: 18px 12px; font-family: var(--mono); font-size: 0.86rem; box-shadow: var(--shadow-card); }
.tree__title { padding: 0 10px 10px; color: var(--muted); }
.tree ul { list-style: none; margin: 0; padding: 0 0 0 14px; }
.tree > ul { padding-left: 0; }
.tree li > span { display: inline-block; padding: 5px 10px; border-radius: 8px; }
.tree .dir > span { color: var(--ink-2); }
.tree .dir > span::before { content: "▾ "; color: var(--muted); }
.tree .file { display: flex; align-items: center; cursor: pointer; border-radius: 8px; transition: background 0.2s; }
.tree .file > span::before { content: "• "; color: var(--muted); }
.tree .file em { margin-left: auto; margin-right: 8px; font-style: normal; font-size: 0.7rem; color: var(--muted); padding: 1px 6px; border: 1px solid var(--line); border-radius: 6px; }
.tree .file:hover { background: rgba(127, 150, 190, 0.08); }
.tree .file.is-active { background: rgba(255, 159, 28, 0.12); }
.tree .file.is-active > span { color: var(--sun-1); }
.tree .file.is-active em { border-color: rgba(255, 159, 28, 0.4); color: var(--sun-2); }
.code--big pre { min-height: 380px; max-height: 460px; }
.code--big pre code { display: block; animation: fade-up 0.45s var(--ease); }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li { position: relative; padding: 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.steps p { margin: 0; color: var(--ink-2); font-size: 0.92rem; }
.steps__n {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; margin-bottom: 14px; font-weight: 700;
  background: var(--grad); color: #1a1004;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 40px; right: -18px; width: 18px; height: 2px; background: var(--line-strong);
}

/* ------------------------------------------------------------ architecture */
.arch { display: grid; grid-template-columns: 1fr 140px 1.2fr 140px 1fr; align-items: center; }
.arch__node {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 28px 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-card);
}
.arch__node small { color: var(--muted); font-size: 0.82rem; }
.arch__node--core { border-color: rgba(255, 159, 28, 0.45); box-shadow: 0 0 0 6px rgba(255, 159, 28, 0.06), 0 30px 80px -30px rgba(255, 159, 28, 0.5); }
.arch__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; margin-bottom: 8px; font-size: 1.5rem; background: rgba(127, 150, 190, 0.1); border: 1px solid var(--line); }
.arch__icon img { width: 36px; height: 36px; }
.arch__mods { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.arch__mods span, .chip { font-family: var(--mono); font-size: 0.7rem; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--ink-2); }
.chip { margin-top: 10px; border-color: rgba(34, 181, 176, 0.4); color: var(--cable-bright); }
.arch__wire { position: relative; height: 2px; background: var(--line-strong); margin: 0 -1px; }
.arch__wire i {
  position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--sun-1);
  box-shadow: 0 0 14px var(--sun-1), 0 0 4px #fff; animation: packet 2.4s linear infinite;
}
.arch__wire:nth-of-type(4) i { animation-delay: -1.2s; background: var(--sky); box-shadow: 0 0 14px var(--sky), 0 0 4px #fff; }
.arch__wire span { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 0.66rem; color: var(--muted); text-align: center; width: 140px; }
@keyframes packet { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }

/* ------------------------------------------------------------------ design */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.principle { padding: 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); transition: transform 0.4s var(--ease); }
.principle:hover { transform: translateY(-4px); }
.principle p { margin: 0; color: var(--ink-2); font-size: 0.9rem; }
.swatches { display: flex; margin-bottom: 18px; }
.swatches i { width: 44px; height: 44px; border-radius: 50%; background: var(--c); border: 3px solid var(--panel-solid); margin-right: -10px; transition: transform 0.4s var(--ease-spring); }
.principle:hover .swatches i { transform: translateY(-4px); }
.principle:hover .swatches i:nth-child(2) { transition-delay: 0.05s; }
.principle:hover .swatches i:nth-child(3) { transition-delay: 0.1s; }
.swatches.leds i { width: 26px; height: 26px; margin: 9px 14px 9px 0; border: 0; box-shadow: 0 0 16px var(--c); animation: led 2.4s infinite; }
.swatches.leds i:nth-child(2) { animation-delay: 0.8s; }
.swatches.leds i:nth-child(3) { animation-delay: 1.6s; }
@keyframes led { 50% { opacity: 0.45; box-shadow: 0 0 4px var(--c); } }
.type-sample { display: flex; align-items: baseline; gap: 14px; height: 44px; margin-bottom: 18px; }
.type-sample span { font-size: 2.3rem; font-weight: 700; line-height: 1; }
.type-sample code { font-size: 1.4rem; color: var(--sun-2); background: none; border: 0; }
.ux-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 48px 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.ux { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background 0.3s; }
.ux:hover { background: rgba(127, 150, 190, 0.05); }
.ux span { font-family: var(--mono); font-size: 0.8rem; color: var(--sun-2); }
.ux h4 { margin-top: 8px; }
.ux p { margin: 0; color: var(--ink-2); font-size: 0.92rem; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery figure { margin: 0; position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); cursor: zoom-in; background: #f3f5f8; }
.gallery img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 1.2s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }

/* -------------------------------------------------------------------- cta */
.cta-box {
  position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center;
  padding: 56px; border-radius: 28px; overflow: hidden; border: 1px solid var(--line-strong);
  background:
    radial-gradient(600px circle at 0% 0%, rgba(255, 159, 28, 0.18), transparent 50%),
    radial-gradient(600px circle at 100% 100%, rgba(45, 140, 255, 0.18), transparent 50%),
    var(--panel);
}
.cta-box p { color: var(--ink-2); margin: 0 0 28px; }
.term { border-radius: 16px; background: #0a111f; border: 1px solid rgba(148, 170, 205, 0.2); overflow: hidden; color: #c9d2de; }
.term__tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid rgba(148, 170, 205, 0.14); }
.term__tabs button { padding: 6px 12px; font-size: 0.8rem; border-radius: 8px; color: #7d8a9c; transition: all 0.2s; }
.term__tabs button.is-active { color: #e8eef7; background: rgba(148, 170, 205, 0.12); }
.term__body { position: relative; }
.term__body .copy { position: absolute; top: 12px; right: 12px; }
.term pre { display: none; margin: 0; padding: 22px; font-size: 0.84rem; line-height: 1.8; overflow: auto; min-height: 190px; }
.term pre.is-active { display: block; animation: fade-up 0.4s var(--ease); }
.term .p { color: var(--sun-2); user-select: none; }
.term .o { color: var(--led-green); }

/* ----------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--line); padding: 36px 0; margin-top: 40px; }
.footer__inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer p { margin: 0; color: var(--muted); font-size: 0.88rem; flex: 1; min-width: 220px; }
.footer__links { display: flex; gap: 20px; font-size: 0.9rem; color: var(--ink-2); }
.footer__links a:hover { color: var(--sun-1); }

/* ------------------------------------------------------- command palette */
.cmdk { position: fixed; inset: 0; z-index: 200; display: grid; justify-items: center; align-items: start; padding: 12vh 16px 0; }
.cmdk[hidden] { display: none; }
.cmdk__backdrop { position: absolute; inset: 0; background: rgba(3, 7, 15, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade 0.2s; }
.cmdk__panel { position: relative; width: min(620px, 100%); animation: pop 0.22s var(--ease); }
.cmdk__input input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font: inherit; }
.cmdk__list .row { cursor: pointer; }
.cmdk__list .empty { padding: 40px 12px; text-align: center; color: var(--muted); }
.cmdk.is-closing .cmdk__panel { animation: pop-out 0.16s ease-in forwards; }
.cmdk.is-closing .cmdk__backdrop { animation: fade 0.16s reverse forwards; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(0.98); } }
@keyframes pop-out { to { opacity: 0; transform: translateY(-6px) scale(0.98); } }

.lightbox { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; padding: 32px; background: rgba(3, 7, 15, 0.86); backdrop-filter: blur(8px); animation: fade 0.25s; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 88vh; border-radius: 14px; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6); animation: pop 0.3s var(--ease); }
.lightbox .icon-btn { position: absolute; top: 20px; right: 20px; color: #fff; background: rgba(255, 255, 255, 0.08); }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 220; padding: 10px 18px; border-radius: 12px; font-size: 0.9rem;
  background: var(--panel-solid); border: 1px solid var(--line-strong); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: all 0.35s var(--ease);
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ----------------------------------------------------------------- reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.hero__visual.reveal { transform: translateY(40px) scale(0.97); }
.hero__visual.reveal.is-in { transform: none; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__links.is-open {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 16px; right: 16px; padding: 10px; margin: 0;
    background: var(--panel-solid); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
    animation: pop 0.2s var(--ease);
  }
  .burger { display: inline-flex; }
  .hero__grid, .split, .cta-box { grid-template-columns: 1fr; }
  .hero__visual { max-width: 720px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .monitor-grid { grid-template-columns: 1fr; }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: repeat(2, 1fr); }
  .arch { grid-template-columns: 1fr; gap: 0; }
  .arch__wire { width: 2px; height: 70px; margin: 0 auto; }
  .arch__wire span { top: 50%; left: 14px; transform: translateY(-50%); text-align: left; width: min(220px, 42vw); }
  @keyframes packet { 0% { top: 0; left: -3px; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: calc(100% - 8px); left: -3px; opacity: 0; } }
  .ext { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 80px 0; }
  .hide-sm, .kbd-btn span, .kbd-btn kbd { display: none; }
  .kbd-btn { width: 38px; padding: 0; justify-content: center; }
  .hero { padding-top: 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .bento, .principles, .feature-row, .steps, .gallery, .ux-grid { grid-template-columns: 1fr; }
  .card--xl, .card--tall, .card--wide { grid-column: auto; grid-row: auto; }
  .steps li::after { display: none; }
  .float-card--a { left: 8px; bottom: -22px; }
  .float-card--b { right: 8px; top: -22px; }
  .cta-box { padding: 28px 20px; }
  .demo__foot .r, .cmdk__foot .r { display: none; }
  .window { transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* grid children may shrink below their content width (long code, nowrap buttons) */
.hero__grid > *, .split > *, .cta-box > *, .monitor-grid > *, .ext > *, .bento > *, .arch > * { min-width: 0; }
@media (max-width: 1080px) {
  .hero__grid, .split, .cta-box, .monitor-grid, .ext { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .bento, .principles, .feature-row, .steps, .gallery, .ux-grid { grid-template-columns: minmax(0, 1fr); }
  .btn { height: 46px; padding: 0 18px; }
}
.ext-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ext-chips span { font-family: var(--mono); font-size: 0.72rem; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--ink-2); transition: border-color 0.3s, color 0.3s; }
.card:hover .ext-chips span { border-color: rgba(255, 159, 28, 0.4); color: var(--sun-1); }
.card:hover .ext-chips span:nth-child(2) { transition-delay: 0.05s; }
.card:hover .ext-chips span:nth-child(3) { transition-delay: 0.1s; }
.card:hover .ext-chips span:nth-child(4) { transition-delay: 0.15s; }
.card:hover .ext-chips span:nth-child(5) { transition-delay: 0.2s; }
.burger { align-items: center; justify-content: center; }
.panel--gauge .panel__head { margin-bottom: auto; }
.panel--gauge .gauge__scale { margin-bottom: auto; }

/* ============================================================ multi-cloud */
.pill__new {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 2px 8px; border-radius: 999px; color: #1a1004; background: linear-gradient(135deg, var(--sun-1), var(--sun-2));
}
.card--feature { border-color: rgba(255, 159, 28, 0.45); background: linear-gradient(160deg, rgba(255, 159, 28, 0.1), transparent 55%), var(--panel); display: flex; flex-direction: column; }
.card--feature .card__icon { color: #fff; background: linear-gradient(135deg, var(--sun-2), var(--sky)); border-color: transparent; }
.card__badge {
  position: absolute; top: 18px; right: 18px; font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 3px 8px; border-radius: 6px; color: var(--sun-2); border: 1px solid rgba(255, 159, 28, 0.45); background: rgba(255, 159, 28, 0.08);
}

.section--clouds::before {
  content: ""; position: absolute; inset: 10% -20% auto; height: 70%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 30% 40%, rgba(45, 140, 255, 0.14), transparent 60%), radial-gradient(ellipse at 75% 30%, rgba(255, 159, 28, 0.12), transparent 60%);
}
.clouds { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; }

/* demo shell */
.mc { --cc: var(--cable-bright); position: relative; }
.mc__tabs { display: flex; align-items: flex-end; gap: 12px; padding: 0 10px; }
.mc__tabstrip { display: flex; gap: 4px; min-width: 0; overflow: hidden; }
.mc__tab {
  display: inline-flex; align-items: center; gap: 8px; max-width: 170px; padding: 8px 14px; border-radius: 10px 10px 0 0;
  font-size: 0.78rem; color: var(--muted); background: var(--bg-3); border: 1px solid var(--line); border-bottom: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.2s, background 0.2s; animation: row-in 0.35s var(--ease) both;
}
.mc__tab i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; box-shadow: 0 0 8px var(--c); }
.mc__tab.is-active { color: var(--ink); background: var(--panel-solid); }
.mc__hint { margin-left: auto; padding-bottom: 8px; font-family: var(--mono); font-size: 0.68rem; color: var(--muted); white-space: nowrap; }
.mc__win {
  position: relative; border-radius: 0 16px 16px 16px; background: var(--panel-solid); border: 1px solid var(--line-strong);
  box-shadow: 0 40px 90px -40px rgba(20, 40, 80, 0.5), 0 0 0 6px color-mix(in srgb, var(--cc) 10%, transparent);
  transition: box-shadow 0.5s var(--ease);
}
.mc__top { display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 14px; border-bottom: 1px solid var(--line); font-size: 0.86rem; }
.mc__top b { font-weight: 700; letter-spacing: -0.02em; }
.mc__spacer { flex: 1; }
.mc__btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 9px; font-size: 0.84rem; color: var(--ink-2); white-space: nowrap; }
.mc__btn svg { color: var(--muted); }
.mc__btn--cloud { border: 1px solid var(--line-strong); color: var(--ink); background: var(--panel); transition: border-color 0.2s, box-shadow 0.2s; }
.mc__btn--cloud:hover, .mc__btn--cloud[aria-expanded="true"] { border-color: var(--cc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cc) 18%, transparent); }
.mc__btn--cloud svg:first-child { color: var(--cc); }
.mc__btn .chev { font-size: 0.8em; }
.mc__menu-wrap { position: relative; }
.mc__menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 5; width: 260px; padding: 6px; border-radius: 12px;
  background: var(--panel-solid); border: 1px solid var(--line-strong); box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.35);
  animation: pop 0.18s var(--ease); transform-origin: top right;
}
.mc__menu[hidden] { display: none; }
.mc__menu-h { padding: 6px 10px; font-size: 0.74rem; color: var(--muted); }
.mc__menu ul { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 6px; }
.mc__item { display: flex; align-items: center; gap: 8px; border-radius: 8px; transition: background 0.15s; animation: row-in 0.3s var(--ease) both; }
.mc__item:hover { background: rgba(127, 150, 190, 0.1); }
.mc__pick { flex: 1; display: flex; align-items: center; gap: 10px; padding: 8px 10px; text-align: left; min-width: 0; }
.mc__pick i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.mc__pick b { display: block; font-size: 0.86rem; font-weight: 500; }
.mc__pick small { display: block; font-size: 0.72rem; color: var(--muted); }
.mc__item.is-current .mc__pick b { color: var(--cable); font-weight: 600; }
:root:not([data-theme="light"]) .mc__item.is-current .mc__pick b { color: var(--cable-bright); }
.mc__check { color: var(--cable-bright); margin-left: auto; }
.mc__out { display: grid; place-items: center; width: 30px; height: 30px; margin-right: 4px; border-radius: 7px; color: var(--muted); transition: color 0.2s, background 0.2s; }
.mc__out:hover { color: var(--led-red); background: rgba(229, 72, 77, 0.1); }
.mc__add { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 10px; border-radius: 8px; font-size: 0.86rem; color: var(--ink-2); }
.mc__add:hover { background: rgba(127, 150, 190, 0.1); color: var(--ink); }
.mc__add[disabled] { opacity: 0.45; cursor: default; }

.mc__body { padding: 22px; min-height: 300px; }
.mc__body.is-switching { animation: cloud-swap 0.55s var(--ease); }
@keyframes cloud-swap { 0% { opacity: 1; } 35% { opacity: 0; transform: translateX(-10px); filter: blur(3px); } 36% { transform: translateX(10px); } 100% { opacity: 1; transform: none; filter: none; } }
.mc__title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.mc__title h4 { font-size: 1.3rem; margin: 0; }
.mc__title p { margin: 2px 0 0; font-size: 0.84rem; color: var(--muted); }
.mc__badge { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 0.74rem; color: var(--ink-2); white-space: nowrap; }
.mc__badge .led { width: 7px; height: 7px; }
.mc__quota { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; padding: 16px; border-radius: 12px; border: 1px solid var(--line); }
.q__row { display: flex; justify-content: space-between; font-size: 0.82rem; }
.q__row span { color: var(--muted); font-variant-numeric: tabular-nums; }
.q__bar { height: 5px; margin-top: 6px; border-radius: 4px; background: rgba(127, 150, 190, 0.18); overflow: hidden; }
.q__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--cc); transition: width 0.9s var(--ease) 0.15s; }
.mc__svc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.mc__svc span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; font-size: 0.74rem; color: var(--ink-2); background: rgba(127, 150, 190, 0.08); }
.mc__svc span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--led-green); }
.mc__svc span.off { color: var(--muted); }
.mc__svc span.off::before { background: var(--muted); }

.mc__dlg { position: absolute; inset: 54px 0 0; z-index: 6; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(3px); border-radius: 0 0 16px 16px; animation: fade 0.2s; }
.mc__dlg[hidden] { display: none; }
.mc__dlg-card { width: min(300px, 90%); padding: 18px; border-radius: 14px; background: var(--panel-solid); border: 1px solid var(--line-strong); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.4); animation: pop 0.25s var(--ease); }
.mc__dlg-card h5 { margin: 0 0 12px; font-size: 0.95rem; }
.mc__dlg-card label { display: block; font-size: 0.74rem; color: var(--muted); margin-bottom: 10px; }
.mc__field { display: block; height: 32px; margin-top: 4px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-strong); font-size: 0.84rem; color: var(--ink); font-family: var(--mono); }
.mc__dlg-actions { display: flex; justify-content: flex-end; }
.mc__ok { padding: 7px 14px; border-radius: 8px; font-size: 0.82rem; font-weight: 600; color: #fff; background: var(--cable); transition: transform 0.15s; }
.mc__ok.is-press { transform: scale(0.94); }
.mc__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 0.78rem; color: var(--muted); flex-wrap: wrap; }
.mc__reset { font-size: 0.78rem; color: var(--cable-bright); }
.mc__reset:hover { text-decoration: underline; }

/* benefits */
.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.benefits li { display: flex; gap: 16px; }
.benefits p { margin: 0; color: var(--ink-2); font-size: 0.94rem; }
.benefits__i {
  display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; font-size: 1.15rem;
  color: var(--sky); background: rgba(45, 140, 255, 0.1); border: 1px solid rgba(45, 140, 255, 0.25);
  transition: transform 0.4s var(--ease-spring), background 0.3s;
}
.benefits li:hover .benefits__i { transform: scale(1.08) rotate(-6deg); background: rgba(45, 140, 255, 0.18); }

/* flow */
.flow { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 72px 0 24px; }
.flow::before { content: ""; position: absolute; top: 19px; left: 6%; right: 6%; height: 2px; background: linear-gradient(90deg, var(--sun-2), var(--sky)); opacity: 0.35; }
.flow__step { position: relative; text-align: center; padding: 0 8px; }
.flow__step p { margin: 0; color: var(--ink-2); font-size: 0.9rem; }
.flow__n {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto 14px; border-radius: 50%;
  font-weight: 700; color: #1a1004; background: var(--grad); box-shadow: 0 0 0 6px var(--bg), 0 10px 24px -8px rgba(255, 159, 28, 0.6);
}

/* grid below */
.clouds__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; margin-top: 48px; }
.usecases, .hood { padding: 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.usecases h3, .hood h3 { font-size: 1.05rem; margin-bottom: 14px; }
.usecases ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.usecases li { padding-left: 14px; border-left: 2px solid; border-image: var(--grad) 1; font-size: 0.88rem; }
.usecases b { display: block; }
.usecases span { color: var(--ink-2); }
.hood dl { margin: 0; display: grid; gap: 12px; }
.hood dt { font-weight: 600; font-size: 0.88rem; }
.hood dd { margin: 2px 0 0; color: var(--ink-2); font-size: 0.85rem; }
.clouds__grid .code pre { font-size: 0.78rem; }
.clouds__shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.clouds__shots .shot-card { aspect-ratio: 16 / 9; }

@media (max-width: 1080px) {
  .clouds { grid-template-columns: minmax(0, 1fr); }
  .clouds__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .clouds__grid .code { grid-column: 1 / -1; order: -1; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .flow::before { display: none; }
}
@media (max-width: 720px) {
  .clouds__grid, .clouds__shots { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .mc__hint, .hide-xs { display: none; }
  .mc__quota { grid-template-columns: minmax(0, 1fr); }
  .mc__menu { width: 240px; }
}
.hood dd code { white-space: nowrap; }

/* ============================================================ sub-pages */
.section--page { padding-top: 64px; padding-bottom: 72px; }
.page-title { font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.05; letter-spacing: -0.04em; font-weight: 800; margin: 0 0 18px; }
.clouds__grid--two { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 8px 0 24px; }
.pager__link {
  display: flex; flex-direction: column; gap: 2px; padding: 20px 24px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease), border-color 0.3s;
}
.pager__link small { color: var(--muted); font-size: 0.8rem; }
.pager__link b { font-size: 1.15rem; letter-spacing: -0.02em; }
.pager__link--next { text-align: right; }
.pager__link:hover { transform: translateY(-3px); border-color: rgba(255, 159, 28, 0.5); }
.pager__link:hover b { color: var(--sun-2); }
@media (max-width: 1080px) { .clouds__grid--two { grid-template-columns: minmax(0, 1fr); } .clouds__grid--two .code { order: 0; } }
@media (max-width: 720px) { .section--page { padding-top: 40px; } }

/* ================================================================= docs */
.docs { padding: 28px 0 40px; }
.docs__grid { display: grid; grid-template-columns: 260px minmax(0, 1fr) 210px; gap: 40px; align-items: start; width: min(1360px, 100% - 32px); }

/* sidebar */
.docs__side {
  position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; padding: 6px 6px 24px 0;
  scrollbar-width: thin;
}
.docs__search { position: relative; margin-bottom: 12px; }
.docs__search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.docs__search input {
  width: 100%; height: 40px; padding: 0 12px 0 36px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--panel); color: var(--ink); font: inherit; font-size: 0.9rem; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.docs__search input:focus { border-color: var(--cable-bright); box-shadow: 0 0 0 3px rgba(34, 181, 176, 0.15); }
.docs__home-link, .docs__side nav a {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; font-size: 0.88rem; color: var(--ink-2);
  transition: background 0.15s, color 0.15s;
}
.docs__home-link { font-weight: 600; margin-bottom: 8px; }
.docs__home-link:hover, .docs__side nav a:hover { background: rgba(127, 150, 190, 0.1); color: var(--ink); }
.docs__home-link.is-active, .docs__side nav a.is-active { background: rgba(255, 159, 28, 0.12); color: var(--ink); box-shadow: inset 2px 0 0 var(--sun-2); }
.docs__side nav a .n { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); min-width: 18px; }
.docs__side nav a.is-active .n { color: var(--sun-2); }
.docs__group { margin-top: 10px; }
.docs__group-h {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; font-size: 0.76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted);
}
.docs__group-h em { margin-left: auto; font-style: normal; font-weight: 500; font-family: var(--mono); padding: 0 6px; border-radius: 6px; border: 1px solid var(--line); }
.docs__group-h svg:last-child { transition: transform 0.25s var(--ease); }
.docs__group.is-collapsed .docs__group-h svg:last-child { transform: rotate(-90deg); }
.docs__group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.docs__group.is-collapsed ul { display: none; }
.docs__none { color: var(--muted); font-size: 0.86rem; padding: 10px; }

/* skeletons */
.docs__skel { display: grid; gap: 10px; padding: 6px 0; }
.docs__skel i {
  display: block; height: 14px; border-radius: 6px;
  background: linear-gradient(90deg, rgba(127, 150, 190, 0.1), rgba(127, 150, 190, 0.22), rgba(127, 150, 190, 0.1));
  background-size: 200% 100%; animation: skel 1.3s linear infinite;
}
.docs__skel i:nth-child(odd) { width: 80%; }
.docs__skel--page i:first-child { height: 40px; width: 55%; margin-bottom: 14px; }
.docs__skel--page i { height: 16px; }
@keyframes skel { to { background-position: -200% 0; } }

/* main column */
.docs__main { min-width: 0; }
.docs__bar { display: flex; align-items: center; gap: 12px; min-height: 40px; margin-bottom: 18px; flex-wrap: wrap; }
.docs__toggle { display: none; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--panel); font-size: 0.86rem; }
.docs__crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: 0.84rem; color: var(--muted); }
.docs__crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.6; }
.docs__crumbs a:hover { color: var(--ink); }
.docs__crumbs span { color: var(--ink-2); }
.docs__actions { margin-left: auto; }
.docs__act { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--panel); font-size: 0.82rem; color: var(--ink-2); transition: border-color 0.2s, color 0.2s; }
.docs__act:hover { border-color: var(--cable-bright); color: var(--ink); }
.docs__content {
  padding: 40px 48px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-card);
  min-height: 60vh; animation: fade-up 0.35s var(--ease);
}
.docs__pager { margin-top: 18px; padding: 0; }

/* typography for the rendered guides */
.prose { font-size: 1rem; line-height: 1.75; color: var(--ink-2); }
.prose h1 { font-size: clamp(2rem, 3.6vw, 2.6rem); line-height: 1.12; letter-spacing: -0.035em; color: var(--ink); margin: 0 0 12px; }
.prose h2 { font-size: 1.5rem; letter-spacing: -0.02em; color: var(--ink); margin: 2.4em 0 0.6em; padding-top: 1.2em; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.prose h3 { font-size: 1.15rem; color: var(--ink); margin: 1.8em 0 0.5em; scroll-margin-top: 90px; }
.prose h4 { color: var(--ink); margin: 1.4em 0 0.4em; }
.prose h2:first-of-type { margin-top: 1.6em; }
.h-anchor { margin-left: 6px; color: var(--muted); opacity: 0; text-decoration: none; font-weight: 400; transition: opacity 0.2s; }
.prose :is(h2, h3, h4):hover .h-anchor, .h-anchor:focus { opacity: 1; }
.h-anchor:hover { color: var(--sun-2); }
.prose p { margin: 0 0 1em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a:not(.h-anchor) { color: var(--cable); text-decoration: underline; text-decoration-color: rgba(15, 139, 141, 0.35); text-underline-offset: 3px; transition: text-decoration-color 0.2s; }
:root:not([data-theme="light"]) .prose a:not(.h-anchor) { color: var(--cable-bright); }
.prose a:not(.h-anchor):hover { text-decoration-color: currentColor; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.prose li { margin: 0.35em 0; }
.prose li::marker { color: var(--muted); }
.prose ol > li::marker { color: var(--sun-2); font-weight: 700; font-family: var(--mono); font-size: 0.9em; }
.prose blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 3px solid var(--sky); border-radius: 0 10px 10px 0; background: rgba(45, 140, 255, 0.07); }
.prose blockquote p:last-child { margin: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose :not(pre) > code { font-size: 0.86em; }
.table-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; border-radius: 12px; border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.prose th { text-align: left; font-weight: 600; color: var(--ink); background: rgba(127, 150, 190, 0.08); }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose tbody tr:hover { background: rgba(127, 150, 190, 0.05); }
.prose img { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line-strong); cursor: zoom-in; background: rgba(127, 150, 190, 0.08); opacity: 0; transition: opacity 0.5s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s; }
.prose img.is-loaded { opacity: 1; }
.prose img:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -24px rgba(20, 40, 80, 0.5); }
.docs__fig { margin: 1.4em 0 1.8em; }
.docs__fig img { box-shadow: 0 16px 40px -28px rgba(20, 40, 80, 0.45); }
.docs__fig figcaption { margin-top: 8px; font-size: 0.82rem; color: var(--muted); text-align: center; }
li .docs__fig { margin: 0.8em 0 1em; }
.docs__code { margin: 1em 0 1.4em; border-radius: 12px; overflow: hidden; background: #0a111f; border: 1px solid rgba(148, 170, 205, 0.2); }
.docs__code-bar { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 6px 14px; border-bottom: 1px solid rgba(148, 170, 205, 0.14); font-family: var(--mono); font-size: 0.72rem; color: #7d8a9c; }
.docs__code pre { margin: 0; padding: 14px 16px; overflow: auto; font-size: 0.84rem; line-height: 1.65; color: #c9d2de; }
.docs__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 1.6em; font-size: 0.82rem; color: var(--muted); }
.docs__meta > span { display: inline-flex; align-items: center; gap: 6px; }
.docs__tag { padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.docs__tag--project { color: var(--sky); background: rgba(45, 140, 255, 0.1); }
.docs__tag--admin { color: var(--sun-2); background: rgba(255, 159, 28, 0.12); }

/* on this page */
.docs__toc { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; font-size: 0.84rem; padding-top: 58px; }
.docs__toc-h { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 10px; }
.docs__toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.docs__toc li a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); line-height: 1.4; transition: color 0.2s, border-color 0.2s; }
.docs__toc li.lvl-3 a { padding-left: 26px; font-size: 0.8rem; }
.docs__toc li a:hover { color: var(--ink); }
.docs__toc li a.is-active { color: var(--ink); border-left-color: var(--sun-2); font-weight: 500; }
.docs__toc-top { display: inline-block; margin-top: 14px; color: var(--muted); font-size: 0.8rem; }
.docs__toc-top:hover { color: var(--sun-2); }

/* overview */
.docs__home h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); letter-spacing: -0.04em; line-height: 1.08; margin: 0 0 14px; }
.docs__intro { color: var(--ink-2); max-width: 760px; }
.docs__intro p { margin: 0 0 0.8em; }
.docs__sec { margin-top: 40px; }
.docs__sec header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.docs__sec h2 { font-size: 1.35rem; margin: 0; }
.docs__sec header p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.docs__sec-i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-size: 1.15rem; color: var(--sun-1); background: linear-gradient(135deg, rgba(255, 159, 28, 0.18), rgba(45, 140, 255, 0.14)); border: 1px solid var(--line-strong); }
.docs__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.docs__card {
  --x: 50%; --y: 50%;
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; border-radius: 14px; overflow: hidden; isolation: isolate;
  border: 1px solid var(--line); background: var(--panel-solid); transition: transform 0.3s var(--ease), border-color 0.3s;
}
.docs__card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.docs__card .n { font-family: var(--mono); font-size: 0.72rem; color: var(--sun-2); }
.docs__card b { font-size: 0.98rem; letter-spacing: -0.01em; color: var(--ink); }
.docs__card small { color: var(--muted); font-size: 0.82rem; line-height: 1.45; }
.docs__card small code { font-size: 0.9em; }
.docs__card i { position: absolute; top: 14px; right: 14px; color: var(--muted); opacity: 0; transform: translateX(-6px); transition: all 0.3s var(--ease); }
.docs__card:hover i { opacity: 1; transform: none; color: var(--sun-2); }

/* error */
.docs__error { max-width: 560px; }
.docs__error h2 { margin: 0 0 8px; font-size: 1.5rem; }
.docs__error p { color: var(--ink-2); }
.docs__error pre { padding: 12px 14px; border-radius: 10px; background: #0a111f; color: #e5a1a3; font-size: 0.8rem; overflow: auto; }
.docs__error-actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 1240px) {
  .docs__grid { grid-template-columns: 240px minmax(0, 1fr); }
  .docs__toc { display: none; }
}
@media (max-width: 900px) {
  .docs__grid { grid-template-columns: minmax(0, 1fr); }
  .docs__toggle { display: inline-flex; }
  .docs__side {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 120; width: min(320px, 86vw); max-height: none;
    padding: 20px 16px; background: var(--panel-solid); border-right: 1px solid var(--line-strong);
    box-shadow: 30px 0 60px -30px rgba(0, 0, 0, 0.4); transform: translateX(-105%); transition: transform 0.35s var(--ease);
  }
  .docs__side.is-open { transform: none; }
  body.docs-drawer-open::after { content: ""; position: fixed; inset: 0; z-index: 110; background: rgba(3, 7, 15, 0.45); animation: fade 0.2s; }
  .docs__content { padding: 26px 20px; }
}
@media (max-width: 720px) {
  .docs__act span { display: none; }
  .docs__cards { grid-template-columns: minmax(0, 1fr); }
}
