/* ============================================================
   AI Nude Generator — Native CSS Stylesheet
   https://ai-nude-generator.com
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=DM+Serif+Display:ital@0;1&display=swap');

/* ── Design tokens (CSS custom properties) ── */
:root {
  --color-bg: #080810;
  --color-surface: #0f0f1a;
  --color-card: #13131f;
  --color-border: rgba(255, 255, 255, 0.07);
  --color-primary: #a855f7;
  --color-primary-light: #c084fc;
  --color-rose: #f472b6;
  --color-muted: rgba(255, 255, 255, 0.45);
  --font-sans: 'Outfit', sans-serif;
  --font-serif: 'DM Serif Display', serif;
  --gradient-primary: linear-gradient(135deg, #a855f7, #f472b6);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --shadow-glow: 0 8px 32px rgba(168, 85, 247, 0.3);
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--color-bg);
  color: #f1f1f8;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

/* ── Scrollbars ── */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 85, 247, 0.25) transparent;
}
*::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.25);
  border-radius: 99px;
}
*::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.45);
}

/* ── Typography ── */
.font-serif {
  font-family: var(--font-serif);
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Selection ── */
::selection {
  background: rgba(168, 85, 247, 0.35);
  color: #fff;
}

/* ── Focus rings ── */
:focus-visible {
  outline: 2px solid rgba(168, 85, 247, 0.6);
  outline-offset: 2px;
}

/* ── Layout ── */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-sm {
  width: 100%;
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-lg {
  width: 100%;
  max-width: 1152px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

main {
  flex: 1;
}

/* ── Backgrounds ── */
.mesh-bg {
  background:
    radial-gradient(ellipse 70% 40% at 20% 5%, rgba(168, 85, 247, 0.09) 0%, transparent 60%),
    radial-gradient(ellipse 50% 35% at 80% 90%, rgba(244, 114, 182, 0.06) 0%, transparent 60%),
    #080810;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s, border-color 0.3s;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.navbar-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 14px;
}

.navbar-logo-text {
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  letter-spacing: -0.01em;
}

.navbar-links {
  display: none;
  align-items: center;
  gap: 2px;
}

.navbar-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
  color: rgba(255, 255, 255, 0.55);
}

.navbar-link:hover,
.navbar-link.active {
  color: #c084fc;
  background: rgba(168, 85, 247, 0.1);
}

.navbar-actions {
  display: none;
  align-items: center;
  gap: 12px;
}

.navbar-signin {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.15s;
}

.navbar-signin:hover {
  color: rgba(255, 255, 255, 0.9);
}

.navbar-burger {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.6);
  transition: background 0.15s;
}

.navbar-burger:hover {
  background: rgba(255, 255, 255, 0.06);
}

.navbar-burger svg {
  width: 20px;
  height: 20px;
}

.navbar-mobile {
  overflow: hidden;
  transition: max-height 0.3s, border-color 0.3s;
  background: rgba(8, 8, 16, 0.97);
}

.navbar-mobile.closed {
  max-height: 0;
  border-top: 1px solid transparent;
}

.navbar-mobile.open {
  max-height: 400px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar-mobile-inner {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.navbar-mobile-link {
  padding: 10px 16px;
  border-radius: var(--radius-xl);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.15s;
}

.navbar-mobile-link.active {
  color: #c084fc;
  background: rgba(168, 85, 247, 0.12);
}

.navbar-mobile-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.navbar-mobile-footer-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  padding-bottom: 8px;
}

.navbar-mobile-footer-links a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-md);
  transition: all 0.2s;
  white-space: nowrap;
}

.btn:hover {
  opacity: 0.9;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  padding: 14px 28px;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  padding: 14px 28px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-sm {
  padding: 10px 16px;
  font-size: 13px;
}

.btn-xs {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

.btn-primary-gradient {
  background: var(--gradient-primary);
  color: #fff;
}

/* ── Cards ── */
.card {
  background: var(--color-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-2xl);
}

.card-hover {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  will-change: transform;
}

.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), 0 0 24px rgba(168, 85, 247, 0.08);
}

.card-highlighted {
  background: #1a1030;
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.12);
}

/* ── Form Elements ── */
input,
textarea,
select {
  outline: none;
  font-family: var(--font-sans);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(168, 85, 247, 0.4) !important;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  color: #fff;
  background: #0d0d18;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  color: #fff;
  background: #0d0d18;
  border: 1px solid rgba(255, 255, 255, 0.08);
  resize: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* ── Grid Utilities ── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .navbar-links,
  .navbar-actions {
    display: flex;
  }

  .navbar-burger {
    display: none;
  }

  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* ── Page section ── */
.section {
  padding: 80px 0;
}

.section-sm {
  padding: 48px 0;
}

.section-lg {
  padding: 96px 0;
}

/* ── Section with border ── */
.section-bordered {
  background: rgba(255, 255, 255, 0.015);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── Headings ── */
.heading-xl {
  font-family: var(--font-serif);
  font-size: 48px;
  line-height: 1.05;
  color: #fff;
}

.heading-lg {
  font-family: var(--font-serif);
  font-size: 40px;
  line-height: 1.1;
  color: #fff;
}

.heading-md {
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1.15;
  color: #fff;
}

.heading-sm {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

/* ── Labels ── */
.label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(168, 85, 247, 0.7);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #c084fc;
}

/* ── Text utilities ── */
.text-muted {
  color: rgba(255, 255, 255, 0.5);
}

.text-dim {
  color: rgba(255, 255, 255, 0.35);
}

.text-faint {
  color: rgba(255, 255, 255, 0.2);
}

.text-xs {
  font-size: 12px;
}

.text-sm {
  font-size: 14px;
}

.text-base {
  font-size: 16px;
}

.text-lg {
  font-size: 18px;
}

.text-center {
  text-align: center;
}

/* ── Margins / Paddings ── */
.mb-2 {
  margin-bottom: 8px;
}

.mb-3 {
  margin-bottom: 12px;
}

.mb-4 {
  margin-bottom: 16px;
}

.mb-5 {
  margin-bottom: 20px;
}

.mb-6 {
  margin-bottom: 24px;
}

.mb-8 {
  margin-bottom: 32px;
}

.mb-10 {
  margin-bottom: 40px;
}

.mb-12 {
  margin-bottom: 48px;
}

.mb-14 {
  margin-bottom: 56px;
}

.p-4 {
  padding: 16px;
}

.p-6 {
  padding: 24px;
}

.p-7 {
  padding: 28px;
}

.py-24 {
  padding-top: 96px;
  padding-bottom: 96px;
}

/* ── Hero ── */
.hero {
  position: relative;
  padding-top: 144px;
  padding-bottom: 112px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(168, 85, 247, 0.18) 0%, transparent 70%);
}

.hero-blob-1 {
  position: absolute;
  top: 160px;
  left: 40px;
  width: 256px;
  height: 256px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(64px);
  opacity: 0.1;
  background: #f472b6;
}

.hero-blob-2 {
  position: absolute;
  top: 240px;
  right: 40px;
  width: 192px;
  height: 192px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(64px);
  opacity: 0.1;
  background: #a855f7;
}

.hero-content {
  position: relative;
  max-width: 896px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 48px;
  line-height: 1.05;
  margin-bottom: 24px;
  color: #fff;
}

.hero-desc {
  font-size: 18px;
  max-width: 672px;
  margin: 0 auto 40px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.5);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.hero-hint {
  margin-top: 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }

  .hero-title {
    font-size: 64px;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 72px;
  }
}

/* ── Chat preview card ── */
.chat-preview {
  margin-top: 64px;
  display: flex;
  justify-content: center;
}

.chat-preview-card {
  max-width: 384px;
  width: 100%;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: #13131f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(168, 85, 247, 0.1);
}

.chat-preview-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #0f0f1a;
}

.chat-preview-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-preview-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble-ai {
  align-self: flex-start;
  max-width: 80%;
  padding: 10px 16px;
  border-radius: 4px 18px 18px 18px;
  background: #1a1a2e;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

.chat-bubble-user {
  align-self: flex-end;
  max-width: 80%;
  padding: 10px 16px;
  border-radius: 18px 4px 18px 18px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 14px;
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
}

.online-dot-sm {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
}

/* ── Companions Grid ── */
.companion-card {
  display: block;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--color-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  will-change: transform;
}

.companion-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), 0 0 24px rgba(168, 85, 247, 0.08);
}

.companion-card:hover .companion-card-img {
  transform: scale(1.05);
}

.companion-card-media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #0f0f1a;
  overflow: hidden;
}

.companion-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.companion-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 8, 16, 0.92) 0%, rgba(8, 8, 16, 0.1) 55%, transparent 100%);
}

.companion-card-online {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 99px;
  font-size: 12px;
  background: rgba(8, 8, 16, 0.7);
  color: #22c55e;
}

.companion-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
}

.companion-card-name {
  color: #fff;
  font-weight: 600;
}

.companion-card-trait {
  font-size: 12px;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.5);
}

.companion-card-footer {
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tag {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(168, 85, 247, 0.1);
  color: #c084fc;
}

/* ── How it works ── */
.steps-connector {
  display: none;
  position: absolute;
  top: 32px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.3), rgba(244, 114, 182, 0.3), transparent);
}

.step-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  z-index: 10;
}

/* ── Feature cards ── */
.feature-card {
  padding: 24px;
  border-radius: var(--radius-2xl);
  background: var(--color-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  will-change: transform;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), 0 0 24px rgba(168, 85, 247, 0.08);
}

.feature-icon {
  font-size: 24px;
  margin-bottom: 16px;
}

/* ── Stats ── */
.stat-value {
  font-family: var(--font-serif);
  font-size: 40px;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
}

@media (min-width: 768px) {
  .stat-value {
    font-size: 48px;
  }
}

/* ── Testimonial cards ── */
.testimonial-card {
  padding: 24px;
  border-radius: var(--radius-2xl);
  background: var(--color-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  will-change: transform;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), 0 0 24px rgba(168, 85, 247, 0.08);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
}

.testimonial-stars svg {
  width: 16px;
  height: 16px;
  fill: #f472b6;
}

.testimonial-quote {
  font-size: 14px;
  line-height: 1.65;
  flex: 1;
  color: rgba(255, 255, 255, 0.6);
}

.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

/* ── CTA Banner ── */
.cta-banner {
  border-radius: var(--radius-2xl);
  padding: 40px;
  position: relative;
  overflow: hidden;
  background: #13131f;
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.cta-banner-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
}

.cta-banner-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .cta-banner {
    padding: 56px;
  }

  .cta-banner-content {
    flex-direction: row;
  }

  .cta-banner-actions {
    flex-direction: row;
  }
}

@media (min-width: 640px) {
  .cta-banner-actions {
    flex-direction: row;
  }
}

/* ── Pricing page ── */
.price-value {
  font-family: var(--font-serif);
  font-size: 48px;
  color: #fff;
}

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 4px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.billing-toggle-btn {
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
  color: rgba(255, 255, 255, 0.5);
}

.billing-toggle-btn.active {
  background: #13131f;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-primary);
}

.pricing-card {
  position: relative;
  border-radius: var(--radius-2xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  will-change: transform;
}

.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), 0 0 24px rgba(168, 85, 247, 0.08);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  background: rgba(168, 85, 247, 0.2);
}

.feature-x {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  background: rgba(255, 255, 255, 0.06);
}

/* ── FAQ ── */
.faq-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  text-align: left;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
}

.faq-btn:hover {
  background: rgba(255, 255, 255, 0.03);
}

.faq-answer {
  overflow: hidden;
  transition: max-height 0.3s;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.5);
}

/* ── Chat page ── */
.chat-layout {
  padding-top: 64px;
  display: flex;
  height: 100dvh;
  overflow: hidden;
}

/* Sidebar */
.chat-sidebar {
  width: 280px;
  min-width: 280px;
  background: #0d0d18;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
}

.chat-sidebar-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-sidebar-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.chat-sidebar-cta {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.companion-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  transition: all 0.15s;
  text-align: left;
  margin-bottom: 4px;
  background: transparent;
  border: 1px solid transparent;
}

.companion-item.selected {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.3);
}

.companion-item-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
}

.companion-item-status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #0d0d18;
}

.status-online {
  background: #22c55e;
}

.status-away {
  background: #f59e0b;
}

/* Chat panel */
.chat-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chat-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 8, 16, 0.9);
  backdrop-filter: blur(12px);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-input-area {
  padding: 12px 16px 16px;
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 8, 16, 0.9);
  backdrop-filter: blur(12px);
}

.chat-day-separator {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-day-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
}

.chat-day-label {
  font-size: 12px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.25);
}

.chat-msg {
  display: flex;
  gap: 10px;
}

.chat-msg.user {
  flex-direction: row-reverse;
}

.chat-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-top: 4px;
}

.chat-msg-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 72%;
}

.chat-msg.user .chat-msg-content {
  align-items: flex-end;
}

.chat-msg-bubble {
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1.6;
}

.chat-msg-bubble.ai {
  background: #1a1a2e;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 4px 18px 18px 18px;
}

.chat-msg-bubble.user {
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 18px 4px 18px 18px;
}

.chat-msg-time {
  font-size: 11px;
  padding: 0 4px;
  color: rgba(255, 255, 255, 0.2);
}

/* Typing indicator */
.typing-dots {
  padding: 14px 16px;
  background: #1a1a2e;
  border-radius: 4px 18px 18px 18px;
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a855f7;
  animation: typingDot 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingDot {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* Chat input row */
.chat-input-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.chat-input-wrap {
  flex: 1;
  border-radius: var(--radius-2xl);
  padding: 12px 16px;
  background: #13131f;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-input-wrap textarea {
  width: 100%;
  background: transparent;
  font-size: 14px;
  resize: none;
  color: rgba(255, 255, 255, 0.85);
  border: none;
  outline: none;
  line-height: 1.5;
  max-height: 100px;
  font-family: var(--font-sans);
}

.chat-input-wrap textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
  background: var(--gradient-primary);
}

.chat-send-btn:hover {
  opacity: 0.9;
}

.chat-send-btn:active {
  transform: scale(0.95);
}

.chat-send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.chat-disclaimer {
  text-align: center;
  font-size: 11px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.18);
}

/* ── Mobile sidebar ── */
@media (max-width: 767px) {
  .chat-sidebar {
    display: none;
  }

  .chat-sidebar.mobile-open {
    display: flex;
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    z-index: 30;
  }

  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 20;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
  }

  .sidebar-backdrop.active {
    display: block;
  }
}

@media (min-width: 768px) {
  .chat-sidebar {
    display: flex;
  }

  #mobileSidebar {
    display: none !important;
  }

  .sidebar-backdrop {
    display: none !important;
  }

  .chat-mobile-toggle {
    display: none;
  }
}

/* ── Generate Page ── */
.generate-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.generate-form {
  flex: 1;
  min-width: 0;
}

.generate-preview {
  display: none;
  width: 288px;
  flex-shrink: 0;
  position: sticky;
  top: 96px;
}

@media (min-width: 1024px) {
  .generate-preview {
    display: flex;
    flex-direction: column;
  }
}

.preview-card {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--color-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.preview-media {
  position: relative;
  aspect-ratio: 2 / 3;
  background: #0d0d18;
}

.preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s;
}

.preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 8, 16, 0.9) 0%, transparent 50%);
}

.preview-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
}

.preview-details {
  padding: 16px;
}

/* Step progress */
.step-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.3s;
}

.step-circle.done {
  background: var(--gradient-primary);
  color: #fff;
}

.step-circle.current {
  background: rgba(168, 85, 247, 0.2);
  border: 2px solid #a855f7;
  color: #c084fc;
}

.step-circle.pending {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.3);
}

.step-line {
  flex: 1;
  height: 1px;
}

.step-line.done {
  background: rgba(168, 85, 247, 0.5);
}

.step-line.pending {
  background: rgba(255, 255, 255, 0.07);
}

/* Option chips */
.option-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
}

.option-chip.selected {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.5);
  color: #c084fc;
}

.color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Personality option */
.personality-option {
  padding: 16px;
  border-radius: var(--radius-md);
  text-align: left;
  transition: all 0.15s;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.personality-option.selected {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
}

.personality-icon {
  font-size: 20px;
  margin-bottom: 8px;
}

/* ── Success screen ── */
.success-icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  background: var(--gradient-primary);
  box-shadow: 0 20px 40px rgba(168, 85, 247, 0.3);
}

/* ── Spinner ── */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Footer ── */
.footer {
  background: #07070f;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  padding: 64px 24px 40px;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 56px;
}

.footer-brand {
  grid-column: span 1;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.3);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.15s;
  width: fit-content;
}

.footer-link:hover {
  color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-newsletter-form {
  display: flex;
  gap: 8px;
}

.footer-newsletter-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 0;
}

.footer-newsletter-btn {
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
  background: var(--gradient-primary);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 5fr 1fr 2fr 2fr;
    gap: 0;
  }

  .footer-bottom {
    flex-direction: row;
  }
}

/* ── About page ── */
.about-stats-card {
  border-radius: var(--radius-2xl);
  padding: 32px;
  text-align: center;
  background: var(--color-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.about-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.about-stat-num {
  font-weight: 600;
  font-size: 24px;
  color: #fff;
}

/* ── Legal pages ── */
.legal-notice {
  border-radius: var(--radius-2xl);
  padding: 24px;
  margin-bottom: 40px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.legal-section {
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 0;
}

/* ── Animations ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(168, 85, 247, 0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease both;
}

.animate-pulse-glow {
  animation: pulse-glow 2s infinite;
}

/* ── Page header ── */
.page-header {
  padding-top: 160px;
  padding-bottom: 80px;
  text-align: center;
}

/* ── Utility classes from Tailwind that we still use ── */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 {
  gap: 4px;
}

.gap-2 {
  gap: 8px;
}

.gap-3 {
  gap: 12px;
}

.gap-4 {
  gap: 16px;
}

.gap-5 {
  gap: 20px;
}

.gap-6 {
  gap: 24px;
}

.gap-8 {
  gap: 32px;
}

.gap-10 {
  gap: 40px;
}

.hidden {
  display: none;
}

.relative {
  position: relative;
}

.overflow-hidden {
  overflow: hidden;
}

.w-full {
  width: 100%;
}

.max-w-xs {
  max-width: 320px;
}

.max-w-sm {
  max-width: 384px;
}

.max-w-md {
  max-width: 448px;
}

.max-w-lg {
  max-width: 512px;
}

.max-w-xl {
  max-width: 576px;
}

.max-w-2xl {
  max-width: 672px;
}

.max-w-3xl {
  max-width: 768px;
}

.max-w-4xl {
  max-width: 896px;
}

.flex-1 {
  flex: 1;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

/* Override display for responsive */
@media (min-width: 768px) {
  .md\:flex {
    display: flex;
  }

  .md\:hidden {
    display: none;
  }

  .md\:block {
    display: block;
  }
}

@media (min-width: 1024px) {
  .lg\:flex {
    display: flex;
  }

  .lg\:block {
    display: block;
  }
}

/* ── Misc ── */
.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
