/* STRYT design system — tokens, reset, primitives */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Manrope:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* base */
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-2: #1c1c1c;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --fg: #ffffff;
  --fg-2: #b5b5b5;
  --fg-3: #6e6e6e;
  --fg-4: #3a3a3a;

  --accent: #d4ff3a;
  --accent-fg: #0a0a0a;

  --danger: #ff3a3a;
  --success: #5dff7f;

  --font-display: 'Anton', 'Bebas Neue', 'Helvetica Neue Condensed', Impact, sans-serif;
  --font-body: 'Manrope', -apple-system, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;

  --maxw: 1440px;
  --pad-x: 32px;
  --header-h: 80px;
}

[data-theme="light"] {
  --bg: #f4f2ed;
  --surface: #ffffff;
  --surface-2: #eae6dd;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.18);
  --fg: #0a0a0a;
  --fg-2: #4a4a4a;
  --fg-3: #8a8a8a;
  --fg-4: #c8c4ba;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
}

body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.005em;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }
input, textarea, select { font-family: inherit; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }

.display {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.92;
  margin: 0;
}

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* placeholder striped block — for hero/cards without image */
.ph {
  position: relative;
  background: var(--tone1, #2a2a2a);
  overflow: hidden;
  isolation: isolate;
}
.ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    transparent 0px,
    transparent 22px,
    rgba(255, 255, 255, 0.04) 22px,
    rgba(255, 255, 255, 0.04) 23px
  );
}
.ph::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--tone2, #1a1a1a) 100%);
  opacity: 0.5;
}
.ph__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.45);
  z-index: 2;
}
.ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 80ms ease, opacity 120ms ease, background 160ms ease, color 160ms ease;
  user-select: none;
  text-decoration: none;
  color: inherit;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--accent); color: var(--accent-fg); }
.btn--primary:hover { background: #c2eb2a; }
.btn--ghost { background: transparent; color: var(--fg); border: 1px solid var(--line-strong); }
.btn--ghost:hover { border-color: var(--fg); }
.btn--block { background: var(--fg); color: var(--bg); }
.btn--block:hover { background: var(--accent); color: var(--accent-fg); }
.btn--lg { padding: 18px 22px; font-size: 14px; }
.btn--sm { padding: 8px 12px; font-size: 11px; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }

/* Chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-2);
  background: transparent;
  cursor: pointer;
}
.chip--active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip--accent { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }

/* helpers */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }
.hairline { height: 1px; background: var(--line); }
.clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }

/* live dot */
@keyframes livepulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--danger);
  animation: livepulse 1.4s ease-in-out infinite;
}

/* animations */
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes drawerIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes toastIn { from { transform: translate(-50%, 20px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
.sheet-anim { animation: sheetIn 320ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.fade-anim { animation: fadeIn 200ms ease; }
.drawer-anim { animation: drawerIn 280ms cubic-bezier(0.2, 0.8, 0.2, 1); }

/* marquee */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
