/* ==========================================================================
   Deep Bonga — Deep Midnight visual system
   Original static site styles. No frameworks.
   ========================================================================== */

:root {
  --bg: #0b0d18;
  --bg-2: #131625;
  --bg-3: #0e1120;
  --card: #191d30;
  --card-soft: #15192a;
  --indigo: #6857e8;
  --indigo-deep: #4d3fc4;
  --lavender: #a594ff;
  --rose: #f0a8c4;
  --peach: #f3c4b2;
  --ink: #f4f3ff;
  --muted: #a6a8bf;
  --muted-2: #8f92aa;
  --line: rgba(166, 148, 255, 0.15);
  --line-soft: rgba(244, 243, 255, 0.08);
  --glass: rgba(25, 29, 48, 0.68);
  --gradient: linear-gradient(135deg, #7a68ff 0%, #6250e6 48%, #8d75f6 100%);
  --gradient-text: linear-gradient(110deg, #f4f3ff 0%, #c8bfff 38%, #f0a8c4 100%);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", Helvetica, Arial, sans-serif;
  --shadow-lg: 0 40px 100px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 22px 50px rgba(0, 0, 0, 0.34);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --radius-xl: 44px;
  --container: 1220px;
  --header-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(1100px 680px at 84% -8%, rgba(104, 87, 232, 0.16), transparent 62%),
    radial-gradient(860px 620px at -12% 18%, rgba(240, 168, 196, 0.055), transparent 68%),
    var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3000;
  pointer-events: none;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

body.nav-open {
  overflow: hidden;
}

::selection {
  color: #0b0d18;
  background: var(--lavender);
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

p,
ul,
ol,
figure,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
h5 {
  margin-top: 0;
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2.9rem, 6.2vw, 5.6rem);
  letter-spacing: -0.055em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  letter-spacing: -0.045em;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  letter-spacing: -0.025em;
}

h4 {
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

strong {
  color: #fff;
  font-weight: 650;
}

em {
  font-style: normal;
}

.serif {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

::placeholder {
  color: var(--muted-2);
}

:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 5000;
  padding: 10px 18px;
  color: #0b0d18;
  background: var(--ink);
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.container--wide {
  width: min(calc(100% - 48px), 1380px);
}

.container--narrow {
  width: min(calc(100% - 48px), 860px);
}

.hero-grid > *,
.page-hero__grid > *,
.chat-layout > *,
.split > *,
.voice-layout > *,
.scenario-detail > *,
.scenario-grid > *,
.creator-panel > *,
.builder__body > *,
.roleplay-stage > *,
.generator-layout > *,
.about-intro > *,
.article-layout > *,
.legal-layout > *,
.faq-layout > *,
.policy-panel > *,
.steps > *,
.guide-grid > *,
.blog-secondary > *,
.related-reading > *,
.nsfw-hero__grid > * {
  min-width: 0;
}

.section {
  position: relative;
  padding: 112px 0;
}

.section--tight {
  padding: 76px 0;
}

.section--flush-top {
  padding-top: 0;
}

.section-divider {
  width: 100%;
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--lavender);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.eyebrow--plain::before {
  display: none;
}

.eyebrow .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 16px var(--rose);
}

.section-head {
  max-width: 700px;
  margin-bottom: 48px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.section-head h2 {
  margin-bottom: 18px;
}

.section-head h2 .serif {
  color: var(--lavender);
}

.section-head p {
  max-width: 600px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.section-head--center p {
  margin-inline: auto;
}

.section-head--row {
  display: flex;
  max-width: none;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.section-head--row > div {
  max-width: 720px;
}

.lede {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.small {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.6;
}

.muted {
  color: var(--muted);
}

.label {
  color: var(--muted-2);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.mono {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

/* Buttons ----------------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  position: relative;
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink);
  background: var(--btn-bg);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn svg {
  flex: 0 0 auto;
  transition: transform 0.22s ease;
}

.btn:hover svg.arrow {
  transform: translate(2px, -2px);
}

.btn--primary {
  background: var(--gradient);
  box-shadow: 0 8px 34px rgba(104, 87, 232, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.btn--primary:hover {
  box-shadow: 0 12px 44px rgba(104, 87, 232, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn--secondary {
  border-color: rgba(166, 148, 255, 0.3);
  background: rgba(166, 148, 255, 0.07);
}

.btn--secondary:hover {
  background: rgba(166, 148, 255, 0.13);
  border-color: rgba(166, 148, 255, 0.55);
}

.btn--ghost {
  padding-inline: 4px;
  color: var(--ink);
  border-radius: 0;
}

.btn--ghost::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 9px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.5);
  transform-origin: left;
  opacity: 0.4;
  transition: transform 0.25s ease;
}

.btn--ghost:hover::after {
  transform: scaleX(1);
}

.btn--small {
  min-height: 40px;
  padding: 9px 17px;
  font-size: 0.78rem;
}

.btn--large {
  min-height: 56px;
  padding: 16px 30px;
  font-size: 0.92rem;
}

.btn--block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lavender);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  transition: color 0.2s ease;
}

.text-link:hover {
  color: var(--rose);
}

.text-link svg {
  transition: transform 0.2s ease;
}

.text-link:hover svg {
  transform: translateX(3px);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.cta-row--center {
  justify-content: center;
}

.cta-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 18px;
  color: var(--muted-2);
  font-size: 0.72rem;
}

.cta-note span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cta-note span + span::before {
  content: "·";
  margin-right: 7px;
  color: var(--lavender);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(25, 29, 48, 0.55);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.chip:hover {
  color: var(--ink);
  border-color: rgba(166, 148, 255, 0.45);
}

.chip.is-active,
.chip[aria-pressed="true"] {
  color: #0b0d18;
  border-color: transparent;
  background: var(--ink);
}

.chip--filter {
  padding: 10px 17px;
  font-size: 0.78rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid rgba(244, 243, 255, 0.16);
  border-radius: 999px;
  color: rgba(244, 243, 255, 0.8);
  background: rgba(11, 13, 24, 0.38);
  backdrop-filter: blur(9px);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.tag--lavender {
  color: #dcd5ff;
  border-color: rgba(165, 148, 255, 0.32);
  background: rgba(104, 87, 232, 0.2);
}

.tag--rose {
  color: #ffdbe8;
  border-color: rgba(240, 168, 196, 0.28);
  background: rgba(240, 168, 196, 0.12);
}

.tag .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 9px rgba(240, 168, 196, 0.7);
}

.badge-18 {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(240, 168, 196, 0.4);
  border-radius: 50%;
  color: #ffdbe8;
  background: rgba(240, 168, 196, 0.1);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0;
}

.interface-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-2);
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  line-height: 1.4;
  text-transform: uppercase;
}

.interface-note::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--lavender);
  box-shadow: 0 0 10px rgba(165, 148, 255, 0.7);
}

/* Header ------------------------------------------------------------------ */
.age-bar {
  position: relative;
  z-index: 90;
  padding: 8px 0;
  color: rgba(244, 243, 255, 0.64);
  background: #090b14;
  border-bottom: 1px solid rgba(166, 148, 255, 0.08);
  font-size: 0.68rem;
  letter-spacing: 0.01em;
}

.age-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.age-bar strong {
  color: #ffdbe8;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.age-bar a {
  color: var(--lavender);
  text-decoration: underline;
  text-decoration-color: rgba(165, 148, 255, 0.35);
  text-underline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(11, 13, 24, 0.64);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(11, 13, 24, 0.92);
  border-color: var(--line-soft);
}

.nav-wrap {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  line-height: 1;
}

.brand-mark {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid rgba(165, 148, 255, 0.36);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(240, 168, 196, 0.3), transparent 40%), linear-gradient(145deg, #2a2352, #121524);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 0 24px rgba(104, 87, 232, 0.18);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

.brand-type {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
}

.brand-type small {
  color: var(--lavender);
  font-size: 0.43rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  opacity: 0.8;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link,
.dropdown-toggle {
  position: relative;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border: 0;
  border-radius: 9px;
  color: rgba(244, 243, 255, 0.7);
  background: none;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"],
.dropdown-toggle:hover {
  color: var(--ink);
  background: rgba(166, 148, 255, 0.06);
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--rose);
  transform: translateX(-50%);
}

.nav-dropdown {
  position: relative;
}

.dropdown-toggle svg {
  transition: transform 0.2s ease;
}

.dropdown-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  width: 240px;
  padding: 9px;
  visibility: hidden;
  border: 1px solid rgba(166, 148, 255, 0.19);
  border-radius: 16px;
  background: rgba(19, 22, 37, 0.98);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translate(-50%, -7px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  right: 0;
  left: 0;
  height: 12px;
}

.dropdown-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.dropdown-menu a:hover {
  color: var(--ink);
  background: rgba(166, 148, 255, 0.08);
}

.dropdown-menu svg {
  width: 15px;
  height: 15px;
  color: var(--lavender);
}

.nav-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.nav-actions .btn--small {
  min-height: 38px;
  padding: 9px 17px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(166, 148, 255, 0.06);
  cursor: pointer;
}

.menu-toggle span {
  position: relative;
  width: 16px;
  height: 1px;
  background: var(--ink);
  transition: background 0.2s ease;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.22s ease, top 0.22s ease;
}

.menu-toggle span::before {
  top: -5px;
}

.menu-toggle span::after {
  top: 5px;
}

.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: calc(var(--header-h) + 0px);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 99;
  display: none;
  padding: 22px 24px 40px;
  overflow-y: auto;
  background: #0b0d18;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mobile-nav.is-open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav nav {
  display: grid;
  gap: 2px;
  margin-bottom: 26px;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] {
  color: var(--ink);
}

.mobile-nav .mobile-sub {
  padding: 12px 0 6px 14px;
  border-left: 1px solid var(--line);
  margin-left: 5px;
}

.mobile-nav .mobile-sub a {
  padding: 9px 2px;
  border-bottom: 0;
  font-size: 0.84rem;
  color: var(--muted-2);
}

.mobile-nav .btn {
  width: 100%;
}

.mobile-nav__note {
  margin-top: 16px;
  color: var(--muted-2);
  font-size: 0.7rem;
  text-align: center;
}

/* Hero -------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 66px 0 74px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -12%;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(166, 148, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(166, 148, 255, 0.025), 0 0 0 150px rgba(166, 148, 255, 0.018);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.hero-copy {
  padding: 30px 0;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
}

.hero h1 {
  max-width: 700px;
  margin-bottom: 24px;
  font-weight: 620;
  line-height: 0.98;
}

.hero h1 .serif {
  display: inline-block;
  color: var(--lavender);
  font-size: 1.04em;
  line-height: 0.8;
}

.hero-lede {
  max-width: 540px;
  margin-bottom: 30px;
  color: #c1c0d4;
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.8;
}

.hero-lede strong {
  font-weight: 650;
}

.hero .cta-row {
  margin-bottom: 4px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.hero-meta div {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted-2);
  font-size: 0.7rem;
  font-weight: 600;
}

.hero-meta svg {
  width: 16px;
  height: 16px;
  color: var(--lavender);
}

.hero-visual {
  position: relative;
  min-height: 610px;
  padding: 8px 22px 20px;
}

.hero-orbit {
  position: absolute;
  top: 2%;
  right: -6%;
  width: 88%;
  aspect-ratio: 1;
  border: 1px solid rgba(166, 148, 255, 0.1);
  border-radius: 50%;
  transform: rotate(-18deg);
  pointer-events: none;
}

.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.hero-orbit::before {
  top: 8%;
  left: 22%;
  width: 7px;
  height: 7px;
  background: var(--rose);
  box-shadow: 0 0 24px 6px rgba(240, 168, 196, 0.35);
}

.hero-orbit::after {
  right: 5%;
  bottom: 18%;
  width: 4px;
  height: 4px;
  background: var(--lavender);
  box-shadow: 0 0 18px 5px rgba(165, 148, 255, 0.36);
}

.hero-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 475px;
  height: 565px;
  margin-left: auto;
  overflow: hidden;
  border: 1px solid rgba(240, 168, 196, 0.24);
  border-radius: 190px 190px 28px 28px;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.52), 0 0 80px rgba(104, 87, 232, 0.11);
  background: var(--card);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 42%;
  filter: saturate(0.85) contrast(1.02);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 13, 24, 0) 38%, rgba(11, 13, 24, 0.82) 100%);
}

.hero-photo-label {
  position: absolute;
  right: 26px;
  bottom: 24px;
  left: 26px;
  z-index: 1;
}

.hero-photo-label .tag {
  margin-bottom: 10px;
}

.hero-photo-label h2 {
  margin: 0 0 4px;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-photo-label p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.floating-chat {
  position: absolute;
  bottom: 154px;
  left: -20px;
  z-index: 3;
  width: 272px;
  padding: 16px;
  border: 1px solid rgba(166, 148, 255, 0.2);
  border-radius: 18px;
  background: rgba(22, 26, 44, 0.88);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
  animation: float 7s ease-in-out infinite;
}

.floating-chat__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 11px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.floating-chat__head img {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  object-fit: cover;
}

.floating-chat__head strong {
  display: block;
  font-size: 0.69rem;
  line-height: 1.3;
}

.floating-chat__head span {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #9dd9c3;
  font-size: 0.57rem;
  font-weight: 600;
}

.floating-chat__head span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.floating-chat p {
  width: fit-content;
  max-width: 92%;
  margin: 0 0 7px;
  padding: 7px 10px;
  border-radius: 4px 11px 11px 11px;
  color: #d8d6e6;
  background: rgba(166, 148, 255, 0.1);
  font-size: 0.67rem;
  line-height: 1.5;
}

.floating-chat p.is-reply {
  margin-left: auto;
  border-radius: 11px 4px 11px 11px;
  color: #ded9ff;
  background: rgba(104, 87, 232, 0.32);
}

.floating-chat .interface-note {
  margin-top: 11px;
  font-size: 0.5rem;
}

.floating-match {
  position: absolute;
  top: 128px;
  right: -9px;
  z-index: 3;
  width: 164px;
  padding: 12px;
  border: 1px solid rgba(244, 243, 255, 0.12);
  border-radius: 15px;
  background: rgba(19, 22, 37, 0.85);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  transform: rotate(2.5deg);
}

.floating-match .label {
  font-size: 0.53rem;
}

.floating-match strong {
  display: block;
  margin: 4px 0 8px;
  font-size: 0.79rem;
  letter-spacing: -0.01em;
}

.meter {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(244, 243, 255, 0.1);
}

.meter span {
  display: block;
  width: 82%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--indigo), var(--rose));
}

.floating-match small {
  display: block;
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 0.53rem;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* Marquee ----------------------------------------------------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 17px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(19, 22, 37, 0.42);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: ticker 38s linear infinite;
}

.marquee__group {
  display: flex;
  align-items: center;
  flex: none;
}

.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding-right: 24px;
  color: rgba(244, 243, 255, 0.55);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  white-space: nowrap;
  text-transform: uppercase;
}

.marquee span::after {
  content: "✦";
  color: var(--rose);
  font-size: 0.75rem;
  letter-spacing: 0;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* Character cards --------------------------------------------------------- */
.character-carousel {
  position: relative;
}

.character-track {
  display: grid;
  grid-auto-columns: minmax(230px, 1fr);
  grid-auto-flow: column;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 16px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.character-track::-webkit-scrollbar {
  display: none;
}

.character-track .character-card {
  scroll-snap-align: start;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.character-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(166, 148, 255, 0.14);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.character-card:hover {
  z-index: 2;
  border-color: rgba(166, 148, 255, 0.44);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.38);
  transform: translateY(-6px);
}

.character-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(145deg, #25213d, #10121e);
}

.character-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
}

.character-card:hover .character-media img {
  transform: scale(1.045);
  filter: saturate(1.06);
}

.character-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 13, 24, 0) 40%, rgba(11, 13, 24, 0.94) 100%);
}

.character-card__tags {
  position: absolute;
  top: 13px;
  right: 13px;
  left: 13px;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.character-card__tags .tag {
  padding: 4px 8px;
  font-size: 0.51rem;
}

.character-card__body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 18px;
}

.character-card__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
  color: rgba(244, 243, 255, 0.52);
  font-size: 0.58rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.character-card__meta::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--rose);
}

.character-card h3 {
  margin-bottom: 5px;
  font-size: 1.28rem;
}

.character-card__body > p {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.character-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 11px;
  border-top: 1px solid rgba(244, 243, 255, 0.1);
}

.character-card__footer span {
  color: var(--muted-2);
  font-size: 0.62rem;
}

.character-card__footer a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--lavender);
  font-size: 0.62rem;
  font-weight: 700;
}

.character-card__footer a:hover {
  color: var(--ink);
}

.carousel-tools {
  display: flex;
  gap: 7px;
}

.circle-btn {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(25, 29, 48, 0.72);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.circle-btn:hover {
  border-color: rgba(166, 148, 255, 0.48);
  background: rgba(104, 87, 232, 0.2);
  transform: scale(1.04);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  margin-bottom: 26px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(19, 22, 37, 0.56);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-count {
  color: var(--muted-2);
  font-size: 0.68rem;
  font-weight: 600;
}

.filter-empty {
  display: none;
  padding: 60px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.filter-empty.is-visible {
  display: block;
}

[data-character].is-hidden {
  display: none;
}

/* Chat preview ------------------------------------------------------------ */
.chat-section {
  overflow: hidden;
}

.chat-section::after {
  content: "";
  position: absolute;
  top: 15%;
  left: -15%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(104, 87, 232, 0.12), transparent 65%);
  pointer-events: none;
}

.chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(300px, 0.84fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}

.chat-window {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(166, 148, 255, 0.2);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(27, 31, 52, 0.96), rgba(13, 16, 29, 0.98));
  box-shadow: 0 35px 85px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.chat-window::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 168, 196, 0.6), transparent);
}

.chat-window__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(11, 13, 24, 0.32);
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(244, 243, 255, 0.18);
}

.window-dots span:first-child {
  background: rgba(240, 168, 196, 0.7);
}

.chat-window__bar .interface-note {
  font-size: 0.55rem;
}

.chat-profile {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.chat-profile img {
  width: 41px;
  height: 41px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(166, 148, 255, 0.3);
}

.chat-profile strong {
  display: block;
  font-size: 0.8rem;
}

.chat-profile span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted-2);
  font-size: 0.62rem;
}

.chat-profile span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #9dd9c3;
}

.chat-messages {
  display: flex;
  min-height: 355px;
  flex-direction: column;
  gap: 13px;
  padding: 22px 18px;
}

.message {
  display: flex;
  max-width: 84%;
  gap: 9px;
  align-items: flex-end;
}

.message img {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.message__bubble {
  padding: 10px 13px;
  border: 1px solid rgba(166, 148, 255, 0.13);
  border-radius: 4px 14px 14px 14px;
  color: #d8d6e6;
  background: rgba(166, 148, 255, 0.085);
  font-size: 0.77rem;
  line-height: 1.55;
}

.message--user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message--user .message__bubble {
  border-color: rgba(166, 148, 255, 0.2);
  border-radius: 14px 4px 14px 14px;
  color: #e8e4ff;
  background: linear-gradient(135deg, rgba(104, 87, 232, 0.5), rgba(104, 87, 232, 0.28));
}

.message__name {
  display: block;
  margin-bottom: 3px;
  color: var(--muted-2);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.typing {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 4px;
  padding: 8px 11px;
  border-radius: 4px 12px 12px 12px;
  background: rgba(166, 148, 255, 0.075);
}

.typing span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing 1.2s ease-in-out infinite;
}

.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.chat-compose {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 18px 16px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--muted-2);
  background: rgba(11, 13, 24, 0.4);
  font-size: 0.68rem;
}

.chat-compose span {
  flex: 1;
}

.chat-compose button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #0b0d18;
  background: var(--lavender);
  cursor: default;
}

.persona-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 19px;
}

.persona-switcher button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(25, 29, 48, 0.52);
  font-size: 0.66rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.persona-switcher button img {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  object-fit: cover;
}

.persona-switcher button.is-active,
.persona-switcher button[aria-pressed="true"] {
  color: var(--ink);
  border-color: rgba(165, 148, 255, 0.55);
  background: rgba(104, 87, 232, 0.2);
}

.chat-copy h2 .serif {
  color: var(--lavender);
}

.chat-copy p {
  color: var(--muted);
}

.personality-notes {
  display: grid;
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--line-soft);
}

.personality-notes div {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.personality-notes span {
  color: var(--muted-2);
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.personality-notes p {
  margin: 0;
  color: var(--ink);
  font-size: 0.8rem;
  line-height: 1.55;
}

/* Editorial splits -------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(34px, 6vw, 88px);
  align-items: center;
}

.split--reverse .split__visual {
  order: 2;
}

.split__visual {
  position: relative;
}

.split__copy h2 {
  margin-bottom: 20px;
}

.split__copy h2 .serif {
  color: var(--lavender);
}

.split__copy > p {
  max-width: 520px;
  color: var(--muted);
}

.editorial-photo {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(166, 148, 255, 0.17);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.editorial-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.editorial-photo--portrait img {
  aspect-ratio: 4 / 5;
}

.editorial-photo__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 17px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-2);
  font-size: 0.65rem;
}

.photo-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1;
  padding: 8px 12px;
  border: 1px solid rgba(244, 243, 255, 0.16);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(11, 13, 24, 0.58);
  backdrop-filter: blur(14px);
  font-size: 0.62rem;
  font-weight: 600;
}

.offset-card {
  position: absolute;
  right: -24px;
  bottom: -45px;
  width: min(285px, 70%);
  padding: 22px;
  border: 1px solid rgba(166, 148, 255, 0.23);
  border-radius: 18px;
  background: rgba(20, 24, 41, 0.93);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.offset-card .label {
  margin-bottom: 7px;
}

.offset-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.65;
}

.offset-card strong {
  color: var(--ink);
}

.feature-list {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 28px 0 30px;
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.85rem;
}

.feature-list li:first-child {
  border-top: 1px solid var(--line-soft);
}

.feature-list svg {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  color: var(--rose);
}

.feature-list strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.86rem;
}

/* Creator demo ------------------------------------------------------------ */
.creator-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(166, 148, 255, 0.19);
  border-radius: 32px;
  background: linear-gradient(150deg, #171b2e, #0d1020);
  box-shadow: var(--shadow-lg);
}

.creator-panel::before {
  content: "";
  position: absolute;
  top: -140px;
  left: -100px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(104, 87, 232, 0.23), transparent 65%);
  pointer-events: none;
}

.creator-controls {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 4vw, 44px);
}

.creator-controls__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 23px;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--line-soft);
}

.creator-controls__head h3 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}

.creator-controls__head p {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.7rem;
}

.step-count {
  color: var(--lavender);
  font-family: var(--serif);
  font-size: 1.7rem;
  font-style: italic;
  line-height: 1;
}

.choice-group {
  margin-bottom: 25px;
}

.choice-group:last-of-type {
  margin-bottom: 28px;
}

.choice-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.choice-group__head h4 {
  margin: 0;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.choice-group__head span {
  color: var(--muted-2);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.choice {
  min-height: 66px;
  padding: 11px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  color: var(--muted);
  background: rgba(11, 13, 24, 0.32);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.choice small {
  display: block;
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 0.56rem;
  font-weight: 500;
}

.choice:hover {
  border-color: rgba(166, 148, 255, 0.35);
  color: var(--ink);
}

.choice.is-active,
.choice[aria-pressed="true"] {
  border-color: rgba(165, 148, 255, 0.62);
  color: var(--ink);
  background: linear-gradient(145deg, rgba(104, 87, 232, 0.28), rgba(104, 87, 232, 0.1));
  box-shadow: inset 0 0 0 1px rgba(165, 148, 255, 0.08);
}

.choice.is-active small,
.choice[aria-pressed="true"] small {
  color: #c9bfff;
}

.creator-preview {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 530px;
  flex-direction: column;
  justify-content: flex-end;
  background: #101321;
}

.creator-preview__image {
  position: absolute;
  inset: 0;
}

.creator-preview__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transition: opacity 0.35s ease;
}

.creator-preview__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 13, 24, 0.08) 22%, rgba(11, 13, 24, 0.92) 100%);
}

.creator-preview__top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  padding: 18px;
}

.creator-preview__top .tag {
  backdrop-filter: blur(10px);
}

.creator-summary {
  position: relative;
  z-index: 1;
  padding: 22px;
}

.creator-summary .label {
  color: var(--lavender);
}

.creator-summary h3 {
  margin: 7px 0 6px;
  font-size: 1.7rem;
}

.creator-summary p {
  margin-bottom: 14px;
  color: #c5c2d5;
  font-size: 0.79rem;
  line-height: 1.65;
}

.summary-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-top: 13px;
  border-top: 1px solid rgba(244, 243, 255, 0.13);
}

.summary-pills span {
  padding: 4px 8px;
  border: 1px solid rgba(244, 243, 255, 0.15);
  border-radius: 999px;
  color: rgba(244, 243, 255, 0.74);
  font-size: 0.56rem;
}

.creator-disclaimer {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 22px 20px;
  color: rgba(244, 243, 255, 0.42);
  font-size: 0.55rem;
  line-height: 1.5;
}

/* Realistic / anime compare ---------------------------------------------- */
.style-duo {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.style-panel {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.style-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.style-panel:hover img {
  transform: scale(1.03);
}

.style-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 13, 24, 0.02) 35%, rgba(11, 13, 24, 0.96) 100%);
}

.style-panel__content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: clamp(22px, 3vw, 34px);
}

.style-panel__content .tag {
  margin-bottom: 11px;
}

.style-panel__content h3 {
  margin-bottom: 8px;
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
}

.style-panel__content p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.style-panel__content .text-link {
  margin-top: 16px;
}

.style-vs {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 1px solid rgba(244, 243, 255, 0.2);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(15, 18, 32, 0.9);
  box-shadow: var(--shadow-md);
  font-family: var(--serif);
  font-size: 0.95rem;
  font-style: italic;
  backdrop-filter: blur(10px);
  transform: translate(-50%, -50%);
}

/* Image studio ------------------------------------------------------------ */
.studio {
  display: grid;
  grid-template-columns: minmax(290px, 0.78fr) minmax(0, 1.22fr);
  gap: 20px;
  align-items: stretch;
}

.studio-controls {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(22, 26, 44, 0.8);
}

.studio-controls__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 17px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}

.studio-controls__head strong {
  font-size: 0.82rem;
}

.studio-controls__head .interface-note {
  font-size: 0.52rem;
}

.studio-field {
  margin-bottom: 22px;
}

.studio-field > .label {
  display: block;
  margin-bottom: 8px;
}

.studio-prompt {
  width: 100%;
  min-height: 75px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(11, 13, 24, 0.45);
  font-size: 0.72rem;
  line-height: 1.5;
  resize: none;
}

.studio-prompt:focus {
  border-color: rgba(165, 148, 255, 0.5);
  outline: none;
}

.ratio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ratio {
  display: grid;
  width: 47px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  color: var(--muted-2);
  background: rgba(11, 13, 24, 0.3);
  font-size: 0.59rem;
  font-weight: 650;
  cursor: pointer;
}

.ratio.is-active {
  color: var(--ink);
  border-color: var(--lavender);
  background: rgba(104, 87, 232, 0.22);
}

.studio-gallery {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 11px;
  min-height: 470px;
}

.studio-tile {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--card);
}

.studio-tile:first-child {
  grid-row: 1 / span 2;
}

.studio-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease, transform 0.5s ease;
}

.studio-tile:hover img {
  transform: scale(1.035);
}

.studio-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 13, 24, 0.65));
}

.studio-tile span {
  position: absolute;
  bottom: 11px;
  left: 12px;
  z-index: 1;
  padding: 4px 8px;
  border-radius: 999px;
  color: rgba(244, 243, 255, 0.8);
  background: rgba(11, 13, 24, 0.48);
  backdrop-filter: blur(8px);
  font-size: 0.53rem;
  font-weight: 600;
}

.studio-style-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Voice ------------------------------------------------------------------ */
.voice-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(36px, 6vw, 86px);
  align-items: center;
}

.voice-copy h2 {
  margin-bottom: 20px;
}

.voice-copy h2 .serif {
  color: var(--lavender);
}

.voice-copy > p {
  color: var(--muted);
}

.voice-personas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 20px 0 28px;
}

.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 24px 0;
}

.phone-stage::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(166, 148, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 50px rgba(166, 148, 255, 0.025), 0 0 0 110px rgba(166, 148, 255, 0.015);
  transform: translate(-50%, -50%);
}

.phone {
  position: relative;
  z-index: 1;
  width: min(320px, 86vw);
  padding: 9px;
  border: 1px solid rgba(244, 243, 255, 0.2);
  border-radius: 46px;
  background: linear-gradient(150deg, #333649, #0e101c 30%);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), inset 0 0 0 2px rgba(0, 0, 0, 0.45);
  transform: rotate(3deg);
}

.phone__screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 18.4;
  border-radius: 37px;
  background: #131625;
}

.phone__screen > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 30%;
}

.phone__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 13, 24, 0.38), transparent 25%, rgba(11, 13, 24, 0.52) 48%, rgba(11, 13, 24, 0.95));
}

.phone__notch {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 3;
  width: 76px;
  height: 18px;
  border-radius: 999px;
  background: #070810;
  transform: translateX(-50%);
}

.phone__top {
  position: absolute;
  top: 43px;
  right: 16px;
  left: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(244, 243, 255, 0.65);
  font-size: 0.54rem;
}

.phone__content {
  position: absolute;
  right: 16px;
  bottom: 17px;
  left: 16px;
  z-index: 2;
}

.phone__avatar {
  width: 56px;
  height: 56px;
  margin-bottom: 9px;
  overflow: hidden;
  border: 1px solid rgba(244, 243, 255, 0.24);
  border-radius: 50%;
}

.phone__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone__content .tag {
  margin-bottom: 7px;
}

.phone__content h3 {
  margin-bottom: 3px;
  font-size: 1.25rem;
}

.phone__content p {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 0.62rem;
}

.voice-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid rgba(166, 148, 255, 0.18);
  border-radius: 11px;
  background: rgba(25, 29, 48, 0.68);
  backdrop-filter: blur(12px);
}

.voice-note__play {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #0b0d18;
  background: var(--lavender);
}

.waveform {
  display: flex;
  height: 25px;
  flex: 1;
  align-items: center;
  gap: 2px;
}

.waveform i {
  display: block;
  width: 2px;
  height: var(--h, 40%);
  border-radius: 999px;
  background: rgba(214, 207, 255, 0.8);
}

.waveform i:nth-child(3n) { --h: 65%; }
.waveform i:nth-child(4n) { --h: 90%; }
.waveform i:nth-child(5n) { --h: 35%; }
.waveform i:nth-child(7n) { --h: 75%; }

.voice-note small {
  color: var(--muted-2);
  font-size: 0.5rem;
  white-space: nowrap;
}

.phone__disclaimer {
  margin-top: 8px;
  color: rgba(244, 243, 255, 0.38) !important;
  font-size: 0.46rem !important;
  line-height: 1.4;
}

.voice-float {
  position: absolute;
  right: 1%;
  bottom: 19%;
  z-index: 3;
  width: 190px;
  padding: 13px;
  border: 1px solid rgba(166, 148, 255, 0.2);
  border-radius: 14px;
  background: rgba(21, 25, 42, 0.88);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  transform: rotate(-3deg);
}

.voice-float .label {
  font-size: 0.52rem;
}

.voice-float p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.5;
}

/* Roleplay previews ------------------------------------------------------- */
.scenario-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  grid-template-rows: repeat(2, minmax(215px, 1fr));
  gap: 14px;
}

.scenario-card {
  position: relative;
  overflow: hidden;
  min-height: 215px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.scenario-card:first-child {
  grid-row: 1 / span 2;
}

.scenario-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.scenario-card:hover img {
  transform: scale(1.04);
}

.scenario-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 13, 24, 0.05) 30%, rgba(11, 13, 24, 0.92) 100%);
}

.scenario-card.is-active {
  border-color: rgba(240, 168, 196, 0.7);
  box-shadow: 0 0 0 1px rgba(240, 168, 196, 0.25), 0 20px 50px rgba(0, 0, 0, 0.35);
}

.scenario-card__content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 18px;
}

.scenario-card__content span {
  display: block;
  margin-bottom: 4px;
  color: var(--rose);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scenario-card__content h3 {
  margin: 0;
  font-size: 1.15rem;
}

.scenario-card__content p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.scenario-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
  margin-top: 18px;
}

.scenario-preview {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(30, 31, 55, 0.78), rgba(15, 18, 31, 0.8));
}

.scenario-preview h3 {
  margin: 10px 0 8px;
  font-size: 1.55rem;
}

.scenario-preview p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.scenario-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.roleplay-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 18, 31, 0.6);
}

.roleplay-chat .message {
  max-width: 94%;
}

.roleplay-chat .message__bubble {
  font-size: 0.72rem;
}

.roleplay-chat .interface-note {
  margin-top: auto;
  padding-top: 12px;
}

.roleplay-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(25, 29, 48, 0.74), rgba(13, 16, 28, 0.9));
}

.roleplay-stage__image {
  position: relative;
  min-height: 560px;
  margin: 0;
  overflow: hidden;
  background: var(--card);
}

.roleplay-stage__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.roleplay-stage__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 13, 24, 0.72));
  pointer-events: none;
}

.roleplay-stage__copy {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 4vw, 42px);
}

.roleplay-stage__copy h2 {
  margin: 8px 0 12px;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
}

.roleplay-stage__copy > p {
  color: var(--muted);
  font-size: 0.86rem;
}

.roleplay-stage__copy .roleplay-chat {
  margin-top: 22px;
  background: rgba(11, 13, 24, 0.38);
}

.relationship-picker {
  padding-top: 17px;
  margin-top: 19px;
  border-top: 1px solid var(--line-soft);
}

.relationship-picker > .label {
  display: block;
  margin-bottom: 9px;
}

.relationship-picker__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.relationship-note {
  min-height: 42px;
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.55;
  transition: opacity 0.18s ease;
}

.cast-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.cast-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--card);
}

.cast-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.cast-card:hover img {
  transform: scale(1.045);
}

.cast-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(11, 13, 24, 0.94));
}

.cast-card > span {
  position: absolute;
  right: 11px;
  bottom: 11px;
  left: 11px;
  z-index: 1;
}

.cast-card strong,
.cast-card small {
  display: block;
}

.cast-card strong {
  font-size: 0.78rem;
}

.cast-card small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.52rem;
}

.nsfw-topics--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Adult info -------------------------------------------------------------- */
.policy-panel {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(240, 168, 196, 0.17);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(37, 26, 44, 0.65), rgba(16, 19, 32, 0.8));
}

.policy-panel__copy {
  padding: clamp(28px, 5vw, 54px);
}

.policy-panel__copy h2 {
  margin-bottom: 17px;
}

.policy-panel__copy h2 .serif {
  color: var(--rose);
}

.policy-panel__copy > p {
  color: var(--muted);
}

.policy-panel__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(166, 148, 255, 0.09);
}

.policy-item {
  min-height: 190px;
  padding: 26px;
  background: rgba(17, 20, 35, 0.92);
}

.policy-item svg {
  width: 20px;
  height: 20px;
  margin-bottom: 17px;
  color: var(--rose);
}

.policy-item h3 {
  margin-bottom: 7px;
  font-size: 0.94rem;
}

.policy-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.6;
}

/* Steps ------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  counter-reset: step;
}

.step-card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(20, 24, 41, 0.5);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.step-card:hover {
  border-color: rgba(166, 148, 255, 0.3);
  background: rgba(26, 30, 51, 0.56);
}

.step-card::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 40px;
  color: var(--lavender);
  font-family: var(--serif);
  font-size: 1.6rem;
  font-style: italic;
  line-height: 1;
}

.step-card::after {
  content: "";
  position: absolute;
  top: 36px;
  right: 26px;
  left: 57px;
  height: 1px;
  background: linear-gradient(90deg, rgba(166, 148, 255, 0.22), transparent);
}

.step-card h3 {
  margin-bottom: 8px;
  font-size: 1.06rem;
}

.step-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.79rem;
}

/* Guides ------------------------------------------------------------------ */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.guide-card {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card-soft);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.guide-card:hover {
  border-color: rgba(166, 148, 255, 0.36);
  transform: translateY(-4px);
}

.guide-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 8.5;
}

.guide-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.guide-card:hover .guide-card__image img {
  transform: scale(1.04);
}

.guide-card__image .tag {
  position: absolute;
  top: 15px;
  left: 15px;
}

.guide-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.guide-card__meta {
  display: flex;
  gap: 14px;
  margin-bottom: 10px;
  color: var(--muted-2);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.guide-card h3 {
  margin-bottom: 9px;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.16;
}

.guide-card p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.78rem;
}

.guide-card__body .text-link {
  margin-top: auto;
  align-self: flex-start;
}

/* FAQ --------------------------------------------------------------------- */
.faq-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 2px;
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--lavender);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.22s ease, background 0.22s ease;
}

.faq-item[open] summary::after {
  content: "−";
  background: rgba(104, 87, 232, 0.16);
  transform: rotate(180deg);
}

.faq-item summary:hover {
  color: var(--lavender);
}

.faq-answer {
  max-width: 840px;
  padding: 0 0 24px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.75;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer a {
  color: var(--lavender);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.34fr 0.66fr;
  gap: clamp(36px, 7vw, 100px);
  align-items: start;
}

.faq-aside {
  position: sticky;
  top: calc(var(--header-h) + 28px);
}

.faq-aside h2 {
  margin-bottom: 16px;
}

.faq-aside p {
  color: var(--muted);
  font-size: 0.87rem;
}

.faq-aside__links {
  display: grid;
  gap: 3px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.faq-aside__links a {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  color: var(--muted);
  font-size: 0.77rem;
}

.faq-aside__links a:hover {
  color: var(--ink);
}

/* Final CTA --------------------------------------------------------------- */
.final-cta {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.final-cta__bg {
  position: absolute;
  inset: 0;
}

.final-cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 35%;
  filter: saturate(0.8);
}

.final-cta__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 13, 24, 0.98) 0%, rgba(11, 13, 24, 0.8) 45%, rgba(11, 13, 24, 0.18) 100%),
    linear-gradient(0deg, rgba(11, 13, 24, 0.45), transparent 50%);
}

.final-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 610px;
  padding: 120px 0;
}

.final-cta h2 {
  margin-bottom: 19px;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.final-cta h2 .serif {
  color: var(--rose);
}

.final-cta p {
  max-width: 480px;
  margin-bottom: 28px;
  color: #c2c0d2;
}

.final-cta__note {
  margin-top: 19px;
  color: rgba(244, 243, 255, 0.46);
  font-size: 0.67rem;
}

/* Footer ------------------------------------------------------------------ */
.site-footer {
  padding: 66px 0 26px;
  color: var(--muted);
  background: #090b14;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 0.58fr);
  gap: 48px;
  padding-bottom: 55px;
}

.footer-brand .brand {
  margin-bottom: 17px;
}

.footer-brand p {
  max-width: 300px;
  margin-bottom: 17px;
  color: var(--muted-2);
  font-size: 0.78rem;
  line-height: 1.7;
}

.footer-adult {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(240, 168, 196, 0.17);
  border-radius: 999px;
  color: #d6b6c3;
  background: rgba(240, 168, 196, 0.045);
  font-size: 0.62rem;
  font-weight: 600;
}

.footer-col h3 {
  margin: 4px 0 16px;
  color: var(--ink);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  width: fit-content;
  padding: 4px 0;
  color: var(--muted-2);
  font-size: 0.76rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--ink);
}

#disclosure {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.footer-disclosure {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(19, 22, 37, 0.5);
}

.footer-disclosure p {
  max-width: 800px;
  margin: 0;
  color: var(--muted-2);
  font-size: 0.66rem;
  line-height: 1.65;
}

.footer-disclosure p + p {
  margin-top: 6px;
}

.footer-disclosure strong {
  color: var(--muted);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 23px;
  margin-top: 23px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-2);
  font-size: 0.66rem;
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.footer-bottom a:hover {
  color: var(--ink);
}

/* Page hero --------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding: 82px 0 68px;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -45%;
  right: -8%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(104, 87, 232, 0.15), transparent 65%);
  pointer-events: none;
}

.page-hero--center {
  text-align: center;
}

.page-hero--center .page-hero__copy {
  max-width: 820px;
  margin-inline: auto;
}

.page-hero--center .cta-row {
  justify-content: center;
}

.page-hero--center .page-hero__meta {
  justify-content: center;
}

.page-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(38px, 6vw, 80px);
  align-items: center;
}

.page-hero__copy h1 {
  max-width: 780px;
  margin-bottom: 21px;
  font-size: clamp(2.7rem, 5.4vw, 4.9rem);
}

.page-hero__copy h1 .serif {
  color: var(--lavender);
}

.page-hero__copy > p {
  max-width: 620px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 26px;
  color: var(--muted-2);
  font-size: 0.7rem;
}

.page-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-hero__meta span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--rose);
}

.page-hero__visual {
  position: relative;
}

.collage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  grid-template-rows: 1fr 0.75fr;
  gap: 10px;
  min-height: 460px;
}

.collage__item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.collage__item:first-child {
  grid-row: 1 / span 2;
  border-radius: 120px 18px 18px 18px;
}

.collage__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collage__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 13, 24, 0.58));
}

.collage__label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 1;
  color: var(--ink);
  font-size: 0.62rem;
  font-weight: 600;
}

.collage--three {
  grid-template-rows: 1fr 1fr;
}

.collage--three .collage__item:first-child {
  border-radius: 120px 18px 18px 18px;
}

/* Breadcrumbs ------------------------------------------------------------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 22px;
  color: var(--muted-2);
  font-size: 0.66rem;
}

.breadcrumbs a {
  color: var(--muted-2);
}

.breadcrumbs a:hover {
  color: var(--lavender);
}

.breadcrumbs span {
  opacity: 0.5;
}

.breadcrumbs [aria-current="page"] {
  color: var(--muted);
}

/* Characters page --------------------------------------------------------- */
.characters-masthead {
  padding-bottom: 36px;
}

.characters-masthead .page-hero__grid {
  align-items: end;
}

.directory-tools {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  padding: 13px 0;
  background: rgba(11, 13, 24, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.directory-tools .filter-bar {
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
}

.character-directory {
  padding-top: 42px;
}

.character-directory .character-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.character-card--directory {
  border-radius: 22px;
}

.character-card--directory .character-media {
  aspect-ratio: 4 / 5;
}

.directory-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 30px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  color: var(--muted-2);
  background: rgba(19, 22, 37, 0.4);
  font-size: 0.7rem;
}

.directory-note svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 3px;
  color: var(--lavender);
}

.profile-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.profile-note {
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(20, 24, 41, 0.44);
}

.profile-note h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.profile-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.79rem;
}

/* Create page ------------------------------------------------------------- */
.builder-hero {
  padding-top: 55px;
}

.builder {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(166, 148, 255, 0.2);
  border-radius: 30px;
  background: linear-gradient(150deg, rgba(25, 29, 48, 0.96), rgba(11, 14, 26, 0.98));
  box-shadow: var(--shadow-lg);
}

.builder__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 21px;
  border-bottom: 1px solid var(--line-soft);
}

.builder__topbar .interface-note {
  font-size: 0.54rem;
}

.builder__progress {
  display: flex;
  gap: 4px;
}

.builder__progress span {
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: rgba(244, 243, 255, 0.12);
  transition: background 0.25s ease;
}

.builder__progress span.is-active {
  background: var(--lavender);
}

.builder__progress span.is-done {
  background: rgba(165, 148, 255, 0.5);
}

.builder__body {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(310px, 0.82fr);
  min-height: 590px;
}

.builder__main {
  padding: clamp(25px, 4vw, 45px);
  border-right: 1px solid var(--line-soft);
}

.builder-step {
  display: none;
}

.builder-step.is-active {
  display: block;
  animation: stepIn 0.28s ease both;
}

@keyframes stepIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.builder-step__count {
  margin-bottom: 7px;
  color: var(--lavender);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
}

.builder-step h2,
.builder-step h3 {
  margin-bottom: 8px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.builder-step > p {
  max-width: 500px;
  margin-bottom: 25px;
  color: var(--muted);
  font-size: 0.84rem;
}

.builder-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.builder-option {
  padding: 17px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(11, 13, 24, 0.3);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.builder-option:hover {
  border-color: rgba(166, 148, 255, 0.36);
  color: var(--ink);
}

.builder-option.is-active {
  border-color: rgba(165, 148, 255, 0.65);
  color: var(--ink);
  background: rgba(104, 87, 232, 0.16);
}

.builder-option strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.81rem;
}

.builder-option span {
  display: block;
  color: var(--muted-2);
  font-size: 0.64rem;
  line-height: 1.5;
}

.builder-option.is-active span {
  color: #b8b0d8;
}

.builder__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 26px;
  margin-top: 26px;
  border-top: 1px solid var(--line-soft);
}

.builder__footer .btn {
  min-height: 43px;
}

.builder__footer .builder-back {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}

.builder__footer .builder-back:hover {
  color: var(--ink);
}

.builder__footer .builder-back[disabled] {
  visibility: hidden;
}

.builder-preview {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: rgba(12, 15, 27, 0.6);
}

.builder-preview__image {
  position: relative;
  flex: 1;
  min-height: 310px;
  overflow: hidden;
  border-radius: 16px;
  background: #181c2d;
}

.builder-preview__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}

.builder-preview__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11, 13, 24, 0.78));
}

.builder-preview__image .interface-note {
  position: absolute;
  top: 13px;
  left: 13px;
  z-index: 1;
  padding: 5px 8px;
  border-radius: 999px;
  color: rgba(244, 243, 255, 0.68);
  background: rgba(11, 13, 24, 0.45);
  backdrop-filter: blur(8px);
  font-size: 0.49rem;
}

.builder-preview__info {
  padding: 19px 3px 3px;
}

.builder-preview__info .label {
  color: var(--lavender);
}

.builder-preview__info h3 {
  margin: 5px 0 7px;
  font-size: 1.5rem;
}

.builder-preview__info p {
  min-height: 64px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.6;
}

.builder-preview__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.builder-preview__chips span {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-2);
  font-size: 0.53rem;
}

.builder-preview__chips span:empty {
  display: none;
}

.builder-complete {
  text-align: center;
  padding: 24px 4px;
}

.builder-complete__mark {
  display: grid;
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  place-items: center;
  border: 1px solid rgba(165, 148, 255, 0.35);
  border-radius: 50%;
  color: var(--lavender);
  background: rgba(104, 87, 232, 0.14);
}

.builder-complete h3 {
  margin-bottom: 7px;
  font-size: 1.5rem;
}

.builder-complete p {
  max-width: 390px;
  margin: 0 auto 20px;
  color: var(--muted);
  font-size: 0.8rem;
}

.character-code {
  max-width: 500px;
  margin: 20px auto 0;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(11, 13, 24, 0.45);
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.65;
  text-align: left;
}

.character-code strong {
  color: var(--lavender);
}

/* Anime page -------------------------------------------------------------- */
.anime-hero {
  position: relative;
  padding: 70px 0 80px;
  overflow: hidden;
}

.anime-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(11, 13, 24, 0.98) 20%, rgba(11, 13, 24, 0.3) 100%),
    url("../images/hana.webp") center 28% / cover no-repeat;
  opacity: 0.26;
  mask-image: linear-gradient(90deg, transparent 5%, #000 55%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 5%, #000 55%, #000 100%);
}

.anime-hero .page-hero__grid {
  align-items: center;
}

.anime-halftone {
  position: absolute;
  top: 10%;
  right: 4%;
  width: 270px;
  height: 270px;
  background-image: radial-gradient(rgba(165, 148, 255, 0.3) 1px, transparent 1px);
  background-size: 9px 9px;
  mask-image: radial-gradient(circle, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(circle, #000, transparent 70%);
  opacity: 0.45;
  pointer-events: none;
}

.anime-title-block {
  position: relative;
  z-index: 1;
}

.anime-title-block h1 {
  max-width: 820px;
  font-size: clamp(3rem, 6.7vw, 5.9rem);
  line-height: 0.94;
}

.anime-title-block h1 .serif {
  color: var(--rose);
  font-size: 1.08em;
}

.anime-kana {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  margin-bottom: 20px;
  color: var(--rose);
  font-family: var(--serif);
  font-size: 0.9rem;
  font-style: italic;
  letter-spacing: 0.14em;
}

.anime-kana::after {
  content: "";
  width: 45px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.anime-collage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 12px;
  align-items: end;
}

.anime-collage__main {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(240, 168, 196, 0.24);
  border-radius: 24px 90px 24px 24px;
  aspect-ratio: 3 / 4;
  background: var(--card);
}

.anime-collage__side {
  display: grid;
  gap: 12px;
}

.anime-collage__side > div {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  aspect-ratio: 1;
  background: var(--card);
}

.anime-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.anime-collage__tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 1;
  font-size: 0.63rem;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.anime-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.anime-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.anime-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.anime-card:hover img {
  transform: scale(1.045);
}

.anime-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11, 13, 24, 0.9));
}

.anime-card__caption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 1;
}

.anime-card__caption h3 {
  margin: 0 0 3px;
  font-size: 1rem;
}

.anime-card__caption p {
  margin: 0;
  color: var(--muted);
  font-size: 0.61rem;
}

.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(20, 24, 41, 0.5);
}

.compare-table {
  width: 100%;
  min-width: 590px;
  border-collapse: collapse;
  font-size: 0.79rem;
}

.compare-table th,
.compare-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

.compare-table th {
  color: var(--lavender);
  background: rgba(104, 87, 232, 0.08);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

.compare-table td:first-child {
  color: var(--ink);
  font-weight: 600;
}

.compare-table td {
  color: var(--muted);
}

/* Roleplay page ----------------------------------------------------------- */
.roleplay-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 100px 0 70px;
}

.roleplay-hero__bg {
  position: absolute;
  inset: 0;
}

.roleplay-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}

.roleplay-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(11, 13, 24, 0.99) 0%, rgba(11, 13, 24, 0.72) 45%, rgba(11, 13, 24, 0.15) 100%),
    linear-gradient(90deg, rgba(11, 13, 24, 0.75), transparent 70%);
}

.roleplay-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: end;
}

.roleplay-hero h1 {
  max-width: 800px;
}

.roleplay-hero h1 .serif {
  color: var(--rose);
}

.roleplay-hero p {
  max-width: 560px;
  color: #c3c0d0;
}

.roleplay-now {
  padding: 20px;
  border: 1px solid rgba(244, 243, 255, 0.18);
  border-radius: 16px;
  background: rgba(11, 13, 24, 0.55);
  backdrop-filter: blur(16px);
}

.roleplay-now .label {
  color: var(--rose);
}

.roleplay-now h2 {
  margin: 8px 0;
  font-size: 1.25rem;
}

.roleplay-now p {
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 0.72rem;
}

.scenario-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

/* Image generator page ---------------------------------------------------- */
.voice-page-hero {
  position: relative;
  overflow: hidden;
}

.voice-page-hero::before {
  content: "";
  position: absolute;
  top: -24%;
  right: -10%;
  width: 780px;
  height: 780px;
  border: 1px solid rgba(165, 148, 255, 0.1);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(104, 87, 232, 0.14), transparent 58%),
    repeating-radial-gradient(circle at 50% 50%, transparent 0 76px, rgba(165, 148, 255, 0.045) 77px 78px);
  pointer-events: none;
}

.voice-page-hero .phone-stage {
  min-height: 570px;
}

.voice-page-hero .phone {
  transform: rotate(2deg);
}

.imagegen-hero {
  padding: 64px 0 70px;
  position: relative;
  overflow: hidden;
}

.imagegen-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 56vw;
  height: 100%;
  background: url("../images/imagegen-hero.webp") center / cover;
  mask-image: linear-gradient(90deg, transparent, #000 65%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 65%);
  opacity: 0.34;
}

.imagegen-hero .page-hero__grid {
  position: relative;
  z-index: 1;
}

.generator-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(21, 25, 42, 0.8);
}

.generator-sidebar {
  padding: 28px;
  border-right: 1px solid var(--line-soft);
}

.generator-sidebar h2 {
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.generator-sidebar > p {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.73rem;
}

.generator-main {
  padding: 24px;
}

.generator-main__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
}

.generator-main__head strong {
  font-size: 0.75rem;
}

.generator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 9px;
}

.generator-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: var(--card);
  transition: opacity 0.2s ease;
}

.generator-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.generator-card:hover img {
  transform: scale(1.04);
}

.generator-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 13, 24, 0.74));
}

.generator-card__label {
  position: absolute;
  bottom: 9px;
  left: 10px;
  z-index: 1;
  color: rgba(244, 243, 255, 0.83);
  font-size: 0.55rem;
  font-weight: 600;
}

.generator-card.is-hidden {
  display: none;
}

.generator-disclaimer {
  margin-top: 11px;
  color: var(--muted-2);
  font-size: 0.58rem;
  line-height: 1.5;
}

/* NSFW page --------------------------------------------------------------- */
.nsfw-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 74px;
  border-bottom: 1px solid var(--line-soft);
}

.nsfw-hero::before {
  content: "";
  position: absolute;
  top: -10%;
  right: 5%;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(240, 168, 196, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 0 44px rgba(240, 168, 196, 0.025), 0 0 0 92px rgba(240, 168, 196, 0.014);
}

.nsfw-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
  gap: clamp(36px, 7vw, 90px);
  align-items: center;
}

.nsfw-hero h1 {
  max-width: 830px;
}

.nsfw-hero h1 .serif {
  color: var(--rose);
}

.nsfw-hero__side {
  padding: 24px;
  border: 1px solid rgba(240, 168, 196, 0.18);
  border-radius: 18px;
  background: rgba(19, 22, 37, 0.58);
}

.nsfw-hero__side .eyebrow {
  color: var(--rose);
}

.nsfw-hero__side p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.nsfw-topics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.nsfw-topic {
  padding: 25px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(20, 24, 41, 0.42);
}

.nsfw-topic__number {
  color: var(--rose);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
}

.nsfw-topic h3 {
  margin: 20px 0 8px;
  font-size: 1rem;
}

.nsfw-topic p {
  margin: 0;
  color: var(--muted);
  font-size: 0.77rem;
}

.article-note {
  padding: 22px 25px;
  margin: 30px 0;
  border-left: 2px solid var(--lavender);
  background: rgba(104, 87, 232, 0.07);
  color: var(--muted);
  font-size: 0.84rem;
}

.article-note strong {
  color: var(--ink);
}

/* Blog hub ---------------------------------------------------------------- */
.blog-masthead {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--line-soft);
}

.blog-masthead__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 60px;
  align-items: end;
}

.blog-masthead h1 {
  margin-bottom: 17px;
  font-size: clamp(3rem, 6vw, 5.8rem);
}

.blog-masthead h1 .serif {
  color: var(--lavender);
}

.blog-masthead p {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
}

.blog-masthead__aside {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.72rem;
}

.blog-masthead__aside span {
  display: block;
  margin-bottom: 9px;
  color: var(--lavender);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.featured-article {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  overflow: hidden;
  min-height: 450px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card-soft);
}

.featured-article__image {
  position: relative;
  overflow: hidden;
}

.featured-article__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-article__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(11, 13, 24, 0.3));
}

.featured-article__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 5vw, 54px);
}

.featured-article__body h2 {
  margin: 14px 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.featured-article__body p {
  color: var(--muted);
  font-size: 0.85rem;
}

.featured-article__body .text-link {
  margin-top: 10px;
}

.blog-secondary {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  margin-top: 18px;
}

.blog-editorial-note {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  padding: 29px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(400px 220px at 100% 0%, rgba(104, 87, 232, 0.22), transparent 70%),
    rgba(20, 24, 41, 0.55);
}

.blog-editorial-note h2 {
  margin-bottom: 13px;
  font-size: 1.55rem;
}

.blog-editorial-note p {
  color: var(--muted);
  font-size: 0.79rem;
}

/* Articles ---------------------------------------------------------------- */
.article-hero {
  padding: 55px 0 45px;
}

.article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin-bottom: 21px;
  color: var(--muted-2);
  font-size: 0.68rem;
}

.article-hero h1 {
  max-width: 930px;
  margin-bottom: 21px;
  font-size: clamp(2.5rem, 5.3vw, 4.6rem);
}

.article-hero__intro {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-cover {
  position: relative;
  overflow: hidden;
  width: min(calc(100% - 48px), 1320px);
  margin: 0 auto;
  aspect-ratio: 16 / 7.2;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-cover__caption {
  position: absolute;
  right: 16px;
  bottom: 15px;
  padding: 5px 9px;
  border-radius: 999px;
  color: rgba(244, 243, 255, 0.6);
  background: rgba(11, 13, 24, 0.5);
  backdrop-filter: blur(8px);
  font-size: 0.56rem;
}

.article-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 760px);
  gap: clamp(36px, 6vw, 80px);
  justify-content: center;
  padding: 60px 0 80px;
}

.article-toc {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  align-self: start;
}

.article-toc .label {
  display: block;
  margin-bottom: 12px;
  color: var(--lavender);
}

.article-toc a {
  display: block;
  padding: 6px 0 6px 12px;
  border-left: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.7rem;
  line-height: 1.45;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.article-toc a:hover {
  color: var(--ink);
  border-color: var(--lavender);
}

.article-toc .toc-cta {
  display: inline-flex;
  margin-top: 22px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--lavender);
  font-size: 0.66rem;
  font-weight: 600;
}

.article-body {
  font-size: 0.94rem;
  line-height: 1.82;
  color: #c3c1d2;
}

.article-body > p:first-of-type::first-letter {
  float: left;
  margin: 9px 10px 0 0;
  color: var(--lavender);
  font-family: var(--serif);
  font-size: 4.1rem;
  line-height: 0.72;
}

.article-body h2 {
  margin: 46px 0 16px;
  scroll-margin-top: 110px;
  color: var(--ink);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.article-body h3 {
  margin: 31px 0 11px;
  scroll-margin-top: 110px;
  color: var(--ink);
  font-size: 1.15rem;
}

.article-body p {
  margin-bottom: 19px;
}

.article-body ul,
.article-body ol {
  padding-left: 22px;
  margin-bottom: 23px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body li::marker {
  color: var(--lavender);
}

.article-body a {
  color: var(--lavender);
  text-decoration: underline;
  text-decoration-color: rgba(165, 148, 255, 0.4);
  text-underline-offset: 3px;
}

.article-body a:hover {
  color: var(--rose);
}

.article-body blockquote {
  padding: 23px 26px;
  margin: 30px 0;
  border-left: 2px solid var(--rose);
  color: var(--ink);
  background: rgba(240, 168, 196, 0.055);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.45;
}

.article-body blockquote p {
  margin: 0;
}

.pullquote {
  padding: 26px 0;
  margin: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  font-style: italic;
  line-height: 1.4;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 0.76rem;
}

.article-table th {
  padding: 11px 13px;
  border-bottom: 1px solid rgba(165, 148, 255, 0.3);
  color: var(--lavender);
  background: rgba(104, 87, 232, 0.07);
  font-size: 0.61rem;
  letter-spacing: 0.07em;
  text-align: left;
  text-transform: uppercase;
}

.article-table td {
  padding: 12px 13px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.article-table td:first-child {
  color: var(--ink);
  font-weight: 600;
}

.article-example {
  padding: 22px;
  margin: 23px 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(25, 29, 48, 0.52);
}

.article-example .label {
  display: block;
  margin-bottom: 8px;
  color: var(--rose);
}

.article-example p:last-child {
  margin-bottom: 0;
}

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 24px 0;
}

.before-after > div {
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(11, 13, 24, 0.35);
}

.before-after .label {
  display: block;
  margin-bottom: 7px;
}

.before-after p {
  margin: 0;
  font-size: 0.77rem;
  line-height: 1.65;
}

.before-after .before .label {
  color: var(--muted-2);
}

.before-after .after {
  border-color: rgba(165, 148, 255, 0.28);
  background: rgba(104, 87, 232, 0.06);
}

.before-after .after .label {
  color: var(--lavender);
}

.article-end {
  padding-top: 30px;
  margin-top: 44px;
  border-top: 1px solid var(--line);
}

.article-end h2 {
  margin-top: 0 !important;
}

.related-reading {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.related-reading a {
  display: block;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.related-reading a:hover {
  border-color: rgba(165, 148, 255, 0.4);
  background: rgba(104, 87, 232, 0.06);
}

.related-reading span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted-2);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.related-reading strong {
  display: block;
  font-size: 0.76rem;
  line-height: 1.45;
}

.article-disclosure {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-2);
  font-size: 0.64rem;
  line-height: 1.6;
}

.article-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  color: var(--muted-2);
  font-size: 0.62rem;
}

.article-share span {
  color: var(--lavender);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* About / legal ----------------------------------------------------------- */
.about-intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(35px, 7vw, 100px);
  align-items: end;
}

.about-intro h1 {
  margin-bottom: 0;
}

.about-intro__copy {
  padding-bottom: 5px;
}

.about-intro__copy p {
  color: var(--muted);
  font-size: 1rem;
}

.about-image {
  width: min(calc(100% - 48px), 1320px);
  aspect-ratio: 16 / 7;
  margin: 55px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.about-value {
  padding: 28px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(20, 24, 41, 0.42);
}

.about-value__icon {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 30px;
  place-items: center;
  border: 1px solid rgba(165, 148, 255, 0.3);
  border-radius: 50%;
  color: var(--lavender);
  background: rgba(104, 87, 232, 0.08);
}

.about-value h3 {
  margin-bottom: 8px;
  font-size: 1.06rem;
}

.about-value p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.legal-page {
  padding: 64px 0 90px;
}

.legal-header {
  padding-bottom: 34px;
  margin-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

.legal-header h1 {
  margin-bottom: 15px;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
}

.legal-header p {
  max-width: 740px;
  margin: 0;
  color: var(--muted);
}

.legal-updated {
  display: inline-block;
  margin-bottom: 17px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-2);
  font-size: 0.63rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 760px);
  gap: 70px;
  justify-content: center;
}

.legal-nav {
  position: sticky;
  top: calc(var(--header-h) + 26px);
  align-self: start;
}

.legal-nav .label {
  display: block;
  margin-bottom: 12px;
  color: var(--lavender);
}

.legal-nav a {
  display: block;
  padding: 6px 0 6px 12px;
  border-left: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.7rem;
}

.legal-nav a:hover {
  color: var(--ink);
  border-color: var(--lavender);
}

.legal-body {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #c1bfd0;
}

.legal-body h2 {
  margin: 38px 0 12px;
  color: var(--ink);
  font-size: 1.4rem;
  scroll-margin-top: 105px;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body h3 {
  margin: 24px 0 9px;
  color: var(--ink);
  font-size: 1rem;
}

.legal-body p,
.legal-body ul {
  margin-bottom: 15px;
}

.legal-body ul {
  padding-left: 20px;
}

.legal-body li {
  margin-bottom: 7px;
}

.legal-body a {
  color: var(--lavender);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-body strong {
  color: var(--ink);
}

.legal-callout {
  padding: 18px 20px;
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(104, 87, 232, 0.06);
  color: var(--muted);
  font-size: 0.82rem;
}

/* Misc ------------------------------------------------------------------- */
.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lavender);
  font-size: 0.75rem;
  font-weight: 700;
}

.footer-cta:hover {
  color: var(--rose);
}

.reveal {
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js-anim .reveal {
  opacity: 0;
  transform: translateY(18px);
}

.js-anim .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js-anim .reveal-delay-1 { transition-delay: 0.08s; }
.js-anim .reveal-delay-2 { transition-delay: 0.16s; }
.js-anim .reveal-delay-3 { transition-delay: 0.24s; }

.noscript-note {
  padding: 12px;
  color: #ffdbe8;
  background: rgba(240, 168, 196, 0.1);
  font-size: 0.75rem;
  text-align: center;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1180px) {
  .primary-nav {
    gap: 0;
  }

  .nav-link,
  .dropdown-toggle {
    padding-inline: 9px;
    font-size: 0.73rem;
  }

  .hero-photo {
    max-width: 430px;
    height: 520px;
  }

  .hero-visual {
    min-height: 560px;
  }

  .character-grid,
  .character-directory .character-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .anime-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-top {
    grid-template-columns: 1.1fr repeat(3, 0.55fr);
    gap: 30px;
  }
}

@media (max-width: 980px) {
  .primary-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    padding-top: 45px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .hero-copy {
    padding: 0;
  }

  .hero-visual {
    width: min(100%, 540px);
    margin-inline: auto;
    min-height: 0;
    padding: 0 35px 15px;
  }

  .hero-photo {
    max-width: none;
    height: min(610px, 120vw);
  }

  .floating-chat {
    bottom: 165px;
    left: -10px;
  }

  .floating-match {
    top: 20%;
    right: -5px;
  }

  .section {
    padding: 85px 0;
  }

  .chat-layout,
  .split,
  .voice-layout,
  .studio {
    grid-template-columns: 1fr;
  }

  .chat-copy {
    max-width: 620px;
  }

  .split--reverse .split__visual {
    order: 0;
  }

  .offset-card {
    right: 16px;
    bottom: -28px;
  }

  .creator-panel {
    grid-template-columns: 1fr;
  }

  .creator-preview {
    min-height: 430px;
  }

  .style-duo {
    gap: 12px;
  }

  .style-panel {
    min-height: 470px;
  }

  .voice-layout .voice-copy {
    order: 2;
  }

  .phone-stage {
    order: 1;
  }

  .policy-panel {
    grid-template-columns: 1fr;
  }

  .policy-panel__grid {
    border-top: 1px solid var(--line);
  }

  .page-hero__grid {
    grid-template-columns: 1fr;
  }

  .page-hero__visual {
    width: min(100%, 560px);
    margin-inline: auto;
  }

  .characters-masthead .page-hero__grid {
    align-items: start;
  }

  .builder__body {
    grid-template-columns: 1fr;
  }

  .builder__main {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .builder-preview {
    display: grid;
    grid-template-columns: minmax(190px, 0.8fr) minmax(0, 1.2fr);
    gap: 20px;
    align-items: stretch;
  }

  .builder-preview__image {
    min-height: 290px;
  }

  .builder-preview__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .scenario-detail {
    grid-template-columns: 1fr;
  }

  .roleplay-stage {
    grid-template-columns: 1fr;
  }

  .roleplay-stage__image {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .cast-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nsfw-topics--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step-card::before {
    margin-bottom: 22px;
  }

  .step-card::after {
    top: 38px;
  }

  .footer-top {
    grid-template-columns: 1fr repeat(3, 0.7fr);
  }

  .article-layout,
  .legal-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 35px;
  }

  .blog-masthead__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .featured-article {
    grid-template-columns: 1fr;
  }

  .featured-article__image {
    aspect-ratio: 16 / 8;
  }

  .roleplay-hero__inner {
    grid-template-columns: 1fr;
  }

  .roleplay-now {
    max-width: 370px;
  }

  .nsfw-hero__grid {
    grid-template-columns: 1fr;
  }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .generator-layout {
    grid-template-columns: 1fr;
  }

  .generator-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 68px;
  }

  .container,
  .container--wide,
  .container--narrow,
  .article-cover,
  .about-image {
    width: min(calc(100% - 32px), var(--container));
  }

  h1 {
    font-size: clamp(2.65rem, 12vw, 4rem);
  }

  .age-bar {
    font-size: 0.61rem;
  }

  .age-bar .container {
    gap: 6px;
    line-height: 1.5;
  }

  .age-bar .desktop-only {
    display: none;
  }

  .section {
    padding: 70px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .section-head--row {
    display: block;
  }

  .section-head--row .carousel-tools {
    margin-top: 18px;
  }

  .nav-actions .btn {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.85rem, 12.5vw, 4.5rem);
  }

  .hero-visual {
    padding: 0 12px 10px;
  }

  .hero-photo {
    height: min(540px, 112vw);
    border-radius: 150px 150px 22px 22px;
  }

  .floating-chat {
    width: 226px;
    bottom: 155px;
    left: -3px;
    padding: 13px;
  }

  .floating-match {
    top: 15%;
    width: 140px;
    padding: 10px;
  }

  .hero-meta {
    gap: 10px 16px;
  }

  .character-track {
    grid-auto-columns: 72vw;
  }

  .character-grid,
  .character-directory .character-grid,
  .anime-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

  .character-card__body {
    padding: 14px;
  }

  .character-card h3 {
    font-size: 1.1rem;
  }

  .character-card__footer span {
    display: none;
  }

  .character-card__tags {
    top: 9px;
    right: 9px;
    left: 9px;
  }

  .character-card__tags .tag {
    padding: 4px 6px;
    font-size: 0.45rem;
  }

  .filter-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
  }

  .directory-tools .filter-bar {
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .directory-tools .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-group {
    flex-wrap: nowrap;
  }

  .filter-count {
    display: none;
  }

  .chat-messages {
    min-height: 330px;
    padding: 17px 13px;
  }

  .message {
    max-width: 92%;
  }

  .chat-window__bar {
    padding: 12px 14px;
  }

  .chat-profile {
    padding: 12px 14px;
  }

  .personality-notes div {
    grid-template-columns: 92px 1fr;
    gap: 11px;
  }

  .choice-grid {
    grid-template-columns: 1fr 1fr;
  }

  .creator-controls {
    padding: 22px;
  }

  .creator-preview {
    min-height: 400px;
  }

  .style-duo {
    grid-template-columns: 1fr;
  }

  .style-panel {
    min-height: 420px;
  }

  .style-vs {
    position: relative;
    top: auto;
    left: auto;
    width: 52px;
    height: 52px;
    margin: -38px auto 0;
    transform: none;
  }

  .studio-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1.3fr 1fr;
    min-height: 380px;
  }

  .studio-tile:first-child {
    grid-row: auto;
    grid-column: 1 / span 2;
  }

  .studio-controls {
    padding: 21px;
  }

  .phone {
    width: min(300px, 78vw);
  }

  .voice-float {
    right: 0;
    width: 160px;
  }

  .scenario-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .scenario-card:first-child {
    grid-row: auto;
    grid-column: 1 / span 2;
    min-height: 270px;
  }

  .scenario-card {
    min-height: 195px;
  }

  .scenario-card__content {
    padding: 13px;
  }

  .scenario-card__content h3 {
    font-size: 0.95rem;
  }

  .scenario-card__content p {
    display: none;
  }

  .scenario-preview {
    padding: 20px;
  }

  .roleplay-stage__image {
    aspect-ratio: 16 / 12;
  }

  .cast-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .cast-row::-webkit-scrollbar {
    display: none;
  }

  .cast-card {
    width: 150px;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .nsfw-topics--four {
    grid-template-columns: 1fr;
  }

  .policy-panel__grid {
    grid-template-columns: 1fr;
  }

  .policy-item {
    min-height: 0;
  }

  .step-card {
    display: grid;
    grid-template-columns: 46px 1fr;
    column-gap: 6px;
    padding: 20px;
  }

  .step-card::before {
    grid-row: 1 / span 2;
    margin: 0;
    font-size: 1.25rem;
  }

  .step-card::after {
    display: none;
  }

  .step-card h3 {
    margin-bottom: 4px;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .guide-card {
    min-height: 0;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .faq-aside {
    position: static;
  }

  .final-cta__inner {
    padding: 85px 0;
  }

  .final-cta__bg::after {
    background: linear-gradient(90deg, rgba(11, 13, 24, 0.96) 0%, rgba(11, 13, 24, 0.62) 100%), linear-gradient(0deg, rgba(11, 13, 24, 0.8), transparent 60%);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-col:nth-child(4) {
    grid-column: 1 / -1;
  }

  .footer-disclosure {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-hero {
    padding: 55px 0 45px;
  }

  .page-hero__copy h1 {
    font-size: clamp(2.55rem, 11vw, 3.9rem);
  }

  .collage {
    min-height: 390px;
  }

  .character-directory {
    padding-top: 30px;
  }

  .profile-notes {
    grid-template-columns: 1fr;
  }

  .builder__topbar {
    padding: 12px 16px;
  }

  .builder__progress {
    display: none;
  }

  .builder__main {
    padding: 22px 18px;
  }

  .builder-options {
    grid-template-columns: 1fr;
  }

  .builder__footer {
    flex-wrap: wrap;
  }

  .builder__footer .btn {
    flex: 1;
  }

  .builder-preview {
    display: block;
    padding: 16px;
  }

  .builder-preview__image {
    min-height: 340px;
    margin-bottom: 15px;
  }

  .anime-hero {
    padding-top: 45px;
  }

  .anime-title-block h1 {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .anime-collage {
    max-width: 480px;
    margin-inline: auto;
  }

  .anime-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .roleplay-hero {
    min-height: 560px;
    padding: 70px 0 50px;
  }

  .roleplay-hero__inner {
    gap: 26px;
  }

  .roleplay-now {
    max-width: none;
  }

  .nsfw-topics {
    grid-template-columns: 1fr;
  }

  .nsfw-hero__side {
    max-width: 450px;
  }

  .blog-masthead {
    padding-top: 48px;
  }

  .blog-secondary {
    grid-template-columns: 1fr;
  }

  .article-cover {
    aspect-ratio: 16 / 10;
  }

  .article-layout,
  .legal-layout {
    grid-template-columns: 1fr;
    padding-top: 40px;
    gap: 0;
  }

  .article-toc,
  .legal-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding-bottom: 22px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--line-soft);
  }

  .article-toc .label,
  .legal-nav .label {
    width: 100%;
    margin-bottom: 5px;
  }

  .article-toc a,
  .legal-nav a {
    padding: 6px 10px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    font-size: 0.64rem;
  }

  .article-toc .toc-cta {
    margin-top: 8px;
  }

  .article-body {
    font-size: 0.9rem;
  }

  .article-body h2 {
    margin-top: 38px;
  }

  .before-after {
    grid-template-columns: 1fr;
  }

  .related-reading {
    grid-template-columns: 1fr;
  }

  .article-table {
    min-width: 500px;
  }

  .article-body .table-scroll {
    overflow-x: auto;
    margin: 22px 0;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

  .about-image {
    aspect-ratio: 16 / 10;
  }

  .legal-page {
    padding-top: 40px;
  }

  .imagegen-hero::before {
    opacity: 0.18;
  }

  .generator-main {
    padding: 16px;
  }

  .generator-grid {
    grid-template-columns: 1fr 1fr;
  }

  .generator-sidebar {
    padding: 21px;
  }

  .footer-top {
    padding-bottom: 38px;
  }
}

@media (max-width: 520px) {
  .container,
  .container--wide,
  .container--narrow,
  .article-cover,
  .about-image {
    width: min(calc(100% - 26px), var(--container));
  }

  .brand-type {
    font-size: 0.81rem;
  }

  .brand-type small {
    font-size: 0.39rem;
  }

  .hero-meta {
    display: grid;
    gap: 8px;
  }

  .hero .cta-row,
  .page-hero .cta-row {
    align-items: stretch;
    flex-direction: column;
  }

  .hero .cta-row .btn,
  .page-hero .cta-row .btn {
    width: 100%;
  }

  .floating-chat {
    width: 205px;
    bottom: 135px;
  }

  .floating-match {
    top: 11%;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .choice {
    min-height: 54px;
  }

  .studio-gallery {
    min-height: 320px;
  }

  .voice-float {
    display: none;
  }

  .phone {
    transform: rotate(1.5deg);
  }

  .scenario-card__content h3 {
    font-size: 0.87rem;
  }

  .anime-collage {
    grid-template-columns: 1fr 0.72fr;
  }

  .character-grid,
  .character-directory .character-grid,
  .anime-grid {
    gap: 9px;
  }

  .character-media {
    aspect-ratio: 3 / 4.2;
  }

  .character-card__tags .tag:last-child {
    display: none;
  }

  .character-card__body > p {
    display: none;
  }

  .character-card__footer {
    padding-top: 8px;
  }

  .filter-group {
    gap: 5px;
  }

  .chip--filter {
    padding: 8px 12px;
    font-size: 0.68rem;
  }

  .builder-preview__image {
    min-height: 290px;
  }

  .generator-grid {
    gap: 6px;
  }

  .generator-card {
    min-height: 140px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-col:nth-child(4) {
    grid-column: auto;
  }

  .age-bar .container {
    font-size: 0.58rem;
  }

  .blog-masthead h1 {
    font-size: clamp(2.8rem, 15vw, 4rem);
  }

  .featured-article__body {
    padding: 22px;
  }

  .cta-row .btn {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js-anim .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Responsive content containment and readable controls. */
body { min-width: 0; }
:where(main, section, .container, .container--wide, .container--narrow) > * { min-width: 0; }
:where([class*="grid"], [class*="layout"], .filter-bar, .cta-row, .nav-wrap) > * { min-width: 0; }
h1, h2, h3 { overflow-wrap: anywhere; text-wrap: balance; }
p { overflow-wrap: anywhere; }
.filter-group { max-width: 100%; }
.mobile-nav { padding-bottom: max(40px, env(safe-area-inset-bottom)); overscroll-behavior: contain; }
@media (max-width: 980px) {
 .filter-bar, .directory-tools, .character-track, .cast-row, .table-scroll { min-width: 0; max-width: 100%; }
 .filter-group { flex-wrap: wrap; }
 .directory-tools .filter-group { flex: 0 0 auto; flex-wrap: nowrap; max-width: none; }
 .character-track, .cast-row, .table-scroll { overflow-x: auto; }
 .hero-visual, .voice-stage { min-width: 0; max-width: 100%; }
 .btn { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
}
@media (max-width: 520px) {
 .container, .container--wide, .container--narrow { min-width: 0; }
 .filter-group { flex-wrap: wrap; }
 .choice-grid { grid-template-columns: minmax(0, 1fr); }
 .studio-gallery, .generator-grid, .scenario-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .personality-notes div { grid-template-columns: 80px minmax(0, 1fr); }
 .message, .message__bubble, .chat-window, .creator-controls, .studio-controls, .builder-preview { min-width: 0; max-width: 100%; }
 .floating-match { right: 0; }
}

/* Keep scrollable content from imposing its intrinsic width on its parent. */
.character-track, .cast-row, .filter-bar, .table-scroll { width: 100%; }
:where(.hero-grid, .chat-layout, .creator-layout, .studio-layout, .voice-layout, .builder-layout, .page-hero__grid, .article-layout, .legal-layout, .footer-top, .footer-disclosure) > * { min-width: 0; }
@media (max-width: 760px) {
 .filter-bar .filter-group { flex-wrap: wrap; }
 .directory-tools .filter-bar .filter-group { flex-wrap: nowrap; }
 .nav-wrap { gap: 12px; }
 .brand { min-width: 0; }
 .table-scroll { overflow-x: auto; }
}

/* A plain hero portrait with no overlaid cards or decorations. */
.hero-visual--simple .hero-photo { margin: 0; margin-inline: auto; }
.hero-visual--simple .hero-photo::after { content: none; }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual--simple { padding: 0; width: 100%; }
}
@media (max-width: 760px) {
  .container, .container--wide, .container--narrow {
    width: calc(100% - 40px);
    max-width: calc(100% - 40px);
    margin-inline: auto;
  }
  .hero-copy, .hero .cta-row { width: 100%; max-width: 100%; }
  .hero .cta-row .btn { width: 100%; min-width: 0; }
}

/* Desktop keeps the original carousel; phones use two columns. */
@media (max-width: 760px) {
  #homeCharacterGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: 12px;
    width: 100%;
    min-width: 0;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
  }
  .home-carousel-tools { display: none; }
}

/* Keep voice copy and list text inside the mobile content gutters. */
.feature-list, .feature-list li, .feature-list li > span { min-width: 0; max-width: 100%; }
.feature-list li > span { overflow-wrap: anywhere; }
@media (max-width: 980px) {
  .voice-layout { grid-template-columns: minmax(0, 1fr); }
  .voice-copy { width: 100%; min-width: 0; max-width: 100%; }
  .voice-copy > p, .voice-copy .feature-list { width: 100%; max-width: 100%; }
  .phone-stage { min-width: 0; max-width: 100%; overflow: clip; }
}
@media (max-width: 760px) {
  .container.voice-layout { width: 100%; max-width: 100%; padding-inline: 24px; }
  .voice-copy .feature-list li { grid-template-columns: 20px minmax(0, 1fr); gap: 12px; }
}

/* Anchor article portraits at the top so horizontal crops retain the face. */
.guide-card__image img,
.featured-article__image img {
  object-position: center top;
  transform-origin: center top;
}

/* Characters page uses one lead portrait, separate from the directory. */
.characters-hero-portrait {
  width: 100%;
  max-width: 470px;
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 120px 24px 24px 24px;
  background: var(--card);
}
.characters-hero-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
@media (max-width: 760px) {
  .characters-hero-portrait { max-width: 380px; border-radius: 80px 20px 20px 20px; }
}

/* Article titles share the site container; covers belong to the reading column. */
.article-hero { padding-bottom: 0; }
.article-layout { justify-content: start; }
.article-body > .article-cover {
  width: 100%;
  max-width: 760px;
  aspect-ratio: 2 / 1;
  max-height: 380px;
  margin: 0 0 32px;
  border-radius: 20px;
}
.article-body > .article-cover img { object-position: center top; }
@media (min-width: 981px) {
  .article-layout { grid-template-columns: 210px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .article-body > .article-cover { aspect-ratio: 4 / 3; max-height: 320px; margin-bottom: 24px; }
}

/* Custom wide artwork for the homepage closing section. */
.final-cta--clear-idea .final-cta__bg img { object-position: right top; filter: none; }
.final-cta--clear-idea .final-cta__bg::after { background: rgba(11, 13, 24, 0.08); }
@media (max-width: 760px) {
  .final-cta--clear-idea .final-cta__bg { position: relative; height: 240px; }
  .final-cta--clear-idea .final-cta__bg img { object-position: right top; }
  .final-cta--clear-idea .final-cta__inner { padding: 40px 0 52px; }
}

.hero-visual--simple .hero-photo img { object-position: center 25%; }

/* Dedicated artwork: fixed frames retain faces and keep panels consistent. */
.style-panel { aspect-ratio: 4 / 5; }
.style-panel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-position: center top; }
[data-home-artwork] .studio-tile img { object-position: center top; }

/* New portrait set for the character builder page. */
.page-create .builder-preview__image img { object-position: center top; }
.page-create .final-cta__bg { left: 55%; }
.page-create .final-cta__bg img { object-position: center top; }
@media (max-width: 760px) {
  .page-create .final-cta__bg { position: relative; left: 0; height: 260px; }
  .page-create .final-cta__bg::after { background: none; }
  .page-create .final-cta__inner { padding: 40px 0 52px; }
}

/* Keep scenario artwork within its card and preserve the face. */
#roleplay .scenario-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform-origin: center top;
}

/* Local anime artwork keeps faces visible inside each frame. */
.page-anime img[src*="anime-ai-"] { object-position: center top; }
.page-anime .final-cta__bg { left: 55%; }
@media (max-width: 760px) {
 .page-anime .final-cta__bg { position: relative; left: 0; height: 260px; }
 .page-anime .final-cta__bg::after { background: none; }
 .page-anime .final-cta__inner { padding: 40px 0 52px; }
}

/* Single anime hero portrait, separate from the character gallery. */
.anime-hero-portrait { position: relative; width: 100%; max-width: 470px; aspect-ratio: 3 / 4; margin: 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 24px 90px 24px 24px; background: var(--card); }
.anime-hero-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
@media (max-width: 760px) { .anime-hero-portrait { max-width: 380px; border-radius: 20px 70px 20px 20px; } }

/* Preserve persona styling without a skipped heading level. */
.phone__content .voice-preview-name { margin: 0 0 3px; font-size: 1.25rem; font-weight: 650; line-height: 1.08; color: var(--ink); }
.character-directory__title { margin-bottom: 24px; font-size: clamp(1.4rem, 2.5vw, 2rem); }
