: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: #071912;
}

.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,
.banner__grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.banner__background {
  z-index: -5;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.4) saturate(1.02) contrast(0.96);
  transform: scale(1.05);
  animation: background-drift 10s ease-in-out infinite alternate;
}

.banner__overlay {
  z-index: -4;
  background:
    linear-gradient(90deg, rgba(3, 24, 16, 0.68) 0%, rgba(3, 24, 16, 0.52) 55%, rgba(3, 24, 16, 0.24) 100%),
    linear-gradient(0deg, rgba(2, 13, 10, 0.46) 0%, transparent 52%);
}

.banner__grid {
  z-index: -3;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.36) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.36) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 85%);
}

.banner__logo {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 14px;
  width: 154px;
  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: 51px;
  left: 14px;
  display: block;
  width: 174px;
}

.banner__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  color: #073321;
  background: linear-gradient(135deg, #d9ffe8, #75e5a4);
  border-radius: 999px;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.4);
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateX(-8px);
  animation: reveal-right 0.45s ease-out 0.3s forwards;
}

.banner__badge > span {
  font-family: Georgia, serif;
  font-size: 12px;
  line-height: 0.7;
}

.banner__headline {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.31;
  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: #8ff0b5;
  font-size: 21px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.96), 0 0 15px rgba(82, 224, 139, 0.26);
}

.banner__features {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.96);
  font-size: 9.5px;
  line-height: 1;
  font-weight: 800;
  opacity: 0;
  animation: fade-in 0.45s ease-out 0.72s forwards;
}

.banner__features > span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot--green { background: #54dc75; }
.dot--orange { background: #ffb027; }
.dot--blue { background: #46a8ff; }

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

.banner__phone {
  position: absolute;
  z-index: 2;
  top: 39px;
  right: 9px;
  display: block;
  width: 105px;
  height: 174px;
  overflow: hidden;
  padding: 5px 4px 4px;
  background: #101713;
  border: 2px solid #d8ffe7;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.72), 0 0 18px rgba(81, 222, 137, 0.24);
  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: #101713;
  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: #062a1b;
  background: linear-gradient(135deg, #a8f3c4 0%, #48dc83 100%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.52), 0 0 18px rgba(72, 220, 131, 0.25);
  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.98s 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, #c6fbd9 0%, #65e996 100%);
}

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

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

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

@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(72, 220, 131, 0.5); }
}

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