/* CSS Variables for Theme */
:root {
  --primary: #4338ca;
  --primary-light: #6366f1;
  --primary-dark: #312e81;
  --accent: #10b981;
  --bg-deep: #020617;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --glass: rgba(15, 23, 42, 0.4);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-highlight: rgba(255, 255, 255, 0.05);
}

body {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

.home-container {
  position: relative;
  z-index: 10;
  overflow: hidden;
}

/* Typography Utilities */
.text-gradient {
  background: linear-gradient(to right, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-alt {
  background: linear-gradient(to right, #34d399, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.margin-top-xl { margin-top: 3rem; }

/* Animated Gradient Mesh Background */
.mesh-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  overflow: hidden;
  background-color: var(--bg-deep);
}

.mesh-blob {
  position: absolute;
  filter: blur(100px);
  border-radius: 50%;
  opacity: 0.5;
  animation: blob-float 20s infinite alternate ease-in-out;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: var(--primary-dark);
  top: -10%;
  left: -10%;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: #4c1d95;
  bottom: 0%;
  right: -5%;
  animation-delay: -5s;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: #0f766e;
  top: 40%;
  left: 30%;
  animation-duration: 25s;
  animation-delay: -10s;
}

.mesh-noise {
  position: absolute;
  inset: 0;
  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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  z-index: 2;
  pointer-events: none;
}

@keyframes blob-float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(10%, 5%) scale(1.1); }
  100% { transform: translate(-5%, 10%) scale(0.9); }
}

/* Glassmorphism Utilities */
.glass {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-premium.primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white;
  box-shadow: 0 10px 20px -10px var(--primary-light);
}

.btn-premium.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px -10px var(--primary-light);
}

.btn-premium.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
}

.btn-premium.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-premium.outline {
  background: transparent;
  border: 1px solid var(--primary-light);
  color: var(--primary-light);
}

.btn-premium.outline:hover {
  background: rgba(99, 102, 241, 0.1);
}

.arrow-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}
.btn-premium.group:hover .arrow-icon {
  transform: translateX(4px);
}

/* Navigation */
.premium-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  position: relative;
  z-index: 50;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 10px;
  color: white;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text-main); }

.nav-btn {
  background: rgba(255,255,255,0.1);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}
.nav-btn:hover { background: rgba(255,255,255,0.2); }

/* Hero Section */
.hero-section {
  display: flex;
  min-height: calc(100vh - 88px);
  align-items: center;
  padding: 0 5%;
  gap: 4rem;
}

.hero-content {
  flex: 1;
  max-width: 650px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 9999px;
  color: #a5b4fc;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-light);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
  animation: pulse-primary 2s infinite;
}

@keyframes pulse-primary {
  0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
  100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.hero-title {
  font-size: 4.5rem;
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 1.5rem 0;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 90%;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
  margin-left: 1rem;
}

/* Complex Hero Mockup */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.mockup-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 600px;
  transform-style: preserve-3d;
  animation: float-3d 10s ease-in-out infinite alternate;
}

@keyframes float-3d {
  0% { transform: rotateY(-15deg) rotateX(5deg) translateY(0); }
  100% { transform: rotateY(-5deg) rotateX(-5deg) translateY(-20px); }
}

.mockup-layer {
  position: absolute;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

.layer-back {
  width: 80%;
  height: 60%;
  bottom: 5%;
  right: -5%;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid #334155;
  transform: translateZ(-50px);
  opacity: 0.6;
}

.layer-mid {
  width: 70%;
  height: auto;
  top: 10%;
  right: -10%;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  transform: translateZ(20px);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.docket-item {
  background: rgba(255,255,255,0.05);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid transparent;
}

.docket-item.active {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.05);
}

.docket-status {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.docket-status.warning { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.docket-status.live { background: rgba(16, 185, 129, 0.2); color: #10b981; }

.docket-line {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  margin-bottom: 0.5rem;
}
.docket-line.short { width: 60%; }

.layer-front {
  width: 90%;
  height: 70%;
  bottom: 10%;
  left: 0;
  transform: translateZ(80px);
  display: flex;
  flex-direction: column;
}

.glass-header {
  padding: 1rem;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  background: rgba(255,255,255,0.02);
}

.window-controls {
  display: flex;
  gap: 0.4rem;
}

.window-controls i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #475569;
}
.window-controls i:nth-child(1) { background: #ef4444; }
.window-controls i:nth-child(2) { background: #eab308; }
.window-controls i:nth-child(3) { background: #10b981; }

.glass-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.video-skeleton {
  flex: 1;
  background: #0f172a;
  border-radius: 8px;
  border: 1px solid #1e293b;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.video-skeleton::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.05) 50%, transparent 60%);
  background-size: 200% 200%;
  animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
  0% { background-position: -100% -100%; }
  100% { background-position: 100% 100%; }
}

.play-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  display: flex;
  justify-content: center;
  align-items: center;
}
.play-btn::before {
  content: '';
  width: 0; height: 0;
  border-style: solid;
  border-width: 8px 0 8px 12px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}

.stats-row {
  display: flex;
  gap: 1rem;
}

.stat-pill {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  padding: 0.75rem;
  border-radius: 8px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: #a5b4fc;
}


/* Infinite Marquee */
.marquee-wrapper {
  padding: 1.5rem 0;
  background: rgba(15, 23, 42, 0.6);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
  white-space: nowrap;
  display: flex;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll-left 30s linear infinite;
}

.marquee-content {
  display: flex;
  gap: 3rem;
  padding-right: 3rem;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.live-dot {
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Common Section Styles */
section {
  padding: 8rem 5%;
}

.section-header {
  margin-bottom: 4rem;
}
.section-header.center {
  text-align: center;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  margin: 0 0 1rem 0;
  letter-spacing: -1px;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
}
.section-header.center .section-subtitle {
  margin: 0 auto;
}

/* Bento Box Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 250px;
  gap: 1.5rem;
}

.bento-card {
  border-radius: 24px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.bento-card.span-2 {
  grid-column: span 2;
}

.bento-card.flex-row {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.bento-card.highlight {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  border-color: rgba(99, 102, 241, 0.3);
}

.bento-card.hover-lift:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.2);
}

.bento-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.bento-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
}

.bento-content p {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.05rem;
}

.bento-glow {
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.pie-chart-mockup {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: conic-gradient(var(--primary-light) 0% 40%, rgba(255,255,255,0.1) 40% 100%);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pie-chart-mockup::after {
  content: '';
  width: 110px;
  height: 110px;
  background: var(--bg-deep);
  border-radius: 50%;
}

.pie-segment {
  position: absolute;
  font-weight: 700;
  font-size: 0.875rem;
  z-index: 2;
}
.pie-segment.highlight { color: var(--primary-light); top: 30%; right: 20%; }
.pie-segment.base { color: var(--text-muted); bottom: 30%; left: 30%; }

/* Dashboard Section */
.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.feature-list svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.dashboard-visual-complex {
  perspective: 1000px;
}

.console-frame {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px -15px rgba(0,0,0,0.7);
  transform: rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s ease;
}

.console-frame:hover {
  transform: rotateY(0) rotateX(0);
}

.console-header {
  background: #0f172a;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid #1e293b;
}

.console-dots i {
  display: inline-block;
  width: 12px; height: 12px; border-radius: 50%;
  background: #334155;
  margin-right: 6px;
}
.console-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.console-body {
  display: flex;
  height: 400px;
}

.console-sidebar {
  width: 60px;
  background: #0f172a;
  border-right: 1px solid #1e293b;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.sidebar-item {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
}
.sidebar-item.active {
  background: var(--primary-light);
}

.console-main {
  flex: 1;
  background: rgba(15, 23, 42, 0.4);
  display: flex;
  flex-direction: column;
}

.console-topbar {
  padding: 1rem;
  border-bottom: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
}

.status-pill.live {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 800;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.console-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  padding: 1rem;
  flex: 1;
}

.console-widget {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid #1e293b;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

.widget-header {
  padding: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  border-bottom: 1px solid #1e293b;
}

.widget-content.wireframe-video {
  flex: 1;
  background: #020617;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  position: relative;
}
.widget-content.wireframe-video::after {
  content: 'Camera Feed';
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  color: #334155;
  font-size: 0.875rem;
  font-weight: 600;
}

.docket-list {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.docket-row {
  padding: 0.5rem;
  background: rgba(255,255,255,0.03);
  border-radius: 4px;
  font-size: 0.75rem;
  color: #cbd5e1;
}
.docket-row.active {
  background: rgba(16, 185, 129, 0.1);
  border-left: 2px solid #10b981;
  color: #10b981;
  font-weight: 600;
}

/* Premium Sessions Grid */
.premium-sessions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.premium-session-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  border: 1px solid var(--glass-border);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateZ(0);
}

.premium-session-card .card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.8) 100%);
  backdrop-filter: blur(10px);
  z-index: 1;
  transition: opacity 0.4s;
}

.premium-session-card:hover {
  transform: translateY(-8px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5), 0 0 20px rgba(99, 102, 241, 0.2);
}

.premium-session-card:hover .card-bg {
  opacity: 0.8;
  background: linear-gradient(180deg, rgba(49, 46, 129, 0.4) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.session-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  border: 1px solid rgba(239, 68, 68, 0.3);
  width: max-content;
  margin-bottom: 1.5rem;
}

.live-ring {
  width: 8px; height: 8px;
  background: #ef4444;
  border-radius: 50%;
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.session-name {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.session-host {
  color: var(--text-muted);
  margin-bottom: 2rem;
  flex-grow: 1;
}

.session-metrics {
  display: flex;
  gap: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
}

.metric {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 600;
}

.metric-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #a5b4fc;
}

.premium-empty-state {
  text-align: center;
  padding: 6rem 2rem;
  border-radius: 24px;
}
.empty-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}
.premium-empty-state h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.premium-empty-state p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 2rem auto;
}

/* Footer */
.premium-footer {
  border-top: 1px solid var(--glass-border);
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(20px);
  padding: 3rem 5%;
  position: relative;
  z-index: 10;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 2rem;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--text-main);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .hero-section {
    flex-direction: column;
    padding-top: 4rem;
    text-align: center;
    gap: 3rem;
  }
  .hero-badge { margin: 0 auto 2rem auto; }
  .hero-subtitle { margin: 0 auto 3rem auto; }
  .hero-actions { justify-content: center; }
  
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento-card.span-2 { grid-column: span 2; }
  
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  
  .dashboard-text {
    text-align: center;
  }
  .feature-list li { justify-content: center; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 3rem; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card.span-2 { grid-column: span 1; }
  .bento-card.flex-row { flex-direction: column; text-align: center; }
  
  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }
}
