/* ClientServed — Design tokens */
:root {
  /* Base */
  --bg: #FBF7F2;
  --bg-2: #F5EFE6;
  --bg-card: #FFFFFF;
  --ink: #0F0F0E;
  --ink-2: #2A2A27;
  --muted: #6B665C;
  --muted-2: #9A9488;
  --line: rgba(15,15,14,0.08);
  --line-2: rgba(15,15,14,0.12);

  /* Accents */
  --accent: #D9552B;
  --accent-2: #B83E17;
  --accent-soft: #FCE7D9;
  --gold: #B8882E;
  --gold-soft: #F4EAD1;
  --green: #2E7D5B;
  --green-soft: #D9ECE1;
  --blue: #25507A;
  --violet: #5A4BC7;

  /* Type */
  --font-sans: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 28px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15,15,14,0.04), 0 1px 1px rgba(15,15,14,0.03);
  --shadow-md: 0 4px 12px rgba(15,15,14,0.05), 0 2px 4px rgba(15,15,14,0.04);
  --shadow-lg: 0 24px 56px -18px rgba(15,15,14,0.18), 0 8px 20px -10px rgba(15,15,14,0.08);
  --shadow-glow: 0 0 0 1px rgba(217,85,43,0.18), 0 18px 50px -18px rgba(217,85,43,0.45);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; }

img { display: block; max-width: 100%; }

/* Ambient background texture */
.ambient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1000px 600px at 85% -10%, rgba(217,85,43,0.08), transparent 60%),
    radial-gradient(800px 500px at 0% 20%, rgba(184,136,46,0.05), transparent 60%);
}

.noise {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.06 0 0 0 0 0.06 0 0 0 0 0.05 0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Layout */
.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }
.container-wide { max-width: 1360px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }

/* Type */
h1, h2, h3, h4 { font-family: var(--font-sans); font-weight: 500; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(44px, 6.2vw, 88px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 500; }
h2 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.02; letter-spacing: -0.028em; }
h3 { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--muted); font-weight: 500;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(217,85,43,0.15); }
.eyebrow .dot.live { animation: pulse 1.6s ease-in-out infinite; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(217,85,43,0.15); }
  50% { box-shadow: 0 0 0 6px rgba(217,85,43,0.05); }
}

.lede { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 560px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink); color: #FBF7F2;
  box-shadow: 0 6px 16px -8px rgba(15,15,14,0.4), inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow-glow); }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: rgba(15,15,14,0.05); }
.btn-outline {
  border: 1px solid var(--line-2); color: var(--ink); background: rgba(255,255,255,0.6); backdrop-filter: blur(6px);
}
.btn-outline:hover { border-color: var(--ink); background: #fff; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

.arrow-right { transition: transform .2s ease; }
.btn:hover .arrow-right { transform: translateX(3px); }

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
}

/* Section */
section { position: relative; z-index: 2; }
.section-pad { padding: 120px 0; }
.section-pad-sm { padding: 80px 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Dividers */
.hairline { height: 1px; background: var(--line); width: 100%; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(15,15,14,0.15); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(15,15,14,0.3); }

/* Utility */
.row { display: flex; }
.col { display: flex; flex-direction: column; }
.gap-6 { gap: 6px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }

/* Chip */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 500;
  background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line);
}
.chip-accent { background: var(--accent-soft); color: var(--accent-2); border-color: rgba(217,85,43,0.2); }
.chip-green { background: var(--green-soft); color: var(--green); border-color: rgba(46,125,91,0.2); }

/* Marquee */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 64px; animation: marquee 40s linear infinite; width: max-content; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Dot grid bg for select sections */
.dots-bg {
  background-image: radial-gradient(rgba(15,15,14,0.08) 1px, transparent 1px);
  background-size: 18px 18px;
}

/* Chat bubble typing dots */
@keyframes bounce-dot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-4px); opacity: 1; }
}

/* Gradient pill */
.gradient-ring {
  background: conic-gradient(from 90deg, var(--accent), var(--gold), var(--accent));
  padding: 1.5px; border-radius: 999px;
}

/* Focus */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
