:root {
  --bg: #220816;
  --panel: rgba(44, 9, 27, 0.72);
  --panel-soft: rgba(255, 255, 255, 0.07);
  --text: #fff2f6;
  --muted: #f1bfd0;
  --accent: #ff8da1;
  --accent-strong: #ff5d7a;
  --border: rgba(255, 255, 255, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(29, 7, 18, 0.35), rgba(29, 7, 18, 0.86)),
    url("assets/bg.jpg") center/cover no-repeat,
    radial-gradient(circle at top, #a21f50 0%, #56122f 34%, #220816 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 141, 161, 0.16), transparent 22%),
    radial-gradient(circle at 75% 14%, rgba(255, 93, 122, 0.16), transparent 20%);
  pointer-events: none;
}

.wrapper {
  position: relative;
  z-index: 1;
  width: min(1060px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 48px;
  display: grid;
  gap: 22px;
}

.hero,
.pulse-track,
.reply-panel {
  border-radius: 30px;
  border: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.hero,
.reply-panel {
  padding: 28px;
}

.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  justify-content: center;
}

.hero-image-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: 12px;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--accent);
  position: relative;
  z-index: 2;
  box-shadow: 0 0 20px rgba(255, 141, 161, 0.4);
}

.heartbeat-pulse-ring {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: var(--accent);
  z-index: 1;
  opacity: 0.3;
  animation: giantPulse 2s infinite ease-out;
}

@keyframes giantPulse {
  0% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.1; }
  100% { transform: scale(0.9); opacity: 0.5; }
}

.eyebrow {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: var(--muted);
}

.quote,
h1,
h2 {
  font-family: "Playfair Display", serif;
}

.quote {
  margin: 0;
  max-width: 740px;
  font-size: clamp(1.3rem, 2.9vw, 2.2rem);
  line-height: 1.36;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2.9rem, 7vw, 5.4rem);
  line-height: 0.98;
}

.intro {
  margin: 0;
  max-width: 650px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 24px;
}

.hero-actions,
.response-actions,
.pulse-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.ghost,
.pulse-button,
.response-button,
.dot {
  border: 1px solid var(--border);
  background: var(--panel-soft);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.ghost,
.pulse-button,
.response-button {
  border-radius: 999px;
  padding: 13px 18px;
}

.pulse-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #340d1c;
  font-weight: 700;
  border-color: transparent;
}

.pulse-track {
  padding: 24px;
}

.pulse-card {
  display: none;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
}

.pulse-card.active {
  display: block;
  animation: beatIn 0.4s ease;
}

.pulse-card h2,
.reply-panel h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 5vw, 3rem);
}

.pulse-card p,
.reply-form span,
.form-status {
  color: var(--muted);
}

.pulse-card p {
  margin: 0;
  line-height: 1.85;
}

.pulse-dots {
  margin-top: 18px;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  padding: 0;
}

.dot.active,
.response-button.active {
  background: rgba(255, 141, 161, 0.18);
  border-color: rgba(255, 141, 161, 0.44);
}

.reply-panel {
  display: grid;
  gap: 20px;
}

.reply-form {
  display: grid;
  gap: 16px;
}

.reply-form label {
  display: grid;
  gap: 8px;
}

.reply-form input,
.reply-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
}

.form-status {
  min-height: 24px;
  margin: 0;
}

@keyframes beatIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 720px) {
  .wrapper {
    width: min(100% - 18px, 1060px);
    padding: 18px 0 24px;
  }

  .hero,
  .pulse-track,
  .reply-panel {
    padding: 20px;
    border-radius: 24px;
  }
}
