/* ============================================
   FLUX NINE LABS — SHARED DESIGN TOKENS
   Mirrors the React SPA design system (src/index.css)
   Used by all static www/ pages for consistency.
   ============================================ */

:root {
  /* Background */
  --bg: #000000;
  --bg-card: #0d0d0d;
  --bg-elevated: #141414;

  /* Accent — Warm Coral */
  --accent: #d97756;
  --accent-hover: #e88a6a;
  --accent-dark: #c05a3d;

  /* Text — 2-tier system */
  --text-primary: #ffffff;
  --text-secondary: #8c8c8c;
  --text-muted: #474747;

  /* Borders */
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.12);

  /* Spacing */
  --section-py: 6rem;
  --container-max: 1120px;
  --radius: 0.5rem;

  /* Typography */
  --font-heading: 'Geist Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 180ms;
  --duration-normal: 260ms;
}

/* Base resets */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  background: var(--bg);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.15;
  margin: 0;
}

h1 { font-weight: 600; letter-spacing: -0.04em; }
h2 { font-weight: 600; letter-spacing: -0.03em; }
h3 { font-weight: 500; letter-spacing: -0.025em; }

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

a:hover { color: var(--text-primary); }

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--accent);
  color: white;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out-expo),
              background var(--duration-fast) ease,
              box-shadow var(--duration-normal) ease;
  box-shadow: 0 0 24px rgba(217, 119, 86, 0.25);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(217, 119, 86, 0.35);
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease-out-expo),
              border-color 0.25s ease,
              box-shadow 0.35s var(--ease-out-expo);
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

/* Selection */
::selection {
  background: rgba(217, 119, 86, 0.25);
  color: var(--text-primary);
}

/* Live badge */
.hero-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
  margin-bottom: 1.25rem;
}

.hero-live-badge:hover {
  border-color: rgba(217, 119, 86, 0.28);
  background: rgba(217, 119, 86, 0.06);
  color: rgba(255, 255, 255, 0.85);
}

.hero-live-badge .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.8);
  animation: live-pulse 2.4s ease-in-out infinite;
}

.hero-live-badge .badge-divider {
  width: 1px;
  height: 10px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 0.1rem;
}

.hero-live-badge .badge-cta {
  color: var(--accent);
  font-weight: 600;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}
