:root {
  --bg-dark: #180b24;
  --bg-deep: #2b133a;
  --pink: #ff6fd8;
  --pink-soft: #ffd1ef;
  --rose: #ffb0d9;
  --lavender: #d8c7ff;
  --cream: #fff7fb;
  --text: #f8eaff;
  --muted: #e6c9f5;
  --shadow: rgba(30, 9, 40, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: radial-gradient(circle at top, #44205e 0%, #210d31 36%, #110813 100%);
  color: var(--text);
}

body.unlocked .lock-screen {
  display: none;
}

body.unlocked .site-content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lock-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, rgba(255, 111, 216, 0.16), rgba(120, 89, 219, 0.2));
}

.lock-card {
  width: min(100%, 420px);
  background: rgba(28, 12, 33, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 34px 30px;
  box-shadow: 0 25px 60px var(--shadow);
  backdrop-filter: blur(12px);
  text-align: center;
}

@media (min-width: 768px) {
  .lock-card {
    width: min(100%, 780px);
    padding: 52px 64px 46px;
  }

  .lock-card h1 {
    font-size: clamp(3.5rem, 5vw, 6rem);
    line-height: 0.96;
  }

  .subtext {
    font-size: 1.18rem;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
  }

  #passwordForm {
    max-width: 620px;
    margin: 0 auto;
  }

  #passwordInput,
  button {
    padding: 18px 20px;
    font-size: 1.08rem;
  }
}

@media (min-width: 1200px) {
  .lock-screen {
    padding: 64px;
  }

  .lock-card {
    width: min(100%, 980px);
    padding: 60px 84px 52px;
    border-radius: 36px;
  }

  .lock-card h1 {
    font-size: clamp(4.5rem, 5vw, 7.2rem);
  }

  .subtext {
    font-size: 1.4rem;
    max-width: 720px;
  }

  #passwordForm {
    max-width: 760px;
  }

  #passwordInput,
  button {
    padding: 20px 24px;
    font-size: 1.18rem;
  }
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink-soft);
}

.lock-card h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3rem);
  line-height: 1.1;
}

.subtext {
  margin: 14px 0 26px;
  color: var(--muted);
  line-height: 1.6;
}

#passwordForm {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#passwordInput {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--cream);
  padding: 16px 18px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#passwordInput:focus {
  border-color: rgba(255, 176, 217, 0.8);
  box-shadow: 0 0 0 4px rgba(255, 176, 217, 0.12);
}

#passwordInput::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

button {
  border: none;
  border-radius: 12px;
  padding: 15px 18px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--pink-soft), var(--pink));
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(255, 111, 216, 0.3);
}

.error-message {
  min-height: 22px;
  margin: 14px 0 0;
  color: #ffb0d9;
  font-size: 0.95rem;
}

.site-content {
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  padding: 28px clamp(18px, 5vw, 72px) 60px;
  max-width: 1440px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  padding: 12px 0;
}

.brand {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.tag {
  color: var(--pink-soft);
  font-size: 0.9rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto 50px;
  padding: 30px 0 20px;
}

@media (min-width: 1200px) {
  .hero {
    gap: 52px;
    padding-top: 44px;
  }

  .hero-copy {
    padding-right: 36px;
  }

  .hero-visual {
    min-height: 450px;
  }

  .story-counter,
  .love-notes,
  .memory-section,
  .promise-section {
    max-width: 1280px;
  }

  .note-card {
    padding: 30px 24px;
  }

  .memory-card img {
    height: 360px;
  }
}

.hero-copy h2 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
}

.hero-copy p:not(.eyebrow) {
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 18px 0 28px;
}

.cta {
  display: inline-block;
  text-decoration: none;
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--pink-soft), var(--pink));
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 700;
}

.hero-visual {
  display: grid;
  place-items: center;
  min-height: 380px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.heart-shape {
  font-size: clamp(7rem, 12vw, 12rem);
  color: #ff7bc9;
  filter: drop-shadow(0 20px 30px rgba(255, 142, 219, 0.45));
  animation: pulse 2s ease-in-out infinite;
}

.sparkles {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px;
  font-size: 1.5rem;
}

.sparkles span:nth-child(2) {
  align-self: center;
}

.sparkles span:nth-child(3) {
  align-self: flex-end;
}

.story-counter,
.love-notes,
.memory-section,
.promise-section {
  max-width: 1200px;
  margin: 0 auto 36px;
}

.story-counter {
  margin-top: 10px;
  margin-bottom: 42px;
}

.counter-shell {
  padding: clamp(24px, 3vw, 40px);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 111, 216, 0.14), rgba(123, 92, 214, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(22, 9, 31, 0.28);
  text-align: center;
}

.counter-display {
  margin-top: 12px;
  font-size: clamp(1.4rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--cream);
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h3 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.note-card {
  padding: 26px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.note-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 176, 217, 0.38);
}

.icon {
  display: inline-block;
  font-size: 2rem;
  margin-bottom: 12px;
}

.note-card h4 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.note-card p,
.memory-item p,
.promise-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.memory-card {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.memory-card img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.memory-card:nth-child(6) img {
  object-position: center top;
}

.memory-card:hover img {
  transform: scale(1.04);
}

.timeline {
  display: grid;
  gap: 20px;
  margin-top: 18px;
}

.memory-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  align-items: center;
  padding: 22px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.time {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 176, 217, 0.28), rgba(216, 199, 255, 0.18));
  color: var(--pink-soft);
  font-weight: 700;
}

.memory-item h4 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.promise-section {
  padding: 30px 24px;
  text-align: center;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 111, 216, 0.12), rgba(216, 199, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.promise-section h3 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .card-grid,
  .memory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-copy p:not(.eyebrow) {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 560px) {
  .topbar {
    flex-direction: column;
    text-align: center;
  }

  .card-grid,
  .memory-grid {
    grid-template-columns: 1fr;
  }

  .memory-card img {
    height: 260px;
  }

  .memory-item {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .time {
    margin: 0 auto;
  }
}