@font-face {
  font-family: "Orbitron";
  src: url("../../assets/fonts/Orbitron/Orbitron-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("../../assets/fonts/Nunito/Nunito-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --bg: #08111f;
  --bg-deep: #050c16;
  --panel: #10233a;
  --panel-soft: #0c1b2e;
  --panel-hover: #132a45;
  --text: #f1f5f9;
  --muted: #9eb0c5;
  --primary: #1d9ade;
  --primary-bright: #38bdf8;
  --success: #22c55e;
  --warning: #fbbf24;
  --border: rgba(29, 154, 222, 0.25);
  --border-soft: rgba(158, 176, 197, 0.14);
  --shadow: 0 8px 30px rgba(29, 154, 222, 0.12);
  --heading: "Rajdhani", "Orbitron", sans-serif;
  --body: "Inter", "Nunito", sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --radius: 12px;
  --radius-card: 16px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 88% 8%, rgba(29, 154, 222, 0.11), transparent 26rem),
    radial-gradient(circle at 5% 42%, rgba(34, 197, 94, 0.05), transparent 25rem),
    var(--bg);
  font: 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(29, 154, 222, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 154, 222, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 65%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--primary-bright);
  text-decoration: none;
}

a:hover {
  color: #7dd3fc;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(56, 189, 248, 0.55);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 16px;
  color: var(--bg);
  background: var(--text);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(8, 17, 31, 0.82);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--border-soft);
  box-shadow: 0 8px 24px rgba(3, 8, 15, 0.34);
}

.nav-wrap {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  color: var(--success);
  border: 1px solid rgba(56, 189, 248, 0.55);
  border-radius: 11px;
  background: #07101b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025), var(--shadow);
  font: 800 19px/1 var(--mono);
}

.brand-mark::before {
  position: absolute;
  top: 5px;
  left: 7px;
  width: 5px;
  height: 5px;
  content: "";
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 9px 0 0 var(--success), 18px 0 0 rgba(241, 245, 249, 0.35);
}

.brand-name {
  display: block;
  letter-spacing: 0.06em;
  font: 750 17px/1 var(--heading);
}

.brand-tagline {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
}

.desktop-nav {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  padding: 10px 12px;
  color: #c9d5e3;
  border-radius: 10px;
  font: 700 13px/1 var(--heading);
  letter-spacing: 0.035em;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  background: rgba(29, 154, 222, 0.09);
}

.nav-link.is-active::after {
  position: absolute;
  right: 12px;
  bottom: 5px;
  left: 12px;
  height: 2px;
  content: "";
  border-radius: 2px;
  background: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  cursor: pointer;
  color: var(--muted);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: rgba(16, 35, 58, 0.55);
  place-items: center;
}

.icon-button:hover {
  color: var(--text);
  border-color: var(--border);
  background: var(--panel);
}

.icon-button svg {
  width: 19px;
  height: 19px;
}

.menu-button {
  display: none;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 4px;
}

.mobile-nav .nav-link {
  padding: 14px 16px;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  color: white;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--primary);
  box-shadow: 0 8px 24px rgba(29, 154, 222, 0.15);
  font: 750 13px/1 var(--heading);
  letter-spacing: 0.045em;
  transition: transform 160ms ease, filter 160ms ease, border-color 160ms ease;
}

.btn:hover {
  color: white;
  filter: brightness(1.12);
  transform: translateY(-2px);
}

.btn-secondary {
  color: var(--text);
  border-color: rgba(29, 154, 222, 0.55);
  background: transparent;
  box-shadow: none;
}

.btn-secondary:hover {
  color: var(--text);
  background: rgba(29, 154, 222, 0.09);
}

.btn-small {
  min-height: 38px;
  padding-inline: 14px;
  font-size: 12px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 16px;
  align-items: center;
  gap: 9px;
  color: var(--primary-bright);
  font: 800 12px/1.2 var(--heading);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 24px;
  height: 2px;
  content: "";
  border-radius: 2px;
  background: var(--success);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text);
  font-family: var(--heading);
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.45rem, 6vw, 5rem);
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.hero {
  position: relative;
  min-height: 680px;
  padding: 96px 0 72px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 64px;
}

.hero-copy h1 {
  max-width: 780px;
}

.accent {
  color: var(--primary-bright);
}

.hero-lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: #b6c5d5;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  margin-top: 32px;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-row {
  display: flex;
  margin-top: 40px;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.09);
}

.hero-visual {
  position: relative;
  min-height: 480px;
}

.visual-orbit {
  position: absolute;
  inset: 4% 0 0;
  border: 1px solid rgba(29, 154, 222, 0.13);
  border-radius: 50%;
}

.visual-orbit::before,
.visual-orbit::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(29, 154, 222, 0.1);
  border-radius: inherit;
}

.visual-orbit::before {
  inset: 11%;
}

.visual-orbit::after {
  inset: 25%;
}

.hero-device {
  position: absolute;
  z-index: 2;
  right: 7%;
  bottom: 0;
  width: 58%;
  max-height: 470px;
  object-fit: contain;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.38));
}

.terminal-window {
  position: absolute;
  z-index: 3;
  top: 38px;
  left: 0;
  width: min(380px, 78%);
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 14px;
  background: rgba(7, 16, 27, 0.96);
  box-shadow: 0 24px 60px rgba(2, 7, 13, 0.5), var(--shadow);
  transform: rotate(-2deg);
}

.terminal-bar {
  display: flex;
  height: 42px;
  padding: 0 14px;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  border-bottom: 1px solid var(--border-soft);
  background: #0b1829;
  font: 600 11px/1 var(--mono);
}

.terminal-bar .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
}

.terminal-bar .dot:nth-child(2) {
  background: var(--warning);
}

.terminal-bar .dot:nth-child(3) {
  margin-right: 8px;
  background: var(--success);
}

.terminal-body {
  min-height: 190px;
  padding: 20px;
  color: #d9e5f2;
  font: 13px/1.8 var(--mono);
}

.prompt {
  color: var(--success);
}

.terminal-muted {
  color: #6f859c;
}

.cursor {
  display: inline-block;
  width: 7px;
  height: 15px;
  margin-left: 4px;
  vertical-align: -2px;
  background: var(--primary-bright);
  animation: blink 1.1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.floating-chip {
  position: absolute;
  z-index: 4;
  display: flex;
  padding: 10px 14px;
  align-items: center;
  gap: 8px;
  color: #dce8f4;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(16, 35, 58, 0.93);
  box-shadow: var(--shadow);
  font-size: 12px;
}

.floating-chip.one {
  top: 52%;
  left: -4%;
}

.floating-chip.two {
  right: 0;
  bottom: 9%;
}

.section {
  padding: 88px 0;
}

.section-compact {
  padding: 56px 0;
}

.section-tinted {
  border-block: 1px solid var(--border-soft);
  background: rgba(5, 12, 22, 0.44);
}

.section-heading {
  display: flex;
  margin-bottom: 32px;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading p {
  max-width: 600px;
  margin: 12px 0 0;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  font: 750 13px/1 var(--heading);
  letter-spacing: 0.04em;
}

.category-grid,
.card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: rgba(16, 35, 58, 0.75);
  box-shadow: 0 10px 32px rgba(3, 9, 17, 0.12);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.card:hover {
  color: inherit;
  border-color: rgba(56, 189, 248, 0.52);
  background: rgba(19, 42, 69, 0.9);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.category-card {
  min-height: 228px;
  padding: 24px;
  flex-direction: column;
}

.category-icon {
  display: grid;
  width: 74px;
  height: 74px;
  margin-bottom: 20px;
  place-items: center;
  border: 1px solid var(--border-soft);
  border-radius: 15px;
  background: #0a192a;
}

.category-icon img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.category-card p {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.category-count {
  margin-top: auto;
  color: var(--primary-bright);
  font: 700 11px/1 var(--heading);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.command-card {
  padding: 22px;
  flex-direction: column;
}

.command-top,
.meta-row,
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.command-name {
  color: var(--success);
  font: 700 19px/1.2 var(--mono);
}

.pill,
.tag {
  display: inline-flex;
  min-height: 26px;
  padding: 0 9px;
  align-items: center;
  color: var(--primary-bright);
  border: 1px solid rgba(29, 154, 222, 0.25);
  border-radius: 999px;
  background: rgba(29, 154, 222, 0.08);
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
}

.pill.success {
  color: #75e79d;
  border-color: rgba(34, 197, 94, 0.23);
  background: rgba(34, 197, 94, 0.07);
}

.pill.warning {
  color: #fcd76b;
  border-color: rgba(251, 191, 36, 0.22);
  background: rgba(251, 191, 36, 0.07);
}

.command-card p {
  margin: 16px 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.mini-code {
  margin-top: auto;
  padding: 13px 14px;
  overflow: hidden;
  color: #dce8f4;
  border: 1px solid rgba(158, 176, 197, 0.12);
  border-radius: 10px;
  background: #07101b;
  font: 12px/1.5 var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tutorial-card,
.post-card {
  flex-direction: column;
}

.card-media {
  position: relative;
  display: grid;
  height: 190px;
  overflow: hidden;
  place-items: center;
  border-bottom: 1px solid var(--border-soft);
  background:
    radial-gradient(circle at 50% 60%, rgba(29, 154, 222, 0.18), transparent 50%),
    #0a1727;
}

.card-media::after {
  position: absolute;
  inset: auto 0 0;
  height: 50%;
  content: "";
  background: linear-gradient(to top, rgba(8, 17, 31, 0.6), transparent);
}

.card-media img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  transition: transform 250ms ease;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.32));
}

.card:hover .card-media img {
  transform: scale(1.04) translateY(-4px);
}

.card-media .pill {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  backdrop-filter: blur(8px);
}

.card-content {
  display: flex;
  padding: 22px;
  flex: 1;
  flex-direction: column;
}

.card-content h3 {
  margin-top: 12px;
}

.card-content > p {
  margin: 12px 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.meta-row {
  justify-content: flex-start;
  color: #8094aa;
  font-size: 12px;
}

.meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-footer {
  margin-top: auto;
  padding-top: 16px;
  color: var(--muted);
  border-top: 1px solid var(--border-soft);
  font-size: 12px;
}

.level {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.level i {
  width: 4px;
  height: 11px;
  border-radius: 2px;
  background: #31506c;
}

.level i:nth-child(2) {
  height: 15px;
}

.level i:nth-child(3) {
  height: 19px;
}

.level.one i:first-child,
.level.two i:nth-child(-n + 2),
.level.three i {
  background: var(--success);
}

.newsletter {
  position: relative;
  display: grid;
  padding: 48px;
  overflow: hidden;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #10233a;
  grid-template-columns: 1fr 0.8fr;
  gap: 48px;
  box-shadow: var(--shadow);
}

.newsletter::after {
  position: absolute;
  top: -80px;
  right: -50px;
  width: 300px;
  height: 300px;
  content: "";
  border: 1px solid rgba(56, 189, 248, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 50px rgba(29, 154, 222, 0.025), 0 0 0 100px rgba(29, 154, 222, 0.018);
}

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

.newsletter-form {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
}

.field {
  width: 100%;
  min-height: 46px;
  padding: 0 15px;
  color: var(--text);
  border: 1px solid rgba(158, 176, 197, 0.22);
  border-radius: 10px;
  outline: none;
  background: #091729;
}

.field::placeholder {
  color: #71859c;
}

.field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 154, 222, 0.12);
}

.page-hero {
  padding: 88px 0 52px;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(to bottom, rgba(16, 35, 58, 0.32), transparent);
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.4rem, 5vw, 4.1rem);
}

.page-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.breadcrumb {
  display: flex;
  margin-bottom: 22px;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #71859c;
  font-size: 12px;
}

.breadcrumb a {
  color: #96abc0;
}

.breadcrumb span:not(:last-child)::after {
  margin-left: 8px;
  content: "/";
  color: #4b6279;
}

.toolbar {
  display: flex;
  margin-bottom: 28px;
  align-items: center;
  gap: 12px;
}

.search-field {
  position: relative;
  flex: 1;
}

.search-field svg {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 18px;
  color: #71859c;
  transform: translateY(-50%);
}

.search-field .field {
  padding-left: 46px;
}

.select-field {
  width: auto;
  min-width: 190px;
}

.filter-chips {
  display: flex;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  min-height: 36px;
  padding: 0 14px;
  cursor: pointer;
  color: var(--muted);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(16, 35, 58, 0.48);
  font-size: 12px;
  font-weight: 700;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: var(--text);
  border-color: rgba(29, 154, 222, 0.55);
  background: rgba(29, 154, 222, 0.12);
}

.results-meta {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
}

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

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

.list-command {
  display: grid;
  padding: 22px;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(16, 35, 58, 0.69);
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
}

.list-command:hover {
  color: inherit;
  border-color: rgba(56, 189, 248, 0.48);
  background: var(--panel-hover);
}

.list-command h3 {
  color: var(--success);
  font-family: var(--mono);
}

.list-command p {
  margin: 9px 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.list-command .meta-row {
  flex-wrap: wrap;
}

.chevron {
  display: grid;
  width: 36px;
  height: 36px;
  color: var(--primary-bright);
  border: 1px solid var(--border);
  border-radius: 10px;
  place-items: center;
}

.pagination {
  display: flex;
  margin-top: 40px;
  justify-content: center;
  gap: 6px;
}

.pagination a,
.pagination span {
  display: grid;
  width: 40px;
  height: 40px;
  color: var(--muted);
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  place-items: center;
}

.pagination .current {
  color: white;
  border-color: var(--primary);
  background: var(--primary);
}

.detail-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
}

.article {
  min-width: 0;
}

.article h2 {
  margin: 56px 0 18px;
  font-size: 1.9rem;
  letter-spacing: -0.025em;
}

.article h3 {
  margin: 36px 0 12px;
  font-size: 1.35rem;
}

.article p,
.article li {
  color: #bdcad8;
}

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

.article ul,
.article ol {
  padding-left: 22px;
}

.article li + li {
  margin-top: 8px;
}

.lead {
  color: #d5dfeb !important;
  font-size: 1.2rem;
}

.code-block {
  position: relative;
  margin: 24px 0;
  overflow: hidden;
  border: 1px solid rgba(29, 154, 222, 0.24);
  border-radius: 12px;
  background: #07101b;
}

.code-header {
  display: flex;
  min-height: 42px;
  padding: 0 14px;
  align-items: center;
  justify-content: space-between;
  color: #71859c;
  border-bottom: 1px solid var(--border-soft);
  background: #0b1829;
  font: 11px/1 var(--mono);
}

.copy-button {
  display: inline-flex;
  padding: 7px 9px;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #9eb0c5;
  border: 1px solid var(--border-soft);
  border-radius: 7px;
  background: transparent;
  font: 11px/1 var(--body);
}

.copy-button:hover,
.copy-button.is-copied {
  color: var(--success);
  border-color: rgba(34, 197, 94, 0.3);
}

pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  color: #e5edf7;
  font: 13px/1.75 var(--mono);
}

pre .cmd,
code {
  color: #75e79d;
  font-family: var(--mono);
}

.callout {
  position: relative;
  margin: 28px 0;
  padding: 18px 20px 18px 50px;
  color: #bfd0e0;
  border: 1px solid rgba(29, 154, 222, 0.24);
  border-radius: 12px;
  background: rgba(29, 154, 222, 0.07);
}

.callout::before {
  position: absolute;
  top: 19px;
  left: 20px;
  display: grid;
  width: 20px;
  height: 20px;
  content: "i";
  color: var(--primary-bright);
  border: 1px solid var(--primary);
  border-radius: 50%;
  font: 800 12px/18px var(--body);
  text-align: center;
}

.callout.warning {
  border-color: rgba(251, 191, 36, 0.25);
  background: rgba(251, 191, 36, 0.06);
}

.callout.warning::before {
  content: "!";
  color: var(--warning);
  border-color: var(--warning);
}

.sidebar-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(16, 35, 58, 0.73);
}

.sidebar-card + .sidebar-card {
  margin-top: 16px;
}

.sidebar-card h3 {
  margin-bottom: 16px;
  font-size: 1rem;
}

.sidebar-card dl {
  margin: 0;
}

.sidebar-card dl > div {
  display: flex;
  padding: 10px 0;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border-soft);
  font-size: 13px;
}

.sidebar-card dt {
  color: var(--muted);
}

.sidebar-card dd {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.toc {
  position: sticky;
  top: 96px;
}

.toc a {
  display: block;
  padding: 8px 0 8px 13px;
  color: var(--muted);
  border-left: 2px solid #28425b;
  font-size: 13px;
}

.toc a:hover,
.toc a.is-active {
  color: var(--primary-bright);
  border-color: var(--primary);
}

.tutorial-progress {
  display: flex;
  margin-top: 28px;
  align-items: center;
  gap: 16px;
}

.progress-track {
  width: min(300px, 100%);
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: #1b334b;
}

.progress-value {
  width: 22%;
  height: 100%;
  border-radius: inherit;
  background: var(--success);
}

.post-feature {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
  grid-template-columns: 1fr 1fr;
}

.post-feature-media {
  display: grid;
  min-height: 360px;
  place-items: center;
  background: radial-gradient(circle, rgba(29, 154, 222, 0.16), transparent 60%), #091729;
}

.post-feature-media img {
  width: min(300px, 72%);
  max-height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.36));
}

.post-feature-copy {
  display: flex;
  padding: 44px;
  flex-direction: column;
  justify-content: center;
}

.post-feature-copy h2 {
  margin: 14px 0 16px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.post-feature-copy p {
  margin: 0 0 24px;
  color: var(--muted);
}

.article-header {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.article-header .breadcrumb {
  justify-content: center;
}

.article-header h1 {
  font-size: clamp(2.3rem, 5.5vw, 4.5rem);
}

.article-header .meta-row {
  margin-top: 24px;
  justify-content: center;
}

.article-cover {
  display: grid;
  width: min(calc(100% - 32px), 1040px);
  height: min(52vw, 500px);
  min-height: 280px;
  margin: 48px auto 0;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 60%, rgba(29, 154, 222, 0.2), transparent 42%),
    linear-gradient(135deg, #0b1b2e, #07101b);
}

.article-cover img {
  width: min(330px, 46%);
  max-height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.38));
}

.article-narrow {
  width: min(100%, 760px);
  margin-inline: auto;
}

.author-box {
  display: flex;
  margin-top: 56px;
  padding: 24px;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel-soft);
}

.author-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  color: var(--success);
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #07101b;
  font: 800 19px/1 var(--mono);
  place-items: center;
}

.author-box p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  padding: 64px 0 28px;
  border-top: 1px solid var(--border-soft);
  background: rgba(5, 12, 22, 0.66);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 48px;
}

.footer-about {
  max-width: 360px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-title {
  margin-bottom: 16px;
  color: var(--text);
  font: 750 13px/1 var(--heading);
  letter-spacing: 0.05em;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--primary-bright);
}

.footer-bottom {
  display: flex;
  margin-top: 48px;
  padding-top: 24px;
  align-items: center;
  justify-content: space-between;
  color: #71859c;
  border-top: 1px solid var(--border-soft);
  font-size: 12px;
}

.search-dialog {
  width: min(calc(100% - 32px), 680px);
  padding: 0;
  color: var(--text);
  border: 1px solid rgba(56, 189, 248, 0.33);
  border-radius: 16px;
  background: #0b192a;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48);
}

.search-dialog::backdrop {
  background: rgba(3, 8, 15, 0.74);
  backdrop-filter: blur(5px);
}

.dialog-head {
  display: flex;
  padding: 14px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-soft);
}

.dialog-head .field {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.dialog-results {
  padding: 12px;
}

.dialog-label {
  padding: 8px 10px;
  color: #71859c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.dialog-result {
  display: flex;
  padding: 12px;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
  border-radius: 9px;
}

.dialog-result:hover {
  color: var(--text);
  background: rgba(29, 154, 222, 0.1);
}

.dialog-result code {
  font-size: 13px;
}

.empty-state {
  display: none;
  padding: 56px 24px;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 14px;
  text-align: center;
}

@media (max-width: 1000px) {
  .desktop-nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .menu-button {
    display: inline-grid;
  }

  .hero {
    padding-top: 72px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    width: min(100%, 620px);
    min-height: 430px;
    margin-inline: auto;
  }

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

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

  .card-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 28px;
  }

  .footer-grid {
    grid-template-columns: 1.5fr repeat(2, 1fr);
  }

  .footer-grid > :last-child {
    display: none;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .brand-tagline {
    display: none;
  }

  .nav-wrap {
    min-height: 66px;
  }

  .hero {
    min-height: auto;
    padding: 64px 0 48px;
  }

  .hero-grid {
    gap: 44px;
  }

  .hero-visual {
    min-height: 350px;
  }

  .terminal-window {
    width: 84%;
  }

  .terminal-body {
    min-height: 165px;
    font-size: 11px;
  }

  .hero-device {
    width: 54%;
  }

  .floating-chip {
    font-size: 10px;
  }

  .section {
    padding: 64px 0;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .category-grid,
  .card-grid,
  .list-grid {
    grid-template-columns: 1fr;
  }

  .card-grid > :last-child:nth-child(odd) {
    grid-column: auto;
  }

  .newsletter {
    padding: 32px 24px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .page-hero {
    padding: 64px 0 42px;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .select-field {
    width: 100%;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    order: -1;
  }

  .detail-sidebar .toc {
    position: static;
  }

  .toc-links {
    display: none;
  }

  .post-feature {
    grid-template-columns: 1fr;
  }

  .post-feature-media {
    min-height: 260px;
  }

  .post-feature-copy {
    padding: 28px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 24px;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }

  .footer-grid > :last-child {
    display: block;
  }

  .footer-bottom {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 14px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .trust-row {
    gap: 14px;
  }

  .hero-visual {
    min-height: 320px;
  }

  .terminal-window {
    width: 93%;
  }

  .floating-chip.one {
    display: none;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid > :first-child {
    grid-column: auto;
  }
}

@media (max-width: 600px) {
  .header-actions .btn {
    display: none;
  }
}

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