/* Shared styles for the static XinoAPI landing pages.
 * Kept intentionally small: page-specific styles remain in each document. */
:where(.nav) {
  z-index: 30;
}

:where(.logo) {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

:where(.logo-icon) {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(0, 229, 160, .62);
  border-radius: 8px;
  color: #00e5a0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1;
}

:where(.nav-links),
:where(.nav-actions) {
  display: flex;
  align-items: center;
  gap: 16px;
}

:where(.nav-links a),
:where(.nav-signin) {
  color: #a1a1aa;
  font-size: 14px;
  text-decoration: none;
}

:where(.nav-links a:hover),
:where(.nav-signin:hover) {
  color: #fafafa;
}

:where(.nav-cta) {
  padding: 9px 13px;
  border-radius: 8px;
  background: #00e5a0;
  color: #09090b;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

:where(.tg-float) {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: #229ed9;
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
}

@media (max-width: 780px) {
  :where(.nav-links),
  :where(.nav-signin) {
    display: none;
  }
}

/* Footer layout is shared by the docs and landing pages that do not ship an
 * inline footer stylesheet. :where() keeps page-specific styles authoritative. */
:where(.footer) {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border, #27272a);
  background: rgba(4, 7, 18, .9);
  backdrop-filter: blur(20px);
}

:where(.footer-main) {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 3rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
}

:where(.footer-brand p) {
  max-width: 280px;
  margin-top: 1rem;
  color: var(--text3, #71717a);
  font-size: .85rem;
  line-height: 1.7;
}

:where(.footer-social) {
  display: flex;
  gap: .8rem;
  margin-top: 1.5rem;
}

:where(.footer-social a) {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--border, #27272a);
  border-radius: 10px;
  color: var(--text2, #a1a1aa);
  transition: color .2s, border-color .2s, transform .2s;
}

:where(.footer-social a:hover) {
  border-color: color-mix(in srgb, var(--accent, #00e5a0) 55%, transparent);
  color: var(--accent, #00e5a0);
  transform: translateY(-2px);
}

:where(.footer-col h4) {
  margin-bottom: 1.2rem;
  color: var(--text3, #71717a);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

:where(.footer-col a) {
  display: block;
  padding: .35rem 0;
  color: var(--text2, #a1a1aa);
  font-size: .88rem;
  text-decoration: none;
  transition: color .2s, transform .2s;
}

:where(.footer-col a:hover) {
  color: var(--accent, #00e5a0);
  transform: translateX(3px);
}

:where(.footer-bottom) {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border, #27272a);
  color: var(--text3, #71717a);
  font-size: .78rem;
  text-align: center;
}

@media (max-width: 780px) {
  :where(.footer-main) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    padding: 3rem 1.25rem 2rem;
  }

  :where(.footer-brand) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  :where(.footer-main) {
    grid-template-columns: 1fr;
  }
}
