/* ============ SHALEM — design tokens ============ */
:root {
  --forest-950: #07171a;
  --forest-900: #0b2226;
  --forest-800: #10302f;
  --forest-700: #164139;
  --teal-600: #1f6b5c;
  --teal-500: #2c8a75;
  --teal-400: #4fae95;
  --sage-300: #9cc8b3;
  --sage-200: #c9e2d4;
  --sage-100: #e6f1ea;
  --sand-200: #efe5d6;
  --sand-100: #f6f0e6;
  --pearl: #fbf8f3;
  --gold-500: #c49a5a;
  --gold-400: #d9b77e;
  --gold-200: #f0e0c0;
  --clay-500: #d0795a;
  --rose-300: #e9b4a4;
  --ink: #0e2224;
  --ink-2: #3c5254;
  --ink-3: #6f8382;
  --line: rgba(14, 34, 36, .1);
  --line-strong: rgba(14, 34, 36, .18);
  --white: #fff;

  --f-display: "Frank Ruhl Libre", "Noto Serif Hebrew", Georgia, serif;
  --f-body: "Heebo", "Assistant", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 36px;
  --shadow-sm: 0 1px 2px rgba(7, 23, 26, .06), 0 2px 8px rgba(7, 23, 26, .05);
  --shadow-md: 0 8px 30px rgba(7, 23, 26, .08), 0 2px 6px rgba(7, 23, 26, .05);
  --shadow-lg: 0 30px 80px -20px rgba(7, 23, 26, .35), 0 10px 30px -10px rgba(7, 23, 26, .2);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--pearl);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; }
p { margin: 0; }
::selection { background: var(--gold-200); color: var(--forest-900); }
:focus-visible { outline: 2px solid var(--teal-400); outline-offset: 3px; border-radius: 6px; }

/* ============ shared components ============ */
.btn {
  --bg: var(--forest-900); --fg: var(--pearl);
  position: relative; display: inline-flex; align-items: center; gap: .6em;
  padding: .95em 1.6em; border-radius: 999px; font-weight: 500; font-size: 1rem;
  background: var(--bg); color: var(--fg); overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), background .3s;
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.25), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.btn:hover::before { opacity: 1; }
.btn:hover { box-shadow: 0 12px 30px -10px rgba(7, 23, 26, .45); }
.btn .arrow { transition: transform .4s var(--ease-out); }
.btn:hover .arrow { transform: translateX(-4px); }
.btn--gold { --bg: linear-gradient(135deg, var(--gold-400), var(--gold-500)); --fg: var(--forest-950); background: var(--bg); }
.btn--ghost { background: transparent; color: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.btn--ghost-light { background: rgba(255,255,255,.06); color: var(--pearl); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); backdrop-filter: blur(10px); }
.btn--sm { padding: .6em 1.1em; font-size: .9rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
  color: var(--teal-500);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }

.grain {
  pointer-events: none; position: fixed; inset: -50%; z-index: 9990; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); } 10% { transform: translate(-5%, -10%); } 30% { transform: translate(3%, -15%); }
  50% { transform: translate(12%, 9%); } 70% { transform: translate(9%, 4%); } 90% { transform: translate(-1%, 7%); }
}

.logo { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--f-display); font-size: 1.55rem; font-weight: 500; letter-spacing: .01em; }
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo small { display: block; font-family: var(--f-body); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; opacity: .65; margin-top: -2px; font-weight: 400; }

.chip {
  display: inline-flex; align-items: center; gap: .4em; padding: .3em .8em; border-radius: 999px;
  font-size: .78rem; font-weight: 500; background: var(--sage-100); color: var(--teal-600);
}
.chip--gold { background: var(--gold-200); color: #7a5a24; }
.chip--live { background: #fde8e3; color: #b23b1f; }
.chip--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #e04a2a; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(224, 74, 42, .6); } 70% { box-shadow: 0 0 0 8px rgba(224, 74, 42, 0); } 100% { box-shadow: 0 0 0 0 rgba(224, 74, 42, 0); } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { display: none; }
}
