@import "https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap";

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

:focus {
  outline: 0
}

img {
  border: none;
  display: block
}

ol,
ul {
  list-style: none;
  padding: 0;
  margin: 0
}

a {
  text-decoration: none;
  cursor: pointer !important
}

body,
html {
  width: 100%;
  height: 100%;
  min-height: 100%
}

body {
  font-family: 'Montserrat', sans-serif !important;
  color: #fff !important;
  background: #000
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -2;
  top: 0;
  left: 0
}

.bgvideo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -50;
}

.bgvideo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 2s ease;
  /* iOS-specific video styles */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.bgvideo video.bg-video-hidden {
  opacity: 0;
}

.bgvideo video.show {
  opacity: 1 !important;
}

.overlay {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: -49;
  background: rgba(0, 0, 0, .5)
}

.blur {
  filter: blur(6px);
  -webkit-filter: blur(6px);
  -moz-filter: blur(6px);
  -o-filter: blur(6px);
  -ms-filter: blur(6px);
  transition: filter .3s ease;
  -webkit-transition: filter .3s ease;
  -moz-transition: filter .3s ease
}

.wrapper {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 100%;
  grid-template-columns: 100%;
  -ms-grid-row: 100%;
  grid-template-rows: 100%;
  width: 100%;
  height: auto;
  min-height: 100%
}

.step-item {
  width: 94%;
  max-width: 520px;
  height: auto;
  margin: 1rem auto;
  -ms-grid-column: 1 / 1;
  grid-column: 1 / 1;
  -ms-grid-row: 1 / 1;
  grid-row: 1 / 1;
  transition: transform 0.8s ease;
  text-align: center;
  -ms-grid-row-align: center;
  align-self: center;
  will-change: transform;
}

.step-item[data-effect="turn"] {
  -webkit-transform: rotate3d(0, 1, 0, -90deg);
  transform: rotate3d(0, 1, 0, 90deg);
  transform-origin: center center;
}

.step-item[step="1"] {
  transform: none;
  background: radial-gradient(ellipse at center, 
    rgba(25, 35, 60, 0.8) 0%, 
    rgba(35, 45, 75, 0.7) 30%, 
    rgba(20, 30, 50, 0.95) 70%, 
    rgba(0, 0, 0, 1) 100%) !important;
  position: relative;
  z-index: 1;
}

/* Step 1 esimese pealkirja font-weight */
.step-item[step="1"] h1:first-of-type {
  font-weight: 600;
}

.block {
  position: relative;
  background: rgba(15, 15, 30, 0.85);
  padding: 38px 28px;
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(106, 17, 203, 0.05), rgba(37, 117, 252, 0.05));
  z-index: -1;
}

.btn_wrp {
  display: block;
  margin-top: 25px
}

.video-block {
  width: 100%;
  max-width: 200px;
  margin: 20px auto;
  border-radius: 20px;
  border: 3px solid transparent;
  background: 
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3)), 
    linear-gradient(135deg, 
      rgba(70, 12, 140, 1) 0%, 
      rgba(25, 80, 180, 1) 25%, 
      rgba(70, 12, 140, 1) 50%, 
      rgba(25, 80, 180, 1) 75%, 
      rgba(70, 12, 140, 1) 100%);
  background-clip: padding-box, border-box;
  background-size: 100% 100%, 400% 400%;
  animation: gradientShift 8s ease infinite, subtlePulse 4s ease-in-out infinite;
  overflow: hidden;
  position: relative;
  aspect-ratio: 9/16;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.15),
    inset 0 1px 2px rgba(255, 255, 255, 0.2),
    0 0 30px rgba(37, 117, 252, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}



.video-block::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  border-radius: inherit;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.6s ease;
  animation: shimmer 3s linear infinite;
}

.video-block:hover::after {
  opacity: 0.7;
}

.video-block:hover::before {
  opacity: 1;
}

.video-block:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.3),
    0 0 50px rgba(37, 117, 252, 0.4),
    0 0 100px rgba(106, 17, 203, 0.2);
  animation-duration: 4s;
}

.video-block:active {
  transform: translateY(-2px) scale(1.01);
  transition: all 0.1s ease;
}

.video-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  transition: opacity 0.5s ease;
}

.video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Enhanced visual cohesion */
  filter: contrast(1.05) saturate(1.1) brightness(0.95);
  border-radius: 17px;
}

.video-poster.hidden {
  opacity: 0;
  pointer-events: none;
}

.video-block video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  transition: opacity 0.5s ease;
  /* iOS-specific video styles */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  /* Enhanced visual cohesion */
  filter: contrast(1.05) saturate(1.1) brightness(0.95);
  border-radius: 17px;
}

.btn {
  width: 75%;
  margin: 12px auto;
  display: block;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 14px 20px;
  cursor: pointer;
  letter-spacing: 0.5px;
  word-break: break-word;
  position: relative;
  z-index: 0;
  overflow: visible;
  border-radius: 8px;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 117, 252, 0.4);
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 117, 252, 0.6);
}

.btn::before {
  display: none;
}

.act {
  background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
  box-shadow: 0 4px 15px rgba(255, 65, 108, 0.4);
}

.act:hover {
  box-shadow: 0 6px 20px rgba(255, 65, 108, 0.6);
}

.btn_final {
  width: 75%;
  margin: 12px auto;
  display: block;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 14px 20px;
  cursor: pointer;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 0;
  overflow: visible;
  border-radius: 8px;
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(17, 153, 142, 0.4);
  border: none;
}

.btn_final:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17, 153, 142, 0.6);
}

.btn_final::before {
  display: none;
}

h1 {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.2px;
  display: block;
  margin-bottom: 15px;
  line-height: 2.1rem;
  font-style: normal;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5)
}

h1 span {
  display: block;
  font-size: 1.4rem
}

h1 span strong {
  font-weight: 700;
  font-size: 2.6rem;
  position: relative;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: -1px;
  line-height: 2.6rem;
}

.lj-logo {
  font-size: 2.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -1px;
  color: #2575fc;
  text-shadow: 0 2px 10px rgba(37, 117, 252, 0.6);
  margin: -60px 0 15px 0;
}

h3 {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 3px;
  display: block;
  margin-bottom: 15px;
  text-transform: uppercase;
  line-height: 2.2rem;
  font-style: normal;
}

[step="11"] h4 {
  width: 90%;
  max-width: 420px;
  min-height: 24px;
  text-align: left;
  font-size: 1rem;
  font-weight: 400;
  margin: 12px auto;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
  padding: 0 0 0 30px;
  display: none;
  transition: background .2s ease;
  color: #e6e6e6;
}

h4.blue {
  color: #2575fc;
}

h4.green {
  color: #38ef7d;
}

.loader {
  color: #fff;
  font-size: 40px;
  text-indent: -9999em;
  overflow: hidden;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  margin: 70px auto 30px;
  position: relative;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation: load6 1.7s infinite ease, round 1.7s infinite ease;
  animation: load6 1.7s infinite ease, round 1.7s infinite ease;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
}

@media only screen and (min-width: 1080px) {
  h1 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    line-height: 2.6rem;
  }

  .lj-logo {
    font-size: 2.6rem;
  }

  .btn,
  .btn_final {
    font-size: 1.5rem;
    padding: 15px 20px;
    width: 70%;
  }

  .block {
    padding: 45px 35px;
  }

  .step-item {
    max-width: 620px;
  }
}

@media (max-width: 480px) {
  .block {
    padding: 30px 20px;
    margin-top: -80px;
  }

  h1 {
    font-size: 1.2rem;
    line-height: 2rem;
  }

  .lj-logo {
    font-size: 1.6rem;
  }

  .video-block {
    max-width: 180px;
    margin: 15px auto;
    border-radius: 18px;
    border: 2px solid transparent;
    box-shadow: 
      0 8px 25px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(255, 255, 255, 0.15),
      inset 0 1px 2px rgba(255, 255, 255, 0.2),
      0 0 25px rgba(37, 117, 252, 0.2);
  }

  .video-block:hover {
    transform: translateY(-2px) scale(1.01);
  }

  .video-block::before {
    font-size: 0.6rem;
    padding: 3px 6px;
    bottom: 8px;
  }

  .btn,
  .btn_final {
    font-size: 1.2rem;
    padding: 12px 18px;
  }
}

@media (max-width: 360px) {
  .block {
    padding: 25px 15px;
  }

  h1 {
    font-size: 1.2rem;
    line-height: 1.8rem;
  }

  .video-block {
    max-width: 160px;
    margin: 10px auto;
    border-radius: 16px;
    border: 2px solid transparent;
    box-shadow: 
      0 6px 20px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(255, 255, 255, 0.15),
      inset 0 1px 2px rgba(255, 255, 255, 0.2),
      0 0 20px rgba(37, 117, 252, 0.2);
  }

  .video-block:hover {
    transform: translateY(-1px) scale(1.01);
  }

  .video-block::before {
    font-size: 0.55rem;
    padding: 2px 5px;
    bottom: 6px;
  }

  .btn,
  .btn_final {
    width: 90%;
    font-size: 1.1rem;
    padding: 10px 15px;
  }
}

@keyframes load6 {
  0% {
    box-shadow: 0 -.83em 0 -0.4em, 0 -.83em 0 -0.42em, 0 -.83em 0 -0.44em, 0 -.83em 0 -0.46em, 0 -.83em 0 -.477em
  }

  5%,
  95% {
    box-shadow: 0 -.83em 0 -0.4em, 0 -.83em 0 -0.42em, 0 -.83em 0 -0.44em, 0 -.83em 0 -0.46em, 0 -.83em 0 -.477em
  }

  10%,
  59% {
    box-shadow: 0 -.83em 0 -0.4em, -.087em -.825em 0 -0.42em, -.173em -.812em 0 -0.44em, -.256em -.789em 0 -0.46em, -.297em -.775em 0 -.477em
  }

  20% {
    box-shadow: 0 -.83em 0 -0.4em, -.338em -.758em 0 -0.42em, -.555em -.617em 0 -0.44em, -.671em -.488em 0 -0.46em, -.749em -.34em 0 -.477em
  }

  38% {
    box-shadow: 0 -.83em 0 -0.4em, -.377em -.74em 0 -0.42em, -.645em -.522em 0 -0.44em, -.775em -.297em 0 -0.46em, -.82em -.09em 0 -.477em
  }

  100% {
    box-shadow: 0 -.83em 0 -0.4em, 0 -.83em 0 -0.42em, 0 -.83em 0 -0.44em, 0 -.83em 0 -0.46em, 0 -.83em 0 -.477em
  }
}

@keyframes round {
  0% {
    transform: rotate(0deg)
  }

  100% {
    transform: rotate(360deg)
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 100% 50%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 0% 100%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes subtlePulse {
  0%, 100% {
    box-shadow: 
      0 10px 30px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(255, 255, 255, 0.15),
      inset 0 1px 2px rgba(255, 255, 255, 0.2),
      0 0 30px rgba(37, 117, 252, 0.2);
  }
  50% {
    box-shadow: 
      0 10px 30px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(255, 255, 255, 0.2),
      inset 0 1px 2px rgba(255, 255, 255, 0.3),
      0 0 40px rgba(37, 117, 252, 0.3);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(300%) rotate(45deg);
  }
}

@keyframes pulseHint {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

.trnsIn {
  transform: none !important;
  display: block !important;
}

.trns {
  transform: rotate3d(0, 1, 0, -90deg) !important;
  display: none !important;
}

input[type="submit"] {
  width: 75% !important;
  margin: 12px auto !important;
  display: block !important;
  color: #fff !important;
  font-size: 1.4rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  padding: 14px 20px !important;
  cursor: pointer !important;
  letter-spacing: 0.5px !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%) !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(37, 117, 252, 0.4) !important;
  border: none !important;
  font-family: 'Montserrat', sans-serif !important;
}

input[type="submit"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(37, 117, 252, 0.6) !important;
}

.text-margin-top {
  margin-top: 1rem;
}