:root {
  --bg-1: #030817;
  --bg-2: #07142e;
  --cyan: #20dcff;
  --blue: #3d7cff;
  --purple: #945cff;
  --pink: #ff4bd8;
  --text: #f8fbff;
  --muted: #aebbd7;
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% -10%, rgba(32,220,255,.22), transparent 34%),
    radial-gradient(circle at 10% 70%, rgba(148,92,255,.24), transparent 30%),
    linear-gradient(155deg, var(--bg-1), var(--bg-2) 52%, #0d1230);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0 44%, rgba(255,255,255,.025) 45% 46%, transparent 47% 100%);
  background-size: 160px 160px;
  animation: drift 14s linear infinite;
}

.page-shell {
  position: relative;
  z-index: 2;
  width: min(100%, 520px);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: center;
  perspective: 1200px;
}

.hero-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.15);
  background: linear-gradient(165deg, rgba(18,42,83,.86), rgba(8,13,36,.82));
  box-shadow:
    0 36px 85px rgba(0,0,0,.5),
    0 0 0 1px rgba(66,213,255,.08) inset,
    0 -20px 70px rgba(103,67,255,.13) inset;
  backdrop-filter: blur(18px);
  transform-style: preserve-3d;
  transition: transform .18s ease-out;
  animation: cardIn .8s cubic-bezier(.2,.8,.2,1) both;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -2;
  border-radius: inherit;
  background: conic-gradient(from 180deg, transparent, rgba(32,220,255,.45), transparent, rgba(148,92,255,.35), transparent);
  filter: blur(22px);
  opacity: .55;
  animation: spinGlow 9s linear infinite;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0, rgba(255,255,255,.09), transparent 35%);
  pointer-events: none;
}

.badge {
  width: max-content;
  margin: 0 auto 14px;
  padding: 8px 12px;
  border: 1px solid rgba(102,223,255,.25);
  border-radius: 999px;
  color: #dffaff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  background: rgba(10,28,58,.72);
  box-shadow: 0 8px 25px rgba(0,0,0,.25);
  transform: translateZ(28px);
}

.badge-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #61ffb8;
  box-shadow: 0 0 12px #61ffb8;
  animation: pulse 1.4s ease-in-out infinite;
}

.visual-wrap {
  position: relative;
  aspect-ratio: 1;
  border-radius: 23px;
  transform: translateZ(42px);
}

.hero-image {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.2);
  box-shadow:
    0 24px 45px rgba(0,0,0,.42),
    0 0 36px rgba(33,218,255,.17);
  animation: floatImage 4.2s ease-in-out infinite;
}

.visual-glow {
  position: absolute;
  inset: 10%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62,204,255,.55), rgba(147,78,255,.28) 45%, transparent 72%);
  filter: blur(34px);
  animation: breathe 3.8s ease-in-out infinite;
}

.image-reflection {
  position: absolute;
  z-index: 3;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.image-reflection::after {
  content: "";
  position: absolute;
  top: -35%;
  left: -70%;
  width: 55%;
  height: 180%;
  transform: rotate(20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  animation: sweep 5s ease-in-out infinite 1s;
}

.copy {
  padding: 22px 6px 14px;
  text-align: center;
  transform: translateZ(30px);
}

.eyebrow {
  margin: 0 0 8px;
  color: #6beaff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
}

h1 {
  margin: 0;
  font-size: clamp(27px, 7vw, 38px);
  line-height: 1.05;
  letter-spacing: -.045em;
  text-shadow: 0 8px 24px rgba(0,0,0,.35);
}

h1 span {
  background: linear-gradient(90deg, #61eaff, #a892ff 56%, #ff83e9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.description {
  max-width: 390px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.actions {
  display: grid;
  grid-template-columns: .9fr 1.25fr;
  gap: 10px;
  transform: translateZ(36px);
}

.btn {
  position: relative;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  overflow: hidden;
  border-radius: 16px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
  color: white;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 14px 28px rgba(0,0,0,.3), 0 2px 0 rgba(255,255,255,.15) inset;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.24) 45%, transparent 70%);
  transform: translateX(-120%);
  animation: btnShine 3.4s ease-in-out infinite;
}

.btn:active { transform: translateY(2px) scale(.985); }
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }

.btn-login {
  background: linear-gradient(145deg, #152e62, #234a9c);
}

.btn-register {
  background: linear-gradient(145deg, #6f42f5, #c13ee5 65%, #fa4ca8);
  box-shadow: 0 14px 36px rgba(154,62,238,.35), 0 2px 0 rgba(255,255,255,.18) inset;
  animation: ctaPulse 2.6s ease-in-out infinite;
}

.btn-icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 9px;
  background: rgba(255,255,255,.13);
  font-size: 14px;
}

.trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 13px;
  margin-top: 17px;
  color: #8493b7;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .03em;
}

.trust-row span { display: flex; align-items: center; gap: 5px; }
.trust-row i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #40dfff;
  box-shadow: 0 0 8px #40dfff;
}

.footer-note {
  margin: 15px 0 0;
  text-align: center;
  color: rgba(188,201,228,.55);
  font-size: 10px;
}

.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: .42;
}
.ambient-one { width: 260px; height: 260px; top: -80px; right: -80px; background: #16d9ff; animation: orb1 10s ease-in-out infinite; }
.ambient-two { width: 300px; height: 300px; bottom: -120px; left: -120px; background: #9c54ff; animation: orb2 12s ease-in-out infinite; }

.grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .11;
  background-image: linear-gradient(rgba(122,188,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(122,188,255,.35) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, transparent, black 30%, black 65%, transparent);
}

.particles::before,
.particles::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.8) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(85,226,255,.8) 0 1px, transparent 1.8px);
  background-position: 10% 20%, 85% 55%;
  background-size: 150px 170px, 210px 190px;
  animation: particles 18s linear infinite;
  opacity: .25;
}
.particles::after { animation-duration: 25s; animation-direction: reverse; transform: scale(1.3); opacity: .17; }

.shine {
  position: absolute;
  z-index: 5;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 15%), rgba(255,255,255,.12), transparent 32%);
  mix-blend-mode: screen;
}

@keyframes cardIn { from { opacity: 0; transform: translateY(24px) rotateX(8deg) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes floatImage { 0%,100% { transform: translateY(0) rotateX(0); } 50% { transform: translateY(-6px) rotateX(1.2deg); } }
@keyframes pulse { 50% { opacity: .45; transform: scale(.8); } }
@keyframes breathe { 50% { transform: scale(1.13); opacity: .72; } }
@keyframes sweep { 0%, 20% { transform: translateX(0) rotate(20deg); opacity: 0; } 40% { opacity: 1; } 60%,100% { transform: translateX(370%) rotate(20deg); opacity: 0; } }
@keyframes btnShine { 0%, 55% { transform: translateX(-120%); } 75%,100% { transform: translateX(140%); } }
@keyframes ctaPulse { 0%,100% { box-shadow: 0 14px 36px rgba(154,62,238,.35), 0 2px 0 rgba(255,255,255,.18) inset; } 50% { box-shadow: 0 18px 44px rgba(255,70,196,.46), 0 0 0 2px rgba(255,255,255,.06), 0 2px 0 rgba(255,255,255,.18) inset; } }
@keyframes spinGlow { to { transform: rotate(360deg); } }
@keyframes drift { to { background-position: 160px 160px; } }
@keyframes particles { to { background-position: 10% 120%, 85% 155%; } }
@keyframes orb1 { 50% { transform: translate(-50px, 90px) scale(1.15); } }
@keyframes orb2 { 50% { transform: translate(70px, -60px) scale(.9); } }

@media (max-width: 380px) {
  .page-shell { padding-left: 11px; padding-right: 11px; }
  .hero-card { padding: 13px; border-radius: 23px; }
  .visual-wrap { border-radius: 19px; }
  .actions { grid-template-columns: 1fr; }
  .btn { min-height: 52px; }
}

@media (min-width: 700px) {
  .page-shell { width: min(100%, 560px); padding-block: 34px; }
  .hero-card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .hero-card { transition: none; }
}
