/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --sunrise: #FF7A45;
  --dusk: #C0286B;
  --plum: #7A1E5C;
  --ink: #2B0F1B;
  --cream: #FFF6ED;
  --gold: #FFB627;
  --mint: #2FD180;

  --font-display: 'Fraunces', ui-serif, Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --shadow-soft: 0 20px 50px -20px rgba(43, 15, 27, 0.45);
  --shadow-button: 0 14px 30px -10px rgba(255, 182, 39, 0.55);

  --content-max: 1180px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--cream);
  background: linear-gradient(150deg, var(--sunrise) 0%, var(--dusk) 58%, var(--plum) 100%);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ==========================================================================
   Reveal-on-load utility
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--delay, 0) * 90ms + 120ms);
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Ambient background field
   ========================================================================== */
.bg-field {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold) 0%, transparent 72%);
  opacity: 0.55;
  animation: drift 9s ease-in-out infinite;
}
.dot-1 { top: 14%; left: 10%;  width: 14px; height: 14px; animation-duration: 10s; }
.dot-2 { top: 22%; left: 46%;  animation-duration: 8s;  animation-delay: 0.6s; }
.dot-3 { top: 10%; left: 78%;  width: 8px;  height: 8px; animation-duration: 11s; animation-delay: 1.4s; }
.dot-4 { top: 55%; left: 6%;   width: 12px; height: 12px; animation-duration: 9.5s; animation-delay: 0.3s; }
.dot-5 { top: 62%; left: 38%;  animation-duration: 7.5s; animation-delay: 2s; }
.dot-6 { top: 48%; left: 84%;  width: 9px;  height: 9px; animation-duration: 10.5s; animation-delay: 1s; }
.dot-7 { top: 80%; left: 60%;  width: 11px; height: 11px; animation-duration: 8.5s; animation-delay: 1.8s; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0); opacity: 0.35; }
  50% { transform: translate(14px, -18px); opacity: 0.75; }
}

.constellation-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.line {
  stroke: var(--gold);
  stroke-width: 1.2;
  stroke-dasharray: 6 10;
  opacity: 0.28;
  animation: dash 14s linear infinite;
}
.line-2 { animation-duration: 17s; animation-delay: 1s; }
.line-3 { animation-duration: 12s; animation-delay: 2s; }
@keyframes dash {
  to { stroke-dashoffset: -320; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 2;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 28px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 8px; }
.brand-mark { color: var(--gold); display: flex; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}
.online-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(43, 15, 27, 0.32);
  border: 1px solid rgba(255, 246, 237, 0.18);
  backdrop-filter: blur(6px);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(47, 209, 128, 0.6);
  animation: pulseDot 1.8s ease-out infinite;
  flex-shrink: 0;
}
.pulse-dot-light { background: var(--mint); }
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(47, 209, 128, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(47, 209, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 209, 128, 0); }
}

/* ==========================================================================
   Hero layout
   ========================================================================== */
.hero {
  position: relative;
  z-index: 2;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 56px 24px 80px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
}
.hero-content { max-width: 560px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.6vw + 1rem, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 24px rgba(43, 15, 27, 0.25);
  margin-bottom: 20px;
}

.subhead {
  font-size: clamp(1rem, 0.4vw + 0.95rem, 1.2rem);
  font-weight: 400;
  color: rgba(255, 246, 237, 0.88);
  max-width: 46ch;
  margin-bottom: 30px;
}

/* Progress block */
.progress-block { margin-bottom: 28px; max-width: 380px; }
.progress-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.progress-label { color: rgba(255, 246, 237, 0.92); }
.progress-tag { color: var(--gold); font-weight: 700; }
.progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(43, 15, 27, 0.35);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), #FFD98A);
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* CTA */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 16px 30px;
  border-radius: 999px;
  box-shadow: var(--shadow-button);
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards, pulseGlow 2.6s ease-in-out 1.4s infinite;
  animation-delay: calc(var(--delay, 0) * 90ms + 120ms), 1.6s;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cta-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 40px -10px rgba(255, 182, 39, 0.7);
}
.cta-icon { transition: transform 0.25s ease; }
.cta-button:hover .cta-icon { transform: translateX(4px); }
@keyframes pulseGlow {
  0%, 100% { box-shadow: var(--shadow-button); }
  50% { box-shadow: 0 14px 42px -6px rgba(255, 182, 39, 0.85); }
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255, 246, 237, 0.7);
  margin: 16px 0 32px;
}

/* Trust row */
.trust-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.trust-avatars { display: flex; }
.trust-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid var(--dusk);
  margin-left: -10px;
  box-shadow: 0 2px 8px rgba(43, 15, 27, 0.3);
}
.trust-avatar:first-child { margin-left: 0; }
.trust-text { display: flex; flex-direction: column; gap: 2px; font-size: 0.85rem; }
.trust-stars { color: var(--gold); font-size: 0.9rem; letter-spacing: 1px; }
.trust-copy { color: rgba(255, 246, 237, 0.85); }

/* ==========================================================================
   Hero visual — phone mockup
   ========================================================================== */
.hero-visual {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 340px;
  padding: 34px 0;
}

.phone-frame {
  position: relative;
  background: var(--ink);
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(255, 246, 237, 0.06);
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards, floaty 6s ease-in-out 1.2s infinite;
  animation-delay: calc(var(--delay, 0) * 90ms + 120ms), 1.2s;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.phone-notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 22px;
  background: var(--ink);
  border-radius: 0 0 16px 16px;
  z-index: 3;
}

.profile-card {
  background: var(--cream);
  border-radius: 30px;
  overflow: hidden;
}
.card-photo {
  position: relative;
  aspect-ratio: 200 / 240;
  overflow: hidden;
}
.aurora-portrait { width: 100%; height: 100%; }
.status-pill {
  position: absolute;
  top: 16px; left: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(43, 15, 27, 0.45);
  backdrop-filter: blur(4px);
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}
.match-badge {
  position: absolute;
  top: 14px; right: 14px;
  display: flex;
  align-items: center;
  gap: 3px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 7px 11px;
  border-radius: 999px;
  box-shadow: 0 8px 18px -6px rgba(255, 182, 39, 0.7);
}
.card-scrim {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 16px 16px;
  background: linear-gradient(to top, rgba(20, 6, 13, 0.92) 10%, rgba(20, 6, 13, 0) 100%);
  color: var(--cream);
}
.card-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
}
.card-distance {
  font-size: 0.78rem;
  color: rgba(255, 246, 237, 0.8);
  margin: 3px 0 8px;
}
.card-quote {
  font-size: 0.8rem;
  font-style: italic;
  color: rgba(255, 246, 237, 0.92);
  margin-bottom: 10px;
  line-height: 1.4;
}
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(255, 246, 237, 0.14);
  border: 1px solid rgba(255, 246, 237, 0.22);
  padding: 5px 10px;
  border-radius: 999px;
}

.card-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 16px;
  background: var(--cream);
}
.action-btn {
  position: relative;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px -8px rgba(43, 15, 27, 0.35);
  transition: transform 0.15s ease;
}
.action-x { background: var(--cream); color: var(--dusk); border: 2px solid rgba(192, 40, 107, 0.25); }
.action-heart { background: var(--dusk); color: var(--cream); width: 60px; height: 60px; }
.action-msg { background: var(--cream); color: var(--plum); border: 2px solid rgba(122, 30, 92, 0.2); }
.action-btn.is-pressed { transform: scale(0.86); }
.action-x.is-shaking { animation: shake 0.4s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0) rotate(0); }
  25% { transform: translateX(-6px) rotate(-8deg); }
  75% { transform: translateX(6px) rotate(8deg); }
}

.heart-burst { position: absolute; inset: 0; pointer-events: none; }
.heart-burst.is-bursting::before,
.heart-burst.is-bursting::after {
  content: '♥';
  position: absolute;
  left: 50%; top: 50%;
  color: var(--gold);
  font-size: 14px;
  opacity: 1;
  animation: burst 0.75s ease-out forwards;
}
.heart-burst.is-bursting::after {
  font-size: 10px;
  animation-delay: 0.08s;
  color: var(--cream);
}
@keyframes burst {
  0% { transform: translate(-50%, -50%) scale(0.4); opacity: 1; }
  100% { transform: translate(calc(-50% + 22px), calc(-50% - 34px)) scale(1); opacity: 0; }
}

/* Floating chips */
.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cream);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  font-size: 0.78rem;
  max-width: 210px;
  z-index: 3;
}
.chip-match { top: 6px; left: -12px; }
.chip-activity { bottom: -18px; right: -22px; }
.chip-check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}
.chip-eye { flex-shrink: 0; font-size: 1.1rem; }
.chip-label { display: block; color: rgba(43, 15, 27, 0.6); font-weight: 600; font-size: 0.72rem; }
.chip-text strong { font-size: 0.82rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 2;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 24px 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: rgba(255, 246, 237, 0.7);
  border-top: 1px solid rgba(255, 246, 237, 0.14);
}
.footer-legal { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { opacity: 0.8; transition: opacity 0.2s ease; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .reveal, .cta-button, .phone-frame { animation: none !important; opacity: 1 !important; transform: none !important; }
  .dot, .line, .pulse-dot, .progress-fill { animation: none !important; transition: none !important; }
  .progress-fill { width: var(--final-width, 0%) !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    padding-top: 72px;
  }
  .hero-visual { justify-self: end; max-width: 380px; }
}

@media (max-width: 640px) {
  .site-header { padding: 20px 18px 0; }
  .hero { padding: 36px 18px 56px; gap: 48px; }
  .headline { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .hero-visual { max-width: 300px; padding: 44px 0 40px; }
  .chip { max-width: 168px; font-size: 0.72rem; padding: 8px 11px; }
  .chip-match { left: -4px; top: -4px; }
  .chip-activity { right: -4px; bottom: -20px; }
  .cta-button { width: 100%; justify-content: center; }
  .online-pill { font-size: 0.75rem; padding: 7px 12px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .hero-visual { max-width: 260px; }
  .chip { position: static; margin-bottom: 10px; max-width: none; }
  .chip-activity { order: 2; }
}
