:root {
  --accent: #e2ff66;
  --accent-2: #7ae2ff;
  color-scheme: dark;
}

.icon-card {
  backdrop-filter: blur(14px);
}

.icon-illustration {
  position: relative;
}

.device-icon {
  position: relative;
  width: clamp(120px, 34vw, 150px);
  height: clamp(220px, 64vw, 280px);
  border-radius: 28px;
  background: linear-gradient(160deg, #0f1018, #11111b);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 40px rgba(0, 0, 0, 0.55);
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.device-screen {
  position: relative;
  flex: 1;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.bars {
  display: grid;
  gap: 10px;
  width: 70%;
}

.bar {
  display: block;
  height: 8px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(122, 226, 255, 0), rgba(122, 226, 255, 0.9), rgba(122, 226, 255, 0));
  animation: shimmer 2.6s ease-in-out infinite;
  filter: blur(0.4px);
}

.bar-1 { animation-delay: 0s; }
.bar-2 { animation-delay: 0.4s; }
.bar-3 { animation-delay: 0.8s; }

@keyframes shimmer {
  0%, 100% { transform: translateX(-6px) scaleX(0.9); opacity: 0.7; }
  50% { transform: translateX(6px) scaleX(1.05); opacity: 1; }
}

.pulse-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, rgba(226, 255, 102, 0.1) 70%);
  box-shadow: 0 0 18px rgba(226, 255, 102, 0.65);
  animation: ping 2s ease-in-out infinite;
  bottom: 14px;
  right: 14px;
}

@keyframes ping {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.92); opacity: 0.85; }
}

.device-port {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0a0a0f;
  border: 2px solid rgba(226, 255, 102, 0.85);
  box-shadow: 0 0 12px rgba(226, 255, 102, 0.55);
  margin: 18px auto 0;
  position: relative;
}

.device-port::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 255, 102, 0.18), transparent 65%);
  filter: blur(4px);
  opacity: 0;
  animation: pulse-port 2.4s ease-in-out infinite;
}

@keyframes pulse-port {
  0%, 100% { opacity: 0.1; transform: scale(0.95); }
  50% { opacity: 0.5; transform: scale(1.05); }
}

.cable-animation {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  height: clamp(80px, 18vw, 110px);
  min-width: clamp(180px, 42vw, 240px);
}

.cable-track {
  position: relative;
  flex: 1;
  height: 12px;
  background: linear-gradient(90deg, rgba(122, 226, 255, 0.18), rgba(226, 255, 102, 0.25));
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 24px rgba(0, 0, 0, 0.25);
}

.cable-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  opacity: 0.9;
  transform-origin: left center;
  animation: cable-flow 3.6s ease-in-out infinite;
}

.cable-node {
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: #0a0a0f;
  box-shadow: 0 0 0 4px rgba(122, 226, 255, 0.16), 0 0 12px rgba(122, 226, 255, 0.3);
  transform: translateY(-50%);
}

.cable-node.start { left: 0; transform: translate(-40%, -50%); }
.cable-node.end { right: 0; transform: translate(40%, -50%); }

.cable-jack {
  position: absolute;
  left: -8px;
  top: 50%;
  width: 26px;
  height: 26px;
  border-radius: 10px;
  background: linear-gradient(145deg, #f5f7fb, #cdd6e6);
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  animation: jack-travel 4s ease-in-out infinite;
}

.jack-cap {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, #0a0a0f, #1c1f2b);
}

@keyframes cable-flow {
  0% { transform: scaleX(0); opacity: 0.4; }
  20% { transform: scaleX(0.2); opacity: 0.85; }
  60% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0.9; }
}

@keyframes jack-travel {
  0% { transform: translate(-8px, -50%); opacity: 0; }
  20% { transform: translate(6px, -50%); opacity: 1; }
  60% { transform: translate(calc(100% - 18px), -50%); }
  100% { transform: translate(calc(100% - 14px), -50%); opacity: 1; }
}

.headset-icon {
  position: relative;
  width: clamp(150px, 40vw, 180px);
  height: clamp(150px, 40vw, 180px);
}

.band {
  position: absolute;
  inset: 14px 18px auto 18px;
  height: 84px;
  border: 5px solid rgba(122, 226, 255, 0.6);
  border-bottom: none;
  border-radius: 140px 140px 0 0;
  box-shadow: 0 6px 24px rgba(122, 226, 255, 0.35);
  animation: glow-band 3s ease-in-out infinite;
}

@keyframes glow-band {
  0%, 100% { box-shadow: 0 6px 24px rgba(122, 226, 255, 0.3); opacity: 0.75; }
  50% { box-shadow: 0 6px 24px rgba(226, 255, 102, 0.45); opacity: 1; }
}

.ear {
  position: absolute;
  bottom: 24px;
  width: 56px;
  height: 68px;
  border-radius: 22px;
  background: linear-gradient(145deg, #0f1118, #1a1c26);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 28px rgba(0, 0, 0, 0.45);
}

.ear::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(122, 226, 255, 0.35), rgba(226, 255, 102, 0.6));
  opacity: 0.9;
}

.ear.left { left: 8px; }
.ear.right { right: 8px; }

@media (max-width: 768px) {
  .device-icon { width: 140px; height: 250px; }
  .cable-animation { min-width: auto; height: clamp(90px, 26vw, 120px); }
  .headset-icon { width: 160px; height: 160px; }
}

@media (max-width: 640px) {
  .icon-illustration {
    align-items: center;
    gap: 2.75rem;
  }

  .device-icon,
  .headset-icon {
    margin-inline: auto;
  }

  .device-icon { order: 1; }

  .cable-animation {
    order: 2;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: max-content;
    min-width: auto;
    height: clamp(160px, 52vw, 210px);
  }

  .cable-track {
    width: 12px;
    height: 100%;
    background: linear-gradient(180deg, rgba(122, 226, 255, 0.18), rgba(226, 255, 102, 0.25));
  }

  .cable-line {
    animation: cable-flow-vertical 3.6s ease-in-out infinite;
    transform-origin: center top;
  }

  .cable-node {
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .cable-node.start { top: 0; transform: translate(-50%, -40%); }
  .cable-node.end { top: auto; bottom: 0; transform: translate(-50%, 40%); }

  .cable-jack {
    left: 50%;
    top: -10px;
    transform: translate(-50%, -20%);
    animation: jack-travel-vertical 4s ease-in-out infinite;
  }

  .headset-icon { order: 3; }
}

@keyframes cable-flow-vertical {
  0% { transform: scaleY(0); opacity: 0.4; }
  20% { transform: scaleY(0.2); opacity: 0.85; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0.9; }
}

@keyframes jack-travel-vertical {
  0% { transform: translate(-50%, -20%); opacity: 0; }
  20% { transform: translate(-50%, 8%); opacity: 1; }
  60% { transform: translate(-50%, calc(100% - 24px)); }
  100% { transform: translate(-50%, calc(100% - 18px)); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .cable-line,
  .cable-jack {
    animation: none;
  }
}
