* { box-sizing: border-box; }

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

body {
  background: #070b14;
  color: #f4f7fb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.hidden { display: none !important; }

.cw-landing-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 18px calc(28px + env(safe-area-inset-bottom));
  overflow: auto;
  background-color: #070b14;
  background-image:
    radial-gradient(120% 80% at 100% -10%, rgba(77, 159, 255, 0.28), transparent 46%),
    radial-gradient(80% 50% at -20% 110%, rgba(124, 92, 255, 0.24), transparent 52%);
  color: #f4f7fb;
}

.cw-landing-card {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: rgba(10, 16, 30, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 22px 18px 16px;
  text-align: left;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
}

.cw-landing-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cw-landing-card form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cw-landing-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: center;
  font-size: 16px;
  font-weight: 700;
  color: #f4f7fb;
}

.cw-landing-brand img {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.cw-landing-card h2 {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.cw-landing-card h2 span {
  color: #8ebfff;
}

.cw-landing-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 384;
  border-radius: 18px;
  overflow: hidden;
  background: #10182a;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cw-landing-carousel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cw-landing-carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.cw-landing-carousel__dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.cw-landing-carousel__dots button[aria-current="true"] {
  background: #8ebfff;
}

.cw-landing-card label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9eb0c9;
  text-align: left;
}

.cw-landing-card input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 500;
}

.cw-landing-card input::placeholder {
  color: #6f8198;
}

.cw-landing-card input:focus {
  outline: none;
  border-color: #5aa8ff;
  box-shadow: 0 0 0 3px rgba(77, 159, 255, 0.22);
}

.cw-landing-cta {
  display: block;
  width: 100%;
  text-align: center;
  background: linear-gradient(180deg, #6eb2ff 0%, #2f6fe0 100%);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 15px 18px;
  font-weight: 700;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(47, 111, 224, 0.35);
}

.cw-landing-cta:disabled {
  opacity: 0.6;
  cursor: default;
}

.cw-landing-trust {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #c5d4e8;
  font-size: 12px;
  font-weight: 600;
}

.cw-landing-trust li {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 6px 10px;
}

.cw-landing-error {
  margin: 0;
  background: rgba(248, 81, 73, 0.1);
  border: 1px solid rgba(248, 81, 73, 0.33);
  color: #ff8a80;
  border-radius: 11px;
  padding: 12px;
  font-size: 14.5px;
  text-align: left;
}

.cw-landing-confirm {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  background: rgba(4, 8, 16, 0.78);
}

.cw-landing-confirm__card {
  width: min(360px, 100%);
  background: linear-gradient(180deg, #18233a 0%, #10182a 100%);
  border: 1px solid rgba(142, 191, 255, 0.28);
  border-radius: 28px;
  padding: 22px 18px 12px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.cw-landing-confirm__card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.cw-landing-confirm__card p {
  margin: 0;
  color: #c5d4e8;
  font-size: 15px;
}

.cw-landing-confirm__facts {
  margin: 16px 0;
  display: grid;
  gap: 8px;
  text-align: left;
}

.cw-landing-confirm__facts div {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 10px 12px;
}

.cw-landing-confirm__facts dt {
  font-size: 12px;
  color: #9eb0c9;
}

.cw-landing-confirm__facts dd {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 700;
}

.cw-landing-confirm__back {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 12px;
  border: 0;
  background: transparent;
  color: #9eb0c9;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 720px) {
  .cw-landing-backdrop {
    padding: 0;
    justify-content: flex-start;
    align-items: stretch;
  }

  .cw-landing-card {
    max-width: none;
    flex: 1 0 auto;
    min-height: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
    padding: max(20px, env(safe-area-inset-top)) 18px max(16px, env(safe-area-inset-bottom));
    justify-content: space-between;
    gap: 20px;
  }

  .cw-landing-card h2 {
    font-size: 40px;
  }

  .cw-landing-carousel {
    width: calc(100% + 36px);
    margin-inline: -18px;
    border-radius: 0;
    border-inline: 0;
  }

  .cw-landing-card form {
    gap: 16px;
  }

  .cw-landing-card input,
  .cw-landing-cta {
    min-height: 54px;
  }

  .cw-landing-trust {
    width: 100%;
    justify-content: space-between;
  }

  .cw-landing-trust li {
    flex: 1;
    text-align: center;
  }
}
