/* ============================================================
   HOME PAGE SPECIFIC STYLES
   ============================================================ */

/* ── Hero ────────────────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sparks-canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 50%, rgba(255, 107, 26, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, transparent 60%, var(--bg) 100%),
    linear-gradient(90deg, var(--bg) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 107, 26, 0.12);
  border: 1px solid rgba(255, 107, 26, 0.3);
  border-radius: 100px;
  padding: 7px 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.accent-word {
  color: var(--accent);
  position: relative;
}

.hero-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 560px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.05em;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

.hero-scroll-hint span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 1.5s ease-in-out infinite;
}

@keyframes scrollLine {

  0%,
  100% {
    opacity: 0.4;
    transform: scaleY(1);
  }

  50% {
    opacity: 1;
    transform: scaleY(0.7);
  }
}

/* Spark particles */
.spark-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #FF6B1A;
  pointer-events: none;
  animation: sparkFly var(--dur, 2s) ease-out forwards;
}

@keyframes sparkFly {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(var(--tx, 60px), var(--ty, -120px)) scale(0.1);
  }
}

.spark-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  pointer-events: none;
  animation: sparkLine 3s ease-in-out infinite;
  opacity: 0;
  border-radius: 1px;
}

@keyframes sparkLine {
  0% {
    opacity: 0;
    transform: scaleX(0) translateX(-50%);
  }

  30% {
    opacity: 0.8;
    transform: scaleX(1) translateX(0);
  }

  70% {
    opacity: 0.4;
  }

  100% {
    opacity: 0;
    transform: scaleX(1.5) translateX(50%);
  }
}

/* ── About ───────────────────────────────────────────────── */
.about-section {
  background: radial-gradient(ellipse 80% 60% at 20% 50%, rgba(255, 107, 26, 0.04) 0%, transparent 70%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-image-frame {
  aspect-ratio: 1;
  max-width: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.about-image-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 107, 26, 0.2), transparent 50%, rgba(255, 107, 26, 0.1));
  z-index: -1;
}

/* ── Orbital Radar System ────────────────────────────────── */
.about-machine-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.orbital-rig {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Central Gear */
.gear-center {
  position: absolute;
  z-index: 10;
  width: 46%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-gear-img {
  width: 100%;
  height: auto;
  animation: gearSelfRotate 22s linear infinite;
  filter:
    brightness(0) invert(1) drop-shadow(0 0 12px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 4px rgba(255, 255, 255, 0.4));
}

/* Orbital Track Base */
.orb-track {
  position: absolute;
  border-radius: 50%;
  box-sizing: border-box;
}

/* Track 1 – inner, two-arc, CW fast (6s) */
.track-1 {
  width: 58%;
  height: 58%;
  border: 2px solid transparent;
  border-top: 2px solid rgba(255, 107, 26, 0.95);
  border-right: 2px solid rgba(255, 107, 26, 0.35);
  box-shadow: 0 0 10px rgba(255, 107, 26, 0.3), inset 0 0 8px rgba(255, 107, 26, 0.08);
  animation: orbitCW 6s linear infinite;
}

/* Track 2 – medium, full dashed ring, CCW medium (12s) */
.track-2 {
  width: 74%;
  height: 74%;
  border: 1.5px dashed rgba(255, 107, 26, 0.55);
  box-shadow: 0 0 12px rgba(255, 107, 26, 0.15);
  animation: orbitCCW 12s linear infinite;
}

/* Track 3 – large, 3-side arc, CW slow (20s) */
.track-3 {
  width: 90%;
  height: 90%;
  border: 1.5px solid transparent;
  border-top: 1.5px solid rgba(255, 107, 26, 0.75);
  border-left: 1.5px solid rgba(255, 107, 26, 0.4);
  border-bottom: 1.5px solid rgba(255, 107, 26, 0.55);
  box-shadow: 0 0 14px rgba(255, 107, 26, 0.2);
  animation: orbitCW 20s linear infinite;
}

/* Track 4 – outermost, faint dashed full ring, CCW very slow (35s) */
.track-4 {
  width: 108%;
  height: 108%;
  border: 1px dashed rgba(255, 107, 26, 0.22);
  animation: orbitCCW 35s linear infinite;
}

/* Radar Sweep */
.radar-sweep {
  position: absolute;
  width: 82%;
  height: 82%;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
      transparent 0deg,
      transparent 270deg,
      rgba(255, 107, 26, 0.04) 300deg,
      rgba(255, 107, 26, 0.14) 335deg,
      rgba(255, 107, 26, 0.04) 360deg);
  animation: orbitCW 4s linear infinite;
  z-index: 2;
}

/* Orbiting Dot Arms – arm rotates, dot stays at its radius */
.dot-arm {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.arm-a {
  animation: orbitCW 12s linear infinite;
}

.arm-b {
  animation: orbitCCW 20s linear infinite;
}

.arm-c {
  animation: orbitCW 6s linear infinite;
}

.orb-dot {
  position: absolute;
  border-radius: 50%;
  background: #FF6B1A;
  box-shadow: 0 0 10px #FF6B1A, 0 0 22px rgba(255, 107, 26, 0.5);
  z-index: 15;
}

/* dot-a on track-2 ring (~37% radius from center) */
.dot-a {
  width: 9px;
  height: 9px;
  top: calc(50% - 37% - 4.5px);
  left: calc(50% - 4.5px);
}

/* dot-b on track-3 ring (~45% radius from center) */
.dot-b {
  width: 7px;
  height: 7px;
  top: calc(50% - 45% - 3.5px);
  left: calc(50% - 3.5px);
}

/* dot-c on track-1 ring (~29% radius from center) */
.dot-c {
  width: 6px;
  height: 6px;
  top: calc(50% - 29% - 3px);
  left: calc(50% - 3px);
}

/* ── Orbital Keyframes ───────────────────────────────────── */
@keyframes gearSelfRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes orbitCW {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes orbitCCW {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(-360deg);
  }
}

.about-decoration-dots {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 60px;
  height: 60px;
  background-image: radial-gradient(circle, rgba(255, 107, 26, 0.3) 1px, transparent 1px);
  background-size: 10px 10px;
  border-radius: 8px;
}

.about-number-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  padding: 14px 22px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.about-text {
  padding: 20px 0;
}

.about-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
  margin-bottom: 32px;
}

.about-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.feature-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ── Mini Services ───────────────────────────────────────── */
.mini-services-section {
  position: relative;
  z-index: 1;
}

.mini-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.mini-service-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  cursor: pointer;
  position: relative;
}

.mini-service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width var(--transition-mid);
}

.mini-service-card:hover::after {
  width: 60%;
}

.ms-icon {
  width: 52px;
  height: 52px;
  background: rgba(255, 107, 26, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  transition: all var(--transition-fast);
}

.mini-service-card:hover .ms-icon {
  background: rgba(255, 107, 26, 0.18);
  box-shadow: 0 0 16px var(--accent-glow);
}

.ms-icon svg {
  width: 100%;
  height: 100%;
}

.mini-service-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.mini-service-card p {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.ms-arrow {
  font-size: 1.1rem;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: all var(--transition-fast);
  display: block;
}

.mini-service-card:hover .ms-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .mini-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-frame {
    max-width: 260px;
  }

  .about-number-badge {
    bottom: -10px;
    right: -10px;
  }

  .mini-services-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .stat-divider {
    display: none;
  }

  .hero-title {
    font-size: clamp(1.8rem, 9vw, 3rem);
    letter-spacing: -0.02em;
  }
}

.contact-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .contact-strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}