/* ========================================
   Candy AI - Premium AI Companion Platform
   Design System & Styles
   ======================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@700&display=swap');

/* --- CSS Variables (Design Tokens) --- */
:root {
  --bg-dark: #0a0a0f;
  --bg-card: #12121a;
  --bg-elevated: #181822;
  --purple-deep: #1a0a2e;
  --purple-mid: #2d1b4e;
  --purple-glow: #7c3aed;
  --pink-primary: #ff4fa3;
  --pink-bright: #ff6bb3;
  --pink-glow: rgba(255, 79, 163, 0.4);
  --text-primary: #ffffff;
  --text-secondary: #a0a0b8;
  --text-muted: #6b6b80;
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-pink: rgba(255, 79, 163, 0.3);
  --gradient-hero: linear-gradient(135deg, #0a0a0f 0%, #1a0a2e 50%, #0f0a1a 100%);
  --gradient-card: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  --gradient-pink-purple: linear-gradient(135deg, #ff4fa3 0%, #7c3aed 100%);
  --content-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul, ol {
  list-style: none;
}

input, textarea {
  font-family: inherit;
  outline: none;
}

/* --- Typography --- */
.font-display {
  font-family: 'Playfair Display', serif;
}

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

/* --- Layout Utilities --- */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-gap {
  padding: 6rem 0;
}

@media (min-width: 1024px) {
  .section-gap {
    padding: 8rem 0;
  }
}

/* --- Glassmorphism Cards --- */
.glass-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.glass-card:hover {
  border-color: var(--border-pink);
  box-shadow: 0 0 24px rgba(255, 79, 163, 0.08);
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--gradient-pink-purple);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 24px var(--pink-glow);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(255, 79, 163, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-glass);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-secondary:hover {
  border-color: var(--pink-primary);
  color: var(--pink-primary);
}

.btn-small {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
}

/* --- Badge --- */
.badge {
  display: inline-flex;
  padding: 0.375rem 1rem;
  background: var(--gradient-pink-purple);
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-pill);
}

/* --- Section Headings --- */
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
}

.section-title span {
  color: var(--pink-primary);
}

.section-subtitle {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pink-primary);
  margin-bottom: 1rem;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: calc(64px + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  transition: background 0.3s ease;
}

.navbar-scrolled {
  background: rgba(10, 10, 15, 0.95);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-candy {
  color: var(--text-primary);
}

.logo-ai {
  color: var(--pink-primary);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--pink-primary);
  border-radius: 1px;
}

.nav-cta {
  display: none;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  position: absolute;
  top: calc(64px + env(safe-area-inset-top));
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: var(--text-primary);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .hamburger {
    display: none;
  }
  .nav-cta {
    display: inline-flex;
  }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--gradient-hero);
}

.hero-bg-orb {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg-orb.orb-1 {
  background: radial-gradient(ellipse at 30% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 60%);
  animation: drift 8s ease-in-out infinite;
}

.hero-bg-orb.orb-2 {
  background: radial-gradient(ellipse at 70% 30%, rgba(255, 79, 163, 0.1) 0%, transparent 50%);
  animation: driftReverse 10s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  padding-top: 6rem;
  padding-bottom: 4rem;
}

.hero-left {
  max-width: 580px;
}

.hero-badge {
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeSlideUp 0.4s ease-out 0.2s forwards;
}

.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-primary);
}

.hero-headline .line {
  display: block;
  clip-path: inset(0 100% 0 0);
  animation: clipReveal 0.6s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.hero-headline .line:nth-child(1) {
  animation-delay: 0.4s;
}

.hero-headline .line:nth-child(2) {
  animation-delay: 0.5s;
}

.hero-headline .accent {
  color: var(--pink-primary);
  text-shadow: 0 0 40px var(--pink-glow);
}

.hero-desc {
  margin-top: 1rem;
  font-size: clamp(0.9375rem, 3vw, 1.125rem);
  line-height: 1.6;
  max-width: 480px;
  color: var(--text-secondary);
  opacity: 0;
  animation: fadeSlideUp 0.5s ease-out 0.7s forwards;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  opacity: 0;
  animation: fadeSlideUp 0.4s ease-out 0.9s forwards;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 3rem;
  opacity: 0;
  animation: fadeSlideUp 0.3s ease-out 1s forwards;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stat-icon {
  width: 20px;
  height: 20px;
  color: var(--pink-primary);
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Hero Right - Portrait */
.hero-right {
  position: relative;
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.hero-portrait-wrapper {
  position: relative;
  width: 100%;
  max-width: 450px;
}

.hero-portrait-wrapper::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 79, 163, 0.2) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-portrait {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 3/4;
  max-height: 400px;
  width: 100%;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Chat Bubbles */
.chat-bubble {
  position: absolute;
  z-index: 10;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  pointer-events: none;
  animation: float 4s ease-in-out infinite;
}

.chat-bubble.bubble-1 {
  top: 10%;
  right: 0;
  border-radius: 16px 16px 4px 16px;
}

.chat-bubble.bubble-2 {
  bottom: 25%;
  right: -10px;
  border-radius: 16px 16px 16px 4px;
  animation-delay: 1s;
  animation-name: floatSlow;
}

.chat-bubble .bubble-text {
  color: white;
}

.chat-bubble .bubble-sub {
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

.chat-bubble .bubble-typing {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* Floating Hearts */
.float-heart {
  position: absolute;
  pointer-events: none;
  color: var(--pink-primary);
  animation: floatSlow 6s ease-in-out infinite;
}

.candy-wordmark {
  position: absolute;
  top: 5%;
  right: 15%;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--pink-primary);
  text-shadow: 0 0 20px var(--pink-glow);
  opacity: 0.6;
  pointer-events: none;
}

/* Desktop Hero Layout */
@media (min-width: 1024px) {
  .hero-content {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    padding-top: 4rem;
  }

  .hero-left {
    flex: 0 0 55%;
  }

  .hero-right {
    flex: 0 0 45%;
    margin-top: 0;
    justify-content: flex-end;
  }

  .hero-portrait {
    max-height: 600px;
  }

  .chat-bubble.bubble-1 {
    top: 15%;
    right: -20px;
  }

  .chat-bubble.bubble-2 {
    bottom: 30%;
    right: -30px;
  }
}

/* ========================================
   QUICK FEATURES SECTION
   ======================================== */
.quick-features {
  position: relative;
  z-index: 2;
  background: var(--bg-dark);
  padding: 3rem 0;
}

.quick-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .quick-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .quick-features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.quick-feature-card {
  text-align: center;
  padding: 1.5rem;
}

.quick-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 79, 163, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.quick-feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--pink-primary);
}

.quick-feature-title {
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
}

.quick-feature-desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ========================================
   FEATURE SHOWCASE SECTION
   ======================================== */
.feature-showcase {
  background: var(--bg-dark);
}

.feature-showcase-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.feature-showcase-left {
  max-width: 400px;
}

.feature-showcase-left p {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.feature-showcase-left .link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--pink-primary);
  transition: opacity 0.3s ease;
}

.feature-showcase-left .link-arrow:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.feature-showcase-right {
  display: flex;
  justify-content: center;
}

.feature-showcase-image {
  width: 100%;
  max-width: 550px;
}

.feature-showcase-image img {
  width: 100%;
  border-radius: var(--radius-xl);
  border: 2px solid var(--border-glass);
  box-shadow: 0 25px 50px -12px rgba(255, 79, 163, 0.25);
}

.feature-card-img {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16/10;
}

.feature-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 1rem;
}

.feature-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
}

.feature-card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.feature-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-pink-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-card-icon svg {
  width: 18px;
  height: 18px;
  color: white;
}

@media (min-width: 1024px) {
  .feature-showcase-grid {
    flex-direction: row;
    gap: 4rem;
  }

  .feature-showcase-left {
    flex: 0 0 40%;
    position: sticky;
    top: 8rem;
    align-self: flex-start;
  }

  .feature-showcase-right {
    flex: 0 0 60%;
  }
}

/* ========================================
   HOW IT WORKS SECTION
   ======================================== */
.how-it-works {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--purple-deep) 50%, var(--bg-dark) 100%);
}

.how-it-works .section-title {
  text-align: center;
}

.steps-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 4rem;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.step-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.5s ease;
}

.step-circle.active {
  border-color: var(--pink-primary);
  color: var(--pink-primary);
  box-shadow: 0 0 16px var(--pink-glow);
}

.step-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  transition: color 0.5s ease;
}

.step-content p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  transition: color 0.5s ease;
}

.step-content .step-icon svg {
  width: 24px;
  height: 24px;
  color: var(--text-secondary);
  transition: color 0.5s ease;
  margin-bottom: 0.5rem;
}

.step-item.active .step-icon svg {
  color: var(--pink-primary);
}

.step-item.active .step-content p {
  color: var(--text-secondary);
}

.step-connector {
  display: none;
}

@media (min-width: 768px) {
  .steps-grid {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
  }

  .step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    max-width: 200px;
  }

  .step-content {
    margin-top: 0.75rem;
  }

  .step-content p {
    max-width: 180px;
    margin-left: auto;
    margin-right: auto;
  }

  .step-connector {
    display: block;
    width: 60px;
    height: 2px;
    background: var(--border-glass);
    margin-top: 24px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
  }

  .step-connector-fill {
    position: absolute;
    inset: 0;
    background: var(--gradient-pink-purple);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
  }

  .step-connector.active .step-connector-fill {
    transform: scaleX(1);
  }
}

/* ========================================
   CREATE SECTION
   ======================================== */
.create-section {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-primary) 100%);
}

.create-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.create-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.create-desc {
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.7;
}

.create-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.create-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  font-size: 0.9375rem;
}

.create-feature-item svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--pink-primary);
  flex-shrink: 0;
}

.create-image img {
  width: 100%;
  border-radius: var(--radius-xl);
  border: 2px solid var(--border-glass);
  box-shadow: 0 25px 50px -12px rgba(255, 79, 163, 0.25);
}

@media (max-width: 900px) {
  .create-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  
  .create-features {
    grid-template-columns: 1fr;
  }
  
  .create-feature-item {
    justify-content: center;
  }
}

/* ========================================
   COMPANIONS GALLERY SECTION
   ======================================== */
.companions {
  background: var(--bg-dark);
}

.companions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.companions-header .link-arrow {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--pink-primary);
  transition: opacity 0.3s ease;
}

.companions-header .link-arrow:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.companions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

@media (min-width: 640px) {
  .companions-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .companions-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.companion-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  transition: transform 0.4s ease;
  will-change: transform;
}

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

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

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

.companion-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1rem 1rem;
  background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.8) 100%);
}

.companion-card-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(255, 79, 163, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.companion-card:hover .companion-card-hover-overlay {
  opacity: 1;
}

.companion-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
}

.companion-name svg {
  width: 14px;
  height: 14px;
  color: var(--pink-primary);
  fill: var(--pink-primary);
}

.companion-details {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonials {
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(26, 10, 46, 0.5) 100%);
}

.testimonials .section-title {
  text-align: center;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  padding: 2rem;
  border-radius: var(--radius-xl);
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
}

.testimonial-stars svg {
  width: 16px;
  height: 16px;
  color: var(--pink-primary);
  fill: var(--pink-primary);
}

.testimonial-quote {
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.testimonial-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-pink);
}

.testimonial-author-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: clamp(1.25rem, 6vw, 4rem);
  margin-top: 4rem;
  flex-wrap: wrap;
}

.stats-row .stat-box {
  text-align: center;
  flex: 0 1 180px;
  min-width: 140px;
}

.stats-row .stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--pink-primary);
  line-height: 1.05;
}

.stats-row .stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

@media (max-width: 480px) {
  .stats-row {
    margin-top: 3rem;
    gap: 1.25rem;
  }

  .stats-row .stat-box {
    flex-basis: 140px;
    min-width: 0;
  }

  .stats-row .stat-number {
    font-size: 2rem;
  }

  .stats-row .stat-label {
    font-size: 0.8125rem;
  }
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  position: relative;
  padding: 6rem 0;
  background: var(--bg-dark);
  overflow: hidden;
}

.cta-bg-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255, 79, 163, 0.15) 0%, transparent 50%);
  animation: pulseGlow 4s ease-in-out infinite;
}

.cta-float-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cta-float-hearts .float-heart {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0.2;
}

.cta-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
}

@media (max-width: 768px) {
  .cta-content {
    padding: 0 clamp(1rem, 4vw, 1.5rem);
  }
}

.cta-content p {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-glass);
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

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

.footer-brand .logo {
  font-size: 1.25rem;
}

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.6;
  max-width: 200px;
  color: var(--text-secondary);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-socials a {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.footer-socials a:hover {
  color: var(--pink-primary);
}

.footer-socials svg {
  width: 18px;
  height: 18px;
}

.footer-column h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
}

.footer-column ul li {
  margin-bottom: 0.75rem;
}

.footer-column ul li a {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: var(--text-primary);
}

.footer-newsletter p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.footer-newsletter-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 0.625rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-size: 0.8125rem;
  transition: border-color 0.3s ease;
}

.footer-newsletter-form input::placeholder {
  color: var(--text-muted);
}

.footer-newsletter-form input:focus {
  border-color: var(--pink-primary);
}

.footer-newsletter-form button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-pink-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.footer-newsletter-form button:hover {
  transform: scale(1.05);
}

.footer-newsletter-form button svg {
  width: 16px;
  height: 16px;
  color: white;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

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

  .footer-brand {
    grid-column: auto;
  }
}

/* ========================================
   SUB-PAGE HERO (About, etc.)
   ======================================== */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  text-align: center;
  padding-top: 6rem;
  padding-bottom: 3rem;
}

.page-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text-primary);
}

.page-hero-desc {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   ABOUT PAGE
   ======================================== */
.about-content {
  background: var(--bg-dark);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.about-text h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.about-stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.about-stat-box {
  padding: 1.5rem;
  text-align: center;
}

.about-stat-box .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--pink-primary);
}

.about-stat-box .stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.about-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

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

/* ========================================
   AI COMPANION PAGES (Boyfriend/Girlfriend)
   ======================================== */
.ai-companion-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  padding-top: 6rem;
  overflow: hidden;
}

.ai-companion-hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.ai-companion-hero-text {
  max-width: 500px;
}

.ai-companion-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
}

.ai-companion-hero-title span {
  color: var(--pink-primary);
}

.ai-companion-hero-desc {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.ai-companion-hero-image {
  max-width: 320px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(255, 79, 163, 0.2);
}

.ai-companion-hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (min-width: 768px) {
  .ai-companion-hero .container {
    flex-direction: row;
    text-align: left;
    gap: 4rem;
  }

  .ai-companion-hero-text {
    flex: 1;
  }

  .ai-companion-hero-image {
    flex: 0 0 300px;
    max-width: 300px;
  }
}

/* Features Grid for AI Companion Pages */
.ai-features {
  background: var(--bg-dark);
}

.ai-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.ai-feature-card {
  padding: 2rem;
  text-align: center;
}

.ai-feature-card .feature-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 79, 163, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.ai-feature-card .feature-icon-wrap svg {
  width: 28px;
  height: 28px;
  color: var(--pink-primary);
}

.ai-feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.75rem;
}

.ai-feature-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (min-width: 640px) {
  .ai-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ai-features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========================================
   LEGAL PAGES (Terms, Privacy)
   ======================================== */
.legal-content {
  background: var(--bg-dark);
  min-height: 60vh;
}

.legal-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.legal-wrapper h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-wrapper h2:first-child {
  margin-top: 0;
}

.legal-wrapper p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.legal-wrapper ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-wrapper ul li {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.legal-wrapper a {
  color: var(--pink-primary);
  text-decoration: underline;
}

.legal-date {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 1rem;
  font-style: italic;
}

/* ========================================
   SCROLL REVEAL ANIMATIONS
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ========================================
   KEYFRAME ANIMATIONS
   ======================================== */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes clipReveal {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0% 0 0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(3deg); }
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

@keyframes drift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(20px, -10px); }
  100% { transform: translate(0, 0); }
}

@keyframes driftReverse {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-15px, 10px); }
  100% { transform: translate(0, 0); }
}

/* ========================================
   APP DOWNLOAD SECTION
   ======================================== */
.app-download {
  padding: 6rem 0;
}

.app-download-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.app-download-text p {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.app-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.app-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.app-btn:hover {
  background: var(--bg-elevated);
  border-color: var(--pink-primary);
  transform: translateY(-2px);
}

.app-btn svg {
  width: 28px;
  height: 28px;
  color: var(--text-primary);
}

.app-btn-apple svg {
  color: white;
}

.app-btn-text {
  display: flex;
  flex-direction: column;
}

.app-btn-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.app-btn-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.app-download-image {
  display: flex;
  justify-content: center;
}

.app-download-image img {
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-xl);
  border: 2px solid var(--border-glass);
  box-shadow: 0 25px 50px -12px rgba(255, 79, 163, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-download-image img:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px -15px rgba(255, 79, 163, 0.35);
}

@media (min-width: 768px) {
  .app-download-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .app-download-text {
    order: 2;
  }
  
  .app-download-image {
    order: 1;
  }
}

/* ========================================
   FAQS SECTION
   ======================================== */
.faqs {
  padding: 6rem 0;
  background: var(--bg-dark);
}

.faqs-header {
  text-align: center;
  margin-bottom: 3rem;
}

.faqs-grid {
  display: grid;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: var(--border-pink);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: transparent;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: var(--bg-elevated);
}

.faq-question[aria-expanded="true"] {
  background: var(--bg-elevated);
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--pink-primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

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

.faq-question[aria-expanded="true"] + .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .section-gap {
    padding: 4.5rem 0;
  }

  .hero-content {
    padding-top: 5.25rem;
    padding-bottom: 3.25rem;
  }

  .hero-stats {
    gap: 1.25rem;
  }

  .companions-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

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

  .about-stats-row {
    grid-template-columns: 1fr;
  }

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

  .footer-brand p {
    max-width: none;
  }

  .footer-newsletter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-newsletter-form button {
    width: 100%;
    height: 40px;
    border-radius: var(--radius-pill);
  }

  .faq-question {
    padding: 1rem 1.125rem;
  }

  .faq-answer p {
    padding: 0 1.125rem 1rem;
  }
}

@media (max-width: 360px) {
  .btn-primary,
  .btn-secondary {
    padding: 0.75rem 1.5rem;
  }

  .badge {
    font-size: 0.6875rem;
    padding: 0.3125rem 0.875rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
