/* ════════════════════════════════════════════════════════════
   NOVEX — Apple Design Overhaul
   SF Pro typography · Pure minimal palette · Precision spacing
════════════════════════════════════════════════════════════ */

/* ── SF Pro Font Stack (closest web-safe approximation) ─── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Override to Apple-grade type */
  --font-body:    -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', sans-serif;
  --font-heading: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', sans-serif;

  /* Apple radius system */
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  /* Refined shadows — Apple uses very soft, large shadows */
  --shadow:    0 2px 20px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.12), 0 2px 12px rgba(0,0,0,0.06);
}

/* ── Apple Dark Mode refinement ────────────────────────── */
body.dark-mode {
  --background:    #000000;
  --surface:       rgba(28,28,30,0.95);
  --surface-light: rgba(44,44,46,0.95);
  --card:          rgba(28,28,30,0.94);
  --card-border:   rgba(255,255,255,0.08);
  --card-hover-border: rgba(255,255,255,0.16);
  --shadow:    0 2px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.6);
}

/* ── Typography overhaul ────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading) !important;
  letter-spacing: -0.03em;
  font-weight: 700;
}
h1 { font-weight: 800; letter-spacing: -0.04em; }
body { font-family: var(--font-body) !important; letter-spacing: -0.01em; }

/* Hero — Apple-style massive centered text */
.hero h1 {
  font-size: clamp(3rem, 8vw, 6.5rem) !important;
  font-weight: 900 !important;
  letter-spacing: -0.05em !important;
  line-height: 1.0 !important;
}
.hero-sub {
  font-size: 1.15rem !important;
  color: var(--muted) !important;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 400;
}

/* ── Apple Navbar tweaks ────────────────────────────────── */
.navbar {
  top: 14px !important;
  background: rgba(255,255,255,0.72) !important;
  backdrop-filter: saturate(180%) blur(28px) !important;
  -webkit-backdrop-filter: saturate(180%) blur(28px) !important;
  border: 1px solid rgba(0,0,0,0.07) !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05), 0 4px 20px rgba(0,0,0,0.06) !important;
}
body.dark-mode .navbar {
  background: rgba(29,29,31,0.72) !important;
  border-color: rgba(255,255,255,0.06) !important;
}
.nav-links a {
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em;
}

/* ── Apple-style buttons ────────────────────────────────── */
.btn {
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  border-radius: var(--radius-full) !important;
}
.btn-primary {
  background: #0071e3 !important;
  border-color: #0071e3 !important;
}
.btn-primary:hover {
  background: #0077ed !important;
}

/* ── Glass cards — Apple frosted glass ──────────────────── */
.glass {
  background: rgba(255,255,255,0.7) !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  backdrop-filter: saturate(180%) blur(20px) !important;
  -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04) !important;
}
body.dark-mode .glass {
  background: rgba(30,30,32,0.8) !important;
  border-color: rgba(255,255,255,0.07) !important;
}
.glass:hover, .glass-hover:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1), 0 2px 6px rgba(0,0,0,0.06) !important;
}

/* ── Section headers — Apple minimal ───────────────────── */
.section-header h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem) !important;
  font-weight: 900 !important;
  letter-spacing: -0.04em !important;
}
.section-header p {
  font-size: 1rem !important;
  font-weight: 400 !important;
  color: var(--muted) !important;
  line-height: 1.7 !important;
}

/* ── Label pills — Apple style ──────────────────────────── */
.label {
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.08em !important;
  background: rgba(0,113,227,0.08) !important;
  border-color: rgba(0,113,227,0.15) !important;
  color: #0071e3 !important;
}
body.dark-mode .label {
  background: rgba(10,132,255,0.1) !important;
  border-color: rgba(10,132,255,0.2) !important;
  color: #0a84ff !important;
}

/* ── CTA Banner ─────────────────────────────────────────── */
.cta-banner {
  text-align: center;
  padding: 80px 60px !important;
  border-radius: 28px !important;
}
.cta-banner h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem) !important; }

/* ── Stat numbers — Apple SF Display style ──────────────── */
.stat-num {
  font-size: 2.4rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
}

/* ── Step cards ─────────────────────────────────────────── */
.step-num {
  font-family: var(--font-heading) !important;
  font-size: 3rem !important;
  font-weight: 900 !important;
  color: rgba(0,113,227,0.15) !important;
  letter-spacing: -0.04em !important;
  margin-bottom: 8px !important;
}
body.dark-mode .step-num { color: rgba(10,132,255,0.2) !important; }

/* ════════════════════════════════════════════════════════════
   APPLE CURSOR SYSTEM
════════════════════════════════════════════════════════════ */

/* Hide default cursor on non-touch */
@media (hover: hover) {
  *, *::before, *::after { cursor: none !important; }
}

/* The actual SVG cursor container */
#apple-cursor {
  position: fixed;
  pointer-events: none;
  z-index: 999999;
  top: 0; left: 0;
  transform: translate(-2px, -2px); /* offset for arrow tip */
  transition: opacity 0.2s ease;
  will-change: transform;
}
#apple-cursor.hidden { opacity: 0; }

/* Arrow SVG */
#apple-cursor .cursor-arrow {
  transition: transform 0.15s cubic-bezier(0.34,1.56,0.64,1),
              filter 0.15s ease;
  transform-origin: 2px 2px; /* tip of arrow */
  display: block;
}

/* Expanded state when hovering links/buttons */
#apple-cursor.pointer .cursor-arrow {
  transform: scale(0.85);
}

/* Click animation */
#apple-cursor.clicking .cursor-arrow {
  transform: scale(0.78);
  filter: brightness(0.85);
}

/* Cursor highlight bubble (appears behind interactive elements) */
#apple-cursor-highlight {
  position: fixed;
  pointer-events: none;
  z-index: 999998;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.06);
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1),
              width 0.25s ease, height 0.25s ease, opacity 0.2s ease;
  opacity: 0;
  width: 40px; height: 40px;
}
#apple-cursor-highlight.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* ════════════════════════════════════════════════════════════
   LIVE STATUS WIDGET (in navbar)
════════════════════════════════════════════════════════════ */
.live-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(52,199,89,0.1);
  border: 1px solid rgba(52,199,89,0.2);
  font-size: 0.7rem;
  font-weight: 600;
  color: #34c759;
  white-space: nowrap;
  letter-spacing: 0.01em;
  cursor: default;
  user-select: none;
}
.live-status.busy {
  background: rgba(255,149,0,0.1);
  border-color: rgba(255,149,0,0.2);
  color: #ff9500;
}
.live-status.offline {
  background: rgba(142,142,147,0.1);
  border-color: rgba(142,142,147,0.2);
  color: #8e8e93;
}
.live-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: statusPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
.live-status.offline .live-status-dot { animation: none; }

@keyframes statusPulse {
  0%, 100% { opacity: 1;   transform: scale(1);   }
  50%       { opacity: 0.5; transform: scale(1.3); }
}

/* ════════════════════════════════════════════════════════════
   SHOWCASE PAGE — Cinematic full-screen sections
════════════════════════════════════════════════════════════ */

/* Hero banner */
.showcase-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--navbar-h) + 40px) 24px 80px;
  position: relative;
}
.showcase-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0071e3;
  margin-bottom: 20px;
}
body.dark-mode .showcase-eyebrow { color: #0a84ff; }

.showcase-hero h1 {
  font-size: clamp(3rem, 9vw, 7.5rem) !important;
  font-weight: 900 !important;
  letter-spacing: -0.05em !important;
  line-height: 0.95 !important;
  margin-bottom: 28px;
}

/* Gradient text highlight — clipped to text shape */
.showcase-grad {
  background: none;
  color: var(--foreground);
}
@keyframes gradShift {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.showcase-hero p {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* Horizontal scroll reel */
.reel-section {
  padding: 80px 0;
  overflow: hidden;
}
.reel-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 40px;
}

.reel-track-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  padding: 20px 40px 40px;
}
.reel-track-wrap::-webkit-scrollbar { display: none; }
.reel-track-wrap.grabbing { cursor: grabbing; }

.reel-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 0 calc(50vw - 200px);
}

.reel-card {
  flex-shrink: 0;
  width: 320px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.reel-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.reel-card-thumb {
  aspect-ratio: 9/16;
  background: linear-gradient(135deg, #1c1c1e, #2c2c2e);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}
.reel-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}
.reel-card-info {
  padding: 16px 18px;
}
.reel-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin-bottom: 3px;
}
.reel-card-sub {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Category badge */
.reel-badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Showcase stats strip */
.showcase-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 80px 0;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}
.showcase-stat {
  flex: 1;
  max-width: 220px;
  text-align: center;
  padding: 40px 20px;
  border-right: 1px solid var(--card-border);
}
.showcase-stat:last-child { border-right: none; }
.showcase-stat-num {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.06em;
  color: var(--foreground);
  line-height: 1;
  margin-bottom: 8px;
}
/* Ensure stat nums are always dark in light mode */
body:not(.dark-mode) .showcase-stat-num {
  color: #04111a;
}
body.dark-mode .showcase-stat-num {
  color: #ffffff;
}
.showcase-stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Marquee text strip (Apple-style) */
.marquee-strip {
  overflow: hidden;
  padding: 24px 0;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  background: var(--surface);
  margin: 80px 0;
}
.marquee-inner {
  display: flex;
  gap: 0;
  animation: marqueeScroll 18s linear infinite;
  width: max-content;
}
.marquee-inner:hover { animation-play-state: paused; }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 32px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-item .marquee-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Showcase testimonial pull quote */
.pull-quote {
  max-width: 800px;
  margin: 100px auto;
  text-align: center;
  padding: 0 40px;
}
.pull-quote blockquote {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.3;
  color: var(--foreground);
  margin-bottom: 24px;
}
.pull-quote cite {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  font-style: normal;
}

/* Floating "Scroll to explore" indicator */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: hintBob 2s ease-in-out infinite;
}
@keyframes hintBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}
.scroll-hint-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--muted), transparent);
}

/* Responsive */
@media (max-width: 768px) {
  .showcase-hero h1 { font-size: clamp(2.5rem, 10vw, 4rem) !important; }
  .reel-card { width: 240px; }
  .showcase-stats { flex-wrap: wrap; }
  .showcase-stat { border-right: none; border-bottom: 1px solid var(--card-border); }
  .pull-quote { padding: 0 20px; }
}

/* Mobile navbar handled in components.css */

/* ════════════════════════════════════════════════════════════
   REEL SECTION HEADER
════════════════════════════════════════════════════════════ */
.reel-section-header { margin-bottom: 36px; }

.reel-section-label {
  display: flex;
  align-items: center;
  gap: 20px;
}

.reel-section-icon {
  font-size: 2.4rem;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.12));
}

.reel-section-label h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem) !important;
  font-weight: 900 !important;
  letter-spacing: -0.04em !important;
  margin-bottom: 6px !important;
  /* gradient text inherited from global rule above */
}

.reel-section-label p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  max-width: 480px;
}

/* Animation reel cards are square-ish (shorter) */
#animReelTrack .reel-card .reel-card-thumb {
  aspect-ratio: 1 / 1;
}
#animReelTrack .reel-card {
  width: 260px;
}

/* ════════════════════════════════════════════════════════════
   HERO BADGE — status variants
════════════════════════════════════════════════════════════ */
.hero-badge--busy {
  background: rgba(255,149,0,0.12) !important;
  border-color: rgba(255,149,0,0.3) !important;
  color: #c47000 !important;
}
.hero-badge--busy .hero-badge-dot {
  background: #ff9500 !important;
}
.hero-badge--offline {
  background: rgba(142,142,147,0.1) !important;
  border-color: rgba(142,142,147,0.22) !important;
  color: #6e6e73 !important;
}
.hero-badge--offline .hero-badge-dot {
  background: #8e8e93 !important;
  animation: none !important;
}

/* ════════════════════════════════════════════════════════════
   FONT — ensure Montserrat everywhere, all weights
════════════════════════════════════════════════════════════ */
* {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif !important;
}
code, pre, kbd, samp {
  font-family: 'Courier New', monospace !important;
}
