/*
Theme Name: Aniflow AI
Theme URI: https://aniflowai.com/
Author: Aniflow AI Studio
Description: Aniflow AI - AI girlfriends and companion chat landing theme.
Version: 1.4.2
License: GNU General Public License v2 or later
Text Domain: aniflow-ai
*/

:root {
  --bg: #07040f;
  --bg-2: #0d0718;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.12);
  --ink: #f6f2ff;
  --muted: #b6a9cf;
  --pink: #ff3d90;
  --violet: #8b5cff;
  --cyan: #23e0d6;
  --grad: linear-gradient(120deg, #ff3d90 0%, #b14bff 45%, #23e0d6 100%);
  --radius: 22px;
  --shadow: 0 30px 80px -30px rgba(255, 61, 144, 0.45);
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- ambient background ---------- */
.aura {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(50rem 40rem at 12% -5%, rgba(255, 61, 144, .30), transparent 60%),
    radial-gradient(45rem 38rem at 88% 8%, rgba(139, 92, 255, .30), transparent 62%),
    radial-gradient(60rem 45rem at 50% 105%, rgba(35, 224, 214, .18), transparent 65%),
    var(--bg);
}
.grain {
  position: fixed; inset: 0; z-index: -1; opacity: .28; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 3px 3px;
  animation: drift 24s linear infinite;
}
@keyframes drift { to { background-position: 60px 90px; } }

.wrap { width: min(1200px, 92%); margin-inline: auto; }
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 68px 0; }

/* ---------- typography ---------- */
h1, h2 { line-height: 1.08; letter-spacing: -0.025em; font-weight: 800; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 3rem); }
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--muted); font-size: clamp(1.02rem, 1.5vw, 1.2rem); max-width: 62ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--pink); font-weight: 700; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--grad); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 34px; border-radius: 999px; font-weight: 800; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn--primary { background: var(--grad); color: #14061d; box-shadow: var(--shadow); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.55) 50%, transparent 80%);
  transform: translateX(-120%);
  animation: sheen 3.4s ease-in-out infinite;
}
@keyframes sheen { 0%, 60% { transform: translateX(-120%);} 100% { transform: translateX(120%);} }
.btn--ghost { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn:hover { transform: translateY(-3px) scale(1.02); }
.btn--lg { padding: 20px 46px; font-size: 1.08rem; }
.btn--block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(18px);
  background: rgba(7, 4, 15, .72);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 1.2rem; letter-spacing: -.02em; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 13px; background: var(--grad);
  display: grid; place-items: center; color: #10041a; font-weight: 900;
  box-shadow: 0 10px 30px -10px rgba(255,61,144,.8);
  animation: pulse 3.2s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: rotate(-6deg) scale(1.06); } }
.menu { display: flex; gap: 28px; align-items: center; }
.menu a { color: var(--muted); font-weight: 600; font-size: .96rem; transition: color .2s; }
.menu a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.burger { display: none; background: none; border: 0; color: var(--ink); font-size: 1.6rem; }
@media (max-width: 960px) {
  .menu { display: none; }
  .burger { display: block; }
  .menu.is-open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(10,5,20,.98); padding: 24px; gap: 18px; border-bottom: 1px solid var(--line);
  }
  .nav-cta .btn--ghost { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 90px 0 80px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background-image: url("/wp-content/uploads/2026/08/aniflow-ai-hero-bg.jpg");
  background-size: cover; background-position: center;
  opacity: .3; filter: saturate(1.2);
  mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 span { display: block; }
.hero .lead { margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-stats { display: flex; gap: 34px; margin-top: 42px; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 1.7rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { color: var(--muted); font-size: .88rem; }

.hero-stage { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 520px; margin-inline: auto; }
.hero-stage figure {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow); animation: float 7s ease-in-out infinite;
}
.hero-stage figure:nth-child(2) { animation-delay: -2.2s; margin-top: 42px; }
.hero-stage figure:nth-child(3) { animation-delay: -4.4s; margin-top: -18px; }
.hero-stage figure:nth-child(4) { animation-delay: -1.1s; margin-top: 24px; }
@keyframes float { 50% { transform: translateY(-14px); } }
.hero-stage img { aspect-ratio: 3/4; height: 260px; width: 100%; object-fit: cover; object-position: top center; }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: rgba(255,255,255,.02); }
.marquee-track { display: flex; gap: 46px; width: max-content; animation: slide 26s linear infinite; }
.marquee span { color: var(--muted); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .8rem; white-space: nowrap; }
.marquee span::after { content: "✦"; color: var(--pink); margin-left: 46px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- 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); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; position: relative; overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s;
}
.card:hover { transform: translateY(-8px); background: var(--surface-2); }
.card:hover::before { opacity: 1; }
.card h2 { font-size: 1.2rem; margin-bottom: 10px; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: .97rem; }
.icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--grad); color: #150520; font-size: 1.4rem; margin-bottom: 18px; font-weight: 900;
}

/* ---------- companion cards ---------- */
.girl {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
}
.girl img { aspect-ratio: 4/5; height: 440px; object-fit: cover; object-position: top center; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.girl:hover { transform: translateY(-10px); box-shadow: var(--shadow); }
.girl:hover img { transform: scale(1.08); }
.girl-body {
  position: absolute; inset: auto 0 0 0; padding: 22px;
  background: linear-gradient(180deg, transparent, rgba(6, 2, 12, .93) 55%);
}
.girl-body h2 { font-size: 1.25rem; }
.girl-body p { color: var(--muted); font-size: .88rem; margin: 4px 0 14px; }
.tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(6,2,12,.7); border: 1px solid var(--line); backdrop-filter: blur(8px);
  padding: 6px 14px; border-radius: 999px; font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--cyan);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #35e07a; display: inline-block; margin-right: 6px; box-shadow: 0 0 12px #35e07a; }

/* ---------- chat mock ---------- */
.chat {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid var(--line); border-radius: 26px; padding: 24px; box-shadow: var(--shadow);
}
.chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.chat-head img { width: 46px !important; height: 46px !important; border-radius: 50%; object-fit: cover; }
.chat-head b { display: block; font-size: 1rem; }
.chat-head small { color: #35e07a; font-size: .8rem; }
.bubble {
  max-width: 82%; padding: 13px 18px; border-radius: 20px; margin-top: 14px; font-size: .95rem;
  background: var(--surface-2); border: 1px solid var(--line);
  animation: pop .5s ease both;
}
.bubble.me { margin-left: auto; background: var(--grad); color: #17061f; border: 0; font-weight: 600; }
.bubble:nth-child(2) { animation-delay: .15s; }
.bubble:nth-child(3) { animation-delay: .3s; }
.bubble:nth-child(4) { animation-delay: .45s; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.typing span {
  width: 7px; height: 7px; background: var(--muted); border-radius: 50%; display: inline-block; margin-right: 4px;
  animation: blink 1.2s infinite;
}
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .2; transform: translateY(-3px); } }

/* ---------- steps ---------- */
.step { counter-increment: step; }
.step .num {
  font-size: 3rem; font-weight: 900; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- story blocks ---------- */
.prose p { color: var(--muted); margin-top: 18px; }
.prose p strong { color: var(--ink); }

/* ---------- pricing ---------- */
.plan { text-align: center; }
.plan .price { font-size: 2.6rem; font-weight: 900; margin: 12px 0 4px; }
.plan .price small { font-size: .95rem; color: var(--muted); font-weight: 600; }
.plan ul { margin: 20px 0 26px; display: grid; gap: 10px; color: var(--muted); font-size: .95rem; }
.plan ul li::before { content: "✓"; color: var(--cyan); font-weight: 900; margin-right: 8px; }
.plan.featured { background: linear-gradient(180deg, rgba(255,61,144,.14), rgba(139,92,255,.08)); }
.plan.featured::before { opacity: 1; }
.ribbon { position: absolute; top: 16px; right: -34px; transform: rotate(38deg); background: var(--grad); color: #16051f; font-size: .7rem; font-weight: 900; padding: 6px 40px; letter-spacing: .1em; }

/* ---------- reviews ---------- */
.review .stars { color: #ffc857; letter-spacing: 3px; margin-bottom: 12px; }
.review .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 900; color: #16051f; }

/* ---------- faq ---------- */
.faq-item { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); margin-bottom: 14px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; color: var(--ink);
  font: inherit; font-weight: 700; padding: 22px 26px; cursor: pointer;
  display: flex; justify-content: space-between; gap: 18px; align-items: center;
}
.faq-q::after { content: "+"; color: var(--pink); font-size: 1.5rem; transition: transform .3s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-a p { padding: 0 26px 22px; color: var(--muted); }
.faq-item.open .faq-a { max-height: 420px; }

/* ---------- cta band ---------- */
.cta-band {
  border-radius: 32px; padding: 68px 40px; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(255,61,144,.22), rgba(139,92,255,.18), rgba(35,224,214,.12));
  border: 1px solid var(--line);
}
.cta-band::after {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,61,144,.35), transparent 65%);
  top: -220px; left: 50%; transform: translateX(-50%); pointer-events: none;
}

/* ---------- legal ---------- */
.legal { padding: 70px 0 90px; }
.legal-head { border-bottom: 1px solid var(--line); padding-bottom: 30px; margin-bottom: 40px; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--muted); }
.legal ol.terms { counter-reset: t; display: grid; gap: 26px; list-style: none; padding: 0; }
.legal ol.terms > li { counter-increment: t; }
.legal ul.bullets { margin: 12px 0 0 22px; list-style: disc; }
.legal ul.bullets li { margin-bottom: 6px; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.toc a { color: var(--muted); font-size: .93rem; }
.toc a:hover { color: var(--pink); }
.toc ul { columns: 2; gap: 26px; }
@media (max-width: 700px) { .toc ul { columns: 1; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 34px; background: rgba(255,255,255,.02); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer p, .site-footer a { color: var(--muted); font-size: .93rem; }
.site-footer a:hover { color: var(--pink); }
.footer-title { font-weight: 800; color: var(--ink); margin-bottom: 14px; font-size: .95rem; letter-spacing: .04em; }
.footer-col ul { display: grid; gap: 10px; }
.legal-bar { margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: .86rem; }
.age { border: 1px solid var(--pink); color: var(--pink); border-radius: 999px; padding: 2px 10px; font-weight: 800; font-size: .78rem; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- floating cta ---------- */
.float-cta { position: fixed; right: 20px; bottom: 20px; z-index: 80; }
.float-cta .btn { box-shadow: 0 18px 44px -14px rgba(255,61,144,.9); }
@media (max-width: 520px) { .float-cta { left: 16px; right: 16px; } .float-cta .btn { width: 100%; } }
