/* Rishta AI — warm, trustworthy theme */
:root {
  --rose: #c2185b; --rose-dark: #8e0f40; --gold: #d4a017; --gold-light: #f5d67b;
  --cream: #fdf8f0; --ink: #3a2a2a; --muted: #8a7373;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: var(--cream); color: var(--ink); line-height: 1.6; }
a { color: var(--rose); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* nav */
nav { background: #fff; box-shadow: 0 2px 12px rgba(194,24,91,.08); position: sticky; top: 0; z-index: 50; }
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 22px; font-weight: 800; color: var(--rose); text-decoration: none; }
.logo span { color: var(--gold); }
.nav-links a { margin-left: 22px; text-decoration: none; color: var(--ink); font-weight: 600; }
.nav-links a.btn { color: #fff; }

/* buttons */
.btn { display: inline-block; background: var(--rose); color: #fff; border: none; padding: 12px 28px;
  border-radius: 30px; font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none; transition: .2s; }
.btn:hover { background: var(--rose-dark); transform: translateY(-1px); }
.btn.gold { background: var(--gold); color: #3a2a00; }
.btn.ghost { background: transparent; color: var(--rose); border: 2px solid var(--rose); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* hero */
.hero { position: relative; min-height: 480px; display: flex; align-items: center;
  background: linear-gradient(135deg, #8e0f40 0%, #c2185b 60%, #e0608a 100%); color: #fff; overflow: hidden; }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.hero .wrap { position: relative; z-index: 2; padding: 70px 20px; }
.hero h1 { font-size: 46px; line-height: 1.2; margin-bottom: 14px; }
.hero h1 .gold { color: var(--gold-light); }
.hero p { font-size: 19px; max-width: 560px; margin-bottom: 26px; opacity: .95; }

/* sections */
section { padding: 60px 0; }
section h2 { text-align: center; font-size: 32px; margin-bottom: 10px; color: var(--rose-dark); }
section .sub { text-align: center; color: var(--muted); margin-bottom: 36px; font-size: 17px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.card { background: #fff; border-radius: 18px; padding: 28px; box-shadow: 0 6px 24px rgba(194,24,91,.08); }
.card .ico { font-size: 40px; margin-bottom: 12px; }
.card h3 { margin-bottom: 8px; color: var(--rose-dark); }
.card p { color: var(--muted); font-size: 15px; }

/* pricing */
.price-card { max-width: 440px; margin: 0 auto; background: #fff; border-radius: 22px; padding: 40px;
  text-align: center; box-shadow: 0 10px 40px rgba(194,24,91,.12); border: 3px solid var(--gold); }
.price-card .amount { font-size: 52px; font-weight: 800; color: var(--rose); }
.price-card ul { list-style: none; margin: 22px 0; text-align: right; }
.price-card li { padding: 8px 0; border-bottom: 1px dashed #eee; }

/* forms */
.form-card { max-width: 640px; margin: 40px auto; background: #fff; border-radius: 20px; padding: 36px;
  box-shadow: 0 8px 30px rgba(194,24,91,.1); }
.form-card h2 { text-align: center; margin-bottom: 24px; color: var(--rose-dark); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 14px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 2px solid #eadede;
  border-radius: 12px; font-size: 15px; font-family: inherit; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--rose); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sec-title { margin: 26px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--gold-light);
  color: var(--rose-dark); font-weight: 800; }
.err { background: #fde8e8; color: #a00; padding: 12px; border-radius: 10px; margin-bottom: 16px; display: none; }
.okmsg { background: #e6f7e6; color: #1a6b1a; padding: 12px; border-radius: 10px; margin-bottom: 16px; display: none; }

/* chat */
.chat-wrap { max-width: 720px; margin: 30px auto; background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 8px 30px rgba(194,24,91,.1); display: flex; flex-direction: column; height: 70vh; }
.chat-head { background: var(--rose); color: #fff; padding: 16px 20px; font-weight: 700; font-size: 18px; }
#chat-box { flex: 1; overflow-y: auto; padding: 20px; background: #faf5f0; }
.msg { max-width: 78%; padding: 12px 16px; border-radius: 18px; margin-bottom: 12px; font-size: 15px; line-height: 1.55; }
.msg.ai { background: #fff; border: 1px solid #eadede; border-bottom-right-radius: 6px; }
.msg.user { background: var(--rose); color: #fff; margin-left: auto; border-bottom-left-radius: 6px; }
.chat-input { display: flex; padding: 14px; background: #fff; border-top: 1px solid #eee; }
.chat-input input { flex: 1; padding: 12px 16px; border: 2px solid #eadede; border-radius: 24px; font-size: 15px; }
.chat-input button { margin-left: 10px; }

/* matches */
.match-card { background: #fff; border-radius: 18px; padding: 24px; margin-bottom: 18px;
  box-shadow: 0 6px 24px rgba(194,24,91,.08); display: flex; gap: 20px; align-items: center; }
.match-card .avatar { width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(135deg, var(--rose), var(--gold));
  display: flex; align-items: center; justify-content: center; font-size: 32px; color: #fff; flex-shrink: 0; }
.match-card .score { margin-left: auto; text-align: center; flex-shrink: 0; }
.match-card .score b { font-size: 30px; color: var(--rose); }
.lock { text-align: center; padding: 60px 20px; }
.lock .big { font-size: 64px; margin-bottom: 16px; }

footer { background: var(--rose-dark); color: #fff; text-align: center; padding: 30px 20px; margin-top: 40px; }
footer p { opacity: .8; font-size: 14px; }

@media (max-width: 640px) {
  .hero h1 { font-size: 32px; }
  .row2 { grid-template-columns: 1fr; }
  .match-card { flex-direction: column; text-align: center; }
  .match-card .score { margin: 0; }
}
