:root {
  --bg-deep: #03060b;
  --bg-accent: #071221;
  --accent: #3be4ff;
  --accent-2: #6f7dff;
  --soft: #b4f0ff;
  --text: #edf6ff;
  --muted: #96a7c3;
  --glass: rgba(43, 69, 113, 0.25);
  --border: rgba(112, 151, 255, 0.3);
  --shadow: 0 25px 60px rgba(1, 8, 27, 0.65);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, rgba(50, 207, 255, 0.22), transparent 55%),
    radial-gradient(circle at 20% 20%, rgba(111, 125, 255, 0.3), transparent 45%),
    linear-gradient(145deg, var(--bg-deep), var(--bg-accent));
  min-height: 100vh;
  margin: 0;
  padding: 0 1.5rem 3rem;
  overflow-x: hidden;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: conic-gradient(from 90deg, rgba(59, 228, 255, 0.12), transparent 40%);
  mix-blend-mode: screen;
  opacity: 0.6;
  animation: drift 22s linear infinite;
}

body::after {
  animation-duration: 32s;
  opacity: 0.35;
}

.floating-hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.floating-hearts span {
  position: absolute;
  width: 16px;
  height: 16px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85), rgba(59, 228, 255, 0.65));
  clip-path: polygon(50% 0%, 61% 11%, 75% 12%, 84% 26%, 83% 44%, 50% 75%, 17% 44%, 16% 26%, 25% 12%, 39% 11%);
  top: calc(100% + 20px);
  left: calc(var(--i) * 8%);
  animation: floatUp 16s linear infinite;
  filter: blur(0.5px);
  opacity: 0.6;
}

.floating-hearts span:nth-child(odd) {
  animation-duration: 22s;
  transform: scale(1.2);
  opacity: 0.4;
}

.floating-hearts span:nth-child(3n) {
  animation-duration: 12s;
  background: radial-gradient(circle, rgba(111, 125, 255, 0.8), rgba(59, 228, 255, 0.6));
}

.stardust {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 120px 120px;
  mix-blend-mode: screen;
  opacity: 0.3;
  pointer-events: none;
}

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 0 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--soft);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 4rem);
  margin: 0 0 1rem;
}

.hero .intro {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.9rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  color: var(--text);
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 20px 40px rgba(59, 228, 255, 0.35);
}

.btn-secondary {
  background: linear-gradient(120deg, rgba(59, 228, 255, 0.15), rgba(111, 125, 255, 0.35));
  border: 1px solid rgba(90, 141, 255, 0.6);
  box-shadow: 0 12px 30px rgba(59, 228, 255, 0.27);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(104, 133, 187, 0.6);
  color: var(--soft);
}

.btn:hover {
  transform: translateY(-4px) scale(1.02);
}

.hero-card {
  position: relative;
  border-radius: 32px;
  padding: 2rem;
  background: var(--glass);
  border: 1px solid rgba(86, 130, 255, 0.5);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
}

.hero-card .card-glow {
  position: absolute;
  inset: -40% auto auto -20%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(59, 228, 255, 0.35), transparent 70%);
  animation: pulse 8s ease-in-out infinite;
  z-index: 0;
}

.hero-card .card-inner {
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
  color: var(--muted);
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}

.hero-card li {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.hero-card .signature {
  margin: 0;
  font-family: 'Playfair Display', serif;
  color: var(--soft);
}

main {
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  margin: 3rem 0;
  padding: 2.5rem;
  border-radius: 32px;
  background: rgba(4, 9, 18, 0.82);
  border: 1px solid rgba(77, 111, 175, 0.35);
  box-shadow: 0 20px 50px rgba(0, 6, 18, 0.8);
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 0 0 0.5rem;
}

.section-header p {
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.mood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.mood-card {
  border-radius: 24px;
  padding: 1.5rem;
  text-align: left;
  border: 1px solid rgba(101, 145, 255, 0.35);
  background: rgba(16, 29, 51, 0.6);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.4s ease, border 0.3s ease, background 0.3s ease;
}

.mood-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.mood-card p {
  margin: 0;
  color: var(--muted);
}

.mood-card:hover,
.mood-card.active {
  transform: translateY(-8px);
  border-color: rgba(59, 228, 255, 0.8);
  background: rgba(59, 228, 255, 0.13);
}

.mood-response {
  margin-top: 1.8rem;
  padding: 1.5rem;
  border-radius: 18px;
  background: rgba(15, 32, 52, 0.9);
  border: 1px solid rgba(59, 228, 255, 0.3);
  min-height: 80px;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--soft);
}

.wellness {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.wellness-card {
  border-radius: 24px;
  padding: 2rem;
  background: rgba(10, 21, 38, 0.95);
  border: 1px solid rgba(84, 124, 210, 0.35);
  box-shadow: inset 0 0 40px rgba(59, 228, 255, 0.05);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(59, 228, 255, 0.12);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--soft);
}

.wellness-card h2 {
  margin: 1rem 0;
  font-size: 2rem;
  font-family: 'Playfair Display', serif;
}

.wellness-card p {
  color: var(--muted);
  line-height: 1.7;
}

.glow-list {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.glow-list li {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.glow-list span {
  display: block;
  font-weight: 600;
}

.glow-list small {
  color: var(--muted);
}

.timeline h3 {
  margin-top: 0;
  font-size: 1.4rem;
}

.timeline-steps {
  display: grid;
  gap: 1.2rem;
}

.timeline-steps article {
  padding: 1.4rem;
  border-radius: 20px;
  background: rgba(8, 16, 30, 0.9);
  border: 1px solid rgba(87, 134, 236, 0.2);
  position: relative;
}

.step-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.2);
  font-size: 1.2rem;
}

.polaroid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.polaroid-grid figure {
  background: #fff;
  color: #041429;
  padding: 1rem 1rem 0.5rem;
  border-radius: 18px 18px 12px 12px;
  box-shadow: 0 20px 45px rgba(1, 0, 20, 0.4);
  transform: rotate(-3deg);
  transition: transform 0.3s ease;
}

.polaroid-grid figure:nth-child(2) {
  transform: rotate(2deg);
}

.polaroid-grid figure:nth-child(3) {
  transform: rotate(-1deg);
}

.polaroid-grid figure:hover {
  transform: translateY(-10px) scale(1.03);
}

.polaroid-grid img {
  width: 100%;
  border-radius: 12px;
  height: 240px;
  object-fit: cover;
}

.polaroid-grid figcaption {
  text-align: center;
  margin: 0.8rem 0 0.3rem;
  font-weight: 600;
}

.love-note {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.note {
  flex: 2;
}

.note h2 {
  font-size: 2.2rem;
  margin: 0.3rem 0 1rem;
}

.note p {
  color: var(--muted);
  line-height: 1.8;
}

.counter {
  flex: 1;
  min-width: 220px;
  text-align: center;
  border-radius: 24px;
  padding: 2rem 1rem;
  background: rgba(8, 15, 29, 0.9);
  border: 1px solid rgba(100, 144, 255, 0.35);
}

.counter span {
  display: block;
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-family: 'Playfair Display', serif;
  color: var(--accent-2);
}

.promise {
  text-align: center;
}

.promise h2 {
  margin-top: 0;
  font-size: 2.4rem;
}

.promise-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin: 2rem 0;
}

.promise-cloud span {
  padding: 0.5rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(94, 142, 255, 0.35);
  background: rgba(8, 17, 33, 0.8);
  font-size: 0.95rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

.promise-cloud span:hover {
  background: rgba(59, 228, 255, 0.18);
  transform: translateY(-5px);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.footer {
  text-align: center;
  color: var(--muted);
  margin: 3rem auto;
  max-width: 700px;
  font-size: 0.95rem;
}

.surprise-message {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  max-width: 280px;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  background: rgba(12, 30, 55, 0.95);
  color: var(--soft);
  font-weight: 600;
  box-shadow: 0 20px 60px rgba(0, 214, 255, 0.35);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.surprise-message.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.burst-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.burst-layer span {
  position: absolute;
  width: 18px;
  height: 18px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(59, 228, 255, 0.8));
  clip-path: polygon(50% 0%, 61% 11%, 75% 12%, 84% 26%, 83% 44%, 50% 75%, 17% 44%, 16% 26%, 25% 12%, 39% 11%);
  animation: burst 2s ease forwards;
}

@keyframes floatUp {
  from {
    transform: translateY(0) scale(0.8);
  }
  to {
    transform: translateY(-120vh) scale(1.5);
  }
}

@keyframes drift {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.05);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.4);
  }
}

@keyframes burst {
  0% {
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -150%) scale(1.6);
    opacity: 0;
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero .intro {
    max-width: 540px;
  }
  .hero-card {
    max-width: 420px;
    margin: 0 auto;
  }
  .section {
    padding: 2.25rem;
  }
  .love-note {
    align-items: stretch;
  }
}

@media (max-width: 700px) {
  body {
    padding: 0 1rem 2.5rem;
  }
  .section {
    padding: 2rem;
  }
  .hero {
    padding-top: 3rem;
    text-align: center;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .btn {
    width: 100%;
    display: block;
    text-align: center;
  }
  .love-note {
    flex-direction: column;
  }
  .counter {
    width: 100%;
  }
  .polaroid-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .polaroid-grid figure {
    transform: none !important;
  }
  .polaroid-grid img {
    height: 200px;
  }
  .wellness {
    grid-template-columns: 1fr;
  }
  .cta-row {
    flex-direction: column;
  }
  .surprise-message {
    right: 1rem;
    left: 1rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0 0.75rem 2rem;
  }
  .section {
    padding: 1.5rem;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero-card {
    padding: 1.6rem;
  }
  .mood-grid,
  .timeline-steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .counter span {
    font-size: clamp(2.4rem, 14vw, 3.6rem);
  }
  .surprise-message {
    bottom: 1rem;
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
}
