@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Instrument+Sans:ital,wght@0,400;0,500;0,600;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #f5f2eb;
  --bg2: #ede9e0;
  --ink: #0f0e0b;
  --ink2: #3a3830;
  --ink3: #7a7668;
  --accent: #d4522a;
  --accent2: #e8763a;
  --teal: #1a6b5a;
  --teal2: #2a9478;
  --sky: #1a4a7a;
  --gold: #c4922a;
  --border: rgba(15,14,11,0.12);
  --border2: rgba(15,14,11,0.07);
  --r: 4px;
  --rm: 10px;
  --rl: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Instrument Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5 {
  font-family: 'Syne', sans-serif;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
code, pre { font-family: 'JetBrains Mono', monospace; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245,242,235,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 18px;
  letter-spacing: -0.03em;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 1.75rem; font-size: 13px; font-weight: 500; }
.nav-links a { color: var(--ink2); transition: color .15s; }
.nav-links a:hover { color: var(--accent); }
.nav-right { display: flex; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: var(--r); font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; transition: .15s; border: none; text-decoration: none; letter-spacing: 0.01em; }
.btn-ghost { background: none; color: var(--ink2); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg2); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent2); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal2); }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-sm { padding: 6px 14px; font-size: 12px; }

/* FOOTER */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  padding: 4rem 2rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px; margin: 0 auto;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -0.03em; margin-bottom: .75rem; }
.footer-logo span { color: var(--accent2); }
.footer-desc { font-size: 13px; line-height: 1.7; max-width: 260px; }
.footer-col h4 { font-family: 'Syne', sans-serif; font-size: 12px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: .5rem; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { max-width: 1200px; margin: 1.5rem auto 0; display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.footer-bottom a { color: rgba(255,255,255,.4); margin-left: 1.5rem; }

/* SEARCHBOT WIDGET — injected on all pages */
#sb-bubble {
  position: fixed; bottom: 24px; right: 24px;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 4px 20px rgba(212,82,42,0.4);
  cursor: pointer; border: none;
  display: flex; align-items: center; justify-content: center;
  z-index: 9998; transition: transform .2s, box-shadow .2s;
}
#sb-bubble:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(212,82,42,0.5); }
#sb-bubble svg { width: 22px; height: 22px; color: #fff; }
#sb-badge {
  position: fixed; bottom: 62px; right: 22px;
  background: #ef4444; color: #fff;
  font-size: 10px; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  z-index: 9999; pointer-events: none;
  animation: badgePop .3s ease;
}
@keyframes badgePop { from { transform: scale(0); } to { transform: scale(1); } }
#sb-panel {
  position: fixed; bottom: 88px; right: 24px;
  width: 360px; background: #0f0e0b;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px; overflow: hidden;
  z-index: 9997; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: none; flex-direction: column;
  transform: scale(.95) translateY(10px);
  opacity: 0; transition: transform .22s cubic-bezier(.34,1.56,.64,1), opacity .18s ease;
}
#sb-panel.visible { transform: scale(1) translateY(0); opacity: 1; }
#sb-head { padding: 13px 15px; border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
#sb-avatar { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
#sb-title { font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 600; color: #f5f2eb; }
#sb-subtitle { font-size: 11px; color: #666; margin-top: 1px; }
#sb-close-x { background: none; border: none; cursor: pointer; color: #555; font-size: 18px; line-height: 1; padding: 4px; border-radius: 4px; transition: .12s; margin-left: auto; }
#sb-close-x:hover { color: #fff; }
#sb-msgs { flex: 1; padding: 13px 14px; display: flex; flex-direction: column; gap: 9px; overflow-y: auto; min-height: 160px; max-height: 340px; scroll-behavior: smooth; }
.sb-msg { max-width: 93%; font-size: 13px; line-height: 1.65; font-family: 'Instrument Sans', sans-serif; }
.sb-bot { align-self: flex-start; background: #1a1917; color: #f0ede8; border-radius: 4px 13px 13px 13px; padding: 9px 12px; }
.sb-user { align-self: flex-end; background: rgba(212,82,42,.18); border: 1px solid rgba(212,82,42,.25); color: #e8a080; border-radius: 13px 4px 13px 13px; padding: 9px 12px; }
.sb-src { font-size: 10px; color: #555; margin-top: 5px; padding-top: 5px; border-top: 1px solid rgba(255,255,255,0.06); }
.sb-typing { align-self: flex-start; display: flex; gap: 4px; padding: 9px 12px; background: #1a1917; border-radius: 4px 13px 13px 13px; }
.sb-typing span { width: 6px; height: 6px; background: #555; border-radius: 50%; animation: bop .9s infinite; }
.sb-typing span:nth-child(2) { animation-delay: .15s; }
.sb-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes bop { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }
#sb-quick { padding: 6px 14px 8px; display: flex; gap: 5px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,0.05); }
.sb-qr { font-size: 11px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); color: #888; border-radius: 20px; padding: 4px 11px; cursor: pointer; font-family: 'Instrument Sans', sans-serif; transition: .12s; white-space: nowrap; }
.sb-qr:hover { background: rgba(255,255,255,0.1); color: #f0ede8; }
#sb-input-row { padding: 10px 12px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; gap: 8px; background: #0f0e0b; flex-shrink: 0; }
#sb-input { flex: 1; background: none; border: none; outline: none; font-family: 'Instrument Sans', sans-serif; font-size: 13px; color: #f0ede8; }
#sb-input::placeholder { color: #444; }
#sb-input:disabled { opacity: .5; }
#sb-send { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: .12s; }
#sb-send:hover { filter: brightness(1.15); }
#sb-send:disabled { opacity: .35; cursor: not-allowed; }
#sb-send svg { width: 13px; height: 13px; color: #fff; }
#sb-foot { text-align: center; font-size: 10px; color: #333; padding: 5px 0; border-top: 1px solid rgba(255,255,255,0.05); background: #0f0e0b; flex-shrink: 0; font-family: 'Instrument Sans', sans-serif; }
@media(max-width:420px) { #sb-panel { right: 12px; left: 12px; width: auto; bottom: 80px; } }

/* UTILITIES */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 6rem 0; }
.section-sm { padding: 3rem 0; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: .06em; }
.tag-orange { background: rgba(212,82,42,0.12); color: var(--accent); }
.tag-teal { background: rgba(26,107,90,0.1); color: var(--teal); }
.tag-sky { background: rgba(26,74,122,0.1); color: var(--sky); }
.tag-gold { background: rgba(196,146,42,0.12); color: var(--gold); }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 20px; }
.badge-green { background: rgba(42,148,120,0.12); color: var(--teal2); }
.badge-red { background: rgba(212,82,42,0.1); color: var(--accent); }
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* CARDS */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--rl); padding: 2rem; }
.card-hover { transition: transform .2s, box-shadow .2s; }
.card-hover:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
@media(max-width:900px) { .grid-4,.grid-3 { grid-template-columns: 1fr 1fr; } }
@media(max-width:600px) { .grid-4,.grid-3,.grid-2 { grid-template-columns: 1fr; } .nav-links { display: none; } }

/* HERO ACCENT SHAPES */
.shape { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35; pointer-events: none; }
