:root {
  --bg: #070b16;
  --card: rgba(255, 255, 255, 0.045);
  --stroke: rgba(255, 255, 255, 0.1);
  --text: #f4f7ff;
  --muted: #9aa6c2;
  --accent: #4f8cff;
  --accent-2: #8b5cf6;
}

* { box-sizing: border-box; }

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

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 18px;
  background: radial-gradient(1200px 700px at 50% -10%, #16203a 0%, var(--bg) 55%, #04060d 100%);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.glow--one {
  width: 460px; height: 460px;
  top: -160px; left: -120px;
  background: #2f6bff;
  animation: drift 16s ease-in-out infinite alternate;
}
.glow--two {
  width: 420px; height: 420px;
  bottom: -180px; right: -140px;
  background: #7c3aed;
  animation: drift 20s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(40px, 30px, 0) scale(1.15); }
}

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  padding: 52px 34px 44px;
  text-align: center;
  border: 1px solid var(--stroke);
  border-radius: 28px;
  background: var(--card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.title {
  margin: 0;
  font-size: clamp(2.6rem, 9vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.02;
  background: linear-gradient(180deg, #ffffff 25%, #9fb6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  margin: 14px auto 0;
  max-width: 26ch;
  font-size: clamp(0.98rem, 2.6vw, 1.12rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--muted);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.social {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.05);
  color: #dfe7ff;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.25s ease, color 0.25s ease,
              box-shadow 0.25s ease, border-color 0.25s ease;
}
.social svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  transition: transform 0.25s ease;
}
.social:hover,
.social:focus-visible {
  transform: translateY(-5px) scale(1.06);
  color: #fff;
  outline: none;
}
.social:hover svg { transform: scale(1.05); }

.social--whatsapp:hover  { background: #25d366; border-color: #25d366; box-shadow: 0 12px 28px -8px #25d366; }
.social--snapchat:hover  { background: #fffc00; border-color: #fffc00; color: #111; box-shadow: 0 12px 28px -8px #fffc00; }
.social--facebook:hover  { background: #1877f2; border-color: #1877f2; box-shadow: 0 12px 28px -8px #1877f2; }
.social--instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: #dc2743; box-shadow: 0 12px 28px -8px #dc2743; }
.social--tiktok:hover    { background: #010101; border-color: #25f4ee; color: #fff; box-shadow: 0 12px 28px -8px #25f4ee; }
.social--x:hover         { background: #000; border-color: #333; box-shadow: 0 12px 28px -8px #555; }
.social--telegram:hover  { background: #26a5e4; border-color: #26a5e4; box-shadow: 0 12px 28px -8px #26a5e4; }
.social--youtube:hover   { background: #ff0033; border-color: #ff0033; box-shadow: 0 12px 28px -8px #ff0033; }

.loader {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.spinner {
  position: relative;
  width: 46px;
  height: 46px;
  margin: 0 auto 18px;
}
.spinner span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--accent);
  animation: spin 1.1s linear infinite;
}
.spinner span:nth-child(2) {
  inset: 7px;
  border-top-color: var(--accent-2);
  animation-duration: 1.5s;
  animation-direction: reverse;
}
.spinner span:nth-child(3) {
  inset: 14px;
  border-top-color: #22d3ee;
  animation-duration: 0.9s;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.loader__text {
  margin: 0;
  font-size: clamp(0.9rem, 2.4vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #c8d4f0;
}

.dots i {
  font-style: normal;
  opacity: 0.25;
  animation: blink 1.4s infinite;
}
.dots i:nth-child(2) { animation-delay: 0.2s; }
.dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink {
  0%, 60%, 100% { opacity: 0.2; }
  30%           { opacity: 1; }
}

.bar {
  width: min(260px, 80%);
  height: 4px;
  margin: 22px auto 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}
.bar__fill {
  width: 40%;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), #22d3ee);
  animation: slide 1.9s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes slide {
  0%   { transform: translateX(-110%); }
  100% { transform: translateX(280%); }
}

@media (max-width: 480px) {
  .card { padding: 40px 20px 34px; border-radius: 22px; }
  .socials { gap: 10px; }
  .social { width: 48px; height: 48px; border-radius: 14px; }
  .social svg { width: 21px; height: 21px; }
}

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