/* NowIGetIt — shared design tokens and primitives.
 *
 * Additive stylesheet. Pages that don't <link> this file are unaffected.
 * See docs/STYLE_GUIDE.md for usage.
 */

:root {
  --bg-deep: #0a0d17;
  --bg-card: #12162280;
  --bg-card-solid: #141829;
  --border-subtle: rgba(232, 168, 56, 0.12);
  --border-hover: rgba(232, 168, 56, 0.4);
  --accent: #e8a838;
  --accent-soft: #f0c060;
  --accent-glow: rgba(232, 168, 56, 0.15);
  --text-primary: #f0ede6;
  --text-secondary: #9a9590;
  --text-muted: #5a5650;
  --success: #6ec98a;
  --success-bg: rgba(110, 201, 138, 0.06);
  --success-border: rgba(110, 201, 138, 0.25);
  --error: #e87070;
  --error-bg: rgba(232, 112, 112, 0.06);
  --error-border: rgba(232, 112, 112, 0.25);
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
}

/* Ambient gold radial glow behind the page. */
body::before {
  content: '';
  position: fixed;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse, rgba(232, 168, 56, 0.07) 0%, rgba(232, 168, 56, 0.02) 40%, transparent 70%);
  pointer-events: none;
  animation: glow-drift 12s ease-in-out infinite alternate;
}

@keyframes glow-drift {
  0%   { transform: translateX(-50%) translateY(0) scale(1); }
  100% { transform: translateX(-45%) translateY(30px) scale(1.05); }
}

/* Subtle film grain over everything. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}

/* Entrance animation used by hero containers, headers, cards. */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ── Utility primitives ───────────────────────────────────────────────
 * All prefixed `nowigetit-` per the project's naming convention.
 * Page-specific styling stays in each page's inline <style> block;
 * these classes are starting points for new pages.
 */

.nowigetit-btn {
  display: block;
  width: 100%;
  padding: 0.8rem;
  background: linear-gradient(135deg, var(--accent) 0%, #d4922e 100%);
  color: var(--bg-deep);
  border: none;
  border-radius: 10px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 12px rgba(232, 168, 56, 0.18);
}

.nowigetit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(232, 168, 56, 0.35);
}

.nowigetit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.nowigetit-btn:disabled {
  background: var(--bg-card-solid);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.nowigetit-btn-secondary {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nowigetit-btn-secondary:hover:not(:disabled) {
  border-color: var(--border-hover);
  background: rgba(232, 168, 56, 0.04);
}

.nowigetit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.nowigetit-card:hover {
  border-color: var(--border-hover);
}

.nowigetit-nav-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.nowigetit-nav-link:hover { opacity: 0.8; }

.nowigetit-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--accent-soft);
  background: rgba(232, 168, 56, 0.08);
  border-radius: 6px;
  padding: 0.15rem 0.5rem;
  white-space: nowrap;
}

.nowigetit-badge-neutral {
  color: var(--text-secondary);
  background: rgba(154, 149, 144, 0.08);
}
