:root {
  --mx: 50%;
  --my: 45%;
  --bg0: #07040d;
  --bg1: #12091e;
  --rose: #ff86b7;
  --peach: #ffc08d;
  --violet: #bc78ff;
  --lavender: #e4ccff;
  --text: rgba(255, 244, 252, 0.94);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100svh;
  overflow: hidden;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 134, 183, 0.15), transparent 28%),
    radial-gradient(circle at 7% 35%, rgba(255, 175, 135, 0.35), transparent 22%),
    radial-gradient(circle at 95% 39%, rgba(188, 120, 255, 0.45), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(255, 112, 178, 0.14), transparent 37%),
    linear-gradient(135deg, #07040d 0%, #12091e 48%, #080412 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -15%;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    radial-gradient(ellipse at 12% 72%, rgba(255, 145, 194, 0.24), transparent 42%),
    radial-gradient(ellipse at 86% 75%, rgba(202, 114, 255, 0.25), transparent 45%),
    conic-gradient(from 210deg at 22% 83%, transparent 0deg, rgba(255, 180, 140, 0.19) 36deg, rgba(255, 104, 182, 0.15) 66deg, transparent 116deg),
    conic-gradient(from 35deg at 83% 80%, transparent 0deg, rgba(238, 112, 255, 0.2) 42deg, rgba(255, 197, 145, 0.12) 84deg, transparent 125deg);
  filter: blur(34px);
  opacity: 0.9;
  animation: breathe 12s ease-in-out infinite alternate;
}

body::after {
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.76) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(255,134,183,0.48) 0 1px, transparent 1.4px);
  background-size: 120px 120px, 190px 190px;
  background-position: 0 0, 55px 70px;
  opacity: 0.22;
  mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 85%);
}

#mesh {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

.site {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 48px);
  perspective: 1200px;
}

.welcome-card {
  position: relative;
  width: min(70rem, 68vw);
  min-height: clamp(18rem, 36vh, 28rem);
  border-radius: clamp(1.8rem, 3vw, 3rem);
  display: grid;
  place-items: center;
  padding: clamp(2rem, 4vw, 4rem);
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.13), rgba(255,255,255,0.035) 42%, rgba(255,255,255,0.09)),
    radial-gradient(circle at 18% 18%, rgba(255, 155, 201, 0.14), transparent 34%),
    radial-gradient(circle at 86% 70%, rgba(191, 114, 255, 0.15), transparent 38%);
  border: 1px solid rgba(255, 215, 236, 0.38);
  box-shadow:
    0 2rem 7rem rgba(0,0,0,0.62),
    0 0 3.4rem rgba(255, 132, 190, 0.2),
    inset 0 1px 0 rgba(255,255,255,0.26),
    inset 0 -1px 0 rgba(255, 180, 215, 0.16);
  backdrop-filter: blur(21px) saturate(140%);
  -webkit-backdrop-filter: blur(21px) saturate(140%);
  transform-style: preserve-3d;
  transition: transform 180ms ease;
}

.welcome-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(255, 220, 190, 0.95), rgba(255, 132, 198, 0.7), rgba(199, 127, 255, 0.9), rgba(255, 226, 184, 0.8));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.88;
  z-index: -1;
}

.welcome-card::after {
  content: "";
  position: absolute;
  width: 46%;
  height: 150%;
  left: -26%;
  top: -25%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.16), transparent);
  transform: rotate(16deg);
  animation: shimmer 8s ease-in-out infinite;
  opacity: 0.55;
}

h1 {
  position: relative;
  z-index: 3;
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 7rem);
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.075em;
  background: linear-gradient(110deg, #fff7ef, #ffc08d 22%, #ff86b7 55%, #d8b3ff 84%);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 2.8rem rgba(255, 128, 190, 0.32);
  animation: textGlow 9s ease-in-out infinite;
}

.word {
  position: absolute;
  z-index: 2;
  margin: 0;
  white-space: nowrap;
  font-size: clamp(1.25rem, 2.2vw, 2.15rem);
  font-weight: 300;
  letter-spacing: -0.045em;
  color: rgba(255, 225, 241, 0.72);
  text-shadow: 0 0 1.4rem rgba(255, 120, 190, 0.28);
  user-select: none;
}

.word-a { left: 10%; top: 18%; color: rgba(255, 176, 214, 0.83); }
.word-b { left: 42%; top: 14%; color: rgba(255, 207, 162, 0.82); }
.word-c { right: 9%; top: 21%; color: rgba(238, 154, 255, 0.85); }
.word-d { left: 7%; top: 44%; color: rgba(255, 202, 145, 0.78); }
.word-e { right: 7%; top: 44%; color: rgba(255, 160, 207, 0.76); }
.word-f { left: 11%; bottom: 22%; color: rgba(255, 169, 217, 0.84); }
.word-g { right: 8%; bottom: 24%; color: rgba(255, 210, 170, 0.78); }
.word-h { left: 24%; bottom: 8%; color: rgba(255, 195, 167, 0.78); }
.word-i { right: 32%; bottom: 8%; color: rgba(255, 147, 199, 0.76); }

.lightline {
  position: absolute;
  z-index: 2;
  left: 31%;
  right: 31%;
  top: 66%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 142, 202, 0.85), rgba(255, 218, 183, 0.9), transparent);
  box-shadow: 0 0 1.2rem rgba(255, 129, 192, 0.8);
}

.lightline::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: #ffd6e7;
  box-shadow: 0 0 1.1rem #ff86b7, 0 0 2.4rem rgba(255, 194, 138, 0.65);
}

.signature {
  position: fixed;
  right: clamp(1rem, 5vw, 5.5rem);
  bottom: clamp(1rem, 3.5vw, 2.2rem);
  z-index: 3;
  display: flex;
  gap: 1.6rem;
  align-items: center;
  color: rgba(255, 239, 246, 0.88);
  font-size: clamp(0.9rem, 1.3vw, 1.12rem);
  letter-spacing: 0.01em;
  text-shadow: 0 0 1rem rgba(255, 130, 190, 0.18);
}

.dot { opacity: 0.85; }

@keyframes textGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes shimmer {
  0%, 35% { transform: translateX(0) rotate(16deg); opacity: 0; }
  55% { opacity: 0.55; }
  100% { transform: translateX(360%) rotate(16deg); opacity: 0; }
}

@keyframes breathe {
  from { transform: scale(1) rotate(0deg); opacity: 0.72; }
  to { transform: scale(1.06) rotate(2deg); opacity: 0.98; }
}

@media (max-width: 900px) {
  .welcome-card {
    width: min(92vw, 42rem);
    min-height: 26rem;
    padding: 2rem;
  }

  h1 { font-size: clamp(3rem, 13vw, 5.2rem); }
  .word { font-size: clamp(1.05rem, 4.2vw, 1.45rem); }
  .word-h, .word-i { display: none; }
  .word-b { left: 38%; top: 13%; }
  .word-c { right: 8%; top: 25%; }
  .word-e { right: 7%; top: 51%; }
  .word-g { right: 9%; bottom: 20%; }
  .lightline { left: 25%; right: 25%; top: 65%; }

  .signature {
    left: 50%;
    right: auto;
    bottom: max(1rem, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: calc(100vw - 2rem);
    justify-content: center;
    gap: 0.9rem;
    text-align: center;
    font-size: 0.92rem;
  }
}

@media (max-width: 520px) {
  body { overflow: hidden; }
  .site { align-items: center; padding: 1rem; }
  .welcome-card {
    width: min(94vw, 24rem);
    min-height: 24rem;
    border-radius: 1.8rem;
  }
  .word-c, .word-g { display: none; }
  .word-a { left: 10%; top: 14%; }
  .word-b { right: 10%; left: auto; top: 18%; }
  .word-d { left: 9%; top: 37%; }
  .word-e { right: 9%; top: 37%; }
  .word-f { left: 12%; bottom: 24%; }
  h1 { font-size: clamp(2.65rem, 15vw, 4.2rem); }
  .signature { flex-wrap: wrap; line-height: 1.45; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
