/* ── DateMatch Design System ── */
:root {
  --rose: #e84393;
  --violet: #6c5ce7;
  --rose-light: #fd79a8;
  --violet-light: #a29bfe;
  --bg: #faf5f7;
  --surface: #ffffff;
  --text: #2d3436;
  --text-muted: #636e72;
  --border: #ede0e5;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(232, 67, 147, .08);
  --shadow-lg: 0 8px 30px rgba(108, 92, 231, .10);
  --gradient: linear-gradient(135deg, var(--rose), var(--violet));
  --max-w: 960px;
  --header-h: 64px;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--rose); text-decoration: none; transition: color .2s; }
a:hover { color: var(--violet); }

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

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

main { flex: 1; }
main.container { padding-top: 48px; padding-bottom: 80px; }

/* ── Site Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: -.02em;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background .2s, color .2s;
}

.nav a:hover {
  background: rgba(232, 67, 147, .06);
  color: var(--rose);
}

.nav a.active {
  background: rgba(232, 67, 147, .10);
  color: var(--rose);
  font-weight: 600;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

.nav-toggle svg { display: block; }

/* ── Page Hero ── */
.page-hero {
  text-align: center;
  margin-bottom: 48px;
}

.page-hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -.03em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.page-hero .lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-inline: auto;
}

/* ── Home Hero ── */
.hero {
  text-align: center;
  background: var(--gradient);
  color: #fff;
  padding: 72px 32px;
  border-radius: var(--radius);
  margin-bottom: 56px;
  box-shadow: var(--shadow-lg);
}

.hero h2 {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 16px;
  color: #fff;
}

.hero p {
  font-size: 1.15rem;
  max-width: 600px;
  margin-inline: auto;
  opacity: .92;
}

.hero .cta-row {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform .2s, box-shadow .2s;
}

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

.btn-white {
  background: #fff;
  color: var(--rose);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}

.btn-white:hover { color: var(--violet); box-shadow: 0 6px 20px rgba(0,0,0,.16); }

.btn-outline {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 2px solid rgba(255,255,255,.4);
}

.btn-outline:hover { background: rgba(255,255,255,.25); color: #fff; }

/* ── Features Grid ── */
.features { margin-bottom: 56px; }

.features h3 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  padding: 28px 24px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
  transition: transform .25s, box-shadow .25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

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

.feature-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card p {
  font-size: .92rem;
  color: var(--text-muted);
}

/* ── How-it-Works ── */
.how-it-works {
  margin-bottom: 56px;
}

.how-it-works h3 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step {
  text-align: center;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.step h4 {
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.step p {
  font-size: .92rem;
  color: var(--text-muted);
}

/* ── Card (generic) ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px;
  margin-bottom: 20px;
  transition: box-shadow .25s;
}

.card:hover {
  box-shadow: var(--shadow);
}

.card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.card p { color: var(--text-muted); margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

.card a { font-weight: 600; }

.muted { color: var(--text-muted); font-size: .9rem; }

/* Key-value list */
.kv {
  list-style: none;
}

.kv li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
}

.kv li:last-child { border-bottom: none; }
.kv li span:first-child { color: var(--text-muted); font-weight: 500; }
.kv li span:last-child { font-weight: 600; }

/* ── Legal pages (privacy / terms) ── */
.legal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
}

.legal-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin: 36px 0 12px;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p {
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.75;
}

.legal-content ul {
  margin: 0 0 16px 24px;
  color: var(--text-muted);
}

.legal-content li {
  margin-bottom: 6px;
  line-height: 1.7;
}

.legal-content .updated {
  display: inline-block;
  font-size: .85rem;
  color: var(--text-muted);
  background: rgba(232, 67, 147, .06);
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 28px;
}

/* ── Site Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: auto;
  padding: 32px 0;
  background: var(--surface);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s;
}

.footer-links a:hover { color: var(--rose); }

.footer-meta {
  font-size: .85rem;
  color: var(--text-muted);
}

/* ── CTA Banner ── */
.cta-banner {
  text-align: center;
  background: var(--gradient);
  color: #fff;
  padding: 48px 28px;
  border-radius: var(--radius);
  margin-top: 16px;
}

.cta-banner h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #fff;
}

.cta-banner p {
  opacity: .9;
  margin-bottom: 20px;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  :root { --header-h: 56px; }

  .nav-toggle { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 24px 16px;
    box-shadow: var(--shadow-lg);
  }

  .nav.open { display: flex; }

  .nav a { padding: 10px 0; font-size: 1rem; }

  .header-inner { position: relative; }

  .hero { padding: 48px 20px; }
  .hero h2 { font-size: 1.8rem; }

  .page-hero h1 { font-size: 1.8rem; }

  .feature-grid,
  .steps { grid-template-columns: 1fr 1fr; }

  .legal-content { padding: 24px 20px; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 400px) {
  .feature-grid,
  .steps { grid-template-columns: 1fr; }
}
