﻿/* =====================================================
   CiroX Landing — Hero Section + Live Command Center
   ===================================================== */

/* Ambient Mesh Background */
.bg-mesh-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-mesh-bg {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
}
.bg-mesh-1 {
  width: 70vw;
  height: 70vw;
  background: var(--grad-mesh-1);
  top: -20%;
  left: 15%;
  animation: mesh-drift 12s var(--ease-slow) infinite;
}
.bg-mesh-2 {
  width: 60vw;
  height: 60vw;
  background: var(--grad-mesh-2);
  bottom: -30%;
  right: -10%;
  animation: mesh-drift-alt 14s var(--ease-slow) infinite;
}
.bg-mesh-3 {
  width: 50vw;
  height: 50vw;
  background: var(--grad-mesh-3);
  top: 40%;
  left: -15%;
  animation: mesh-drift 16s var(--ease-slow) infinite;
}
.bg-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, #000 50%, transparent 100%);
}
.bg-noise-texture {
  position: absolute;
  inset: 0;
  opacity: 0.015;
  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)'/%3E%3C/svg%3E");
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  padding-top: calc(var(--space-13) + var(--nav-height));
  padding-bottom: var(--space-12);
  overflow: hidden;
  z-index: var(--z-base);
}

/* Blob decorative elements */
.hero-bg-blob {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  opacity: 0.4;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
}
.blob-1 {
  width: 500px; height: 500px;
  background: var(--volt-cyan);
  top: -10%; left: -5%;
}
.blob-2 {
  width: 300px; height: 300px;
  background: var(--volt-violet);
  bottom: -5%; right: -5%;
}
.blob-3 {
  width: 250px; height: 250px;
  background: var(--volt-emerald);
  top: 50%; left: 50%;
}

.hero-container {
  text-align: center;
  max-width: var(--container-wide);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Eyebrow */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  margin-bottom: var(--space-6);
  background: rgba(34, 211, 238, 0.05);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--volt-cyan-bright);
  animation: slide-down 0.5s var(--ease-spring) 0.2s backwards;
}
.status-indicator-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--volt-cyan); }

/* Title with word reveal */
.hero-title {
  font-family: var(--font-display);
  font-size: var(--display-2xl);
  font-weight: var(--weight-extrabold);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text-pure);
  margin-bottom: var(--space-6);
  animation: reveal-up 0.8s var(--ease-slow) 0.3s backwards;
}
.hero-title .hero-word {
  display: block;
  animation: stagger-fade-up 0.6s var(--ease-spring) backwards;
}
.hero-title .hero-word:nth-child(1) { animation-delay: 0.3s; }
.hero-title .hero-word:nth-child(2) { animation-delay: 0.45s; }
.hero-title .hero-word:nth-child(3) { animation-delay: 0.6s; }
.hero-title .hero-word:nth-child(4) { animation-delay: 0.75s; }

.gradient-text {
  background: var(--grad-brand);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Subtext */
.hero-subtext {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto var(--space-8);
  line-height: var(--leading-relaxed);
  animation: stagger-fade-up 0.6s var(--ease-spring) 0.8s backwards;
}
.hero-subtext strong { color: var(--text-pure); }

/* CTA Group */
.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
  animation: stagger-fade-up 0.6s var(--ease-spring) 1s backwards;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 16px 32px;
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--bg-void);
  background: var(--grad-brand);
  border: none;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-glow-cyan), 0 8px 24px rgba(34, 211, 238, 0.3);
  transition: transform var(--dur-quick) var(--ease-spring),
              box-shadow var(--dur-quick) var(--ease-quick),
              filter var(--dur-quick) var(--ease-quick);
  position: relative;
  overflow: hidden;
}
.btn-hero-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-quick) var(--ease-quick);
}
.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(34, 211, 238, 0.5), 0 0 80px rgba(34, 211, 238, 0.3);
  filter: brightness(1.1);
}
.btn-hero-primary:hover::before { opacity: 1; }
.btn-hero-primary:active { animation: tap var(--dur-instant) var(--ease-instant); }
.arrow-icon { transition: transform var(--dur-quick) var(--ease-spring); }
.btn-hero-primary:hover .arrow-icon { transform: translateX(4px); }

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 16px 28px;
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  transition: var(--transition-color), transform var(--dur-quick) var(--ease-spring);
}
.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-muted);
  transform: translateY(-2px);
}
.play-icon-circle {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--volt-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-void);
}

/* Proof Bar */
.hero-proof-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-7);
  flex-wrap: wrap;
  padding: var(--space-5) var(--space-7);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-10);
  animation: stagger-fade-up 0.6s var(--ease-spring) 1.2s backwards;
}
.proof-item { display: flex; flex-direction: column; align-items: center; min-width: 100px; }
.proof-num {
  font-size: var(--text-xl);
  font-weight: var(--weight-extrabold);
  color: var(--text-pure);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.proof-txt { font-size: var(--text-xs); color: var(--text-muted); font-weight: var(--weight-medium); }
.proof-sep { width: 1px; height: 32px; background: var(--border-subtle); }

/* ===================== COMMAND CENTER MOCKUP ===================== */
.hero-mockup-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  animation: burst-in 0.8s var(--ease-spring) 1.4s backwards;
}

.command-card {
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl), var(--shadow-glow-cyan);
  transition: box-shadow var(--dur-base) var(--ease-base);
}
.command-card:hover {
  box-shadow: var(--shadow-xl), 0 0 60px rgba(34, 211, 238, 0.2);
}

/* Header Bar */
.command-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-5);
  background: rgba(8, 12, 20, 0.95);
  border-bottom: 1px solid var(--border-subtle);
}
.window-controls { display: flex; gap: 8px; }
.ctrl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-subtle); }
.ctrl-dot:nth-child(1) { background: #FF5F57; }
.ctrl-dot:nth-child(2) { background: #FEBC2E; }
.ctrl-dot:nth-child(3) { background: #28C840; }
.window-title-badge {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--text-muted);
}
.title-icon { font-size: var(--text-sm); }
.live-status-pill {
  display: flex; align-items: center; gap: 6px;
  font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--volt-emerald-bright);
}
.status-dot-active { width: 6px; height: 6px; border-radius: 50%; background: var(--volt-emerald); }

/* Content Grid: 3 columns */
.mockup-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--border-subtle);
}
.mockup-panel {
  background: var(--bg-card);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
}
.platform-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  color: var(--text-main);
}
.platform-badge.metrics { color: var(--volt-cyan); }

.status-tag {
  font-size: var(--text-xs);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  background: rgba(34, 211, 238, 0.08);
  color: var(--volt-cyan-bright);
  font-weight: var(--weight-semibold);
}
.status-tag.success-pulse {
  background: rgba(16, 185, 129, 0.08);
  color: var(--volt-emerald-bright);
  animation: pulse-dot 3s var(--ease-base) infinite;
}
.online-pulse {
  position: relative;
}
.online-pulse::before {
  content: ''; position: absolute; inset: -2px; border-radius: inherit;
  border: 1px solid var(--volt-cyan); animation: ping-soft 2s ease infinite;
}
.success-pulse::before {
  content: ''; position: absolute; inset: -2px; border-radius: inherit;
  border: 1px solid var(--volt-emerald); animation: ping-soft 2s ease infinite;
}

/* WhatsApp Chat */
.chat-flow-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--text-xs);
}
.bubble {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  max-width: 92%;
  animation: slide-in-bounce 0.4s var(--ease-spring);
}
.bubble.customer {
  background: var(--bg-surface);
  align-self: flex-start;
  border-bottom-left-radius: var(--radius-xs);
}
.bubble.ai-response {
  background: rgba(34, 211, 238, 0.05);
  border: 1px solid rgba(34, 211, 238, 0.15);
  align-self: flex-end;
  border-bottom-right-radius: var(--radius-xs);
}
.sender-name { font-size: 0.7rem; color: var(--text-subtle); display: block; margin-bottom: 4px; }
.ai-header-tag {
  font-size: 0.7rem;
  color: var(--volt-cyan-bright);
  font-weight: var(--weight-bold);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ai-icon { font-size: 10px; }
.checkout-link-box {
  margin-top: var(--space-2);
  padding: var(--space-2);
  background: rgba(16, 185, 129, 0.08);
  border: 1px dashed rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-xs);
  font-size: 0.7rem;
}
.checkout-link-box span { color: var(--volt-emerald-bright); font-weight: 600; }
.checkout-link-box a { color: var(--volt-emerald-bright); font-weight: 700; }
.time { font-size: 0.65rem; color: var(--text-subtle); margin-top: 4px; display: block; text-align: right; }

/* Instagram Panel */
.dashboard-mini-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}
.metric-card {
  background: var(--bg-surface);
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.metric-card.highlight {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.04);
}
.m-title { font-size: var(--text-xs); color: var(--text-muted); }
.m-val { font-size: var(--text-lg); font-weight: 700; color: var(--text-pure); }
.metric-card.highlight .m-val { color: var(--volt-emerald-bright); }

.ig-feed-mock { display: flex; flex-direction: column; gap: 8px; }
.ig-order-row {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2); background: var(--bg-surface); border-radius: var(--radius-sm);
  font-size: var(--text-xs);
}
.ig-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--grad-brand); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.7rem; color: var(--text-pure);
}
.ig-info { display: flex; flex-direction: column; flex: 1; }
.ig-info strong { font-size: 0.75rem; }
.ig-info span { font-size: 0.65rem; color: var(--text-muted); }
.order-amount { font-weight: 700; color: var(--volt-emerald-bright); }
.order-amount.pending { color: var(--volt-amber); }

/* Metrics Panel */
.metrics-stack { display: flex; flex-direction: column; gap: var(--space-4); }
.metric-bar-item { display: flex; flex-direction: column; gap: 6px; }
.metric-bar-top { display: flex; justify-content: space-between; font-size: var(--text-xs); }
.mb-label { color: var(--text-muted); }
.mb-value { font-weight: 700; color: var(--text-main); font-family: var(--font-mono); }
.metric-bar-track {
  width: 100%; height: 6px; background: rgba(255,255,255,0.06); border-radius: var(--radius-full); overflow: hidden;
}
.metric-bar-fill {
  height: 100%; border-radius: inherit;
  transition: width 1.2s var(--ease-slow);
}
.metric-bar-fill.cyan { background: var(--grad-brand); }
.metric-bar-fill.emerald { background: var(--grad-revenue); }
.metric-bar-fill.amber { background: linear-gradient(90deg, #FBBF24 0%, #F59E0B 100%); }
.revenue-flash {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  display: flex; justify-content: space-between; align-items: center;
}
.rf-label { font-size: var(--text-xs); color: var(--text-muted); }
.rf-value { font-size: var(--text-lg); font-weight: 800; color: var(--volt-emerald-bright); font-family: var(--font-mono); }
.revenue-flash-spark svg { margin-top: 4px; }

/* Hero Responsive */
@media (max-width: 1024px) {
  .mockup-content-grid { grid-template-columns: 1fr; }
  .metrics-panel { display: none; }
  .hero-title { font-size: var(--display-xl); }
}

@media (max-width: 768px) {
  .hero { padding-top: var(--space-10); }
  .hero-title { font-size: var(--display-lg); }
  .hero-subtext { font-size: var(--text-base); }
  .hero-proof-bar { flex-direction: column; gap: var(--space-4); }
  .proof-sep { width: 40px; height: 1px; }
}