/* MineSync Product Page Styles */

/* Base gradient background */
body {
  background: 
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(13, 71, 161, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(0, 150, 136, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 50% 100%, rgba(255, 152, 0, 0.08) 0%, transparent 40%),
    linear-gradient(180deg, #0a0a0a 0%, #0d1117 50%, #0a0a0a 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Navigation */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(11, 11, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-brand {
  text-decoration: none;
}

.nav-logo {
  height: 28px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #fff;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 100% 80% at 50% 0%, rgba(0, 188, 212, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 80% 50%, rgba(13, 71, 161, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(255, 152, 0, 0.15) 0%, transparent 50%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.3) 0%, rgba(10, 10, 10, 0.7) 100%),
    url("/assets/minesync_landing.jpg");
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.hero-content {
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 800px;
}

.hero-logo {
  max-width: clamp(320px, 60vw, 700px);
  height: auto;
  margin-bottom: 32px;
}

.hero-tagline {
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: 12px;
  line-height: 1.5;
}

.hero-subline {
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 400;
  opacity: 0.6;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.hero-cta {
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.hero-cta:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

/* Content Sections */
.content-section {
  padding: 80px 24px;
}

.section-inner {
  max-width: 900px;
  margin: 0 auto;
}

.content-section h2 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}

.section-subtitle {
  font-size: clamp(16px, 2vw, 18px);
  opacity: 0.75;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
  line-height: 1.6;
}

.section-dark {
  background: 
    radial-gradient(ellipse 60% 60% at 50% 0%, rgba(0, 188, 212, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 100%, rgba(255, 152, 0, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #0d1117 0%, #111 50%, #0d1117 100%);
}

/* Feature Carousel */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
}

.carousel-container {
  flex: 1;
  overflow: hidden;
  padding: 40px 0 60px;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.carousel-track {
  display: flex;
  gap: 24px;
  width: max-content;
}

/* Carousel Navigation Arrows */
.carousel-arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.carousel-arrow:hover {
  background: rgba(0, 188, 212, 0.15);
  border-color: rgba(0, 188, 212, 0.4);
  color: #fff;
  transform: scale(1.05);
}

.carousel-arrow:active {
  transform: scale(0.95);
}

.carousel-tile {
  flex-shrink: 0;
  width: 280px;
  padding: 32px 28px;
  background: 
    radial-gradient(ellipse 80% 80% at 20% 20%, rgba(0, 188, 212, 0.08) 0%, transparent 50%),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: default;
}

.carousel-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 188, 212, 0.3);
  background: 
    radial-gradient(ellipse 80% 80% at 20% 20%, rgba(0, 188, 212, 0.15) 0%, transparent 50%),
    rgba(255, 255, 255, 0.05);
}

.tile-number {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(0, 188, 212, 0.7);
  margin-bottom: 16px;
  padding: 4px 10px;
  background: rgba(0, 188, 212, 0.1);
  border-radius: 4px;
  text-transform: uppercase;
}

/* Category Colors */
.carousel-tile.category-operations .tile-number {
  color: rgba(0, 188, 212, 0.9);
  background: rgba(0, 188, 212, 0.15);
  border: 1px solid rgba(0, 188, 212, 0.2);
}

.carousel-tile.category-core .tile-number {
  color: rgba(255, 193, 7, 0.9);
  background: rgba(255, 193, 7, 0.15);
  border: 1px solid rgba(255, 193, 7, 0.2);
}

.carousel-tile.category-maintenance .tile-number {
  color: rgba(255, 82, 82, 0.9);
  background: rgba(255, 82, 82, 0.15);
  border: 1px solid rgba(255, 82, 82, 0.2);
}

.carousel-tile.category-technical .tile-number {
  color: rgba(76, 175, 80, 0.9);
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid rgba(76, 175, 80, 0.2);
}

/* Hover effects for categories */
.carousel-tile.category-operations:hover {
  border-color: rgba(0, 188, 212, 0.4);
  background: radial-gradient(ellipse 80% 80% at 20% 20%, rgba(0, 188, 212, 0.15), transparent 50%), rgba(255, 255, 255, 0.05);
}

.carousel-tile.category-core:hover {
  border-color: rgba(255, 193, 7, 0.4);
  background: radial-gradient(ellipse 80% 80% at 20% 20%, rgba(255, 193, 7, 0.15), transparent 50%), rgba(255, 255, 255, 0.05);
}

.carousel-tile.category-maintenance:hover {
  border-color: rgba(255, 82, 82, 0.4);
  background: radial-gradient(ellipse 80% 80% at 20% 20%, rgba(255, 82, 82, 0.15), transparent 50%), rgba(255, 255, 255, 0.05);
}

.carousel-tile.category-technical:hover {
  border-color: rgba(76, 175, 80, 0.4);
  background: radial-gradient(ellipse 80% 80% at 20% 20%, rgba(76, 175, 80, 0.15), transparent 50%), rgba(255, 255, 255, 0.05);
}

/* Features Legend */
.features-legend {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto 60px;
  padding: 0 24px;
}

.legend-item {
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.85;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.legend-item:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.category-core .legend-dot { background: rgba(255, 193, 7, 0.9); box-shadow: 0 0 10px rgba(255, 193, 7, 0.4); }
.category-operations .legend-dot { background: rgba(0, 188, 212, 0.9); box-shadow: 0 0 10px rgba(0, 188, 212, 0.4); }
.category-maintenance .legend-dot { background: rgba(255, 82, 82, 0.9); box-shadow: 0 0 10px rgba(255, 82, 82, 0.4); }
.category-technical .legend-dot { background: rgba(76, 175, 80, 0.9); box-shadow: 0 0 10px rgba(76, 175, 80, 0.4); }

.legend-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.category-core strong { color: rgba(255, 193, 7, 0.9); }
.category-operations strong { color: rgba(0, 188, 212, 0.9); }
.category-maintenance strong { color: rgba(255, 82, 82, 0.9); }
.category-technical strong { color: rgba(76, 175, 80, 0.9); }

/* Feature Sections Category Colors */
.feature-section.category-operations .feature-section-number { color: rgba(0, 188, 212, 0.7); }
.feature-section.category-core .feature-section-number { color: rgba(255, 193, 7, 0.7); }
.feature-section.category-maintenance .feature-section-number { color: rgba(255, 82, 82, 0.7); }
.feature-section.category-technical .feature-section-number { color: rgba(76, 175, 80, 0.7); }

.carousel-tile h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.carousel-tile p {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.65;
  margin: 0;
}

/* Feature Sections */
.feature-section {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 80px 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: 
    radial-gradient(ellipse 50% 50% at 0% 50%, rgba(13, 71, 161, 0.08) 0%, transparent 60%),
    transparent;
  overflow: hidden;
}

.feature-section.feature-alt {
  background: 
    radial-gradient(ellipse 50% 50% at 100% 50%, rgba(0, 150, 136, 0.1) 0%, transparent 60%),
    rgba(255, 255, 255, 0.015);
}

.feature-section.feature-alt .feature-section-inner {
  order: 2;
}

.feature-section.feature-alt .feature-image-container {
  order: 1;
}

.feature-section-inner {
  max-width: 540px;
  text-align: left;
  z-index: 2;
}

.feature-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* Placeholder for animation/image styling */
.feature-image-placeholder {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 16/10;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-image-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
  animation: shine 3s infinite linear;
}

@keyframes shine {
  0% { transform: translateX(-100%) translateY(-100%); }
  100% { transform: translateX(100%) translateY(100%); }
}

.feature-section-number {
  display: block;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.35;
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}

.feature-section h3 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.2;
}

.feature-section p {
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.7;
  opacity: 0.75;
}

/* Simple full-width variant */
.feature-section.feature-simple {
  display: flex;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.feature-section.feature-simple .feature-section-inner {
  max-width: 700px;
  text-align: center;
  margin: 0 auto;
}

/* Contact Section */
#contact {
  padding: 60px 24px 40px;
}

#contact .section-subtitle {
  margin-bottom: 32px;
}

#contact .contact-form {
  max-width: 480px;
  margin: 0 auto;
}

#contact .contact-form textarea {
  min-height: 100px;
}

/* Footer */
.site-footer {
  padding: 24px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: 
    linear-gradient(180deg, rgba(13, 17, 23, 0.8) 0%, #0a0a0a 100%);
}

.site-footer p {
  font-size: 12px;
  opacity: 0.5;
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.footer-links a {
  font-size: 11px;
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 1;
}

/* Feature Detail Page */
.feature-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  background: 
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(0, 188, 212, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 90% 70%, rgba(13, 71, 161, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 50% 90%, rgba(255, 152, 0, 0.1) 0%, transparent 50%),
    transparent;
}

.feature-page-content {
  max-width: 700px;
  text-align: center;
}

.feature-page-number {
  display: block;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.35;
  margin-bottom: 16px;
  letter-spacing: 0.15em;
}

.feature-page h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.15;
}

.feature-page-desc {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.7;
  opacity: 0.8;
  margin-bottom: 40px;
}

/* Privacy Page */
.privacy-page {
  padding: 120px 24px 80px;
  min-height: calc(100vh - 80px);
  background: 
    radial-gradient(ellipse 70% 50% at 30% 20%, rgba(13, 71, 161, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(0, 150, 136, 0.08) 0%, transparent 50%),
    transparent;
}

.privacy-content {
  max-width: 800px;
  margin: 0 auto;
}

.privacy-content h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 8px;
}

.last-updated {
  font-size: 14px;
  opacity: 0.5;
  margin-bottom: 48px;
}

.privacy-content section {
  margin-bottom: 40px;
}

.privacy-content h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
}

.privacy-content p {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.85;
  margin-bottom: 16px;
}

.privacy-content ul {
  margin: 0 0 16px 24px;
  padding: 0;
}

.privacy-content li {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.85;
  margin-bottom: 8px;
}

.privacy-content a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-content a:hover {
  opacity: 0.8;
}

/* Mobile adjustments */
@media (max-width: 720px) {
  .site-nav {
    padding: 12px 16px;
  }

  .nav-logo {
    height: 22px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 11px;
  }

  .hero-content {
    padding: 100px 20px 60px;
  }

  .content-section {
    padding: 50px 20px;
  }

  #contact {
    padding: 50px 20px 30px;
  }

  .feature-section {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 80px 24px;
    text-align: center;
  }

  .feature-section.feature-alt .feature-section-inner {
    order: 1;
  }

  .feature-section.feature-alt .feature-image-container {
    order: 2;
  }

  .feature-section-inner {
    max-width: 100%;
    text-align: center;
  }

  .feature-image-container {
    min-height: 300px;
    width: 100%;
    max-width: 100%;
    overflow: hidden; /* Ensure anything sticking out is clipped at the section boundary */
  }

  .privacy-page {
    padding: 100px 20px 60px;
  }

  .privacy-content h1 {
    font-size: 28px;
  }

  .privacy-content h2 {
    font-size: 18px;
  }

  .site-footer {
    padding: 20px 16px;
  }

  .features-legend {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 40px;
  }

  .legend-item {
    padding: 12px;
  }

  /* Carousel mobile - native swipe, no auto-scroll, no arrows */
  .carousel-wrapper {
    padding: 0;
  }

  .carousel-arrow {
    display: none;
  }

  .carousel-container {
    padding: 30px 16px 40px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .carousel-container::-webkit-scrollbar {
    display: none;
  }

  .carousel-track {
    gap: 16px;
    animation: none;
  }

  .carousel-tile {
    width: 240px;
    padding: 24px 20px;
    scroll-snap-align: start;
  }

  /* Hide duplicate tiles on mobile */
  .carousel-tile:nth-child(n+16) {
    display: none;
  }

  .carousel-tile h3 {
    font-size: 16px;
  }

  .carousel-tile p {
    font-size: 13px;
  }
}

/* Dashboard Animation Styles */
.dashboard-animation {
  background: radial-gradient(circle at center, rgba(76, 175, 80, 0.08) 0%, transparent 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 16/12;
  min-height: 380px;
  border-radius: 24px;
  position: relative;
  overflow: visible; /* Changed from hidden to prevent clipping nodes during scale */
}

.data-hub {
  position: relative;
  width: 300px;
  height: 300px;
  transform-style: preserve-3d;
  transform: rotateX(10deg);
}

.hub-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  background: rgba(76, 175, 80, 0.15);
  border: 2px solid rgba(76, 175, 80, 0.6);
  border-radius: 16px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4CAF50;
  box-shadow: 0 0 40px rgba(76, 175, 80, 0.3), inset 0 0 15px rgba(76, 175, 80, 0.2);
  z-index: 10;
  animation: hubPulseLarge 4s infinite ease-in-out;
}

.hub-core svg {
  width: 40px;
  height: 40px;
}

.hub-rings .ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(76, 175, 80, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ringRotate 15s infinite linear;
}

.ring:nth-child(1) { width: 140px; height: 140px; border-style: dashed; }
.ring:nth-child(2) { width: 220px; height: 220px; border-style: dotted; animation-direction: reverse; animation-duration: 25s; }

.data-nodes .node {
  position: absolute;
  width: 70px;
  height: 32px;
  background: rgba(13, 17, 23, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.85);
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.node.n1 { top: -20px; left: 50%; transform: translateX(-50%); border-bottom: 2px solid rgba(0, 188, 212, 0.5); }
.node.n2 { top: 50%; right: -30px; transform: translateY(-50%); border-left: 2px solid rgba(255, 193, 7, 0.5); }
.node.n3 { bottom: -20px; left: 50%; transform: translateX(-50%); border-top: 2px solid rgba(255, 82, 82, 0.5); }
.node.n4 { top: 50%; left: -30px; transform: translateY(-50%); border-right: 2px solid rgba(76, 175, 80, 0.5); }

.data-streams .stream {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
}

/* Position stream origin containers at the nodes */
.stream.s1 { transform: translate(0, -140px); }           /* ERP (Top) */
.stream.s2 { transform: translate(140px, 0) rotate(90deg); }  /* Planning (Right) - Points Left */
.stream.s3 { transform: translate(0, 140px) rotate(180deg); }   /* Production (Bottom) - Points Up */
.stream.s4 { transform: translate(-140px, 0) rotate(-90deg); } /* Costs (Left) - Points Right */

.stream .bit {
  position: absolute;
  width: 3px;
  height: 8px;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0;
  animation: flowToCenter 3s infinite ease-in;
}

/* Deep randomization for 8 bits per stream */
.stream .bit:nth-child(1) { left: -15px; top: -5px;  animation-duration: 2.1s; animation-delay: 0.1s; }
.stream .bit:nth-child(2) { left: 12px;  top: 8px;   animation-duration: 2.8s; animation-delay: 0.7s; }
.stream .bit:nth-child(3) { left: -8px;  top: -12px; animation-duration: 3.4s; animation-delay: 1.5s; }
.stream .bit:nth-child(4) { left: 20px;  top: 2px;   animation-duration: 2.5s; animation-delay: 0.4s; }
.stream .bit:nth-child(5) { left: -22px; top: 10px;  animation-duration: 3.1s; animation-delay: 2.2s; }
.stream .bit:nth-child(6) { left: 5px;   top: -15px; animation-duration: 2.3s; animation-delay: 1.1s; }
.stream .bit:nth-child(7) { left: -10px; top: 15px;  animation-duration: 2.9s; animation-delay: 1.8s; }
.stream .bit:nth-child(8) { left: 18px;  top: -8px;  animation-duration: 3.7s; animation-delay: 0.2s; }

/* Individual stream colors */
.stream.s1 .bit { background: #00bcd4; box-shadow: 0 0 8px #00bcd4; }
.stream.s2 .bit { background: #ffc107; box-shadow: 0 0 8px #ffc107; }
.stream.s3 .bit { background: #ff5252; box-shadow: 0 0 8px #ff5252; }
.stream.s4 .bit { background: #4caf50; box-shadow: 0 0 8px #4caf50; }

@keyframes hubPulseLarge {
  0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 40px rgba(76, 175, 80, 0.3); }
  50% { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 65px rgba(76, 175, 80, 0.5); }
}

/* Unified animation that moves toward the relative center (0,0) from origin nodes */
@keyframes flowToCenter {
  0% { transform: translateY(0) scale(1) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  40% { transform: translateY(40px) translateX(5px) scale(0.9) rotate(5deg); }
  70% { transform: translateY(80px) translateX(-5px) scale(0.8) rotate(-5deg); }
  90% { opacity: 1; }
  100% { transform: translateY(135px) scale(0.4) rotate(0deg); opacity: 0; }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .data-hub { transform: scale(0.9); }
}

@media (max-width: 720px) {
  .dashboard-animation { 
    min-height: 320px; 
    aspect-ratio: 1/1; /* Square aspect ratio for mobile to fit nodes better */
  }
  .data-hub {
    transform: scale(0.65) translateY(0); /* More aggressive scaling for mobile */
  }
}

@media (max-width: 480px) {
  .dashboard-animation { 
    min-height: 280px; 
  }
  .data-hub { 
    transform: scale(0.55); /* Even smaller for small phones */
  }
  .data-nodes .node {
    width: 60px; /* Smaller nodes for small phones */
    font-size: 10px;
  }
}
.communication-animation {
  background: radial-gradient(circle at center, rgba(0, 188, 212, 0.05) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 16/10;
  border-radius: 24px;
  position: relative;
}

.worker-scene {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding-bottom: 40px;
}

.broadcast-tower {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 40px;
  background: rgba(0, 188, 212, 0.3);
}

.signal-waves {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.signal-waves span {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border: 2px solid rgba(0, 188, 212, 0.4);
  border-radius: 50%;
  animation: signalWave 3s infinite linear;
}

.signal-waves span:nth-child(1) { width: 40px; height: 40px; animation-delay: 0s; }
.signal-waves span:nth-child(2) { width: 80px; height: 80px; animation-delay: 1s; }
.signal-waves span:nth-child(3) { width: 120px; height: 120px; animation-delay: 2s; }

@keyframes signalWave {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
  50% { opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

.worker {
  position: relative;
  width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: workerFloat 4s infinite ease-in-out;
}

.worker.w2 { animation-delay: -2s; }

@keyframes workerFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hardhat {
  position: relative;
  width: 70px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50% 50% 10% 10% / 100% 100% 10% 10%;
  margin-bottom: 2px;
  z-index: 2;
}

.hardhat::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: -15%;
  width: 130%;
  height: 6px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 4px;
}

/* Vertical strap for the lamp */
.hardhat::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  border-left: 2px solid rgba(255, 255, 255, 0.3);
  border-right: 2px solid rgba(255, 255, 255, 0.3);
  z-index: 1;
}

.lamp {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  background: #ffcc33; /* Mining yellow/gold */
  border: 4px solid #222; /* Dark mount */
  border-radius: 50%;
  box-shadow: 0 0 20px #ffcc33, 0 0 40px rgba(255, 204, 51, 0.3);
  z-index: 10;
}

.lamp::after {
  content: "";
  position: absolute;
  top: 15%;
  left: 20%;
  width: 35%;
  height: 15%;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  transform: rotate(-35deg);
}

.worker-bubble {
  width: 80px;
  height: 60px;
  border: 3.5px solid rgba(255, 255, 255, 0.9);
  border-bottom: none;
  border-radius: 40px 40px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  margin-top: -2px;
  position: relative;
}

.mobile-device {
  position: absolute;
  top: 35px;
  width: 28px;
  height: 48px;
  background: #0a0a0a;
  border: 2.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.worker.w1 .mobile-device { right: -12px; transform: rotate(15deg); }
.worker.w2 .mobile-device { left: -12px; transform: rotate(-15deg); }

.device-glow {
  width: 18px;
  height: 32px;
  background: rgba(0, 188, 212, 0.3);
  border-radius: 2px;
  animation: screenPulse 2s infinite ease-in-out;
}

@keyframes screenPulse {
  0%, 100% { background: rgba(0, 188, 212, 0.2); box-shadow: 0 0 5px rgba(0, 188, 212, 0.1); }
  50% { background: rgba(0, 188, 212, 0.5); box-shadow: 0 0 15px rgba(0, 188, 212, 0.4); }
}

/* Data packets flying from tower to devices removed per request */

/* Offline Sync Animation */
.offline-sync-animation {
  background: radial-gradient(circle at center, rgba(255, 193, 7, 0.05) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 16/10;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.sync-scene {
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  width: 100%;
  justify-content: center;
  padding: 20px;
}

.local-storage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.storage-box {
  width: 80px;
  height: 80px;
  border: 3px solid rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column-reverse;
  padding: 6px;
  overflow: hidden;
}

.data-packets {
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
}

.data-packets span {
  height: 12px;
  width: 100%;
  background: rgba(255, 193, 7, 0.6);
  border-radius: 2px;
  animation: fillStorage 6s infinite ease-in-out;
}

.data-packets span:nth-child(2) { animation-delay: 0.5s; }
.data-packets span:nth-child(3) { animation-delay: 1s; }

@keyframes fillStorage {
  0%, 10% { transform: translateY(100px); opacity: 0; }
  30%, 60% { transform: translateY(0); opacity: 1; }
  80%, 100% { transform: translateY(-100px); opacity: 0; }
}

.status-indicator {
  color: #ff5252;
  width: 24px;
  height: 24px;
  animation: statusToggle 6s infinite;
}

@keyframes statusToggle {
  0%, 60% { color: #ff5252; opacity: 1; }
  70%, 100% { color: #4caf50; opacity: 0; }
}

.sync-path {
  position: relative;
  width: 100px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.sync-arrows {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  color: #4caf50;
  opacity: 0;
  animation: arrowsShow 6s infinite;
}

@keyframes arrowsShow {
  0%, 65% { opacity: 0; transform: translate(-50%, -10px) rotate(0); }
  75%, 95% { opacity: 1; transform: translate(-50%, -30px) rotate(360deg); }
  100% { opacity: 0; }
}

.transfer-bits {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  background: #ffc107;
  border-radius: 50%;
  box-shadow: 0 0 10px #ffc107;
  transform: translateY(-50%);
  opacity: 0;
  animation: bitTransfer 6s infinite ease-in;
}

@keyframes bitTransfer {
  0%, 70% { left: 0; opacity: 0; }
  75% { opacity: 1; }
  90% { left: 100%; opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.remote-server {
  width: 80px;
  height: 100px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 10px;
}

.server-rack {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.server-leds {
  display: flex;
  gap: 6px;
}

.server-leds span {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.remote-server {
  animation: serverActive 6s infinite;
}

@keyframes serverActive {
  0%, 75% { border-color: rgba(255, 255, 255, 0.4); }
  85%, 95% { border-color: #4caf50; box-shadow: 0 0 20px rgba(76, 175, 80, 0.2); }
}

.server-leds span {
  animation: ledBlink 1s infinite alternate;
}
.server-leds span:nth-child(2) { animation-delay: 0.3s; }
.server-leds span:nth-child(3) { animation-delay: 0.6s; }

@keyframes ledBlink {
  from { background: rgba(255, 255, 255, 0.1); }
  to { background: #4caf50; }
}

/* Deployment Animation */
.deployment-animation {
  background: radial-gradient(circle at center, rgba(255, 193, 7, 0.05) 0%, transparent 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 16/10;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  padding: 40px;
}

.deployment-timeline {
  width: 100%;
  max-width: 350px;
  height: 100px;
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.timeline-track {
  position: absolute;
  top: 25px;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.timeline-progress {
  position: absolute;
  top: 25px;
  left: 0;
  width: 0;
  height: 4px;
  background: #FFC107;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
  animation: timelineSequence 6s infinite ease-in-out;
}

.checkpoint {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.checkpoint-icon {
  width: 54px;
  height: 54px;
  background: #111;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  transition: all 0.4s ease;
}

.checkpoint-icon svg { width: 24px; height: 24px; }

.checkpoint span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.4s ease;
}

/* Individual Keyframes for Syncronized Sequence */
.c1 .checkpoint-icon, .c1 span { animation: setupSequence 6s infinite; }
.c2 .checkpoint-icon, .c2 span { animation: onboardSequence 6s infinite; }
.c3 .checkpoint-icon, .c3 span { animation: valueSequence 6s infinite; }

@keyframes setupSequence {
  0%, 10% { border-color: rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.3); }
  15%, 90% { border-color: #FFC107; color: #FFC107; box-shadow: 0 0 20px rgba(255, 193, 7, 0.3); }
  95%, 100% { border-color: rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.3); }
}

@keyframes onboardSequence {
  0%, 40% { border-color: rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.3); }
  45%, 90% { border-color: #FFC107; color: #FFC107; box-shadow: 0 0 20px rgba(255, 193, 7, 0.3); }
  95%, 100% { border-color: rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.3); }
}

@keyframes valueSequence {
  0%, 70% { border-color: rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.3); }
  75%, 90% { border-color: #FFC107; color: #FFC107; box-shadow: 0 0 20px rgba(255, 193, 7, 0.3); }
  95%, 100% { border-color: rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.3); }
}

@keyframes timelineSequence {
  0%, 10% { width: 0; opacity: 1; }
  40% { width: 50%; }
  70% { width: 100%; }
  90% { width: 100%; opacity: 1; }
  95%, 100% { width: 100%; opacity: 0; }
}

/* Value spike styles removed */
