/* Cryptid Cupid — cute & spooky swamp dating site */

:root {
  --purple-deep: #2c2049;
  --purple-mid: #4b3a73;
  --purple: #8b6dd6;
  --purple-light: #cbb8f5;
  --mint: #7ee8c0;
  --mint-deep: #4bbf99;
  --orange: #ffb35c;
  --orange-deep: #ff9640;
  --cream: #fff8f0;
  --ink: #2c2049;
  --shadow: 0 10px 30px rgba(44, 32, 73, 0.35);
  --radius-lg: 28px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Quicksand', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(139, 109, 214, 0.35), transparent 55%),
    radial-gradient(ellipse at 85% 15%, rgba(126, 232, 192, 0.18), transparent 50%),
    linear-gradient(180deg, #241a3d 0%, #2c2049 40%, #1f1636 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

h1, h2, h3, .logo {
  font-family: 'Baloo 2', 'Fredoka', cursive;
  line-height: 1.15;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Ambient swamp decorations --- */
.fog-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.fog-layer::before,
.fog-layer::after {
  content: "";
  position: absolute;
  width: 160%;
  height: 220px;
  left: -30%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  filter: blur(20px);
  border-radius: 50%;
  animation: drift 40s linear infinite;
}

.fog-layer::before {
  bottom: -60px;
  animation-duration: 55s;
}

.fog-layer::after {
  bottom: 40px;
  animation-duration: 70s;
  animation-direction: reverse;
  opacity: 0.7;
}

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(15%); }
}

.fireflies {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.fireflies span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px 3px rgba(126, 232, 192, 0.9);
  animation: firefly-float 6s ease-in-out infinite, firefly-glow 2.4s ease-in-out infinite;
}

.fireflies span:nth-child(1) { top: 15%; left: 8%; animation-delay: 0s, 0.2s; }
.fireflies span:nth-child(2) { top: 65%; left: 20%; animation-delay: 1s, 0.5s; }
.fireflies span:nth-child(3) { top: 30%; left: 82%; animation-delay: 2s, 0s; }
.fireflies span:nth-child(4) { top: 75%; left: 70%; animation-delay: 0.5s, 1s; }
.fireflies span:nth-child(5) { top: 45%; left: 45%; animation-delay: 1.5s, 0.3s; }
.fireflies span:nth-child(6) { top: 85%; left: 90%; animation-delay: 2.5s, 0.8s; }

@keyframes firefly-float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(18px, -22px); }
}

@keyframes firefly-glow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* --- Layout --- */
.wrap {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(44, 32, 73, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-right: 72px; /* keep space clear for platform sound button */
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.logo .heart {
  color: var(--orange);
  animation: pulse-heart 1.8s ease-in-out infinite;
}

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

nav.main-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

nav.main-nav a {
  color: var(--purple-light);
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  transition: background 0.25s, color 0.25s;
}

nav.main-nav a:hover,
nav.main-nav a:focus-visible {
  background: var(--purple);
  color: var(--cream);
}

nav.main-nav a[aria-current="page"] {
  background: var(--mint);
  color: var(--purple-deep);
}

main {
  position: relative;
  z-index: 1;
}

/* --- Hero --- */
.hero {
  padding: 56px 0 40px;
  text-align: center;
}

.hero img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 32px;
  border: 4px solid rgba(255, 255, 255, 0.12);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--cream);
  margin: 0 0 12px;
}

.hero h1 .accent {
  color: var(--orange);
}

.hero p.tagline {
  font-size: 1.2rem;
  color: var(--purple-light);
  max-width: 560px;
  margin: 0 auto 28px;
}

.button-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-family: 'Baloo 2', cursive;
  font-size: 1.05rem;
  box-shadow: 0 6px 0 rgba(0,0,0,0.15);
  transition: transform 0.15s, box-shadow 0.15s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--orange);
  color: var(--purple-deep);
}

.btn-secondary {
  background: var(--mint);
  color: var(--purple-deep);
}

/* --- Sections --- */
section {
  padding: 48px 0;
}

.section-title {
  text-align: center;
  color: var(--cream);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: var(--purple-light);
  max-width: 620px;
  margin: 0 auto 36px;
  font-size: 1.05rem;
}

/* --- Cards grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}

.profile-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  border: 4px solid var(--purple-light);
  transition: transform 0.25s, box-shadow 0.25s;
}

.profile-card:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: 0 16px 34px rgba(44, 32, 73, 0.45);
}

.profile-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.profile-card .placeholder-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--purple), var(--mint));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.4rem;
}

.profile-card-body {
  padding: 18px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-card h3 {
  margin: 0;
  color: var(--purple-mid);
  font-size: 1.3rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.profile-card .age {
  font-size: 0.85rem;
  color: var(--mint-deep);
  font-weight: 700;
  white-space: nowrap;
}

.profile-card .location {
  font-size: 0.85rem;
  color: #8a7db3;
  font-weight: 700;
  margin: -6px 0 4px;
}

.profile-card p.bio {
  margin: 0;
  font-size: 0.95rem;
  color: #5b4c80;
  flex: 1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.tags span {
  background: var(--purple-light);
  color: var(--purple-deep);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.card-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.card-actions .btn {
  flex: 1;
  padding: 10px 14px;
  font-size: 0.9rem;
  text-align: center;
  box-shadow: 0 4px 0 rgba(0,0,0,0.15);
}

/* --- Story cards --- */
.story-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
  border: 4px solid var(--mint);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.story-card img {
  border-radius: var(--radius-md);
  width: 100%;
  object-fit: cover;
}

.story-card .quote {
  font-style: italic;
  color: var(--purple-mid);
  font-size: 1.05rem;
}

.story-card .attribution {
  font-weight: 700;
  color: var(--mint-deep);
}

/* --- How it works steps --- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.step {
  background: rgba(255, 255, 255, 0.06);
  border: 2px dashed var(--purple-light);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  color: var(--purple-light);
}

.step .step-emoji {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 10px;
}

.step h3 {
  color: var(--cream);
  margin: 0 0 8px;
}

/* --- FAQ --- */
.faq {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

details {
  background: rgba(255, 255, 255, 0.07);
  border: 2px solid var(--purple);
  border-radius: var(--radius-md);
  padding: 4px 20px;
}

summary {
  cursor: pointer;
  font-family: 'Baloo 2', cursive;
  color: var(--cream);
  font-size: 1.1rem;
  padding: 14px 0;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: "🐾 ";
}

details p {
  color: var(--purple-light);
  margin: 0 0 16px;
  line-height: 1.5;
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 40px 24px 50px;
  color: var(--purple-light);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 40px;
}

footer .foot-logo {
  font-family: 'Baloo 2', cursive;
  color: var(--cream);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

footer .disclaimer {
  margin-top: 10px;
  opacity: 0.75;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 640px) {
  header.site-header {
    padding-right: 0;
  }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding-right: 72px;
  }
  nav.main-nav {
    width: 100%;
  }
}
