/* =====================================================================
   Bitnet — shared base styles
   Extracted from the <style> block that repeats on every Claude Design
   page, so it loads once rather than 22 times. Page-specific rules stay
   in assets/css/pages/<slug>.css.
   ===================================================================== */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--fg1);
  background: #fff;
}

a { color: var(--azure-600); text-decoration: none; }
a:hover { color: var(--azure-700); }

/* Keyboard focus — the design has no focus styles, this adds a floor. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--azure);
  outline-offset: 2px;
  border-radius: 4px;
}

.bn-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: #fff;
  color: var(--azure-deep);
  padding: 12px 20px;
  font-weight: 600;
  border-radius: 0 0 var(--radius-md) 0;
}
.bn-skip:focus { left: 0; }

/* ---------- layout ---------- */

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 32px);
}

/* ---------- type ---------- */

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--azure);
}

.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--azure-deep);
  margin: 0;
}

.lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg2);
}

.cat {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #000;
}

/* ---------- components ---------- */

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--dur-slow) var(--ease-out);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--azure-200);
  transform: translateY(-3px);
}

.ic {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--azure-50);
  color: var(--azure-600);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ic svg { width: 24px; height: 24px; }

.chip {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--fg2);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 8px 15px;
  cursor: pointer;
  transition: all var(--dur-base);
}
.chip:hover,
.chip[data-on="1"],
.chip[aria-pressed="true"] {
  background: var(--azure);
  color: #fff;
  border-color: var(--azure);
}

.sw {
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  padding: 10px 22px;
  border-radius: 999px;
  background: transparent;
  color: var(--fg2);
  transition: all var(--dur-base);
}

.panel {
  transition: opacity var(--dur-slow) var(--ease-out),
              filter var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

/* ---------- motion ---------- */

@keyframes bnFade {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes bnBar {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
@keyframes bnGrow {
  from { width: 0; }
}

.reveal { opacity: 0; }
.reveal.in { animation: bnFade .7s cubic-bezier(.2, .7, .3, 1) forwards; }

.bar { transform-origin: bottom; animation: bnBar .8s var(--ease-out) both; }

/* Without JS, revealed content must still be visible. */
.no-js .reveal { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; }
}

/* ---------- responsive helpers used across pages ---------- */

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr !important; }
  .g3 { grid-template-columns: 1fr !important; }
  .g6 { grid-template-columns: repeat(2, 1fr) !important; }
  .feat { grid-template-columns: 1fr !important; }
}

@media (max-width: 640px) {
  .g3 { grid-template-columns: 1fr !important; }
}
