/* Tradift design tokens */
:root {
  /* Brand — anchored on #975ab3 */
  --brand-50:  #f6f0fa;
  --brand-100: #ebdcf3;
  --brand-200: #d5b7e4;
  --brand-300: #bd91d3;
  --brand-400: #a772c4;
  --brand-500: #975ab3;   /* primary */
  --brand-600: #7d4598;
  --brand-700: #63367a;
  --brand-800: #4a285c;
  --brand-900: #2e1839;
  --brand-950: #1a0d20;

  /* Warm neutrals — bone → ink */
  --bone-50:  #fbf8f3;    /* page */
  --bone-100: #f4efe6;    /* panel */
  --bone-200: #e8e0d0;
  --bone-300: #d4c9b3;
  --bone-400: #a89c84;
  --bone-500: #7a7060;
  --bone-600: #554d41;
  --bone-700: #3a342c;
  --bone-800: #221e19;    /* near-ink */
  --bone-900: #13110e;    /* ink */

  /* Accent — single warm pop */
  --amber-400: #f0b558;
  --amber-500: #E8A33D;
  --amber-600: #cc8a26;

  /* Semantic */
  --success-500: #3f9d6a;
  --danger-500:  #c4543a;

  /* Tradift-specific combos */
  --ink: var(--bone-900);
  --paper: var(--bone-50);
  --panel: var(--bone-100);
  --line: rgba(19, 17, 14, 0.08);
  --line-strong: rgba(19, 17, 14, 0.14);
  --muted: var(--bone-500);

  /* Radii */
  --r-1: 6px;
  --r-2: 10px;
  --r-3: 16px;
  --r-4: 22px;
  --r-5: 32px;

  /* Shadows */
  --shadow-1: 0 1px 2px rgba(19,17,14,0.04), 0 1px 3px rgba(19,17,14,0.06);
  --shadow-2: 0 8px 24px -12px rgba(19,17,14,0.18), 0 2px 6px rgba(19,17,14,0.05);
  --shadow-3: 0 30px 60px -24px rgba(74,40,92,0.28), 0 8px 20px -10px rgba(19,17,14,0.08);
  --shadow-brand: 0 20px 48px -18px rgba(151,90,179,0.45);

  /* Type */
  --font-display: 'Nunito', 'Iowan Old Style', 'Georgia', serif;
  --font-sans: 'Nunito Sans', -apple-system, system-ui, 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: hidden; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: 'ss01', 'ss02', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; }

/* Typography scale */
.display-hero {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 9vw, 148px);
  line-height: 0.92;
  letter-spacing: -0.025em;
}
.display-lg {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5.5vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.02em;
}
.display-md {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.015em;
}
.display-sm {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.h-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--bone-600);
}
.text-lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--bone-700);
  font-weight: 400;
}
.text-body { font-size: 16px; line-height: 1.6; color: var(--bone-700); }
.text-sm   { font-size: 14px; line-height: 1.55; }
.text-xs   { font-size: 12px; line-height: 1.5; }
.mono { font-family: var(--font-mono); font-feature-settings: 'tnum'; }

a { color: inherit; text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s var(--ease-out), background .2s, color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--brand-700); }
.btn-brand {
  background: var(--brand-500);
  color: white;
  box-shadow: var(--shadow-brand);
}
.btn-brand:hover { background: var(--brand-600); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--panel); }
.btn-sm { padding: 9px 14px; font-size: 13px; }
.btn-lg { padding: 17px 28px; font-size: 16px; }

/* Container */
.container { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 920px; margin: 0 auto; padding: 0 28px; }

@media (max-width: 700px) {
  .container, .container-wide, .container-narrow { padding: 0 20px; }
}

/* Utility */
.hr-soft { border: 0; border-top: 1px solid var(--line); margin: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line);
  font-size: 13px; color: var(--bone-700);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success-500); box-shadow: 0 0 0 4px rgba(63,157,106,0.15); }
.chip-dark { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: rgba(255,255,255,0.85); }

/* Section rhythm */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }

/* Focus states — accessibility */
:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Marquee */
@keyframes marquee-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* noise texture */
.noise {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.1 0 0 0 0 0.1 0 0 0 0.35 0'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.35'/></svg>");
}
