/*
Theme Name: Cuty AI
Theme URI: https://cuty.run/
Author: Cuty AI
Description: Cuty AI — AI girlfriend chat landing theme.
Version: 1.0.4
License: GNU General Public License v2 or later
Text Domain: cuty-ai
*/

/* ---------------------------------------------------------------
   Design tokens
---------------------------------------------------------------- */
:root {
  --ink: #07040d;
  --ink-2: #0e0819;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f6f1fb;
  --muted: #a89fbc;
  --rose: #ff4d8d;
  --coral: #ff8a5b;
  --violet: #a855ff;
  --aqua: #5ad2ff;
  --grad-hot: linear-gradient(120deg, #ff4d8d 0%, #ff8a5b 55%, #ffcf6b 100%);
  --grad-cool: linear-gradient(120deg, #a855ff 0%, #ff4d8d 70%);
  --glow: 0 20px 60px -20px rgba(255, 77, 141, 0.6);
  --radius: 22px;
  --maxw: 1200px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Clash Display", "Plus Jakarta Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

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

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 8% -5%, rgba(168, 85, 255, 0.22), transparent 65%),
    radial-gradient(55vw 55vw at 100% 12%, rgba(255, 77, 141, 0.18), transparent 62%),
    radial-gradient(70vw 50vw at 50% 110%, rgba(90, 210, 255, 0.12), transparent 70%);
}

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

.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; position: relative; z-index: 1; }

section { padding: 96px 0; position: relative; z-index: 1; }
section.tight { padding: 72px 0; }

h1, h2 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 18px; font-weight: 800; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
p { margin: 0 0 18px; color: #cfc7de; }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 700; color: #ffd2e2; margin: 0 0 18px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(255, 77, 141, 0.35);
  background: rgba(255, 77, 141, 0.1);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 12px var(--rose); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.35; transform: scale(0.75); } }

.lead { font-size: 1.12rem; color: #d9d2e6; max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.section-head { max-width: 760px; margin: 0 auto 56px; }

/* ---------------------------------------------------------------
   Buttons
---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 0; cursor: pointer; position: relative; overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s;
  will-change: transform;
}
.btn-primary { background: var(--grad-hot); color: #2a0413; box-shadow: var(--glow); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; translate: -120% 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transition: translate 0.7s;
}
.btn-primary:hover::after { translate: 120% 0; }
.btn-primary:hover, .btn-ghost:hover { transform: translateY(-3px); }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); backdrop-filter: blur(12px); }
.btn-lg { padding: 20px 44px; font-size: 1.08rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

/* ---------------------------------------------------------------
   Header
---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  padding: 16px 0; transition: background 0.3s, border-color 0.3s, padding 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(8, 4, 16, 0.78); backdrop-filter: blur(18px);
  border-bottom-color: var(--line); padding: 10px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 13px; background: var(--grad-hot);
  display: grid; place-items: center; color: #2a0413; font-weight: 900; font-size: 1rem;
  box-shadow: var(--glow);
}
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { font-size: 0.95rem; color: #d3cbe3; font-weight: 600; transition: color 0.2s; }
.site-nav a:hover { color: #fff; }
.nav-toggle { display: none; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; margin-inline: auto; position: relative;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------------------------------------------------------------
   Hero
---------------------------------------------------------------- */
.hero { padding: 70px 0 90px; overflow: hidden; --mx: 70%; --my: 30%; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(28vw 28vw at var(--mx) var(--my), rgba(255, 138, 91, 0.16), transparent 70%);
  transition: background 0.2s;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 34px; font-size: 0.9rem; color: var(--muted); }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.tick { width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 77, 141, 0.18); color: #ffb3cc; display: grid; place-items: center; font-size: 0.7rem; }

.hero-media { position: relative; }
.hero-media img {
  border-radius: 28px; border: 1px solid var(--line);
  box-shadow: 0 50px 100px -40px rgba(255, 77, 141, 0.55);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-14px); } }
.floating-card {
  position: absolute; padding: 14px 18px; border-radius: 18px;
  background: rgba(16, 9, 28, 0.82); border: 1px solid var(--line);
  backdrop-filter: blur(16px); font-size: 0.85rem; box-shadow: 0 20px 45px -25px #000;
}
.floating-card strong { display: block; font-size: 0.95rem; }
.fc-1 { left: -24px; top: 16%; animation: float 6s ease-in-out infinite 0.5s; }
.fc-2 { right: -18px; bottom: 12%; animation: float 8s ease-in-out infinite 1s; }

/* ---------------------------------------------------------------
   Marquee / stats
---------------------------------------------------------------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); padding: 16px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: slide 26s linear infinite; }
.marquee-track span { font-family: var(--display); font-size: 1.05rem; color: #b9aecd; white-space: nowrap; letter-spacing: 0.02em; }
.marquee-track span::after { content: "✦"; margin-left: 48px; color: var(--rose); }
@keyframes slide { to { transform: translateX(-50%); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { padding: 30px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-align: center; }
.stat b { display: block; font-family: var(--display); font-size: clamp(2rem, 3.5vw, 2.9rem); background: var(--grad-hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat small { color: var(--muted); font-size: 0.88rem; }

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

.card {
  padding: 34px 30px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); position: relative; overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s, background 0.35s;
}
.card:hover { transform: translateY(-8px); border-color: rgba(255, 77, 141, 0.45); background: var(--surface-2); }
.card h2 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { margin: 0; font-size: 0.98rem; color: #bdb4cf; }
.card-icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--grad-cool); color: #fff; font-size: 1.4rem; margin-bottom: 20px; box-shadow: 0 14px 30px -14px var(--violet);
}
.step-num {
  font-family: var(--display); font-size: 3.2rem; line-height: 1; font-weight: 800;
  background: var(--grad-hot); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px;
}

/* Models */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.model {
  position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 5 / 6; transition: transform 0.4s, box-shadow 0.4s;
}
.model img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.model:hover { transform: translateY(-8px); box-shadow: 0 40px 70px -35px rgba(255, 77, 141, 0.7); }
.model:hover img { transform: scale(1.08); }
.model-body {
  position: absolute; inset: auto 0 0 0; padding: 24px 22px;
  background: linear-gradient(to top, rgba(6, 3, 12, 0.95) 12%, rgba(6, 3, 12, 0.55) 55%, transparent);
}
.model-body h2 { font-size: 1.3rem; margin: 0 0 4px; }
.model-body p { margin: 0 0 14px; font-size: 0.9rem; color: #cabfda; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.chip { font-size: 0.72rem; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); border: 1px solid var(--line); color: #eee6f7; }
.model-cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.9rem; color: #ffc2d6; }
.online { position: absolute; top: 16px; left: 16px; font-size: 0.72rem; padding: 6px 12px; border-radius: 999px; background: rgba(6, 3, 12, 0.7); border: 1px solid rgba(120, 255, 180, 0.4); color: #9dffc7; backdrop-filter: blur(8px); }

/* Chat preview */
.chat-wrap { display: grid; grid-template-columns: 1fr 0.85fr; gap: 60px; align-items: center; }
.phone {
  border-radius: 34px; padding: 22px; background: rgba(14, 8, 25, 0.9);
  border: 1px solid var(--line); box-shadow: 0 60px 110px -50px rgba(168, 85, 255, 0.7);
}
.phone-top { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.phone-top b { font-size: 0.98rem; }
.phone-top small { display: block; color: #8affc0; font-size: 0.76rem; }
.bubble { max-width: 84%; padding: 13px 18px; border-radius: 20px; margin-bottom: 12px; font-size: 0.95rem; 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-hot); color: #2a0413; margin-left: auto; border-bottom-right-radius: 6px; font-weight: 600; }
.bubble.typing { color: #ffd0e0; min-height: 46px; }
.bubble.typing::after { content: "▍"; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Editorial text blocks */
.editorial { background: rgba(255, 255, 255, 0.03); border-block: 1px solid var(--line); }
.editorial .wrap { max-width: 860px; }
.editorial p { font-size: 1.06rem; color: #d5cde3; }
.editorial p:last-child { margin-bottom: 0; }
.pull {
  border-left: 3px solid var(--rose); padding: 6px 0 6px 22px; margin: 28px 0;
  font-family: var(--display); font-size: 1.25rem; line-height: 1.45; color: #fff;
}

/* Personality sliders */
.sliders { display: grid; gap: 18px; }
.slider-row { display: grid; grid-template-columns: 130px 1fr 130px; align-items: center; gap: 16px; font-size: 0.88rem; color: var(--muted); }
.track { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); position: relative; }
.track i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--grad-hot); }
.track b { position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: #fff; translate: -50% -50%; box-shadow: 0 0 0 4px rgba(255, 77, 141, 0.3); }
.slider-row span:last-child { text-align: right; }

/* Testimonials */
.quote { padding: 32px 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.quote p { font-size: 1rem; color: #ded6ea; }
.stars { color: #ffc46b; letter-spacing: 3px; margin-bottom: 14px; }
.who { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 0.88rem; color: var(--muted); }
.who i { width: 36px; height: 36px; border-radius: 50%; background: var(--grad-cool); display: grid; place-items: center; font-style: normal; font-weight: 800; color: #150618; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.plan { padding: 34px 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.plan.featured { background: linear-gradient(160deg, rgba(255, 77, 141, 0.16), rgba(168, 85, 255, 0.1)); border-color: rgba(255, 77, 141, 0.5); box-shadow: var(--glow); transform: translateY(-10px); }
.price { font-family: var(--display); font-size: 2.6rem; font-weight: 800; margin: 6px 0 4px; }
.price small { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 11px; font-size: 0.94rem; color: #c9c0d8; }
.plan li::before { content: "✦"; color: var(--rose); margin-right: 10px; }
.tagline { font-size: 0.85rem; color: var(--muted); }

/* FAQ */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; transition: border-color 0.3s; }
.faq-item.is-open { border-color: rgba(255, 77, 141, 0.5); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; color: var(--text);
  font: 600 1.03rem/1.5 var(--font); padding: 22px 60px 22px 26px; cursor: pointer; position: relative;
}
.faq-q::after { content: "+"; position: absolute; right: 24px; top: 50%; translate: 0 -50%; font-size: 1.5rem; color: var(--rose); transition: rotate 0.3s; }
.faq-item.is-open .faq-q::after { rotate: 45deg; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.is-open .faq-a { max-height: 340px; }
.faq-a p { padding: 0 26px 24px; margin: 0; font-size: 0.97rem; }

/* Final CTA */
.cta-final {
  border-radius: 34px; padding: 70px 40px; text-align: center;
  background: linear-gradient(140deg, rgba(255, 77, 141, 0.22), rgba(168, 85, 255, 0.16));
  border: 1px solid rgba(255, 77, 141, 0.4); box-shadow: 0 60px 120px -60px rgba(255, 77, 141, 0.8);
  position: relative; overflow: hidden;
}
.cta-final::before {
  content: ""; position: absolute; inset: -50%; background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.09), transparent 30%);
  animation: spin 12s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }
.cta-final > * { position: relative; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 60px 0 40px; background: rgba(5, 2, 10, 0.6); position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid p { font-size: 0.94rem; }
.footer-grid h2 { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-family: var(--font); font-weight: 700; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 0.94rem; }
.footer-grid a { color: #c8bfd8; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 0.85rem; color: var(--muted); }

/* Legal pages */
.legal { padding-top: 60px; }
.legal-head { max-width: 820px; margin-bottom: 46px; }
.legal-body { max-width: 880px; }
.legal-body h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.legal-body p, .legal-body li { color: #cbc3da; font-size: 1rem; }
.legal-body ul { padding-left: 20px; display: grid; gap: 8px; margin-bottom: 18px; }
.updated { display: inline-block; font-size: 0.85rem; color: var(--muted); padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.toc { padding: 26px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); margin-bottom: 20px; }
.toc ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 30px; font-size: 0.92rem; }
.toc li { margin-bottom: 8px; break-inside: avoid; }
.toc a { color: #d6cde5; }
.toc a:hover { color: var(--rose); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------
   Responsive
---------------------------------------------------------------- */
@media (max-width: 980px) {
  section { padding: 72px 0; }
  .hero-grid, .chat-wrap { grid-template-columns: 1fr; gap: 42px; }
  .g3, .models, .plans { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .plan.featured { transform: none; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 20px; right: 20px; flex-direction: column; align-items: flex-start;
    gap: 14px; padding: 22px; border-radius: 20px; background: rgba(12, 6, 22, 0.97);
    border: 1px solid var(--line); display: none;
  }
  .site-nav.is-open { display: flex; }
  .fc-1, .fc-2 { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .g2, .g3, .models, .plans, .stats { grid-template-columns: 1fr; }
  .toc ul { columns: 1; }
  .cta-final { padding: 48px 22px; }
  .slider-row { grid-template-columns: 90px 1fr 90px; font-size: 0.78rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
