:root {
  --bg: #07111f;
  --bg-elevated: rgba(13, 25, 44, 0.86);
  --bg-soft: rgba(18, 34, 57, 0.74);
  --card: rgba(11, 24, 42, 0.88);
  --line: rgba(110, 189, 255, 0.18);
  --line-strong: rgba(110, 189, 255, 0.34);
  --text: #eaf4ff;
  --muted: #a7bdd8;
  --accent: #64c8ff;
  --accent-2: #8a7dff;
  --success: #78f0c1;
  --warning: #ffd47a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --radius-sm: 16px;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(86, 197, 255, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(138, 125, 255, 0.12), transparent 22%),
    linear-gradient(180deg, #06101c 0%, #07111f 40%, #040b14 100%);
  color: var(--text);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code, pre { font-family: "JetBrains Mono", "Fira Code", Consolas, monospace; }

.page-shell {
  position: relative;
  overflow: hidden;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 460px;
  height: 460px;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.35;
  z-index: 0;
}

.page-shell::before {
  top: -120px;
  left: -80px;
  background: rgba(100, 200, 255, 0.18);
}

.page-shell::after {
  bottom: -160px;
  right: -90px;
  background: rgba(138, 125, 255, 0.14);
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(6, 13, 23, 0.72);
  border-bottom: 1px solid rgba(130, 181, 255, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(100, 200, 255, 0.18), rgba(138, 125, 255, 0.18));
  border: 1px solid rgba(110, 189, 255, 0.24);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

.brand-mark svg { width: 28px; height: 28px; }
.brand-text small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.brand-text strong { font-size: 1.05rem; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  transition: 0.18s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: rgba(105, 180, 255, 0.09);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.button,
.button-secondary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 1.3rem;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button {
  color: #04111d;
  background: linear-gradient(135deg, var(--accent), #8de8ff);
  box-shadow: 0 18px 45px rgba(99, 203, 255, 0.22);
}

.button-secondary {
  color: var(--text);
  background: linear-gradient(135deg, rgba(138, 125, 255, 0.18), rgba(100, 200, 255, 0.14));
  border: 1px solid rgba(149, 163, 255, 0.25);
}

.button-ghost {
  color: var(--text);
  border: 1px solid rgba(110, 189, 255, 0.24);
  background: rgba(15, 28, 48, 0.55);
}

.button:hover,
.button-secondary:hover,
.button-ghost:hover {
  transform: translateY(-2px);
}

.hero {
  padding: 5.2rem 0 4.6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.2rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(112, 196, 255, 0.22);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(14, 27, 45, 0.65);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.hero h1,
.page-hero h1 {
  margin: 1.1rem 0 1.1rem;
  font-size: clamp(2.5rem, 4vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

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

.hero-actions {
  display: flex;
  gap: 0.9rem;
  margin-top: 1.6rem;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.25rem;
}

.hero-meta span,
.mini-pill {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(18, 31, 54, 0.8);
  border: 1px solid rgba(110, 189, 255, 0.18);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.terminal-card,
.card,
.info-panel,
.doc-card {
  background: linear-gradient(180deg, rgba(13, 26, 45, 0.92), rgba(8, 19, 33, 0.94));
  border: 1px solid rgba(110, 189, 255, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.terminal-card {
  padding: 1rem;
}

.window-chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.85rem;
}

.window-chrome span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
}

.terminal-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}

.terminal-panel {
  border-radius: 18px;
  background: rgba(5, 13, 23, 0.88);
  border: 1px solid rgba(104, 175, 250, 0.11);
  padding: 1rem;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
  color: var(--muted);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.terminal-lines {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
  color: #c8dbef;
  font-size: 0.92rem;
}

.terminal-lines li::before {
  content: ">";
  color: var(--accent);
  margin-right: 0.65rem;
  font-weight: 700;
}

section { padding: 2rem 0; }
.section-head {
  margin-bottom: 1.3rem;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2.2vw, 3rem);
  letter-spacing: -0.03em;
}
.section-head p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  max-width: 760px;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1.15rem;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card,
.doc-card,
.info-panel {
  padding: 1.4rem;
}

.card h3,
.doc-card h3,
.info-panel h3 {
  margin: 0 0 0.7rem;
  font-size: 1.1rem;
}

.card p,
.doc-card p,
.info-panel p,
.card li,
.doc-card li {
  margin: 0;
  color: var(--muted);
}

.icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(100, 200, 255, 0.16), rgba(138, 125, 255, 0.16));
  border: 1px solid rgba(122, 191, 255, 0.18);
  margin-bottom: 0.95rem;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.stat {
  padding: 1.15rem 1.2rem;
  border-radius: 20px;
  background: rgba(12, 23, 39, 0.72);
  border: 1px solid rgba(110, 189, 255, 0.14);
}

.stat strong {
  display: block;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.stat span {
  color: var(--muted);
  font-size: 0.94rem;
}

.showcase {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.4rem;
  align-items: stretch;
}

.feature-list,
.doc-list {
  display: grid;
  gap: 0.85rem;
}

.feature-item,
.doc-item {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(110, 189, 255, 0.14);
  background: rgba(10, 19, 33, 0.72);
}

.feature-item strong,
.doc-item strong {
  display: block;
  margin-bottom: 0.32rem;
}

.callout {
  padding: 1.5rem;
  border-radius: 24px;
  border: 1px solid rgba(120, 205, 255, 0.17);
  background: linear-gradient(135deg, rgba(10, 20, 35, 0.92), rgba(17, 24, 43, 0.92));
}

.callout h3 { margin-top: 0; }
.callout p { color: var(--muted); }

.code-block {
  position: relative;
  margin-top: 1rem;
  background: rgba(4, 10, 18, 0.92);
  border: 1px solid rgba(118, 192, 255, 0.14);
  border-radius: 20px;
  padding: 1rem;
  overflow-x: auto;
}

.code-block .copy-btn {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  border: 1px solid rgba(118, 192, 255, 0.16);
  background: rgba(17, 26, 43, 0.92);
  color: var(--text);
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  font-size: 0.8rem;
  cursor: pointer;
}

.code-block pre {
  margin: 0;
  color: #d4e7ff;
  font-size: 0.94rem;
}

.table-wrap {
  overflow-x: auto;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: rgba(10, 19, 33, 0.72);
  border-radius: 18px;
  overflow: hidden;
}

.doc-table th,
.doc-table td {
  text-align: left;
  padding: 1rem;
  border-bottom: 1px solid rgba(110, 189, 255, 0.12);
  vertical-align: top;
}

.doc-table th {
  color: var(--text);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(16, 29, 48, 0.95);
}

.doc-table td { color: var(--muted); }
.doc-table tr:last-child td { border-bottom: none; }

.page-hero {
  padding: 4rem 0 2rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.sidebar-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 102px;
  padding: 1rem;
  border-radius: 24px;
  background: rgba(10, 20, 34, 0.84);
  border: 1px solid rgba(110, 189, 255, 0.14);
}

.sidebar h3 {
  margin: 0 0 0.9rem;
  font-size: 1rem;
}

.sidebar a {
  display: block;
  color: var(--muted);
  padding: 0.68rem 0.78rem;
  border-radius: 12px;
  font-weight: 600;
}

.sidebar a:hover,
.sidebar a.active {
  background: rgba(101, 192, 255, 0.1);
  color: var(--text);
}

.content-stack {
  display: grid;
  gap: 1rem;
}

.content-section {
  padding: 1.4rem;
  border-radius: 24px;
  background: rgba(11, 22, 38, 0.84);
  border: 1px solid rgba(110, 189, 255, 0.14);
}

.content-section h2,
.content-section h3 {
  margin-top: 0;
}

.content-section p,
.content-section li {
  color: var(--muted);
}

.inline-kbd {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 8px;
  background: rgba(20, 33, 52, 0.9);
  border: 1px solid rgba(110, 189, 255, 0.18);
  color: #dff3ff;
  font-size: 0.88rem;
}

.footer {
  padding: 3.2rem 0 2.2rem;
  border-top: 1px solid rgba(110, 189, 255, 0.1);
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.footer h4 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.footer a,
.footer p {
  display: block;
  color: var(--muted);
  margin: 0.45rem 0;
}

.footer a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(110, 189, 255, 0.08);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.notice {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(14, 26, 45, 0.78);
  border: 1px solid rgba(255, 212, 122, 0.18);
  color: #f4e7c0;
}

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

@media (max-width: 1100px) {
  .hero-grid,
  .showcase,
  .sidebar-layout,
  .footer-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(8, 17, 30, 0.97);
    border: 1px solid rgba(110, 189, 255, 0.14);
    border-radius: 20px;
    padding: 0.8rem;
  }
  .site-nav.open { display: flex; }
  .header-inner { flex-wrap: wrap; padding: 0.9rem 0; }
  .nav-actions { margin-left: auto; }
  .grid-3,
  .grid-2,
  .grid-4,
  .link-grid,
  .stats-strip { grid-template-columns: 1fr; }
  .hero { padding-top: 3.8rem; }
}

@media (max-width: 640px) {
  .hero h1, .page-hero h1 { font-size: 2.3rem; }
  .button, .button-secondary, .button-ghost { width: 100%; }
  .hero-actions { flex-direction: column; }
  .container { width: min(var(--container), calc(100% - 1.2rem)); }
  .card, .doc-card, .info-panel, .content-section, .callout { padding: 1.1rem; }
}


.brand-mark img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.brand-mark.brand-mark-image {
  overflow: hidden;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-lockup small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-lockup strong {
  display: block;
  font-size: 1.05rem;
}

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

.method-list {
  display: grid;
  gap: 1rem;
}

.method-item {
  padding: 1.1rem 1.2rem;
  border-radius: 18px;
  border: 1px solid rgba(110, 189, 255, 0.14);
  background: rgba(10, 19, 33, 0.72);
}

.method-item h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.method-item p,
.method-item li {
  color: var(--muted);
}

.method-item ul {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
}

.note-banner {
  padding: 0.95rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(120, 205, 255, 0.17);
  background: rgba(15, 31, 52, 0.78);
  color: var(--text);
}

@media (max-width: 900px) {
  .code-grid {
    grid-template-columns: 1fr;
  }
}
