:root {
  --bg: #000000;
  --ink: #ffffff;
  --ink-soft: #9a979e;
  --pink: #e21a83;
  --pill: #1c1b1e;
  --card: #141316;
  --ring: rgba(226, 26, 131, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

.nav, main, .foot { position: relative; z-index: 1; }

/* nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 24px 8px;
}
.brand { display: flex; align-items: center; text-decoration: none; color: var(--ink); }
.brand__name {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-style: italic;
  font-size: 26px;
  letter-spacing: -0.01em;
}
.nav__cta {
  display: none;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  color: #000;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
}

/* hero */
.hero {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 24px 40px;
  text-align: left;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--pill);
  border: 1px solid #555555;
  padding: 8px 18px 8px 8px;
  border-radius: 999px;
  margin: 12px 0 32px;
}
.badge__avatars { display: flex; }
.badge__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--pill);
}
.badge__avatars .badge__avatar + .badge__avatar { margin-left: -14px; }
.badge__text {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.badge__star { font-size: 13px; }

.hero__title {
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 50px;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
}
.hero__title .accent {
  background: linear-gradient(90deg, #ef1f6e, #bc04c2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  font-family: "Nunito", sans-serif;
  font-weight: 500;
  font-size: clamp(1rem, 2.6vw, 1.1rem);
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 0 50px;
}

/* join form */
.join { max-width: 520px; margin: 0; display: flex; flex-direction: column; }
.join__input {
  width: 100%;
  height: 71px;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  outline: none;
  background: var(--pill);
  font-size: 18px;
  font-family: "Inter", sans-serif;
  color: var(--ink);
  padding: 0 20px;
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.join__input::placeholder { color: var(--ink-soft); transition: color 0.18s ease; }
.join__input:hover:not(:focus) {
  background: #201f24;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35), 0 4px 16px rgba(0, 0, 0, 0.28);
}
.join__input:focus-visible {
  background: #201f24;
  border-color: var(--pink);
  box-shadow: 0 0 0 4px var(--ring), inset 0 1px 2px rgba(0, 0, 0, 0.3);
}
.join__input:focus-visible::placeholder { color: rgba(255, 255, 255, 0.35); }
.join__input:not(:placeholder-shown):valid {
  border-color: rgba(62, 224, 160, 0.6);
  box-shadow: 0 0 0 3px rgba(62, 224, 160, 0.16), inset 0 1px 2px rgba(0, 0, 0, 0.3);
}
.join__input:not(:placeholder-shown):focus-visible:valid {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px var(--ring), inset 0 1px 2px rgba(0, 0, 0, 0.3);
}
.join__input.is-invalid {
  border-color: #ff6b8f;
  box-shadow: 0 0 0 4px rgba(255, 107, 143, 0.22), inset 0 1px 2px rgba(0, 0, 0, 0.3);
  animation: join-shake 0.32s ease;
}
.join__input:-webkit-autofill,
.join__input:-webkit-autofill:hover,
.join__input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px #201f24 inset;
  box-shadow: 0 0 0 1000px #201f24 inset;
  transition: background-color 9999s ease-in-out 0s, color 9999s ease-in-out 0s;
}
.join__input:autofill {
  color: var(--ink);
  caret-color: var(--ink);
  box-shadow: 0 0 0 1000px #201f24 inset;
}

@keyframes join-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.join__btn {
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: #000;
  height: 71px;
  padding: 0 22px;
  border-radius: 10px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 26px rgba(226, 26, 131, 0.16), 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.16s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.16s ease,
    background-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease,
    opacity 0.2s ease;
  white-space: nowrap;
}
.join__btn:hover:not(:disabled) {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ffffff, #ffe3f0);
  box-shadow: 0 16px 36px rgba(226, 26, 131, 0.32), 0 6px 16px rgba(0, 0, 0, 0.4);
}
.join__btn:active:not(:disabled) {
  transform: translateY(0) scale(0.97);
  filter: brightness(0.95);
  box-shadow: 0 6px 14px rgba(226, 26, 131, 0.22), 0 2px 6px rgba(0, 0, 0, 0.3);
}
.join__btn:focus-visible {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 4px var(--ring), 0 10px 26px rgba(226, 26, 131, 0.16);
}
.join__btn:disabled { cursor: default; transform: none; }
.join__btn.is-loading {
  background: var(--pill);
  color: var(--ink-soft);
  box-shadow: none;
  opacity: 1;
}
.join__btn.is-loading::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--ink-soft);
  animation: join-spin 0.7s linear infinite;
}
.join__btn.is-success {
  background: linear-gradient(135deg, #3ee0a0, #23c187);
  color: #06180f;
  box-shadow: 0 10px 26px rgba(62, 224, 160, 0.3);
}
@keyframes join-spin { to { transform: rotate(360deg); } }

.join__msg { min-height: 20px; font-size: 14px; margin: 12px 4px 0; font-weight: 500; transition: color 0.18s ease; }
.join__msg.is-error { color: #ff6b8f; }
.join__msg.is-success { color: #3ee0a0; }

/* showcase */
.showcase {
  max-width: 720px;
  margin: 40px auto 0;
  padding: 0 24px;
  text-align: center;
}
.showcase__title {
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.25;
  margin: 0 0 100px;
}

.showcase__stage {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
}
.phone { display: block; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.55)); }
.phone img { width: 100%; display: block; }

.phone--back {
  position: relative;
  width: 225px;
  margin-left: auto;
  margin-right: 20px;
  transform: rotate(6deg);
  z-index: 1;
}
.phone--front {
  position: absolute;
  left: calc(4% + 12px);
  bottom: -26%;
  width: 225px;
  transform: rotate(-9.27deg);
  z-index: 2;
}
.showcase__fade {
  position: absolute;
  left: 50%;
  bottom: -26%;
  width: 100vw;
  transform: translateX(-50%);
  height: 221px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #000 100%);
  pointer-events: none;
  z-index: 5;
}

.notif {
  position: absolute;
  top: 9%;
  left: -6%;
  width: 250px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(28, 27, 30, 0.96);
  border: 1px solid #525252;
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.55);
  transform: rotate(0deg);
  z-index: 4;
}
.notif__icon {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #000;
  border: 1px solid #514F4F;
  display: flex;
  align-items: center;
  justify-content: center;
}
.notif__icon img { width: 18px; height: 18px; transform: rotate(15deg); }
.notif__body { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.notif__title { font-size: 12px; font-weight: 700; }
.notif__msg { font-size: 11px; color: #fff; font-weight: 600; line-height: 1.3; }

.showcase__missyou {
  position: absolute;
  left: calc(4% + 2.5px);
  bottom: 11%;
  width: 250px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: #000;
  border-radius: 10px;
  padding: 0 18px;
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: clamp(1rem, 4vw, 1.35rem);
  transform: rotate(-9.27deg);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.5);
  z-index: 3;
}
.showcase__missyou .heart { font-size: 1em; }

.showcase__caption {
  position: relative;
  z-index: 6;
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: 40px;
  line-height: 1.25;
  margin: 200px 0 0;
}

/* widgets scroll */
.widgets-scroll {
  max-width: 1080px;
  margin: 0 auto;
  padding: 140px 0 20px;
}
.widgets-scroll__track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 13px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 24px;
  scroll-padding: 0 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.widgets-scroll__track::-webkit-scrollbar { display: none; }

.widget-card {
  flex: 0 0 170px;
  width: 170px;
  min-width: 170px;
  max-width: 170px;
  scroll-snap-align: start;
  text-align: left;
}
.widget-card__imgwrap {
  height: 170px;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.widget-card__img {
  width: 100%;
  display: block;
}
.widget-card__img--tilt-right {
  transform: rotate(6deg);
}
.widget-card__label {
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 6px;
}
.widget-card__title {
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  color: #fff;
  margin: 0;
}

/* mediator */
.mediator {
  max-width: 720px;
  margin: 120px auto 0;
  padding: 0 24px;
  text-align: center;
}
.mediator__title {
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.25;
  margin: 0 0 100px;
}
.mediator__stage {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
}
.mediator__phone {
  display: block;
  width: 100%;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.55));
}
.mediator__fade {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100vw;
  transform: translateX(-50%);
  height: 300px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #000 60%);
  pointer-events: none;
  z-index: 5;
}

/* memories */
.memories {
  max-width: 720px;
  margin: 120px auto 0;
  padding: 0 24px;
  text-align: center;
}
.memories__title {
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.25;
  margin: 0 0 100px;
}
.memories__stage {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
}
.memories__phone {
  display: block;
  width: 100%;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.55));
}
.memories__fade {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100vw;
  transform: translateX(-50%);
  height: 300px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #000 60%);
  pointer-events: none;
  z-index: 5;
}

/* prompts */
.prompts {
  max-width: 1080px;
  margin: 60px auto 0;
  padding: 0 0 20px;
  text-align: center;
}
.prompts__title {
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.25;
  margin: 0 0 100px;
  padding: 0 24px;
}
.prompts__track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 40px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 24px;
  scroll-padding: 0 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.prompts__track::-webkit-scrollbar { display: none; }

.prompts__card {
  flex: 0 0 60%;
  width: 60%;
  max-width: 60%;
  scroll-snap-align: start;
  padding: 10px 0;
}
.prompts__card--tilt-left img { transform: rotate(-3deg); }
.prompts__card--tilt-right img { transform: rotate(3deg); }
.prompts__card img {
  display: block;
  width: 100%;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.45));
}

/* closing join */
.closing {
  max-width: 560px;
  margin: 120px auto 0;
  padding: 0 24px 48px;
  text-align: center;
}
.closing__title {
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 34px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.closing__sub {
  font-family: "Nunito", sans-serif;
  font-weight: 500;
  font-size: clamp(1rem, 2.6vw, 1.1rem);
  color: var(--ink-soft);
  margin: 0 0 32px;
}
.closing .join { max-width: 520px; margin: 0 auto; }

/* how it works */
.how-it-works {
  max-width: 1080px;
  margin: -40px auto 0;
  padding: 0 0 20px;
  position: relative;
  z-index: 6;
}
.how-it-works__title {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 28px;
  line-height: 1.25;
  text-align: center;
  margin: 0 0 40px;
  padding: 0 24px;
}
.how-it-works__track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 24px;
  scroll-padding: 0 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.how-it-works__track::-webkit-scrollbar { display: none; }

.how-card {
  flex: 0 0 75%;
  width: 75%;
  max-width: 75%;
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 28px 24px;
  text-align: left;
}
.how-card__heading {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 12px;
}
.how-card__text {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* features */
.features {
  max-width: 1000px;
  margin: 40px auto 20px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.feature {
  background: var(--card);
  border-radius: 22px;
  padding: 26px 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.feature__icon { font-size: 30px; margin-bottom: 12px; }
.feature h3 { font-family: "Archivo", sans-serif; font-weight: 700; font-size: 19px; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* cta */
.cta {
  max-width: 720px;
  margin: 70px auto;
  padding: 48px 24px;
  text-align: center;
  background: var(--card);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.cta h2 { font-family: "Archivo", sans-serif; font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.3rem); margin: 0 0 10px; }
.cta p { color: var(--ink-soft); margin: 0 0 24px; }
.cta__link {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  color: #000;
  padding: 14px 28px;
  border-radius: 999px;
  background: #ffffff;
}

/* footer */
.foot {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}
.foot__copy {
  margin: 0;
  color: var(--ink-soft);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
}

@media (min-width: 640px) {
  .nav__cta { display: inline-block; }
  .join { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .join__input { width: auto; margin-bottom: 0; flex: 1 1 auto; min-width: 0; }
  .join__btn { flex: none; }
  .join__msg { flex: 1 1 100%; }
}

/* ============================= */
/* desktop layout (>=1024px)      */
/* ============================= */
@media (min-width: 1024px) {
  :root { --container: 1160px; }

  /* nav */
  .nav {
    max-width: var(--container);
    padding: 40px 40px 0;
  }
  .brand__name { font-size: 28px; }
  .nav__cta { padding: 12px 24px; font-size: 15px; }

  /* hero: full-height, centered, with an ambient glow to fill the space intentionally */
  .hero {
    max-width: var(--container);
    padding: 0 40px;
    margin: 0 auto;
    min-height: calc(100vh - 96px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
  }
  .hero::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -80px;
    width: 680px;
    height: 680px;
    background: radial-gradient(circle, rgba(226, 26, 131, 0.16), transparent 68%);
    transform: translateY(-50%);
    pointer-events: none;
    z-index: -1;
  }
  .badge { margin: 0 0 32px; }
  .hero__title { font-size: clamp(44px, 4vw, 62px); line-height: 1.12; max-width: 800px; margin: 0 0 16px; }
  .hero__sub { font-size: 1.2rem; max-width: 620px; margin: 0 0 44px; }
  .join { max-width: 560px; }

  /* showcase / mediator / memories: two-column, text beside phone mockup */
  .showcase,
  .mediator,
  .memories {
    max-width: var(--container);
    padding: 0 40px;
    margin-top: 150px;
    text-align: left;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    column-gap: 80px;
  }

  .showcase {
    grid-template-areas: "title stage" "caption stage";
    row-gap: 18px;
  }
  .showcase__title { grid-area: title; margin: 0; font-size: clamp(32px, 3vw, 44px); }
  .showcase__caption {
    grid-area: caption;
    margin: 0;
    font-size: 19px;
    color: var(--ink-soft);
    align-self: start;
  }
  .showcase__stage { grid-area: stage; }

  .mediator__title,
  .memories__title { margin: 0; font-size: clamp(32px, 3vw, 44px); }

  .mediator__stage,
  .memories__stage {
    max-width: 420px;
    margin: 0;
  }

  /* showcase keeps its hand-tuned two-phone composition at its native proportions
     rather than stretching, so the overlap/fade geometry stays correct */
  .showcase__stage {
    width: 380px;
    max-width: 380px;
    margin: 0;
    justify-self: end;
  }

  /* alternate sides for visual rhythm: showcase (text L), mediator (text R), memories (text L) */
  .mediator__stage { order: -1; }

  .showcase__fade,
  .mediator__fade,
  .memories__fade {
    left: 0;
    width: 100%;
    transform: none;
  }

  /* widgets: centered row, no horizontal scroll */
  .widgets-scroll {
    max-width: var(--container);
    padding: 0 40px;
    margin-top: 150px;
  }
  .widgets-scroll__track {
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
    padding: 0;
    gap: 24px;
  }

  /* mediator / memories fade sit close beneath, tighten the phone-overflow gap */
  .mediator { margin-top: 150px; }
  .memories { margin-top: 150px; }

  /* how it works: even grid, no horizontal scroll, no more negative-margin hack */
  .how-it-works {
    max-width: var(--container);
    margin: 150px auto 0;
    padding: 0 40px;
  }
  .how-it-works__title { font-size: 34px; margin: 0 0 48px; padding: 0; }
  .how-it-works__track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    overflow: visible;
    padding: 0;
  }
  .how-card { flex: none; width: auto; max-width: none; }

  /* prompts: centered heading, even grid, no horizontal scroll */
  .prompts {
    max-width: var(--container);
    margin-top: 150px;
    padding: 0 40px 60px;
  }
  .prompts__title { font-size: clamp(32px, 3vw, 44px); margin: 0 0 56px; padding: 0; }
  .prompts__track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    overflow: visible;
    padding: 0;
  }
  .prompts__card { flex: none; width: auto; max-width: none; padding: 0; }

  /* closing join */
  .closing { max-width: 640px; margin: 150px auto 0; padding: 0 40px 64px; }
  .closing__title { font-size: clamp(32px, 3vw, 40px); margin: 0 0 14px; }
  .closing__sub { font-size: 1.15rem; margin: 0 0 40px; }
  .closing .join { max-width: 540px; }

  /* footer, if present, aligns to the same container */
  .foot { max-width: var(--container); padding: 28px 40px; }
}

@media (prefers-reduced-motion: no-preference) {
  .feature { transition: transform 0.15s ease; }
  .feature:hover { transform: translateY(-3px); }
}

/* ============================= */
/* success modal                  */
/* ============================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.28s ease;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 5, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, #19181c 0%, #0e0d10 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 56px 36px 36px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 -40px 90px -40px rgba(226, 26, 131, 0.35);
  transform: translateY(18px) scale(0.96);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.28s ease;
}
.modal.is-open .modal__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.modal__close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink);
  transform: rotate(90deg);
}
.modal__icon {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal__icon-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 26, 131, 0.35), rgba(188, 4, 194, 0.12) 55%, transparent 75%);
  filter: blur(2px);
}
.modal__icon-emoji {
  position: relative;
  font-size: 40px;
  line-height: 1;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}
.modal__title {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 14px;
}
.modal__title-emoji { margin-left: 2px; }
.modal__sub {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 320px;
  margin: 0 auto 32px;
}
.modal__cta {
  width: 100%;
  height: 56px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: #000;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(226, 26, 131, 0.16), 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.16s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s ease, box-shadow 0.2s ease;
}
.modal__cta:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ffffff, #ffe3f0);
  box-shadow: 0 14px 32px rgba(226, 26, 131, 0.3), 0 6px 16px rgba(0, 0, 0, 0.4);
}
.modal__cta:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 6px 14px rgba(226, 26, 131, 0.2), 0 2px 6px rgba(0, 0, 0, 0.3);
}
.modal__cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--ring);
}

body.modal-open { overflow: hidden; }

@media (min-width: 640px) {
  .modal__panel { padding: 60px 44px 40px; }
  .modal__title { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .modal__panel { transition: opacity 0.15s ease; }
}
