/* ============================================================
   BRAUNDEAN — Design System
   ============================================================ */

/* === TOKENS === */
:root {
  --brand-50:  #fff7ed;
  --brand-100: #ffedd5;
  --brand-400: #fb923c;
  --brand-500: #f97316;
  --brand-600: #ea580c;
  --brand-700: #c2410c;

  --gray-0:   #ffffff;
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --gray-950: #0b0f19;

  --surface-app:  var(--gray-0);
  --surface-card: var(--gray-0);
  --surface-dark: var(--gray-950);

  --text-primary:   var(--gray-900);
  --text-secondary: var(--gray-500);
  --text-muted:     var(--gray-400);
  --text-on-dark:       var(--gray-0);
  --text-on-dark-muted: #94a3b8;

  --border:        var(--gray-200);
  --border-strong: var(--gray-300);

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / .05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / .15), 0 8px 10px -6px rgb(0 0 0 / .1);

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-full: 9999px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --transition: 150ms cubic-bezier(.4,0,.2,1);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-sans); color: var(--text-primary); background: var(--surface-app); line-height: 1.5; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
img, svg { display: block; max-width: 100%; }

/* === HERO === */
.hero {
  background: radial-gradient(circle at 20% 20%, #1e293b 0%, var(--surface-dark) 55%);
  color: var(--text-on-dark);
  padding: 96px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(249,115,22,.18), transparent 55%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 720px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(249,115,22,.15);
  border: 1px solid rgba(249,115,22,.35);
  color: var(--brand-400);
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(32px, 6vw, 56px);
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.hero-title span { color: var(--brand-500); }
.hero-subtitle {
  font-size: 18px;
  color: var(--text-on-dark-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--radius-md);
  font-size: 14.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.btn--primary { background: var(--brand-500); color: #fff; border-color: var(--brand-500); }
.btn--primary:hover { background: var(--brand-600); border-color: var(--brand-600); transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--text-on-dark); border-color: rgba(255,255,255,.25); }
.btn--outline:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); }

/* === STATS STRIP === */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 720px;
  margin: -44px auto 0;
  position: relative;
  z-index: 2;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.stat-cell {
  padding: 24px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-cell:last-child { border-right: none; }
.stat-value { font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--brand-600); }
.stat-label { font-size: 12.5px; color: var(--text-secondary); margin-top: 4px; text-transform: uppercase; letter-spacing: .05em; }

/* === SECTIONS === */
.section { max-width: 1040px; margin: 0 auto; padding: 96px 24px 24px; }
.section-heading { text-align: center; max-width: 560px; margin: 0 auto 48px; }
.section-eyebrow {
  display: block;
  font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-600); margin-bottom: 10px;
}
.section-title { font-size: 30px; letter-spacing: -.02em; margin-bottom: 12px; }
.section-subtitle { font-size: 15.5px; color: var(--text-secondary); line-height: 1.6; }

/* === FACT CARDS === */
.facts-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.fact-row { display: flex; width: 100%; }
.fact-row--left  { justify-content: flex-start; }
.fact-row--right { justify-content: flex-end; }

.fact-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
  max-width: 560px;
  width: 100%;
  transition: box-shadow var(--transition), border-color var(--transition), transform .6s cubic-bezier(.16,1,.3,1), opacity .6s ease;
  display: flex; flex-direction: column; gap: 12px;
  opacity: 0;
}
.fact-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.fact-card--left  { transform: translateX(-64px); }
.fact-card--right { transform: translateX(64px); }
.fact-card.is-visible { opacity: 1; transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
  .fact-card { opacity: 1; transform: none; transition: none; }
}
.fact-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: var(--radius-full);
  background: var(--brand-50);
  color: var(--brand-600);
  font-size: 12.5px; font-weight: 800;
}
.fact-text { font-size: 14.5px; color: var(--text-primary); line-height: 1.55; }

/* === CTA === */
.cta {
  max-width: 1040px;
  margin: 24px auto 96px;
  padding: 56px 40px;
  border-radius: var(--radius-xl);
  background: var(--surface-dark);
  color: var(--text-on-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(249,115,22,.2), transparent 60%);
  pointer-events: none;
}
.cta-inner { position: relative; }
.cta-title { font-size: 26px; margin-bottom: 10px; letter-spacing: -.01em; }
.cta-subtitle { font-size: 15px; color: var(--text-on-dark-muted); margin-bottom: 28px; }

/* === FOOTER === */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.site-footer strong { color: var(--text-secondary); }

/* === RESPONSIVE === */
@media (max-width: 640px) {
  .hero { padding: 72px 20px 64px; }
  .stats-strip { grid-template-columns: 1fr; margin-top: -32px; }
  .stat-cell { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-cell:last-child { border-bottom: none; }
  .section { padding: 64px 20px 16px; }
  .cta { padding: 40px 24px; margin-left: 16px; margin-right: 16px; }
  .fact-card--left  { transform: translateX(-32px); }
  .fact-card--right { transform: translateX(32px); }
}
