:root {
  --bg: #061019;
  --bg2: #081522;
  --panel: #0c1a29;
  --panel2: #0f2234;
  --line: #1b3d58;
  --line2: #25516f;
  --text: #e8f7ff;
  --muted: #9ebbd0;
  --soft: #6c8798;
  --accent: #6cc7ff;
  --accent2: #3b8fca;
  --accent3: #88e1ff;
  --warn: #f8d477;
  --ok: #82f0b3;
  --danger: #ff8f9f;
  --shadow: 0 20px 50px rgba(0, 0, 0, .35);
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(108,199,255,.11), transparent 32rem),
    radial-gradient(circle at 70% 10%, rgba(59,143,202,.11), transparent 28rem),
    linear-gradient(180deg, #050d15 0%, var(--bg) 46%, #04080d 100%);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  line-height: 1.65;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent3); }
img, svg { max-width: 100%; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 10px; background: var(--accent); color: #00101c; padding: 10px 14px; border-radius: 10px; z-index: 50; }
.skip-link:focus { left: 10px; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(5, 13, 21, .9); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(108,199,255,.18); }
.navbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font-weight: 800; letter-spacing: .03em; }
.logo-box { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(108,199,255,.55); background: linear-gradient(145deg, rgba(108,199,255,.16), rgba(8,21,34,.78)); border-radius: 14px; box-shadow: 0 0 24px rgba(108,199,255,.12); }
.brand strong { display: block; font-size: 1.02rem; }
.brand span { display: block; color: var(--muted); font-size: .76rem; font-weight: 600; letter-spacing: .06em; }
.main-nav { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.main-nav a { color: var(--muted); padding: 9px 11px; border-radius: 999px; font-size: .9rem; border: 1px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--text); border-color: rgba(108,199,255,.32); background: rgba(108,199,255,.08); }
.menu-toggle { display: none; border: 1px solid var(--line2); color: var(--text); background: var(--panel); border-radius: 12px; padding: 8px 10px; font: inherit; }
.hero { padding: 46px 0 28px; }
.terminal-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 22px; align-items: stretch; }
.term-panel { background: linear-gradient(180deg, rgba(15,34,52,.96), rgba(8,21,34,.96)); border: 1px solid rgba(108,199,255,.22); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgba(108,199,255,.14); background: rgba(4,8,13,.42); color: var(--muted); font-size: .84rem; }
.dots { display: inline-flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line2); }
.dot:nth-child(1) { background: #ff7c7c; }
.dot:nth-child(2) { background: #f8d477; }
.dot:nth-child(3) { background: #82f0b3; }
.term-body { padding: clamp(22px, 4vw, 38px); }
.prompt { display: inline-flex; gap: 8px; color: var(--ok); font-size: .95rem; margin-bottom: 12px; }
h1 { margin: 0 0 14px; font-size: clamp(2.15rem, 5vw, 4.65rem); line-height: 1.04; letter-spacing: -.06em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.45rem); line-height: 1.14; margin: 0 0 12px; letter-spacing: -.035em; }
h3 { font-size: 1.2rem; margin: 0 0 8px; }
p { margin: 0 0 16px; }
.lede { font-size: clamp(1rem, 1.7vw, 1.18rem); color: var(--muted); max-width: 73ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(108,199,255,.42); background: linear-gradient(180deg, rgba(108,199,255,.18), rgba(59,143,202,.12)); color: var(--text); padding: 11px 15px; border-radius: 14px; font-weight: 700; box-shadow: 0 12px 28px rgba(0,0,0,.22); }
.btn.secondary { background: rgba(255,255,255,.03); color: var(--muted); }
.btn:hover { transform: translateY(-1px); color: var(--text); border-color: rgba(136,225,255,.7); }
.tool-card, .card, .mini-card, .article-body, .callout, .code-card { background: rgba(12,26,41,.78); border: 1px solid rgba(108,199,255,.16); border-radius: var(--radius); box-shadow: 0 12px 34px rgba(0,0,0,.24); }
.tool-card { padding: 22px; }
.tool-card h2 { font-size: 1.35rem; }
.form-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; margin-top: 14px; }
input, select, textarea { width: 100%; background: #06111b; border: 1px solid var(--line2); color: var(--text); border-radius: 12px; padding: 12px 13px; font: inherit; min-height: 46px; }
button { cursor: pointer; }
button.btn { font: inherit; }
.result-box { margin-top: 18px; padding: 16px; background: rgba(3,9,15,.62); border: 1px solid rgba(108,199,255,.14); border-radius: 14px; overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid rgba(108,199,255,.12); vertical-align: top; }
th { color: var(--accent3); }
pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
code { color: var(--accent3); background: rgba(108,199,255,.09); padding: .12rem .32rem; border-radius: 6px; }
pre { white-space: pre-wrap; margin: 0; color: #d5f3ff; }
.stats-list { display: grid; gap: 12px; }
.stat { padding: 16px; border-radius: 16px; border: 1px solid rgba(108,199,255,.14); background: rgba(6,16,25,.6); }
.stat strong { display: block; color: var(--accent3); font-size: 1.5rem; line-height: 1; }
.stat span { color: var(--muted); font-size: .9rem; }
.section { padding: 30px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-head p { color: var(--muted); max-width: 70ch; }
.grid { display: grid; gap: 18px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { padding: 22px; transition: transform .18s ease, border-color .18s ease; }
.card:hover { transform: translateY(-2px); border-color: rgba(108,199,255,.34); }
.card .tag, .tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: rgba(108,199,255,.1); color: var(--accent3); border: 1px solid rgba(108,199,255,.2); font-size: .78rem; font-weight: 700; margin-bottom: 12px; }
.card p { color: var(--muted); }
.link-row { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 800; margin-top: 6px; }
.banner { position: relative; overflow: hidden; padding: 24px; border-radius: 22px; border: 1px solid rgba(108,199,255,.22); background: linear-gradient(135deg, rgba(108,199,255,.17), rgba(12,26,41,.82) 44%, rgba(4,8,13,.9)); box-shadow: var(--shadow); }
.banner:before { content: ""; position: absolute; inset: 0; opacity: .35; background-image: linear-gradient(rgba(108,199,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(108,199,255,.16) 1px, transparent 1px); background-size: 32px 32px; mask-image: radial-gradient(circle at 75% 20%, black, transparent 65%); pointer-events: none; }
.banner > * { position: relative; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.article-body { padding: clamp(22px, 4vw, 38px); }
.article-body h2 { margin-top: 30px; }
.article-body ul { padding-left: 22px; color: var(--muted); }
.article-body li { margin: 8px 0; }
.sidebar { position: sticky; top: 92px; display: grid; gap: 14px; }
.mini-card { padding: 16px; }
.mini-card p, .mini-card li { color: var(--muted); font-size: .92rem; }
.mini-card ul { margin: 8px 0 0; padding-left: 18px; }
.source-list { padding-left: 20px; color: var(--muted); }
.faq-item { padding: 16px 0; border-bottom: 1px solid rgba(108,199,255,.12); }
.faq-item:last-child { border-bottom: 0; }
.breadcrumbs { color: var(--muted); font-size: .9rem; margin-bottom: 12px; }
.breadcrumbs a { color: var(--muted); }
.commandline-box { margin-top: 22px; padding: 20px; border: 1px solid rgba(130,240,179,.24); background: linear-gradient(135deg, rgba(130,240,179,.1), rgba(108,199,255,.07)); border-radius: 18px; }
.code-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 12px; background: rgba(4,8,13,.62); border: 1px solid rgba(108,199,255,.12); border-radius: 12px; margin: 9px 0; overflow-x: auto; }
.copy-btn { border: 1px solid rgba(108,199,255,.28); color: var(--text); background: rgba(108,199,255,.08); border-radius: 10px; padding: 6px 9px; font: inherit; white-space: nowrap; }
.site-footer { margin-top: 44px; padding: 34px 0; border-top: 1px solid rgba(108,199,255,.15); background: rgba(3,9,15,.52); }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 22px; }
.footer-grid h3 { color: var(--accent3); }
.footer-grid a { display: block; color: var(--muted); margin: 7px 0; }
.footer-grid a:hover { color: var(--accent3); }
.small { color: var(--soft); font-size: .88rem; }
.notice { border-left: 4px solid var(--warn); padding: 13px 14px; background: rgba(248,212,119,.08); border-radius: 12px; color: #f7e8af; }
.error { border-left-color: var(--danger); background: rgba(255,143,159,.08); color: #ffc7d0; }
.success { border-left-color: var(--ok); background: rgba(130,240,179,.08); color: #c9f8db; }
@media (max-width: 900px) {
  .terminal-hero, .article-layout, .grid.three, .grid.two, .footer-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .main-nav { display: none; position: absolute; left: 16px; right: 16px; top: 72px; padding: 12px; background: rgba(6,16,25,.98); border: 1px solid rgba(108,199,255,.24); border-radius: 16px; box-shadow: var(--shadow); }
  .main-nav.open { display: grid; }
  .main-nav a { border-radius: 12px; }
  .menu-toggle { display: inline-flex; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .container { width: min(100% - 22px, 1180px); }
  .term-body { padding: 20px; }
  h1 { font-size: 2.1rem; }
  .hero-actions { display: grid; }
  .btn { justify-content: center; }
}
