.method {
  --jonbet-green: #3dff4a;
  --jonbet-bg: #1e1e1e;
  --jonbet-navy: #111b24;
  --jonbet-white: #ffffff;
  --jonbet-muted: #a7adb4;
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  width: min(100%, 430px);
  justify-self: center;
  overflow: hidden;
  color: var(--jonbet-white);
  background-color: #010c0d;
  background-image:
    radial-gradient(circle at 100% 8%, rgba(61, 255, 74, 0.045), transparent 24%),
    radial-gradient(circle at 0% 92%, rgba(61, 255, 74, 0.04), transparent 20%);
  font-family: "Plus Jakarta Sans", "Avenir Next", "Segoe UI", sans-serif;
}

.method__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(61, 255, 74, 0.22) 1px, transparent 1.2px);
  background-size: 28px 28px;
  opacity: 0.07;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, transparent 30%, #000 78%);
}

.method__arcs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(61, 255, 74, 0.12);
}

.method__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 52px 16px 36px;
}

.method__title,
.method__visual,
.method__steps,
.method__result {
  width: min(100%, 440px);
  margin-left: auto;
  margin-right: auto;
}

.method__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 22px;
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  background: var(--jonbet-green);
  color: var(--jonbet-navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
  text-transform: uppercase;
}

.method__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0c3d12;
  box-shadow: 0 0 0 3px rgba(17, 27, 36, 0.12);
}

.method__title {
  margin-top: 0;
  margin-bottom: 30px;
  max-width: 350px;
  text-align: center;
  font-size: clamp(38px, 10.6cqw, 46px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -1px;
}

.method__title span {
  display: block;
}

.method__title-accent {
  display: block;
  color: var(--jonbet-green);
}

.method__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  margin-bottom: 44px;
  border-radius: 26px;
  overflow: hidden;
  background: #0d1a12;
  box-shadow:
    0 0 0 1px rgba(61, 255, 74, 0.16),
    0 24px 48px rgba(0, 0, 0, 0.32);
}

.method__visual video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.method__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 27, 36, 0.08) 0%, transparent 22%, transparent 58%, rgba(17, 27, 36, 0.55) 100%);
  pointer-events: none;
}

.method__alerts {
  position: absolute;
  z-index: 2;
  left: 10px;
  right: 10px;
  bottom: 12px;
  height: 92px;
  pointer-events: none;
}

.method__alert {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
  margin: 0;
  padding: 10px 12px 10px 10px;
  border-radius: 22px;
  background: rgba(28, 28, 30, 0.94);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.38),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.08);
  animation: alert-back 8.6s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.method__alert--front {
  z-index: 2;
  animation-name: alert-front;
}

.method__alert--back {
  z-index: 1;
}

.method__alert img {
  grid-row: 1 / span 2;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
}

.method__alert strong {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  white-space: nowrap;
}

.method__alert time {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
}

.method__alert p {
  grid-column: 2 / span 2;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.25;
}

@keyframes alert-back {
  0%,
  7% {
    translate: 0 130%;
    opacity: 0;
    scale: 1;
  }
  18% {
    translate: 0 0;
    opacity: 1;
    scale: 1;
  }
  36% {
    translate: 0 0;
    opacity: 1;
    scale: 1;
  }
  48% {
    translate: 0 -16px;
    opacity: 1;
    scale: 0.96;
  }
  70% {
    translate: 0 -16px;
    opacity: 1;
    scale: 0.96;
  }
  82% {
    translate: -125% -16px;
    opacity: 0;
    scale: 0.96;
  }
  90%,
  100% {
    translate: 0 130%;
    opacity: 0;
    scale: 1;
  }
}

@keyframes alert-front {
  0%,
  42% {
    translate: 0 140%;
    opacity: 0;
  }
  56% {
    translate: 0 0;
    opacity: 1;
  }
  70% {
    translate: 0 0;
    opacity: 1;
  }
  82% {
    translate: -135% 0;
    opacity: 0;
  }
  90%,
  100% {
    translate: 0 140%;
    opacity: 0;
  }
}

.method__steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0 0 0 28px;
  list-style: none;
}

.method__steps::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(61, 255, 74, 0.15), var(--jonbet-green) 14%, var(--jonbet-green) 86%, rgba(61, 255, 74, 0.2));
}

.method__step {
  position: relative;
}

.method__dot {
  position: absolute;
  top: 50%;
  left: -25px;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--jonbet-green);
  box-shadow:
    0 0 0 4px rgba(61, 255, 74, 0.14),
    0 0 10px rgba(61, 255, 74, 0.45);
}

.method__card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 16px 16px 16px 18px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    rgba(17, 27, 36, 0.95);
  border: 1px solid rgba(61, 255, 74, 0.12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.method__card p {
  margin: 0;
  flex: 1;
  min-width: 0;
  color: var(--jonbet-white);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.method__time {
  display: block;
  margin-bottom: 4px;
  color: var(--jonbet-green);
  font-weight: 800;
}

.method__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: rgba(61, 255, 74, 0.1);
  color: var(--jonbet-green);
}

.method__icon svg {
  width: 18px;
  height: 18px;
}

.method__result {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 22px;
  border-radius: 22px;
  background: var(--jonbet-green);
  color: var(--jonbet-navy);
  box-shadow: 0 16px 36px rgba(61, 255, 74, 0.16);
  transition: transform 0.25s ease;
}

.method__result p {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.method__result strong {
  font-weight: 800;
}

.method__result-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--jonbet-navy);
  color: var(--jonbet-green);
}

.method__result-arrow svg {
  width: 18px;
  height: 18px;
}

@media (hover: hover) {
  .method__card:hover,
  .method__result:hover {
    transform: translateY(-2px);
  }

  .method__card:hover {
    border-color: rgba(61, 255, 74, 0.28);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .method.is-ready:not(.is-in) .method__title,
  .method.is-ready:not(.is-in) .method__visual,
  .method.is-ready:not(.is-in) .method__step,
  .method.is-ready:not(.is-in) .method__result {
    opacity: 0;
  }

  .method.is-in .method__title {
    animation: method-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .method.is-in .method__visual {
    animation: method-photo 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
  }

  .method.is-in .method__step {
    animation: method-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .method.is-in .method__step:nth-child(1) { animation-delay: 0.16s; }
  .method.is-in .method__step:nth-child(2) { animation-delay: 0.24s; }
  .method.is-in .method__step:nth-child(3) { animation-delay: 0.32s; }
  .method.is-in .method__step:nth-child(4) { animation-delay: 0.4s; }
  .method.is-in .method__step:nth-child(5) { animation-delay: 0.48s; }

  .method.is-in .method__result {
    animation: method-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.56s both;
  }

  .method.is-in .method__dot {
    animation: method-glow 2.8s ease-in-out 0.7s infinite;
  }
}

@keyframes method-rise {
  from {
    opacity: 0;
    translate: 0 16px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes method-photo {
  from {
    opacity: 0;
    scale: 0.98;
    translate: 0 12px;
  }
  to {
    opacity: 1;
    scale: 1;
    translate: 0 0;
  }
}

@keyframes method-glow {
  0%,
  100% {
    box-shadow:
      0 0 0 4px rgba(61, 255, 74, 0.14),
      0 0 8px rgba(61, 255, 74, 0.35);
  }
  50% {
    box-shadow:
      0 0 0 6px rgba(61, 255, 74, 0.22),
      0 0 16px rgba(61, 255, 74, 0.7);
  }
}

@media (prefers-reduced-motion: reduce) {
  .method__alert {
    animation: none;
    translate: 0 0;
    opacity: 1;
    scale: 1;
  }

  .method__alert--front {
    display: none;
  }
}
