:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Yu Gothic", Meiryo, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 300px;
  height: 250px;
  overflow: hidden;
  background: #020817;
}

.banner {
  position: relative;
  display: block;
  width: 300px;
  height: 250px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.banner__background,
.banner__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.banner__background {
  z-index: -4;
  object-fit: cover;
  object-position: 58% center;
  transform: scale(1.08);
  animation: galaxy-drift 10s ease-in-out infinite alternate;
}

.banner__overlay {
  z-index: -3;
  background:
    radial-gradient(circle at 85% 57%, rgba(53, 184, 255, 0.16), transparent 40%),
    linear-gradient(90deg, rgba(1, 8, 24, 0.97) 0%, rgba(1, 8, 24, 0.88) 52%, rgba(1, 8, 24, 0.36) 100%),
    linear-gradient(0deg, rgba(1, 8, 24, 0.9) 0%, transparent 47%);
}

.banner__orbit {
  position: absolute;
  z-index: -2;
  top: 20px;
  right: -68px;
  width: 214px;
  height: 214px;
  border: 1px solid rgba(111, 224, 255, 0.34);
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.13);
  transform: rotate(-18deg) scaleY(0.45);
  animation: orbit-pulse 3.2s ease-in-out infinite alternate;
}

.banner__logo {
  position: absolute;
  z-index: 3;
  top: 13px;
  left: 14px;
  width: 155px;
  height: auto;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.8));
  opacity: 0;
  transform: translateY(-7px);
  animation: reveal-down 0.5s ease-out 0.1s forwards;
}

.banner__content {
  position: absolute;
  z-index: 3;
  top: 55px;
  left: 14px;
  display: block;
  width: 168px;
}

.banner__badge {
  display: inline-block;
  padding: 4px 9px;
  color: #04253a;
  background: linear-gradient(135deg, #bff5ff, #60d9ff);
  border-radius: 4px;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.38);
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateX(-8px);
  animation: reveal-right 0.45s ease-out 0.3s forwards;
}

.banner__headline {
  display: block;
  margin-top: 7px;
  font-size: 20px;
  line-height: 1.27;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.96);
  opacity: 0;
  transform: translateX(-10px);
  animation: reveal-right 0.5s ease-out 0.5s forwards;
}

.banner__headline span {
  color: #79e9ff;
  font-size: 22px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.96), 0 0 15px rgba(66, 211, 255, 0.35);
}

.banner__description {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.93);
  font-size: 10.5px;
  line-height: 1.5;
  font-weight: 700;
  text-shadow: 0 2px 6px #000;
  opacity: 0;
  animation: fade-in 0.45s ease-out 0.72s forwards;
}

.banner__phone {
  position: absolute;
  z-index: 2;
  top: 43px;
  right: 10px;
  display: block;
  width: 105px;
  height: 169px;
  overflow: hidden;
  padding: 5px 4px 4px;
  background: #101622;
  border: 2px solid #d2f5ff;
  border-radius: 14px;
  box-shadow: 0 9px 21px rgba(0, 0, 0, 0.72), 0 0 18px rgba(71, 210, 255, 0.28);
  opacity: 0;
  transform: translate(14px, 9px) rotate(5deg) scale(0.88);
  animation: phone-arrives 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.48s forwards;
}

.banner__phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 9px;
}

.banner__speaker {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 50%;
  width: 28px;
  height: 4px;
  background: #101622;
  border-radius: 999px;
  transform: translateX(-50%);
}

.banner__cta {
  position: absolute;
  z-index: 4;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 36px;
  color: #fff;
  background: linear-gradient(135deg, #ff315f 0%, #ff684a 100%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.52), 0 0 18px rgba(255, 55, 94, 0.22);
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translateY(9px);
  animation: reveal-up 0.48s ease-out 0.95s forwards, cta-pulse 2.5s ease-in-out 1.6s infinite;
}

.banner__arrow {
  font-family: Arial, sans-serif;
  font-size: 15px;
  transition: transform 0.2s ease;
}

.banner:hover .banner__cta,
.banner:focus-visible .banner__cta {
  background: linear-gradient(135deg, #ff5276 0%, #ff805d 100%);
}

.banner:hover .banner__arrow,
.banner:focus-visible .banner__arrow {
  transform: translateX(3px);
}

.banner:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -4px;
}

@keyframes galaxy-drift {
  to { transform: scale(1.13) translateX(-4px); }
}

@keyframes orbit-pulse {
  from { opacity: 0.42; }
  to { opacity: 0.92; }
}

@keyframes reveal-down {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes reveal-right {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes reveal-up {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  to { opacity: 1; }
}

@keyframes phone-arrives {
  to { opacity: 1; transform: translate(0, 0) rotate(2deg) scale(1); }
}

@keyframes cta-pulse {
  50% { box-shadow: 0 5px 16px rgba(0, 0, 0, 0.52), 0 0 24px rgba(255, 55, 94, 0.48); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
  }
}
