/* ════════════════════════════════════════════
   Bydots Design System — Shared Stylesheet
   v1.0 · May 2026
════════════════════════════════════════════ */

/* ── TOKENS ───────────────────────────────── */
:root {
  --ink:      #0A0A0A;
  --graphite: #2A2A2E;
  --steel:    #6B6B70;
  --mist:     #E8E8EA;
  --paper:    #FAFAFA;
  --white:    #FFFFFF;
  --orange:   #FF7A1A;
  --amber:    #F5B829;
  --line:     #DBDBDE;
  --peach:    #FFF1E2;
  --peachln:  #FFD9B5;

  --shadow-1: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-2: 0 4px 24px rgba(0,0,0,0.12);

  --nav-h:    64px;
}

/* ── RESET ────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── TYPOGRAPHY ───────────────────────────── */
.t-mono {
  font-family: 'JetBrains Mono', monospace;
}
.t-serif {
  font-family: 'Fraunces', serif;
}

/* ── NAV ──────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 48px;
  gap: 0;
}

.nav-brand {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-right: 48px;
}
.nav-brand .dot {
  width: 9px;
  height: 9px;
  background: var(--orange);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--graphite);
  padding: 7px 14px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--paper);
  color: var(--ink);
}

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: var(--ink);
  padding: 9px 20px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--graphite); }

/* ── FOOTER ───────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 48px 32px;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--paper);
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 16px;
}
.footer-brand .dot {
  width: 10px;
  height: 10px;
  background: var(--orange);
  border-radius: 50%;
}
.footer-desc {
  font-size: 14px;
  color: rgba(250,250,250,0.55);
  line-height: 1.65;
  max-width: 280px;
}
.footer-col-head {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.footer-col-links { display: flex; flex-direction: column; gap: 10px; }
.footer-col-links a {
  font-size: 14px;
  color: rgba(250,250,250,0.6);
  transition: color 0.15s;
}
.footer-col-links a:hover { color: var(--paper); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-size: 12px;
  color: rgba(250,250,250,0.35);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.03em;
}
.footer-prov {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(250,250,250,0.25);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-prov::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  opacity: 0.5;
}

/* ── SHARED SECTION UTILS ─────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-eyebrow::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--orange);
  flex-shrink: 0;
}

.section-h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.section-h2 em { font-style: italic; color: var(--orange); }
.section-h2.on-dark { color: var(--paper); }
.section-h2.on-dark em { color: var(--amber); }

.section-lead {
  font-size: 18px;
  color: var(--graphite);
  line-height: 1.65;
  max-width: 640px;
  margin-top: 16px;
}
.section-lead.on-dark { color: rgba(250,250,250,0.7); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer;
  border: none;
  font-family: 'Inter', sans-serif;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover { background: #E66A0F; }

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }

.btn-ink {
  background: var(--ink);
  color: var(--paper);
}
.btn-ink:hover { background: var(--graphite); }

/* ── CARD SHARED ──────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: var(--shadow-1);
}
.card-top-rule { border-top: 3px solid var(--orange); }

/* ── PULSE ANIMATION ──────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--amber);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
