/* === base.css — centralized root vars + reset + finishing === */

:root {
  color-scheme: dark;
  --bg: #050505;
  --surface: rgba(18, 18, 18, 0.76);
  --surface-strong: rgba(24, 24, 24, 0.84);
  --line: rgba(255, 255, 255, 0.15);
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f4f4f4;
  --muted: #adadad;
  --muted-2: #747474;
  --button-text: #070707;
  --accent: #6c9ae8;
  --accent-soft: rgba(108, 154, 232, 0.16);
  font-family: Geist, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

/* @view-transition {
  navigation: auto;
} */

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(108, 154, 232, 0.4);
  background-clip: padding-box;
}
html {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

body {
  width: 100%;
  max-width: 100%;
  min-width: 0 !important;
  overflow-x: clip;
}

::selection {
  background: rgba(108, 154, 232, 0.3);
  color: #fff;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #6c9ae8, #8db4f5);
  z-index: 9999;
  transition: width 80ms linear;
  pointer-events: none;
}


/* === centralized base components === */

a {
color: inherit;
        text-decoration: none;
}

.page {
min-width: 0;
        max-width: 100%;
        min-height: 100vh;
        padding: 28px 22px 42px;
}

.shell {
width: min(1120px, 100%);
        min-width: 0;
        max-width: 100%;
        margin: 0 auto;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: rgba(11, 11, 11, 0.72);
        box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.035);
        overflow: hidden;
}

.topbar {
display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        padding: 20px 30px;
        border-bottom: 1px solid var(--line-soft);
}

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

.eyebrow {
display: inline-flex;
        align-items: center;
        gap: 9px;
        color: var(--muted);
        font-size: 14px;
        font-weight: 650;
}

.button.primary:hover {
transform: translateY(-1px);
        border-color: #fff;
        background: #fff;
        box-shadow: 0 10px 34px rgba(108, 154, 232, 0.45), 0 0 0 3px rgba(108, 154, 232, 0.12);
}

.footer {
display: grid;
        grid-template-columns: minmax(180px, 1fr) minmax(220px, 0.85fr) minmax(260px, 1.1fr);
        gap: 10px;
        align-items: stretch;
        padding: 24px 30px;
        border-top: 1px solid var(--line-soft);
        color: var(--muted-2);
        font-size: 13px;
}

.footer-brand strong,
      .footer-docs strong,
      .footer-owner strong {
color: var(--text);
        font-size: 13px;
        line-height: 1.2;
}

.footer-brand span,
      .footer-owner span {
color: var(--muted);
        line-height: 1.35;
}

.footer-links {
display: flex;
        flex-wrap: wrap;
        gap: 7px;
}

.footer-links a {
padding: 7px 9px;
        color: var(--muted);
        border: 1px solid var(--line-soft);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.035);
}

/* default: hide toggle on desktop */
.nav-toggle-checkbox { display: none; }
.nav-toggle-label { display: none; }

@media (max-width: 820px) {
  body {
    background: var(--bg) !important;
  }

  .page {
    padding: 0 0 42px !important;
  }

  .shell {
    border: 0;
    border-radius: 0;
    margin: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

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

  .topbar {
    position: relative;
    z-index: 200 !important;
  }

  .nav-toggle-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 22px;
    color: var(--text);
    cursor: pointer;
    user-select: none;
  }

  .topbar .nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 12px;
    left: auto;
    width: auto !important;
    max-width: calc(100vw - 24px);
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #121212;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 100;
  }

  .topbar .nav a {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
  }

  .nav-toggle-checkbox:checked ~ .nav {
    display: flex;
  }
}
