/* Identify as a 5.0 — shared styles (nav, buttons, code card, footer).
   Brand: white background, black text, cyan #00E4FD as the only accent. */
:root {
  --ink: #0b0c0e;
  --ink-soft: #3a3f47;
  --muted: #5f6672;
  --line: #e4e7eb;
  --soft: #f4f6f8;
  --white: #ffffff;
  --cyan: #00e4fd;
  --cyan-deep: #007f8f; /* cyan darkened for text on white (AA contrast) */
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(11, 12, 14, .06), 0 2px 8px rgba(11, 12, 14, .05);
  --shadow: 0 2px 6px rgba(11, 12, 14, .05), 0 14px 36px rgba(11, 12, 14, .08);
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --nav-h: 64px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--body); line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Sticky nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav .nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 18px;
}
.site-nav .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.site-nav .logo img { height: 40px; width: auto; }
.site-nav .logo span { font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: .02em; text-transform: uppercase; }
.site-nav .nav-links { display: flex; gap: 2px; margin-left: auto; }
.site-nav .nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.site-nav .nav-links a:hover { background: var(--soft); }
.site-nav .nav-links a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--cyan); border-radius: 10px 10px 0 0; }
.site-nav .nav-cta { flex: none; }
@media (max-width: 760px) {
  :root { --nav-h: 108px; }
  .site-nav .nav-inner { flex-wrap: wrap; padding: 8px 14px 0; gap: 0 10px; }
  .site-nav .logo img { height: 36px; }
  .site-nav .logo span { display: none; }
  .site-nav .nav-cta { margin-left: auto; }
  .site-nav .nav-links { order: 3; width: 100%; margin: 4px -6px 0; justify-content: space-between; }
  .site-nav .nav-links a { padding: 0 8px; font-size: .92rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--body); font-weight: 700; font-size: 1rem; line-height: 1.1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #24272c; }
.btn-cyan { background: var(--cyan); color: var(--ink); }
.btn-cyan:hover { background: #45ecff; box-shadow: 0 6px 18px rgba(0, 228, 253, .35); }
.btn-line { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--soft); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: .92rem; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.08rem; }
.btn-block { width: 100%; }
@media (max-width: 380px) { .site-nav .nav-cta.btn-sm { padding: 0 12px; font-size: .86rem; } }

/* ---------- Code card (black card, cyan accents) ---------- */
.code-card {
  background: var(--ink); color: #fff; border-radius: 20px; padding: 22px 20px 20px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.code-card .kicker { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; color: var(--cyan); }
.code-card .code-title { margin: 6px 0 6px; font-family: var(--display); font-weight: 600; font-size: 1.45rem; line-height: 1.15; }
.code-card .code-sub { margin: 0 0 16px; color: #c9ced6; font-size: .95rem; }
.code-card .code-sub strong { color: #fff; }
.copy-row { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.code-box {
  flex: 1 1 180px; display: flex; align-items: center; justify-content: center;
  min-height: 60px; border: 2px dashed var(--cyan); border-radius: 14px;
  font-family: var(--display); font-weight: 700; font-size: 1.85rem; letter-spacing: .2em;
  padding: 6px 8px 6px calc(8px + .2em); color: #fff; background: rgba(255, 255, 255, .05);
  user-select: all; -webkit-user-select: all;
}
.copy-btn { flex: 0 0 auto; min-height: 60px; border-radius: 14px; }
.copy-btn.copied, .mini-copy.copied { background: #fff; color: var(--ink); }
.code-card .code-note { margin: 14px 0 0; font-size: .86rem; color: #c9ced6; }
.code-card .code-note a { color: var(--cyan); font-weight: 600; }

/* Small copy chip used on brand cards */
.code-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--soft); border: 1px dashed #c3c9d1; border-radius: 12px; padding: 6px 6px 6px 14px; }
.code-line code { font-family: var(--display); font-weight: 700; letter-spacing: .16em; font-size: 1.05rem; color: var(--ink); }
.mini-copy { border: none; background: var(--ink); color: #fff; font-family: var(--body); font-weight: 700; border-radius: 999px; padding: 0 16px; min-height: 44px; cursor: pointer; font-size: .9rem; }
.mini-copy:hover { background: #24272c; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 80; transform: translateX(-50%) translateY(16px);
  background: var(--ink); color: #fff; font-weight: 600; font-size: .95rem;
  padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow); border: 2px solid var(--cyan); width: max-content;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (prefers-reduced-motion: reduce) { .toast, .btn { transition: none; } }

/* ---------- Site footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--soft); color: var(--muted); font-size: .9rem; }
.site-footer .foot-inner { max-width: 1160px; margin: 0 auto; padding: 32px 20px 40px; }
.site-footer p { margin: 8px 0; max-width: 76ch; }
.site-footer strong { color: var(--ink); }
.site-footer .foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 14px 0; }
.site-footer .foot-links a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 36px; }
