/* ============================================================
   FulfillEngine — Shared Stylesheet
   assets/site.css — loaded by every page
============================================================ */

/* ── DESIGN TOKENS ──────────────────────────────────────── */
:root {
  --white:      #ffffff;
  --off-white:  #f8f9fb;
  --gray-50:    #f1f3f7;
  --gray-100:   #e4e8f0;
  --gray-200:   #c9d0de;
  --gray-400:   #8a93a8;
  --gray-600:   #4b5568;
  --gray-800:   #1a2033;
  --gray-900:   #0d1117;

  --blue-50:    #eff6ff;
  --blue-100:   #dbeafe;
  --blue-500:   #3b82f6;

  --green-50:   #f0fdf4;
  --green-100:  #dcfce7;
  --green-500:  #22c55e;
  --green-600:  #16a34a;

  --red-50:     #fef2f2;
  --red-100:    #fee2e2;
  --red-500:    #ef4444;
  --red-600:    #dc2626;

  --amber-50:   #fffbeb;
  --amber-400:  #fbbf24;
  --amber-500:  #f59e0b;

  --purple-100: #ede9fe;
  --purple-600: #7c3aed;

  --brand:      #1c6ef3;
  --brand-dk:   #1558cc;
  --brand-lt:   #eff5ff;

  --display:    'Plus Jakarta Sans', system-ui, sans-serif;
  --body:       'Inter', system-ui, sans-serif;

  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow:     0 4px 12px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.1),  0 4px 16px rgba(0,0,0,.06);
  --shadow-xl:  0 24px 64px rgba(0,0,0,.12), 0 8px 24px rgba(0,0,0,.08);
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--body);
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--body); border: none; background: none; }
ul, ol { list-style: none; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 3px; }

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.1;
  letter-spacing: -.025em;
}
h1 { font-size: clamp(36px, 5vw, 64px);   font-weight: 800; }
h2 { font-size: clamp(26px, 3.5vw, 42px); font-weight: 800; }
h3 { font-size: clamp(19px, 2.5vw, 26px); font-weight: 700; }
h4 { font-size: 17px; font-weight: 700; }

.label {
  font-family: var(--display);
  font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand);
}
.label-muted { color: var(--gray-400); }
.label-white { color: rgba(255,255,255,.55); }
.lead    { font-size: 18px; color: var(--gray-600); line-height: 1.7; }
.lead-sm { font-size: 16px; color: var(--gray-600); line-height: 1.7; }
.caption { font-size: 13px; color: var(--gray-400); line-height: 1.6; }

/* ── LAYOUT UTILITIES ───────────────────────────────────── */
.wrap    { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.wrap-sm { max-width: 800px;  margin: 0 auto; padding: 0 32px; }
.section      { padding: 96px 0; }
.section-gray { background: var(--off-white); }
.section-dark { background: var(--gray-900); color: var(--white); }
.text-center { text-align: center; }
.mx-auto  { margin-left: auto; margin-right: auto; }
.max-560  { max-width: 560px; }
.mt-3  { margin-top: 12px; } .mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; } .mt-8  { margin-top: 32px; }
.mt-12 { margin-top: 48px; } .mt-16 { margin-top: 64px; }
.mb-3  { margin-bottom: 12px; } .mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; } .mb-8  { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; font-family: var(--display);
  transition: all .18s; border: 1.5px solid transparent; cursor: pointer;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover:not(:disabled) {
  background: var(--brand-dk); border-color: var(--brand-dk);
  box-shadow: 0 4px 16px rgba(28,110,243,.3); transform: translateY(-1px);
}
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }

.btn-outline { background: transparent; color: var(--gray-800); border-color: var(--gray-200); }
.btn-outline:hover { border-color: var(--gray-400); background: var(--gray-50); }

.btn-white { background: #fff; color: var(--gray-900); border-color: #fff; }
.btn-white:hover { background: var(--gray-50); transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-ghost-white {
  background: rgba(255,255,255,.12); color: #fff;
  border-color: rgba(255,255,255,.25);
}
.btn-ghost-white:hover { background: rgba(255,255,255,.2); }

.btn-lg { padding: 15px 32px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ── PILLS ──────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 600; font-family: var(--display);
}
.pill-blue   { background: var(--blue-50);   color: #1d4ed8; }
.pill-green  { background: var(--green-50);  color: var(--green-600); }
.pill-red    { background: var(--red-50);    color: var(--red-600); }
.pill-purple { background: var(--purple-100);color: var(--purple-600); }
.pill-gray   { background: var(--gray-50);   color: var(--gray-600); border: 1px solid var(--gray-100); }

.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.dot-pulse { animation: dot-pulse 2s ease-in-out infinite; }
@keyframes dot-pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

/* ── NAVIGATION ─────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 64px; display: flex; align-items: center;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow .2s;
}
#nav.scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 32px;
}
.nav-logo {
  font-family: var(--display); font-size: 19px; font-weight: 800;
  color: var(--gray-900); letter-spacing: -.03em;
}
.nav-logo span { color: var(--brand); }
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-menu a {
  padding: 7px 14px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--gray-600);
  transition: all .15s;
}
.nav-menu a:hover     { color: var(--gray-900); background: var(--gray-50); }
.nav-menu a.nav-active { color: var(--brand); font-weight: 600; background: var(--brand-lt); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-divider { width: 1px; height: 20px; background: var(--gray-200); margin: 0 4px; }

/* ── PAGE HERO (inner pages) ────────────────────────────── */
.page-hero {
  padding: 120px 0 80px;
  background: var(--gray-900); color: var(--white);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 80% 50%, rgba(28,110,243,.16) 0%, transparent 65%);
}
.hero-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,.4);
  margin-bottom: 20px; font-family: var(--display);
}
.hero-breadcrumb a     { color: rgba(255,255,255,.4); transition: color .15s; }
.hero-breadcrumb a:hover { color: rgba(255,255,255,.7); }
.hero-breadcrumb .sep  { color: rgba(255,255,255,.2); }

/* ── BLOCKQUOTE ─────────────────────────────────────────── */
.blockquote {
  border-left: 3px solid var(--brand); padding: 16px 24px;
  background: var(--brand-lt); border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}
.blockquote p    { font-size: 16px; color: var(--gray-700); font-style: italic; margin: 0; line-height: 1.7; }
.blockquote cite { display: block; font-size: 12px; color: var(--gray-400); font-style: normal; margin-top: 8px; font-weight: 600; }

/* ── FOOTER ─────────────────────────────────────────────── */
footer { background: var(--gray-900); padding: 64px 0 32px; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-brand-name {
  font-family: var(--display); font-size: 20px; font-weight: 800;
  color: #fff; letter-spacing: -.03em; margin-bottom: 12px;
}
.footer-brand-name span { color: #60a5fa; }
.footer-desc {
  font-size: 13px; color: rgba(255,255,255,.4);
  line-height: 1.65; max-width: 240px; margin-bottom: 20px;
}
.footer-col-title {
  font-family: var(--display); font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.3); margin-bottom: 16px;
}
.footer-link { display: block; font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 10px; transition: color .15s; }
.footer-link:hover { color: rgba(255,255,255,.85); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,.25); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 12px; color: rgba(255,255,255,.25); transition: color .15s; }
.footer-legal a:hover { color: rgba(255,255,255,.5); }

/* ── SCROLL REVEAL ──────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 960px) {
  .wrap { padding: 0 20px; }
  .section { padding: 64px 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav-menu { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .btn-lg { padding: 13px 24px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
