/* ======================================================
   HERO SECTION
   Dark zinc-950 background, interactive canvas bg,
   mesh gradient, floating orbs, glassmorphic HUDs
   ====================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--color-dark);
  overflow: hidden;
  padding: 120px 0 80px;
}

/* Full-width interactive canvas background */
.hero__bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: all;
}

/* Grid overlay */
.hero::before {
  content: '';
  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: 72px 72px;
  pointer-events: none;
  z-index: 2;
}

/* Noise texture */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.012;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 2;
}

/* Mesh gradient blobs */
.hero__mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
  animation: float-orb 16s ease-in-out infinite;
}

.hero__orb--blue {
  width: 600px;
  height: 600px;
  top: -10%;
  right: -5%;
  background: rgba(255, 107, 44, 0.04);
  animation-duration: 18s;
}

.hero__orb--orange {
  width: 400px;
  height: 400px;
  bottom: -5%;
  left: 10%;
  background: rgba(255, 107, 44, 0.03);
  animation-duration: 20s;
  animation-delay: -4s;
}

.hero__orb--purple {
  display: none;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* Layout: 2-column — copy LEFT, visual RIGHT */
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-12);
  align-items: center;
  position: relative;
  z-index: 3;
}

/* Left: copy */
.hero__content {
  max-width: 580px;
}

/* Badge with live pulse */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(255, 107, 44, 0.08);
  border: 1px solid rgba(255, 107, 44, 0.15);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-8);
  backdrop-filter: blur(12px);
  letter-spacing: 0.01em;
}

.hero__badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981, 0 0 20px rgba(16, 185, 129, 0.3);
  animation: badge-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px #10B981, 0 0 20px rgba(16, 185, 129, 0.3); }
  50% { opacity: 0.6; box-shadow: 0 0 4px #10B981, 0 0 10px rgba(16, 185, 129, 0.15); }
}

/* Title with line-by-line animation */
.hero__title {
  font-size: clamp(2.8rem, 4.8vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #fff;
  margin-bottom: var(--space-6);
}

.hero__title-line {
  display: block;
  background: linear-gradient(160deg, #FFFFFF 0%, #E2E8F0 50%, #CBD5E1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Staggered fade for each line — fast & seamless, starts on first paint */
.hero__title-line--fade-1 { animation: title-fade 0.45s cubic-bezier(0.16,1,0.3,1) 0s both; }
.hero__title-line--fade-2 { animation: title-fade 0.45s cubic-bezier(0.16,1,0.3,1) 0.08s both; }
.hero__title-line--fade-3 { animation: title-fade 0.45s cubic-bezier(0.16,1,0.3,1) 0.16s both; }

@keyframes title-fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__title-accent {
  background: linear-gradient(135deg, #FFB088 0%, var(--color-accent) 50%, #E85C1F 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
  display: inline-block;
  padding-right: 0.12em;
  animation: shimmer-accent 4s ease-in-out infinite;
}

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

.hero__subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.75;
  margin-bottom: var(--space-8);
  max-width: 500px;
}

.hero__subtitle strong {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

/* CTAs */
.hero__ctas {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}

.hero__cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__cta-arrow {
  transition: transform 0.3s ease;
}

.hero__cta-primary:hover .hero__cta-arrow {
  transform: translateX(4px);
}

/* Trust row */
.hero__trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.hero__trust-item svg {
  color: #10B981;
  flex-shrink: 0;
}

/* Live stats bar — replaces old trust icons */
.hero__live-stats {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: var(--space-4) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hero__live-stat {
  display: flex;
  flex-direction: column;
  padding: 0 var(--space-6);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.hero__live-stat:first-child {
  padding-left: 0;
}

.hero__live-stat:last-child {
  border-right: none;
}

.hero__live-number {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-mono);
  line-height: 1.2;
  text-shadow: 0 0 20px rgba(255, 107, 44, 0.3);
}

.hero__live-unit {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.5);
}

.hero__live-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 2px;
}

/* ===== RIGHT: Single Focal Orb ===== */
.hero__visual--road {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__focal {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

/* Animated rings */
.hero__focal-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__focal-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 107, 44, 0.15);
  animation: ring-pulse 4s ease-in-out infinite;
}

.hero__focal-ring--1 {
  width: 100%;
  height: 100%;
  animation-delay: 0s;
}

.hero__focal-ring--2 {
  width: 140%;
  height: 140%;
  border-color: rgba(255, 107, 44, 0.08);
  animation-delay: -1.3s;
}

.hero__focal-ring--3 {
  width: 180%;
  height: 180%;
  border-color: rgba(255, 107, 44, 0.04);
  animation-delay: -2.6s;
}

@keyframes ring-pulse {
  0%, 100% { 
    transform: scale(1); 
    opacity: 1;
  }
  50% { 
    transform: scale(1.08); 
    opacity: 0.6;
  }
}

/* Core orb */
.hero__focal-core {
  position: relative;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle at 30% 30%, 
    rgba(255, 107, 44, 0.15) 0%, 
    rgba(255, 107, 44, 0.05) 50%,
    rgba(0, 0, 0, 0.2) 100%
  );
  border: 1px solid rgba(255, 107, 44, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 0 60px rgba(255, 107, 44, 0.15),
    inset 0 0 30px rgba(255, 107, 44, 0.05);
  transition: all 0.4s ease;
  cursor: pointer;
}

.hero__focal-core:hover {
  border-color: rgba(255, 107, 44, 0.4);
  box-shadow: 
    0 0 80px rgba(255, 107, 44, 0.25),
    inset 0 0 40px rgba(255, 107, 44, 0.1);
  transform: scale(1.05);
}

/* Logo inside orb */
.hero__focal-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__focal-icon {
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.2));
  transition: filter 0.4s ease, transform 0.4s ease;
}

.hero__focal-core:hover .hero__focal-icon {
  filter: drop-shadow(0 0 24px rgba(255, 255, 255, 0.4));
  transform: scale(1.08);
}

/* Live signal dot pulse */
.focal-signal-dot {
  animation: signal-live 2.4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes signal-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.2; transform: scale(0.6); }
}

/* Outer ambient glow */
.hero__focal-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, 
    rgba(255, 107, 44, 0.08) 0%, 
    rgba(255, 107, 44, 0.02) 40%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  animation: glow-breathe 6s ease-in-out infinite;
}

@keyframes glow-breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
}
/* ========== HERO: OPS CONSOLE (premium right-side visual) ========== */
/* Override the empty visual to host a real animated dashboard card */
.hero__visual--road {
  min-height: 520px;
  display: block;
  position: relative;
}

/* Dim the dot-globe so the console becomes the focal point */
.hero__bg-canvas { opacity: 0.45; mix-blend-mode: screen; }

.ops-console {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  animation: ops-fade-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

@keyframes ops-fade-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ----- Main console card ----- */
.ops-console__card {
  position: relative;
  background: linear-gradient(180deg, rgba(24,24,28,0.95) 0%, rgba(18,18,22,0.98) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 22px 22px 20px;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow:
    0 30px 80px -30px rgba(0,0,0,0.7),
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 -1px 0 rgba(255,255,255,0.05) inset;
  z-index: 4;
}

/* Glow halo behind card */
.ops-console__card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,107,44,0.35) 0%, transparent 40%, transparent 70%, rgba(255,107,44,0.15) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  pointer-events: none;
  opacity: 0.6;
}

/* ----- Header ----- */
.ops-console__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ops-console__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.ops-console__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981, 0 0 18px rgba(16,185,129,0.5);
  animation: ops-dot-pulse 2s ease-in-out infinite;
}
@keyframes ops-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
.ops-console__time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.04em;
}

/* ----- KPI row ----- */
.ops-console__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.ops-console__kpi {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.ops-console__kpi-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.ops-console__kpi-value {
  font-family: 'Archivo Black', 'Inter', sans-serif;
  font-size: 28px;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
}
.ops-console__kpi-value small {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  margin-left: 1px;
}
.ops-console__kpi-trend {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: #10B981;
  letter-spacing: 0.04em;
}

/* ----- Chart ----- */
.ops-console__chart {
  margin-top: 16px;
  padding: 14px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
}
.ops-console__chart-svg {
  display: block;
  height: 110px;
}
.ops-console__chart-area {
  opacity: 0;
  animation: ops-area-in 1.2s ease-out 1.4s forwards;
}
@keyframes ops-area-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.ops-console__chart-line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: ops-line-draw 1.6s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
  filter: drop-shadow(0 2px 6px rgba(255,107,44,0.4));
}
@keyframes ops-line-draw {
  to { stroke-dashoffset: 0; }
}
.ops-console__chart-dot {
  opacity: 0;
  transform-origin: 380px 20px;
  animation: ops-dot-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) 2.5s forwards,
             ops-dot-ping 2.4s ease-out 3.2s infinite;
}
@keyframes ops-dot-in {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes ops-dot-ping {
  0%   { filter: drop-shadow(0 0 0 rgba(255,107,44,0.7)); }
  50%  { filter: drop-shadow(0 0 12px rgba(255,107,44,0.7)); }
  100% { filter: drop-shadow(0 0 0 rgba(255,107,44,0)); }
}
.ops-console__chart-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.ops-console__chart-foot-val { color: #10B981; }

/* ----- Live activity feed ----- */
.ops-console__feed {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ops-console__feed-item {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 10px;
  opacity: 0;
  animation: ops-feed-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.ops-console__feed-item:nth-child(1) { animation-delay: 1.8s; }
.ops-console__feed-item:nth-child(2) { animation-delay: 2.1s; }
.ops-console__feed-item:nth-child(3) { animation-delay: 2.4s; }
@keyframes ops-feed-in {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}
.ops-console__feed-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px rgba(16,185,129,0.6);
  margin-left: 3px;
}
.ops-console__feed-item--warn .ops-console__feed-dot {
  background: #FFB088;
  box-shadow: 0 0 8px rgba(255,176,136,0.6);
}
.ops-console__feed-text {
  font-size: 12.5px;
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ops-console__feed-text strong {
  color: #fff;
  font-weight: 600;
}
.ops-console__feed-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
}

/* ----- Floating callouts ----- */
.ops-console__float {
  position: absolute;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 16px 12px 18px;
  background: rgba(28,28,32,0.95);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid #FF6B2C;
  border-radius: 12px;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 24px 50px -16px rgba(0,0,0,0.7);
  min-width: 168px;
  opacity: 0;
  animation: ops-float-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.ops-console__float--tl { top: -16px; left: -44px; animation-delay: 2.6s; }
.ops-console__float--br { bottom: -18px; right: -28px; animation-delay: 2.9s; }
@keyframes ops-float-in {
  from { opacity: 0; transform: translateY(10px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.ops-console__float-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.ops-console__float-value {
  font-family: 'Archivo Black', 'Inter', sans-serif;
  font-size: 26px;
  line-height: 1;
  color: #FF6B2C;
  letter-spacing: -0.02em;
}
.ops-console__float-value small {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  margin-left: 2px;
}
.ops-console__float-meta {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

/* Responsive: hide floats on narrow viewports to keep card readable */
@media (max-width: 1100px) {
  .ops-console__float { display: none; }
}
@media (max-width: 960px) {
  .hero__visual--road { display: none !important; }
}
