/* ===================================================================
   StreamLive — Silicon Valley Tier Design System
   Obsidian Dark Mode, Micro-Borders, Precision Typography & Shimmer Effects
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg-obsidian: #050609;
  --bg-surface: #0a0c13;
  --bg-card: rgba(13, 16, 26, 0.75);
  --bg-card-elevated: rgba(19, 24, 38, 0.85);
  
  --border-hairline: rgba(255, 255, 255, 0.07);
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-highlight: rgba(99, 102, 241, 0.4);

  --accent-primary: #6366f1;
  --accent-cyan: #06b6d4;
  --accent-indigo: #4f46e5;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  
  --text-main: #f3f4f6;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-obsidian);
  color: var(--text-main);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Subtle Noise Texture for Physical Depth */
.bg-noise {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.025'/%3E%3C/svg%3E");
}

/* Radial Light Pillars (Apple / Vercel style - elegant, not cheesy) */
.ambient-glow-center {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 600px;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(99, 102, 241, 0.18) 0%, rgba(6, 182, 212, 0.05) 50%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-secondary {
  position: absolute;
  top: 35%;
  right: -5%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Grid Overlay with Radial Vignette */
.bg-grid-vignette {
  background-size: 48px 48px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black 40%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black 40%, transparent 95%);
}

/* High-Precision Glass Cards with Top Rim Light */
.luxury-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-hairline);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.08),
    0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.luxury-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.14),
    0 15px 40px -10px rgba(0, 0, 0, 0.7);
  transform: translateY(-2px);
}

/* Typography Gradient */
.text-luxury-headline {
  background: linear-gradient(180deg, #ffffff 0%, #d1d5db 60%, #9ca3af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-accent {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 35%, #8b5cf6 75%, #d946ef 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Precision Button with Subtle Rim Light */
.btn-luxury-primary {
  position: relative;
  background: linear-gradient(180deg, #4f46e5 0%, #3730a3 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.25),
    0 4px 18px 0 rgba(79, 70, 229, 0.4);
  transition: all 0.2s ease;
}

.btn-luxury-primary:hover {
  background: linear-gradient(180deg, #4338ca 0%, #312e81 100%);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.35),
    0 6px 24px 0 rgba(79, 70, 229, 0.6);
  transform: translateY(-1px);
}

.btn-luxury-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  color: #e2e8f0;
  transition: all 0.2s ease;
}

.btn-luxury-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Phone Mockup — Titanium Edition */
.phone-titanium-shell {
  position: relative;
  width: 330px;
  height: 670px;
  border-radius: 50px;
  background: #0f1118;
  padding: 11px;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 0 3px #1a1e2b,
    0 30px 80px -15px rgba(0, 0, 0, 0.95),
    0 0 60px -10px rgba(99, 102, 241, 0.2);
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 40px;
  overflow: hidden;
  background: #000000;
}

/* Dynamic Island */
.phone-dynamic-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 115px;
  height: 28px;
  background: #000000;
  border-radius: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Live Video Inside Mockup */
.phone-video-stream {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Subtitle Karaoke Highlighting */
.subtitle-word-active {
  color: #00f2fe;
  text-shadow: 0 0 12px rgba(0, 242, 254, 0.6);
  font-weight: 700;
}

/* Shimmer Border Animation */
@keyframes borderShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.border-shimmer {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.4), rgba(236, 72, 153, 0.3), rgba(99, 102, 241, 0.2));
  background-size: 300% 300%;
  animation: borderShimmer 8s ease infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #050609;
}
::-webkit-scrollbar-thumb {
  background: #1f2438;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #333a57;
}

/* Architecture Node Pulse */
.node-active {
  box-shadow: 0 0 25px -3px rgba(99, 102, 241, 0.5);
  border-color: #6366f1 !important;
}

/* Interactive Slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #1a1e2f;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #6366f1;
  border: 2px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.8);
  transition: transform 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

@media (max-width: 640px) {
  .phone-titanium-shell {
    width: 290px;
    height: 590px;
    border-radius: 44px;
    padding: 8px;
  }
}
