/* =========================================================
   Mydreams App — global stylesheet
   Dark theme · glassmorphism · pink/violet accents
   ========================================================= */
:root {
  --bg: #0e0014;
  --bg-2: #160022;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.10);
  --text: #f4ecf7;
  --muted: #b9a8c7;
  --pink: #ff4d9d;
  --violet: #9b5cff;
  --grad: linear-gradient(135deg, #ff4d9d 0%, #9b5cff 100%);
  --radius: 18px;
  --shadow: 0 20px 50px -20px rgba(155, 92, 255, 0.45);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  background: radial-gradient(1200px 600px at 80% -10%, #2a0a3f 0%, transparent 60%),
              radial-gradient(900px 500px at -10% 20%, #2c0930 0%, transparent 55%),
              var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.12; font-weight: 600; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
p { margin: 0 0 1rem; color: var(--muted); }
.lead { font-size: 1.15rem; color: #d9cce4; }

.container { width: 92%; max-width: var(--max); margin: 0 auto; }
.container.narrow { max-width: 820px; }
.center { text-align: center; }
.section { padding: 90px 0; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--pink); font-weight: 700; margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: .98rem;
  cursor: pointer; border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 26px 60px -18px rgba(255, 77, 157, .6); }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { transform: translateY(-2px); background: var(--surface); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(14px); background: rgba(14, 0, 20, .55);
  border-bottom: 1px solid transparent; transition: background .3s, border-color .3s;
}
.site-header.is-scrolled { background: rgba(14, 0, 20, .85); border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 16px var(--pink); }
.brand-name { font-family: "Fraunces", serif; font-size: 1.25rem; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { color: var(--muted); font-weight: 600; font-size: .95rem; transition: color .2s; }
.main-nav a:hover, .main-nav a.is-active { color: var(--text); }
.nav-cta { color: #fff !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { padding: 70px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 30px; }
.hero-stats { display: flex; gap: 30px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats .num { font-family: "Fraunces", serif; font-size: 1.7rem; font-weight: 700; }
.hero-stats span:last-child { font-size: .82rem; color: var(--muted); }

/* ---------- Chat card ---------- */
.chat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 26px;
  box-shadow: var(--shadow); overflow: hidden; backdrop-filter: blur(12px);
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.chat-avatar img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.chat-head .who { font-weight: 700; }
.chat-head .stat { font-size: .78rem; color: #56e39f; }
.chat-body { min-height: 260px; max-height: 360px; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 82%; align-self: flex-start; opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s; }
.msg.show { opacity: 1; transform: none; }
.msg-text { background: var(--surface-2); border: 1px solid var(--border); padding: 11px 15px; border-radius: 16px 16px 16px 4px; font-size: .95rem; color: var(--text); }
.msg-photo { position: relative; display: block; margin-top: 8px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.msg-photo img { width: 100%; height: auto; transition: transform .4s; }
.msg-photo:hover img { transform: scale(1.05); }
.zoom-ico { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; display: grid; place-items: center; background: rgba(0,0,0,.55); border-radius: 50%; font-size: 1rem; backdrop-filter: blur(4px); }
.typing { background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; padding: 12px 16px; display: inline-flex; gap: 5px; align-self: flex-start; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
.chat-input { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--border); }
.chat-input .fake { flex: 1; color: var(--muted); font-size: .9rem; background: var(--surface-2); border-radius: 999px; padding: 10px 16px; }
.chat-send { width: 42px; height: 42px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; }

/* ---------- Story rows ---------- */
.story-row { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 70px; }
.story-row.reverse .story-media { order: 2; }
.story-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.story-row:last-child { margin-bottom: 0; }

/* ---------- Text blocks ---------- */
.text-block { margin-bottom: 44px; }
.text-block:last-child { margin-bottom: 0; }

/* ---------- Section head ---------- */
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }

/* ---------- Model grid ---------- */
.model-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.model-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s, box-shadow .25s; will-change: transform;
}
.model-card:hover { box-shadow: var(--shadow); }
.model-thumb { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.model-thumb img { width: 100%; height: 100%; object-fit: cover; }
.model-badge { position: absolute; left: 10px; top: 10px; background: rgba(0,0,0,.55); padding: 5px 10px; border-radius: 999px; font-size: .75rem; backdrop-filter: blur(4px); }
.model-online { position: absolute; right: 10px; top: 10px; background: rgba(86,227,159,.18); color: #56e39f; padding: 5px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.model-info { padding: 16px 16px 18px; }
.mtitle h2 { font-size: 1.3rem; margin: 0 0 6px; }
.model-info p { font-size: .9rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.tag { font-size: .72rem; background: var(--surface-2); border: 1px solid var(--border); padding: 4px 10px; border-radius: 999px; color: var(--muted); }
.row { display: flex; gap: 10px; }
.row .btn { flex: 1; padding: 10px 14px; font-size: .85rem; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: transform .25s, box-shadow .25s; }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature-ico { font-size: 1.8rem; margin-bottom: 12px; }
.feature-card h2 { font-size: 1.2rem; }
.feature-card p { font-size: .92rem; margin: 0; }

/* ---------- Stat band ---------- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.stat-band .stat { text-align: center; }
.stat-band .num { font-family: "Fraunces", serif; font-size: 2rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-band span { font-size: .85rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 4px 20px; }
.faq-item summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--pink); }
.faq-item[open] summary::after { content: "–"; }
.faq-a { padding: 0 0 18px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; background: var(--grad); border-radius: 26px; padding: 56px 30px; box-shadow: var(--shadow); }
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { opacity: .92; }

/* ---------- Model profile page ---------- */
.model-hero { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: start; }
.model-hero .portrait img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.profile-traits { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }

/* ---------- Generic page intro ---------- */
.page-intro { text-align: center; padding: 70px 0 10px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 30px; padding: 60px 0 24px; background: rgba(0,0,0,.25); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand p { font-size: .92rem; margin: 14px 0 18px; max-width: 320px; }
.footer-col h2 { font-size: 1rem; font-family: "Plus Jakarta Sans", sans-serif; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); font-size: .92rem; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 40px; padding-top: 22px; text-align: center; }
.footer-bottom p { font-size: .85rem; margin: 0; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 50%; bottom: 24px;
  transform: translateX(-50%) translateY(200%);
  width: min(680px, 92%); z-index: 100;
  background: rgba(22, 0, 34, .92); border: 1px solid var(--border); border-radius: 18px;
  padding: 20px 22px; backdrop-filter: blur(16px); box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.cookie-banner.is-shown { transform: translateX(-50%) translateY(0); }
.cookie-banner p { margin: 0; font-size: .9rem; flex: 1; min-width: 240px; }
.cookie-actions { display: flex; align-items: center; gap: 14px; }
.cookie-link { color: var(--pink); font-weight: 600; font-size: .9rem; }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .story-row, .model-hero { grid-template-columns: 1fr; }
  .story-row.reverse .story-media { order: 0; }
  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 6px;
    background: rgba(14,0,20,.97); padding: 18px 22px; border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height .3s; padding-top: 0; padding-bottom: 0;
  }
  .main-nav.is-open { max-height: 420px; padding-top: 18px; padding-bottom: 22px; }
  .section { padding: 60px 0; }
}
@media (max-width: 520px) {
  .model-grid, .feature-grid, .stat-band, .footer-grid { grid-template-columns: 1fr; }
  .cookie-banner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reviews (model page) ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; backdrop-filter: blur(12px); display: flex; flex-direction: column; transition: transform .25s, border-color .25s; }
.review-card:hover { transform: translateY(-4px); border-color: var(--pink); box-shadow: var(--shadow); }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.review-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 0 14px rgba(255,77,157,.5); }
.review-id { display: flex; flex-direction: column; line-height: 1.25; }
.review-id strong { color: var(--text); font-size: .98rem; }
.review-id span { color: var(--muted); font-size: .8rem; }
.review-stars { margin-left: auto; color: #ffcf4d; letter-spacing: 1px; font-size: .95rem; }
.review-text { color: var(--muted); font-size: .95rem; line-height: 1.65; margin: 0 0 18px; }
.review-cta { margin-top: auto; color: var(--pink); font-weight: 700; font-size: .92rem; }
.review-cta:hover { color: var(--violet); }
@media (max-width: 900px) { .reviews-grid { grid-template-columns: 1fr; } }
