@font-face {
  font-family: "Noto Devanagari";
  src: url("./img/noto-devanagari.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A;
}
:root {
  color-scheme: dark;
  --pink: #ff249a;
  --text: #fff9fd;
  --gutter: 24px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: "Noto Devanagari", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #100419;
  color: var(--text);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-width: 280px; min-height: 100%; }
body {
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 19% 28%, #371133 0, transparent 46%),
    radial-gradient(ellipse at 83% 69%, #22114a 0, transparent 43%),
    #100419;
  -webkit-font-smoothing: antialiased;
}
.landing {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: #170522;
}
.scene, .scene-shade, .atmosphere, .bokeh, .sparkles { position: absolute; inset: 0; pointer-events: none; }
.scene { z-index: -1; overflow: hidden; }
.portrait {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 32%;
  transform: scale(1.025);
  transform-origin: 50% 28%;
  animation: portrait-drift 15s ease-in-out infinite alternate;
  will-change: transform;
}
.scene-shade {
  background:
    linear-gradient(180deg, rgb(10 2 19 / .28) 0%, transparent 14%, transparent 42%, rgb(10 3 16 / .08) 56%, rgb(7 2 14 / .68) 76%, rgb(6 2 12 / .95) 100%);
}
.atmosphere {
  /* Keep animated light at the edges so the face stays clear. */
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgb(0 0 0 / .9) 13%, transparent 32%, transparent 68%, rgb(0 0 0 / .9) 87%, #000 100%);
  mask-image: linear-gradient(90deg, #000 0%, rgb(0 0 0 / .9) 13%, transparent 32%, transparent 68%, rgb(0 0 0 / .9) 87%, #000 100%);
}
.neon-haze {
  position: absolute;
  width: 78%;
  height: 62%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: .4;
  animation: light-breathe 9s ease-in-out infinite alternate;
}
.haze-pink {
  top: 6%;
  left: -39%;
  background: radial-gradient(ellipse, rgb(255 35 157 / .85), rgb(255 35 157 / .24) 38%, transparent 70%);
}
.haze-violet {
  right: -39%;
  top: 29%;
  background: radial-gradient(ellipse, rgb(142 94 255 / .9), rgb(142 94 255 / .24) 38%, transparent 70%);
  animation-duration: 11s;
  animation-delay: -6s;
  animation-direction: alternate-reverse;
}
.bokeh i {
  --glow: 255 87 206;
  --drift-x: 14px;
  position: absolute;
  width: var(--size, 40px);
  height: var(--size, 40px);
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 231 251 / .84) 0%, rgb(var(--glow) / .68) 24%, rgb(var(--glow) / .18) 48%, transparent 72%);
  filter: blur(2px);
  mix-blend-mode: screen;
  opacity: .4;
  animation: bokeh-drift 10s ease-in-out infinite alternate;
}
.bokeh i:nth-child(1) { left: -3%; top: 18%; --size: 56px; animation-delay: -2s; }
.bokeh i:nth-child(2) { right: 1%; top: 9%; --size: 34px; --glow: 173 135 255; animation-duration: 12s; animation-delay: -7s; }
.bokeh i:nth-child(3) { left: 6%; top: 52%; --size: 30px; animation-duration: 9s; animation-delay: -6s; }
.bokeh i:nth-child(4) { right: -4%; top: 40%; --size: 62px; --glow: 170 122 255; --drift-x: -12px; animation-duration: 11s; animation-delay: -3s; }
.bokeh i:nth-child(5) { left: 1%; top: 72%; --size: 46px; animation-duration: 13s; animation-delay: -8s; }
.bokeh i:nth-child(6) { right: 9%; top: 65%; --size: 27px; --glow: 206 145 255; --drift-x: -9px; animation-duration: 8s; animation-delay: -5s; }
.bokeh i:nth-child(7) { left: 15%; top: 5%; --size: 24px; animation-duration: 11s; animation-delay: -4s; }
.bokeh i:nth-child(8) { right: 5%; top: 26%; --size: 26px; --drift-x: -16px; animation-duration: 9s; animation-delay: -1s; }
.brand {
  position: absolute;
  top: max(22px, env(safe-area-inset-top, 0px));
  left: var(--gutter);
  right: var(--gutter);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(19px, 5.7vw, 30px);
  font-size: clamp(19px, 5.7cqw, 32px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.055em;
  white-space: nowrap;
  text-shadow: 0 2px 14px rgb(6 1 13 / .22);
  animation: enter 850ms ease-out both;
}
.brand span:not(.landing-copy-text) { color: #f820df; }
.brand, .brand .landing-copy-text { overflow: hidden; text-overflow: ellipsis; }
.bubble-wrap {
  position: absolute;
  right: var(--gutter);
  bottom: 44.5%;
  width: 49%;
  max-width: 245px;
  margin: 0;
  animation: bubble-float 4.8s ease-in-out infinite;
}
.speech-bubble {
  position: relative;
  padding: 13px 15px 15px;
  background: linear-gradient(135deg, rgb(53 30 74 / .9), rgb(27 17 44 / .91));
  border: 1px solid rgb(206 137 255 / .7);
  border-radius: 19px 19px 5px 19px;
  box-shadow: 0 8px 28px rgb(7 2 15 / .24), inset 0 1px 0 rgb(255 255 255 / .08);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  animation: enter 850ms 350ms ease-out both;
}
.speech-bubble::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: -8px;
  width: 14px;
  height: 14px;
  border-right: 1px solid rgb(206 137 255 / .7);
  border-bottom: 1px solid rgb(206 137 255 / .7);
  background: #21142f;
  border-radius: 0 0 4px 0;
  transform: skewY(27deg);
}
.bubble-label {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #d591ff;
  line-height: 1.5;
}
.bubble-message {
  margin: 0;
  font-size: clamp(15px, 4.1vw, 22px);
  font-size: clamp(15px, 4.1cqw, 22px);
  line-height: 1.5;
  font-weight: 500;
}
.typing { display: none; height: 24px; align-items: center; gap: 5px; }
.typing i {
  width: 5px; height: 5px; border-radius: 50%; background: #e5beff;
  animation: typing-dot 950ms ease-in-out infinite;
}
.typing i:nth-child(2) { animation-delay: 130ms; }
.typing i:nth-child(3) { animation-delay: 260ms; }
.is-typing .typing { display: flex; }
.is-typing .bubble-message { display: none; }
.invitation {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(20px + var(--safe-bottom));
  animation: enter 950ms 200ms ease-out both;
}
h1 {
  margin: 0 0 6px;
  font-size: clamp(43px, 14.3vw, 72px);
  font-size: clamp(30px, 11cqw, 62px);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-shadow: 0 4px 20px rgb(4 1 10 / .25);
}
.headline-line { display: block; white-space: normal; }
h1 em { color: #ff72da; font-style: normal; }
html[lang="ja"] h1 { font-size: clamp(28px, 9cqw, 48px); }
html[lang="hi"] h1 { line-height: 1.3; }
.subtitle {
  margin: 3px 0 21px;
  font-size: clamp(15px, 4.35vw, 21px);
  font-size: clamp(15px, 4.35cqw, 23px);
  font-weight: 500;
  line-height: 1.65;
  color: #fbf2fb;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.cta-wrap { position: relative; isolation: isolate; padding: 2px 0; }
.cta-wrap::before, .cta-wrap::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 2px 0;
  border: 2px solid rgb(255 110 203 / .72);
  border-radius: 999px;
  box-shadow: 0 0 16px rgb(255 39 154 / .24);
  pointer-events: none;
  opacity: 0;
  animation: button-ripple 2.1s ease-out infinite;
}
.cta-wrap::after { animation-delay: -1.05s; }
.landing-copy-image { display: block; max-inline-size: 100%; block-size: auto; max-block-size: var(--copy-image-height); object-fit: contain; }
.copy-with-image { display: flex; align-items: center; gap: .35em; }
.landing-copy-text { min-inline-size: 0; }
.brand .landing-copy-image {
  width: auto;
  height: 1em;
  max-width: min(100%, 10em);
  object-position: left center;
}
#headline { --copy-image-height: 2lh; }
.subtitle { --copy-image-height: 1lh; }
.button-label { --copy-image-height: 1em; }
.subtitle.copy-with-image, .button-label.copy-with-image { justify-content: center; }
.copy-with-image > .landing-copy-image {
  --copy-image-height: .9em;
  max-inline-size: min(33%, 3em);
  height: auto;
  flex: none;
}

.chat-button {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 65px;
  padding: 14px 22px 10px;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgb(255 153 218 / .4);
  border-radius: 999px;
  background: linear-gradient(112deg, #fb1b8f 0%, #ff288e 48%, #f624a3 100%);
  box-shadow: 0 7px 24px rgb(255 27 143 / .3);
  animation: button-breathe 2.1s ease-in-out infinite;
  transition: filter 180ms ease;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.button-label {
  position: relative;
  z-index: 1;
  font-size: clamp(25px, 7.4vw, 38px);
  font-size: clamp(18px, 5.8cqw, 30px);
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  min-inline-size: 0;
  overflow-wrap: anywhere;
}
.button-arrow { width: 29px; height: 29px; flex-shrink: 0; transition: transform 200ms ease; }
.button-shine {
  position: absolute;
  top: -30%;
  left: -50%;
  width: 35%;
  height: 160%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / .21), transparent);
  transform: skewX(-22deg);
  animation: button-sheen 4.2s 1.2s ease-in-out infinite;
  pointer-events: none;
}
.chat-button:hover { filter: brightness(1.07); }
.chat-button:hover .button-arrow { transform: translateX(4px); }
.chat-button:active { animation-play-state: paused; filter: brightness(.95); }
.chat-button:focus-visible { outline: 3px solid #fff; outline-offset: 6px; }
:root[data-cta-test] :is(.chat-button, [data-landing-cta]) { animation: none; cursor: pointer; }
.disclosure {
  margin: 17px 0 0;
  color: #bcaac9;
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .01em;
}
.disclosure span { margin-left: 4px; }
.sparkles i {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #ffe7f8;
  box-shadow: 0 0 9px #ff6eda;
  opacity: 0;
  animation: sparkle-rise 8s ease-in-out infinite;
}
.sparkles i:nth-child(1) { left: 8%; top: 64%; animation-delay: -1s; }
.sparkles i:nth-child(2) { left: 92%; top: 27%; animation-delay: -5s; }
.sparkles i:nth-child(3) { left: 13%; top: 33%; animation-delay: -3s; }
.sparkles i:nth-child(4) { left: 88%; top: 71%; animation-delay: -6s; }
.sparkles i:nth-child(5) { left: 95%; top: 43%; animation-delay: -2s; }
.sparkles i:nth-child(6) { left: 5%; top: 84%; animation-delay: -7s; }
.sparkles i:nth-child(7) { left: 17%; top: 18%; animation-delay: -4s; }
.sparkles i:nth-child(8) { left: 83%; top: 52%; animation-delay: -1.5s; }
.sparkles i:nth-child(9) { left: 4%; top: 46%; animation-delay: -5.5s; }
.sparkles i:nth-child(10) { left: 96%; top: 13%; animation-delay: -3.5s; }

@keyframes portrait-drift {
  from { transform: scale(1.025) translateY(0); }
  to { transform: scale(1.06) translateY(-.45%); }
}
@keyframes light-breathe {
  from { opacity: .3; transform: translate3d(-4%, 6%, 0) scale(.93); }
  to { opacity: .68; transform: translate3d(8%, -9%, 0) scale(1.12); }
}
@keyframes bokeh-drift {
  0% { opacity: .24; transform: translate3d(0, 18px, 0) scale(.8); }
  50% { opacity: .7; }
  100% { opacity: .38; transform: translate3d(var(--drift-x), -55px, 0) scale(1.18); }
}
@keyframes bubble-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes button-breathe {
  0%, 100% { transform: scale(.98); box-shadow: 0 6px 22px rgb(255 27 143 / .32), 0 0 12px rgb(255 65 164 / .18); }
  50% { transform: scale(1.07); box-shadow: 0 10px 42px rgb(255 27 143 / .68), 0 0 34px rgb(255 65 164 / .4); }
}
@keyframes button-ripple {
  0% { transform: scale(.98); opacity: .65; }
  35% { opacity: .48; }
  100% { transform: scale(1.105, 1.48); opacity: 0; }
}
@keyframes button-sheen {
  0%, 68% { left: -50%; opacity: 0; }
  72% { opacity: 1; }
  100% { left: 140%; opacity: 0; }
}
@keyframes typing-dot {
  0%, 75%, 100% { transform: translateY(0); opacity: .45; }
  35% { transform: translateY(-4px); opacity: 1; }
}
@keyframes sparkle-rise {
  0%, 100% { opacity: 0; transform: translate3d(0, 20px, 0) scale(.6); }
  30%, 60% { opacity: .85; }
  85% { opacity: 0; transform: translate3d(9px, -80px, 0) scale(1.2); }
}
@keyframes enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-height: 720px) {
  :root { --gutter: 20px; }
  .brand { top: max(18px, env(safe-area-inset-top, 0px)); }
  .invitation { bottom: calc(14px + var(--safe-bottom)); }
  .subtitle { font-size: clamp(14px, 3.8cqw, 18px); margin-bottom: 14px; }
  .chat-button { min-height: 58px; padding-top: 11px; padding-bottom: 9px; }
  .disclosure { margin-top: 12px; font-size: 11px; }
  .bubble-wrap { bottom: 43%; width: 48%; }
  .speech-bubble { padding: 10px 12px 12px; border-radius: 16px 16px 5px 16px; }
  .bubble-message { font-size: 14px; }
}
@media (min-width: 600px) {
  body { min-height: 100svh; padding: 18px; }
  .landing {
    height: calc(100vh - 36px);
    height: calc(100dvh - 36px);
    width: min(560px, calc((100svh - 36px) * .5625));
    width: min(560px, calc((100dvh - 36px) * .5625));
    min-height: 0;
    border-radius: 24px;
    box-shadow: 0 0 0 1px rgb(228 174 255 / .13), 0 22px 100px rgb(0 0 0 / .6), 0 0 80px rgb(166 37 191 / .08);
  }
}
@media (max-width: 359px) and (max-height: 620px) {
  @supports not (font-size: 1cqw) {
    h1 { font-size: 38px; }
  }
  .subtitle { font-size: 13px; }
  .bubble-wrap { bottom: 44%; width: 56%; }
  .speech-bubble { padding: 9px 11px 11px; }
  .bubble-label { font-size: 11px; margin-bottom: 3px; }
  .bubble-message { font-size: 13px; line-height: 1.35; }
}
@media (max-height: 620px) and (orientation: portrait) {
  h1 { font-size: clamp(26px, 9cqw, 42px); }
  .subtitle { font-size: 13px; margin-bottom: 10px; }
  .button-label { font-size: 20px; }
  .chat-button { min-height: 48px; padding: 10px 16px; }
  .disclosure { margin-top: 8px; }
  .bubble-wrap { bottom: 48%; }
}
@media (orientation: landscape) and (max-height: 600px) {
  body { padding: 0; }
  .landing { width: 100%; height: 100vh; height: 100dvh; min-height: 0; border-radius: 0; }
  .portrait { object-position: center 30%; }
  .brand { font-size: 20px; }
  .invitation { left: 50%; right: 24px; bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
  h1, html[lang="ja"] h1 { font-size: clamp(22px, 5vh, 34px); }
  .subtitle { font-size: 13px; margin-bottom: 8px; }
  .button-label { font-size: 18px; }
  .chat-button { min-height: 44px; padding: 8px 16px; }
  .disclosure { margin-top: 6px; }
  .bubble-wrap { left: 24px; right: auto; bottom: 20%; width: 34%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .portrait { transform: none; will-change: auto; }
  .cta-wrap::before, .cta-wrap::after { opacity: 0; }
}
body.is-backgrounded *, body.is-backgrounded *::before, body.is-backgrounded *::after { animation-play-state: paused !important; }

/* Config-enabled message CTA: a full-width link with the shared destination. */
.bubble-wrap.bubble-wrap--cta {
  left: var(--gutter);
  right: var(--gutter);
  bottom: 34%;
  width: auto;
  max-width: none;
  animation: none;
}
.message-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 14px;
  min-height: 94px;
  padding: 17px 18px;
  border: 1px solid rgb(255 218 245 / .85);
  border-radius: 24px;
  background: linear-gradient(115deg, #bd086e, #b01c94 60%, #7d28b0);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 10px 28px rgb(68 2 47 / .42), 0 0 22px rgb(255 72 183 / .36), inset 0 1px 0 rgb(255 255 255 / .25);
  animation: message-cta-glow 3.6s ease-in-out infinite;
  transition: transform 180ms ease, filter 180ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.message-cta::after { content: none; }
.message-cta .bubble-label {
  grid-column: 1;
  color: #ffe0f3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  margin: 0 0 5px;
}
.message-cta .bubble-message {
  grid-column: 1;
  font-size: clamp(18px, 5.5cqw, 27px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.message-cta-action {
  grid-column: 2;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff5fc;
  color: #a40f78;
  box-shadow: 0 3px 12px rgb(53 0 38 / .18);
}
.message-cta-arrow { width: 25px; height: 25px; transition: transform 180ms ease; }
.message-cta .button-shine { z-index: -1; }
@media (hover: hover) {
  .message-cta:hover { filter: brightness(1.1); transform: translateY(-2px); }
  .message-cta:hover .message-cta-arrow { transform: translateX(3px); }
}
.message-cta:active { transform: scale(.98); filter: brightness(.96); }
.message-cta:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
@keyframes message-cta-glow {
  0%, 100% { box-shadow: 0 10px 28px rgb(68 2 47 / .42), 0 0 18px rgb(255 72 183 / .28), inset 0 1px 0 rgb(255 255 255 / .25); }
  50% { box-shadow: 0 10px 32px rgb(68 2 47 / .48), 0 0 30px rgb(255 72 183 / .55), inset 0 1px 0 rgb(255 255 255 / .25); }
}
@media (max-width: 359px) {
  .message-cta { column-gap: 10px; padding: 14px; border-radius: 20px; min-height: 86px; }
  .message-cta-action { width: 40px; height: 40px; }
}
@media (orientation: landscape) and (max-height: 600px) {
  .bubble-wrap.bubble-wrap--cta { left: 24px; right: 54%; bottom: 20%; }
  .message-cta { min-height: 80px; padding: 12px 14px; }
  .message-cta .bubble-message { font-size: 18px; }
}

:root[data-landing="minimal"] .landing { background: #141414; }
:root[data-landing="minimal"] .atmosphere { display: none; }
:root[data-landing="minimal"] .brand span:not(.landing-copy-text) { color: inherit; }
:root[data-landing="minimal"] .portrait { animation: none; transform: none; }
:root[data-landing="minimal"] .scene-shade { background: linear-gradient(transparent 48%, #121212 100%); }
:root[data-landing="minimal"] .chat-button {
  background: #f5f1e9;
  color: #171717;
  box-shadow: none;
  border: 0;
}
:root[data-landing="minimal"] .button-shine,
:root[data-landing="minimal"] .cta-wrap::before,
:root[data-landing="minimal"] .cta-wrap::after { display: none; }

:root[data-landing="card"] .landing {
  background: #f5ede1;
  color: #281e26;
}
:root[data-landing="card"] .scene {
  inset: clamp(70px, 12dvh, 120px) 16px clamp(112px, 21dvh, 165px);
  border-radius: 20px;
  background: #d8bfb2;
}
:root[data-landing="card"] .portrait { animation: none; transform: none; }
:root[data-landing="card"] .brand { color: #281e26; text-shadow: none; }
:root[data-landing="card"] .brand span:not(.landing-copy-text) { color: #8c354d; }
:root[data-landing="card"] .scene-shade,
:root[data-landing="card"] .atmosphere,
:root[data-landing="card"] .button-shine,
:root[data-landing="card"] .cta-wrap::before,
:root[data-landing="card"] .cta-wrap::after { display: none; }
:root[data-landing="card"] .chat-button { background: #65324c; color: white; box-shadow: none; border: 0; }
:root[data-landing="card"] .disclosure { color: #493b44; }
