/* MoonPhase Match: Couple Test — shared marketing styles */
:root {
  --bg: #0d0820;
  --bg-soft: #150d33;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(170, 140, 255, 0.14);
  --border-strong: rgba(170, 140, 255, 0.26);
  --text: #f2ecff;
  --text-soft: #c6bce0;
  --text-mute: #8d83ad;
  --accent: #9d6bff;
  --accent-2: #c0a0ff;
  --accent-3: #7c4dff;
  --accent-glow: rgba(157, 107, 255, 0.35);
  --radius-card: 18px;
  --radius-hero: 28px;
  --radius-badge: 14px;
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", Roboto, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Ambient glows */
body::before {
  content: "";
  position: fixed;
  top: -10%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--accent-glow), transparent 60%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
}

/* ---------- Nav ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(13, 8, 32, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.05rem; }
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 6px 20px var(--accent-glow); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--text-soft); font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  padding: 11px 22px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #fff;
  box-shadow: 0 10px 30px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 38px var(--accent-glow); }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 70px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-icon { width: 92px; height: 92px; border-radius: 24px; box-shadow: 0 14px 44px var(--accent-glow); margin-bottom: 26px; }
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.5rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead { font-size: 1.18rem; color: var(--text-soft); max-width: 520px; margin-bottom: 30px; }
.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.trust-row {
  display: flex;
  gap: 22px;
  margin-top: 28px;
  flex-wrap: wrap;
  color: var(--text-mute);
  font-size: 0.9rem;
}
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { width: 16px; height: 16px; color: var(--accent-2); }

/* Google Play badge */
.googleplay-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-badge);
  padding: 10px 20px 10px 16px;
  transition: transform 0.2s, border-color 0.2s;
}
.googleplay-badge:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.4); }
.googleplay-badge svg { width: 28px; height: 28px; }
.googleplay-badge .gp-text { display: flex; flex-direction: column; line-height: 1.1; }
.googleplay-badge .gp-text small { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; color: #cfcfe0; }
.googleplay-badge .gp-text strong { font-size: 1.18rem; font-weight: 600; color: #fff; }

/* Hero phones */
.hero-phones { position: relative; height: 540px; display: flex; align-items: center; justify-content: center; }
.hero-phones img {
  position: absolute;
  width: 230px;
  border-radius: 32px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}
.hero-phones img.back { transform: rotate(7deg) translate(72px, 12px); opacity: 0.92; z-index: 1; }
.hero-phones img.front { transform: rotate(-6deg) translate(-58px, -6px); z-index: 2; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 52px; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; }
.section-head p { color: var(--text-soft); margin-top: 14px; font-size: 1.06rem; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 30px 26px;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--bg-card-strong); }
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-glow), rgba(124, 77, 255, 0.12));
  margin-bottom: 18px;
}
.feature-icon svg { width: 26px; height: 26px; color: var(--accent-2); }
.feature-card h3 { font-size: 1.18rem; margin-bottom: 9px; }
.feature-card p { color: var(--text-soft); font-size: 0.96rem; }

/* Screens */
.screens-scroller {
  justify-content: safe center;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 24px;
  -webkit-overflow-scrolling: touch;
}
.screens-scroller::-webkit-scrollbar { height: 7px; }
.screens-scroller::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
.screens-scroller img {
  width: 280px;
  flex: 0 0 auto;
  border-radius: 26px;
  scroll-snap-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
}

/* Privacy-first callout */
.privacy-first {
  background: linear-gradient(135deg, var(--bg-soft), rgba(124, 77, 255, 0.08));
  border: 1px solid var(--border);
  border-radius: var(--radius-hero);
  padding: 54px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.privacy-first h2 { font-size: 1.9rem; font-weight: 800; margin-bottom: 14px; }
.privacy-first p { color: var(--text-soft); margin-bottom: 14px; }
.privacy-list { list-style: none; display: grid; gap: 14px; }
.privacy-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-soft); }
.privacy-list svg { width: 20px; height: 20px; color: var(--accent-2); flex: 0 0 auto; margin-top: 3px; }

/* Download CTA */
.download-card {
  text-align: center;
  background: linear-gradient(135deg, rgba(157, 107, 255, 0.16), rgba(124, 77, 255, 0.05));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-hero);
  padding: 64px 40px;
}
.download-card img.dl-icon { width: 80px; height: 80px; border-radius: 22px; margin-bottom: 22px; box-shadow: 0 14px 40px var(--accent-glow); }
.download-card h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 800; margin-bottom: 14px; }
.download-card p { color: var(--text-soft); max-width: 480px; margin: 0 auto 28px; }
.download-card .googleplay-badge { margin: 0 auto; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 60px 0 36px; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-weight: 700; }
.footer-brand img { width: 40px; height: 40px; border-radius: 12px; }
.footer-col p { color: var(--text-mute); font-size: 0.92rem; max-width: 300px; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-mute); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 11px; }
.footer-col ul a { color: var(--text-soft); font-size: 0.94rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--accent-2); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-mute);
  font-size: 0.86rem;
}

/* ---------- Legal / content pages ---------- */
.legal-hero { padding: 70px 0 26px; }
.legal-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; }
.legal-hero .dates { color: var(--text-mute); margin-top: 12px; font-size: 0.95rem; }
.legal-body { padding: 20px 0 80px; max-width: 820px; }
.legal-body h2 { font-size: 1.5rem; font-weight: 700; margin: 40px 0 14px; color: var(--text); }
.legal-body h3 { font-size: 1.14rem; font-weight: 600; margin: 26px 0 10px; color: var(--accent-2); }
.legal-body p, .legal-body li { color: var(--text-soft); margin-bottom: 12px; }
.legal-body ul, .legal-body ol { padding-left: 22px; margin-bottom: 14px; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.legal-body strong { color: var(--text); }
.summary-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  margin: 22px 0;
}
.summary-box ul { margin-bottom: 0; }
.sdk-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 16px;
}
.sdk-card h3 { margin-top: 0; }

/* FAQ */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  margin-bottom: 16px;
}
.faq-item h3 { color: var(--text); font-size: 1.12rem; margin-bottom: 10px; }
.faq-item p { color: var(--text-soft); margin-bottom: 0; }
.contact-card {
  background: linear-gradient(135deg, rgba(157, 107, 255, 0.14), rgba(124, 77, 255, 0.04));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-hero);
  padding: 40px;
  text-align: center;
  margin-top: 30px;
}
.contact-card a.email { font-size: 1.3rem; font-weight: 700; color: var(--accent-2); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-phones { height: 460px; order: -1; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .privacy-first { grid-template-columns: 1fr; padding: 40px 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  .hero { padding: 56px 0 50px; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-phones img { width: 188px; }
  .screens-scroller img { width: 230px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  section { padding: 60px 0; }
}
