/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --rose:    #e8476a;
  --violet:  #9b5de5;
  --grad:    linear-gradient(135deg, #e8476a 0%, #9b5de5 100%);
  --radius:  14px;
  --font-h:  'Cormorant Garamond', Georgia, serif;
  --font-b:  'Plus Jakarta Sans', system-ui, sans-serif;
  --trans:   all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark theme (default) */
[data-theme="dark"] {
  --waitlist-bg:   #000000;
  --waitlist-text: rgba(255,255,255,0.75);
  --waitlist-h:    #ffffff;
  --bg:          #0b0b16;
  --bg2:         #10101e;
  --surface:     #16162a;
  --card:        #1e1e34;
  --border:      rgba(255,255,255,0.07);
  --border-h:    rgba(232,71,106,0.35);
  --text:        #f0ecf8;
  --muted:       rgba(240,236,248,0.50);
  --nav-bg:      rgba(11,11,22,0.85);
  --pill-bg:     rgba(255,255,255,0.06);
  --pill-border: rgba(255,255,255,0.10);
  --tag-bg:      rgba(155,93,229,0.15);
  --tag-border:  rgba(155,93,229,0.25);
  --tag-text:    #c4a4f7;
  --quote-bg:    rgba(255,255,255,0.04);
  --quote-bord:  rgba(255,255,255,0.08);
  --stats-bg:    rgba(255,255,255,0.03);
  --phone-bg:    #1c1c30;
  --phone-frame: #2a2a45;
}

/* Light theme */
[data-theme="light"] {
  --waitlist-bg:   #ffffff;
  --waitlist-text: #6b6390;
  --waitlist-h:    #15102a;
  --bg:          #f8f5ff;
  --bg2:         #ffffff;
  --surface:     #ffffff;
  --card:        #f0eafe;
  --border:      rgba(0,0,0,0.08);
  --border-h:    rgba(232,71,106,0.3);
  --text:        #15102a;
  --muted:       #6b6390;
  --nav-bg:      rgba(248,245,255,0.88);
  --pill-bg:     rgba(155,93,229,0.08);
  --pill-border: rgba(155,93,229,0.2);
  --tag-bg:      rgba(155,93,229,0.1);
  --tag-border:  rgba(155,93,229,0.2);
  --tag-text:    #6b28c8;
  --quote-bg:    #ffffff;
  --quote-bord:  rgba(0,0,0,0.08);
  --stats-bg:    rgba(0,0,0,0.03);
  --phone-bg:    #f0eafe;
  --phone-frame: #d8ccf5;
}

/* ── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background 0.35s ease, color 0.35s ease;
}

/* ── Nav ────────────────────────────────────────────────────────────────────── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 5%;
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: var(--trans);
}

.nav-logo {
  font-family: var(--font-h);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.nav-logo span { color: var(--rose); }

.nav-center {
  display: flex;
  gap: 2.25rem;
}
.nav-center a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-center a:hover { color: var(--text); }

.nav-right { display: flex; align-items: center; gap: 1rem; }

/* Theme toggle */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--pill-bg);
  cursor: pointer;
  color: var(--muted);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans);
}
.theme-toggle:hover { border-color: var(--rose); color: var(--rose); }

[data-theme="dark"]  .icon-sun  { display: block; }
[data-theme="dark"]  .icon-moon { display: none; }
[data-theme="light"] .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* Pill button */
.btn-pill {
  background: var(--grad);
  color: #fff;
  padding: .5rem 1.1rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .2s, transform .15s;
}
.btn-pill:hover { opacity: .88; transform: translateY(-1px); }

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 65px;
  left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 199;
  padding: 1.25rem 5%;
  gap: 1rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--text); text-decoration: none; font-size: 1rem; font-weight: 500; }

/* ── Shared buttons ─────────────────────────────────────────────────────────── */
.btn-gradient {
  display: inline-block;
  background: var(--grad);
  color: #fff;
  border: none;
  padding: .8rem 1.8rem;
  border-radius: 50px;
  font-family: var(--font-b);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .2s, transform .15s, box-shadow .2s;
}
.btn-gradient:hover {
  opacity: .88;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232,71,106,.35);
}

.btn-ghost {
  color: var(--muted);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  transition: color .2s;
}
.btn-ghost:hover { color: var(--text); }

/* ── Gradient text ──────────────────────────────────────────────────────────── */
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Section labels ─────────────────────────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: .9rem;
}
.section-label.light { color: rgba(255,255,255,.7); }

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding: 5rem 5% 4rem;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
  opacity: .18;
}
.hero-glow.glow-1 {
  width: 600px; height: 600px;
  background: var(--rose);
  top: -180px; right: -60px;
  animation: pulse 8s ease-in-out infinite;
}
.hero-glow.glow-2 {
  width: 400px; height: 400px;
  background: var(--violet);
  bottom: -100px; left: -80px;
  animation: pulse 11s ease-in-out infinite reverse;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .18; }
  50% { transform: scale(1.12); opacity: .28; }
}

.hero-text { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .05em;
  margin-bottom: 1.25rem;
  padding: .35rem .85rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: var(--pill-bg);
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #3be083;
  box-shadow: 0 0 8px #3be083;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

h1 {
  font-family: var(--font-h);
  font-size: clamp(3.2rem, 6.5vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 1.25rem;
}
h1 em { font-style: italic; }

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.75;
  margin-bottom: 2rem;
}
.hero-sub em { color: var(--text); font-style: normal; }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.badge-pill {
  display: inline-block;
  font-size: .78rem;
  font-weight: 500;
  padding: .35rem .9rem;
  border-radius: 50px;
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  color: var(--muted);
}

/* ── Phone mockup ───────────────────────────────────────────────────────────── */
.hero-phone {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.phone-wrap {
  width: 270px;
  height: 555px;
  background: var(--phone-frame);
  border-radius: 42px;
  padding: 10px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06),
    0 40px 100px rgba(0,0,0,.5),
    inset 0 1px 0 rgba(255,255,255,.1);
  animation: floatPhone 6s ease-in-out infinite;
  position: relative;
}

@keyframes floatPhone {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-18px) rotate(1deg); }
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background: var(--phone-frame);
  border-radius: 20px;
  z-index: 10;
}

.phone-inner {
  width: 100%;
  height: 100%;
  background: var(--phone-bg);
  border-radius: 34px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem .9rem 1rem;
  position: relative;
  gap: .5rem;
}

.app-status-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 .5rem;
  font-size: .65rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: .25rem;
}

/* Stacked cards */
.swipe-card {
  position: absolute;
  width: calc(100% - 1.8rem);
  border-radius: 18px;
  overflow: hidden;
}
.card-back {
  height: 320px;
  background: var(--card);
  top: 72px;
  transform: rotate(4deg) scale(.96);
  opacity: .6;
}
.card-front {
  height: 325px;
  background: var(--surface);
  top: 68px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
  display: flex;
  flex-direction: column;
}

.card-photo-area {
  flex: 1;
  background: linear-gradient(135deg, rgba(232,71,106,.2), rgba(155,93,229,.2));
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-h);
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
}

.card-details { padding: .6rem .75rem .4rem; }
.card-name-row { display: flex; align-items: center; gap: .4rem; margin-bottom: .15rem; }
.card-name { font-weight: 700; font-size: .95rem; color: var(--text); }
.verified-badge {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: .55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.card-location { font-size: .68rem; color: var(--muted); margin-bottom: .3rem; }
.card-bio { font-size: .68rem; color: var(--muted); line-height: 1.4; font-style: italic; }

.card-buttons {
  position: absolute;
  bottom: 85px;
  width: calc(100% - 1.8rem);
  display: flex;
  justify-content: center;
  gap: .75rem;
}
.card-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 2px solid;
  background: var(--phone-bg);
  cursor: pointer;
  font-size: 1rem;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-btn.nope { border-color: #ef4444; color: #ef4444; }
.card-btn.nope:hover { background: rgba(239,68,68,.15); }
.card-btn.star { border-color: #f59e0b; color: #f59e0b; }
.card-btn.star:hover { background: rgba(245,158,11,.15); }
.card-btn.love { border-color: var(--rose); color: var(--rose); }
.card-btn.love:hover { background: rgba(232,71,106,.15); }

.match-banner {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--grad);
  padding: .8rem;
  text-align: center;
  border-radius: 0 0 34px 34px;
}
.match-text { color: #fff; font-weight: 700; font-size: .9rem; }
.hidden { display: none !important; }

/* ── Stats bar ──────────────────────────────────────────────────────────────── */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 2rem 5%;
  background: var(--stats-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.stat-item { display: flex; flex-direction: column; align-items: center; gap: .2rem; text-align: center; }
.stat-item strong { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.stat-item span { font-size: .78rem; color: var(--muted); }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ── Features ───────────────────────────────────────────────────────────────── */
.features {
  padding: 7rem 5%;
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-family: var(--font-h);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.5px;
  color: var(--text);
  margin-bottom: 1rem;
}
.section-title em { font-style: italic; }
.section-sub { color: var(--muted); font-size: 1rem; max-width: 520px; margin: 0 auto 3.5rem; line-height: 1.7; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: left;
  transition: var(--trans);
  cursor: default;
}
.feat-card:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(232,71,106,.1);
}
.feat-icon { font-size: 1.6rem; margin-bottom: .9rem; }
.feat-card h3 {
  font-family: var(--font-h);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .5rem;
}
.feat-card p { font-size: .88rem; color: var(--muted); line-height: 1.65; }

/* ── About ──────────────────────────────────────────────────────────────────── */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  padding: 6rem 5%;
  max-width: 1180px;
  margin: 0 auto;
}

.about-left p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.about-left em { color: var(--text); font-style: normal; }

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.5rem;
}
.about-tags span {
  font-size: .75rem;
  font-weight: 600;
  padding: .35rem .9rem;
  border-radius: 50px;
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  color: var(--tag-text);
}

.about-right { display: flex; flex-direction: column; gap: 1rem; padding-top: .5rem; }

.glass-quote {
  background: var(--quote-bg);
  border: 1px solid var(--quote-bord);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  backdrop-filter: blur(8px);
  transition: var(--trans);
}
.glass-quote:hover { border-color: var(--border-h); }
.glass-quote.small { padding: 1.25rem 1.5rem; }

.quote-mark {
  font-family: var(--font-h);
  font-size: 3.5rem;
  line-height: .8;
  color: var(--rose);
  opacity: .5;
  margin-bottom: .25rem;
}
.quote-body {
  font-family: var(--font-h);
  font-size: 1.05rem;
  line-height: 1.6;
  font-style: italic;
  color: var(--text);
  margin-bottom: .75rem;
}
.glass-quote.small .quote-body { font-size: .92rem; }
.quote-author { font-size: .78rem; color: var(--muted); }

/* ── Waitlist ───────────────────────────────────────────────────────────────── */
.waitlist {
  position: relative;
  overflow: hidden;
  background: var(--waitlist-bg);
  border-top: 1px solid var(--border);
  padding: 7rem 5%;
  text-align: center;
  margin: 4rem 0 0;
  transition: background 0.35s ease;
}

.waitlist-glow { display: none; }

.waitlist-inner { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; }

.waitlist h2 {
  font-family: var(--font-h);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--waitlist-h);
  margin-bottom: .75rem;
  letter-spacing: -.5px;
}
.waitlist p { color: var(--waitlist-text); font-size: 1rem; margin-bottom: 2rem; }

.waitlist-form {
  display: flex;
  gap: .65rem;
  max-width: 460px;
  margin: 0 auto 1rem;
}
.waitlist-form input {
  flex: 1;
  padding: .85rem 1.25rem;
  border-radius: 50px;
  border: 1px solid var(--border);
  font-family: var(--font-b);
  font-size: .95rem;
  background: var(--card);
  color: var(--text);
  outline: none;
  transition: border-color .2s;
}
.waitlist-form input:focus { border-color: var(--rose); }
.waitlist-form input::placeholder { color: var(--muted); }
.waitlist .btn-gradient {
  background: var(--grad);
  border: none;
}
.waitlist .btn-gradient:hover { opacity: .88; }

.waitlist-confirm {
  color: var(--rose);
  font-size: .9rem;
  min-height: 1.4em;
  margin-bottom: .5rem;
}
.waitlist-note { font-size: .78rem; color: var(--muted); }

.section-label.light { color: var(--rose); }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 3rem 5%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
}
.footer-logo {
  font-family: var(--font-h);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}
.footer-logo span { color: var(--rose); }
.footer-tagline { font-size: .88rem; color: var(--muted); }
.footer-copy { font-size: .78rem; color: var(--muted); opacity: .5; }

/* ── Scroll reveal ───────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-center, .btn-pill { display: none; }
  .hamburger { display: block; }
  .nav-logo { flex: 1; }
  .hero { grid-template-columns: 1fr; padding-top: 3rem; }
  .hero-phone { order: -1; }
  .hero-text { text-align: center; }
  .hero-sub, .hero-badges { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .about { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero { padding: 2.5rem 5%; gap: 2rem; }
  .stats-bar { gap: 1.5rem; }
  .stat-divider { display: none; }
  .waitlist-form { flex-direction: column; }
  .phone-wrap { width: 230px; height: 470px; }
  h1 { font-size: 3rem; }
}
