/*
Theme Name: Dialogue AI
Theme URI: https://dialogues.run/
Author: Dialogue AI
Description: Dialogue AI — AI girlfriend chat and virtual companion landing theme.
Version: 1.0.4
License: GNU General Public License v2 or later
Text Domain: dialogue-ai
*/

/* ---------------------------------------------------------------
   1. Tokens
--------------------------------------------------------------- */
:root {
  --ink: #0a0713;
  --ink-2: #120c22;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.11);
  --text: #f4eefb;
  --muted: #b3a8c8;
  --pink: #ff2d8a;
  --violet: #8b3dff;
  --cyan: #35e0e6;
  --gold: #ffc76b;
  --grad: linear-gradient(115deg, #ff2d8a 0%, #b043ff 52%, #5b8bff 100%);
  --grad-soft: linear-gradient(140deg, rgba(255, 45, 138, 0.16), rgba(139, 61, 255, 0.1));
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 30px 80px -32px rgba(255, 45, 138, 0.45);
  --shadow-soft: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Sora", "Plus Jakarta Sans", system-ui, sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--ink);
  color: var(--text);
  line-height: 1.68;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.7rem); }

p { margin: 0 0 1.1em; color: var(--muted); }
strong { color: var(--text); font-weight: 600; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.section { position: relative; padding: clamp(64px, 9vw, 122px) 0; }
.section--tight { padding: clamp(48px, 6vw, 84px) 0; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--pink);
  padding: 7px 15px;
  border: 1px solid rgba(255, 45, 138, 0.32);
  border-radius: 999px;
  background: rgba(255, 45, 138, 0.08);
  margin-bottom: 20px;
}

.lead { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: #cdc2e0; max-width: 62ch; }
.section-head { max-width: 760px; margin-bottom: clamp(34px, 5vw, 58px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------------------------------------------------------------
   2. Ambient background
--------------------------------------------------------------- */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: drift 22s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) { width: 46vw; height: 46vw; left: -12vw; top: -8vw; background: #ff2d8a; }
.aurora span:nth-child(2) { width: 40vw; height: 40vw; right: -10vw; top: 18vh; background: #8b3dff; animation-delay: -6s; }
.aurora span:nth-child(3) { width: 36vw; height: 36vw; left: 28vw; bottom: -14vw; background: #2b6bff; animation-delay: -12s; opacity: 0.35; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4vw, -5vh, 0) scale(1.14); }
}

.grid-veil {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 20%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 20%, #000 10%, transparent 78%);
}

/* ---------------------------------------------------------------
   3. Buttons
--------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.97rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  position: relative;
  overflow: hidden;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow); }
.btn-primary::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.4) 50%, transparent 80%);
  transform: translateX(-120%);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.02); }
.btn-primary:hover::after { animation: sheen 0.85s ease; }
@keyframes sheen { to { transform: translateX(120%); } }

.btn-ghost { background: var(--surface-2); border-color: var(--line); color: var(--text); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.13); transform: translateY(-3px); }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------------------------------------------------------------
   4. Header
--------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(10, 7, 19, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 78px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 700; font-size: 1.16rem; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 4px 14px rgba(255, 45, 138, 0.55)); }

.site-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav a { font-size: 0.93rem; font-weight: 600; color: #d3c9e4; position: relative; padding: 4px 0; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--grad); transition: width 0.28s ease;
}
.site-nav a:hover { color: #fff; }
.site-nav a:hover::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; width: 44px; height: 40px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle i { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.25s; }
.nav-toggle.is-active i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active i:nth-child(2) { opacity: 0; }
.nav-toggle.is-active i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------
   5. Hero
--------------------------------------------------------------- */
.hero { position: relative; padding: clamp(56px, 8vw, 104px) 0 clamp(60px, 8vw, 110px); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background: url("/wp-content/uploads/2026/08/hero-bg.jpg") center/cover no-repeat;
  opacity: 0.3;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 92%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 92%);
  transform: scale(1.06);
  animation: slowzoom 26s ease-in-out infinite alternate;
}
@keyframes slowzoom { to { transform: scale(1.16); } }

.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(30px, 5vw, 62px); align-items: center; }
.hero h1 span { display: block; }
.hero .lead { margin-bottom: 28px; }

.trust-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; }
.trust-row div { font-size: 0.86rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }

/* chat mockup */
.chat-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 20px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.chat-top { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.chat-top img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.chat-name { font-weight: 700; font-size: 0.98rem; }
.chat-status { font-size: 0.76rem; color: var(--cyan); }
.bubbles { display: flex; flex-direction: column; gap: 12px; padding: 18px 4px 6px; }
.bubble { padding: 12px 16px; border-radius: 18px; font-size: 0.92rem; max-width: 84%; line-height: 1.55; }
.bubble.her { background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bubble.me { background: var(--grad); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }
.bubble .cursor { display: inline-block; width: 2px; height: 1em; background: var(--pink); margin-left: 3px; vertical-align: -2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------------------------------------------------------------
   6. Marquee
--------------------------------------------------------------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; background: rgba(255, 255, 255, 0.02); overflow: hidden; }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: scrollx 26s linear infinite; }
.marquee-track span { font-family: var(--display); font-weight: 600; font-size: 0.95rem; color: #cbbfe0; display: flex; align-items: center; gap: 44px; white-space: nowrap; }
.marquee-track span::after { content: "✦"; color: var(--pink); }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------
   7. Cards & grids
--------------------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 45, 138, 0.16), transparent 65%);
  opacity: 0; transition: opacity 0.35s ease;
}
.card:hover { border-color: rgba(255, 45, 138, 0.4); transform: translateY(-6px); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card h2 { font-size: 1.18rem; margin-bottom: 10px; }
.card p { font-size: 0.95rem; margin: 0; }

.icon-badge {
  width: 50px; height: 50px; border-radius: 15px;
  display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--line);
  font-size: 1.35rem; margin-bottom: 18px;
}

.num-badge {
  font-family: var(--display); font-weight: 700; font-size: 2.1rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1; margin-bottom: 14px; display: block;
}

/* companions */
.model-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: var(--shadow-soft);
}
.model-card img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; transition: transform 0.7s ease, filter 0.5s ease; }
.model-card:hover img { transform: scale(1.07); }
.model-card:hover { box-shadow: 0 34px 70px -28px rgba(255, 45, 138, 0.5); }
.model-meta {
  position: absolute; inset: auto 0 0 0; padding: 46px 20px 20px;
  background: linear-gradient(to top, rgba(8, 5, 15, 0.96) 12%, rgba(8, 5, 15, 0.55) 55%, transparent);
}
.model-meta h2 { font-size: 1.1rem; margin-bottom: 4px; }
.model-meta p { font-size: 0.85rem; margin: 0 0 14px; color: #c6bad9; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.tag { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); border: 1px solid var(--line); color: #e4dbf2; }
.badge-live {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: flex; align-items: center; gap: 7px;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 999px;
  background: rgba(8, 5, 15, 0.7); border: 1px solid rgba(53, 224, 230, 0.4); color: var(--cyan);
  backdrop-filter: blur(8px);
}
.badge-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: 0.25; transform: scale(0.7); } }

/* steps */
.step { counter-increment: step; }
.step .step-no {
  font-family: var(--display); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.2em;
  color: var(--pink); text-transform: uppercase; display: block; margin-bottom: 12px;
}

/* stats */
.stat { text-align: center; padding: 30px 18px; }
.stat b { font-family: var(--display); font-size: clamp(2rem, 4vw, 2.9rem); display: block; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat small { font-size: 0.86rem; color: var(--muted); letter-spacing: 0.04em; }

/* quotes */
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.quote p { font-size: 0.97rem; color: #ded4ee; font-style: italic; }
.quote footer { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 0.86rem; color: var(--muted); }
.avatar-mini { width: 38px; height: 38px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 0.9rem; }

/* editorial text blocks */
.prose { max-width: 74ch; }
.prose p { font-size: 1.03rem; color: #cabedd; }
.prose p:first-of-type::first-letter {
  font-family: var(--display); font-size: 3.2rem; font-weight: 700; float: left;
  line-height: 0.85; padding: 6px 12px 0 0;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.editorial {
  background: linear-gradient(150deg, rgba(255, 45, 138, 0.07), rgba(139, 61, 255, 0.04));
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: clamp(28px, 5vw, 62px);
}

/* moods */
.chip-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface-2); font-size: 0.92rem; font-weight: 600; color: #e3d9f2;
  transition: 0.28s;
}
.chip:hover { border-color: var(--pink); color: #fff; transform: translateY(-3px); box-shadow: 0 12px 30px -14px rgba(255, 45, 138, 0.7); }

/* plans */
.plan { display: flex; flex-direction: column; }
.plan .price { font-family: var(--display); font-size: 2.3rem; font-weight: 700; margin: 6px 0 4px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 11px; }
.plan li { font-size: 0.93rem; color: #cbbfe0; padding-left: 26px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--pink); font-weight: 800; }
.plan.featured { border-color: rgba(255, 45, 138, 0.5); background: var(--grad-soft); }
.plan .btn { margin-top: auto; }

/* faq */
.faq-list { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; color: var(--text);
  font-family: var(--display); font-weight: 600; font-size: 1.02rem; padding: 20px 56px 20px 22px;
  cursor: pointer; position: relative;
}
.faq-q::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--pink); transition: transform 0.3s ease;
}
.faq-item.is-open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.is-open .faq-a { max-height: 400px; }
.faq-a p { padding: 0 22px 20px; margin: 0; font-size: 0.96rem; }

/* final cta */
.cta-panel {
  text-align: center; border-radius: 34px; padding: clamp(38px, 6vw, 76px) 24px;
  background: radial-gradient(120% 140% at 50% 0%, rgba(255, 45, 138, 0.28), rgba(10, 7, 19, 0.4) 62%);
  border: 1px solid rgba(255, 45, 138, 0.32);
  box-shadow: var(--shadow);
}
.cta-panel .btn-row { justify-content: center; }

/* ---------------------------------------------------------------
   8. Footer
--------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 62px 0 34px; background: rgba(255, 255, 255, 0.02); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; }
.footer-grid h2 { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { font-size: 0.92rem; color: var(--muted); }
.footer-grid a:hover { color: #fff; }
.footer-bottom { margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 0.83rem; color: #8d82a3; }

/* ---------------------------------------------------------------
   9. Legal pages
--------------------------------------------------------------- */
.page-hero { padding: clamp(52px, 7vw, 92px) 0 26px; }
.legal { max-width: 860px; margin: 0 auto; }
.legal ol { counter-reset: legal; list-style: none; padding: 0; margin: 0; display: grid; gap: 26px; }
.legal ol > li { counter-increment: legal; padding-left: 58px; position: relative; }
.legal ol > li::before {
  content: counter(legal, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--line); color: var(--pink);
}
.legal ol > li h2 { font-size: 1.12rem; margin-bottom: 8px; padding-top: 8px; }
.legal ol > li p { font-size: 0.97rem; margin: 0; }
.legal ol > li ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); font-size: 0.95rem; }
.legal ol > li ul li { margin-bottom: 6px; }
.legal-meta {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 22px; background: var(--surface); margin-bottom: 36px; font-size: 0.92rem; color: var(--muted);
}

.toc { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.toc a { font-size: 0.83rem; padding: 8px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: #d5cbe6; }
.toc a:hover { border-color: var(--pink); color: #fff; }

/* ---------------------------------------------------------------
   10. Reveal animation
--------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-delay="4"] { transition-delay: 0.32s; }
[data-reveal][data-delay="5"] { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------
   11. Responsive
--------------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .chat-card { max-width: 460px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: flex; }
  .header-cta .btn { display: none; }
  .site-nav {
    position: absolute; top: 78px; left: 0; right: 0;
    background: rgba(10, 7, 19, 0.97); border-bottom: 1px solid var(--line);
    padding: 18px 22px; display: none; backdrop-filter: blur(20px);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .legal ol > li { padding-left: 0; }
  .legal ol > li::before { position: static; margin-bottom: 12px; }
  .prose p:first-of-type::first-letter { font-size: 2.6rem; }
}
