/* ===== GrayScread Kft — Warm Twilight ===== */
/* Intimate AI · Editorial Corporate Site */

/* ===== CSS Variables ===== */
:root {
  --bg: #FDFBF7;
  --bg-card: #FFFFFF;
  --bg-alt: #F6F1EA;
  --bg-deep: #EDE5D8;
  --text: #1E1433;
  --text-secondary: #3D3456;
  --text-muted: #524766;
  --text-light: #786C8E;
  --pink: #C83C60;
  --pink-light: #F4A0B8;
  --pink-glow: rgba(200, 60, 96, 0.22);
  --accent: #7052D7;
  --accent-2: #A78BFA;
  --accent-glow: rgba(112, 82, 215, 0.18);
  --gradient-primary: linear-gradient(135deg, #C83C60, #A78BFA, #7052D7);
  --gradient-warm: linear-gradient(135deg, #C83C60, #F4A0B8);
  --gradient-cool: linear-gradient(135deg, #7052D7, #A78BFA);
  --border: #E2D8CC;
  --border-light: #EDE6DC;

  --font-heading: 'Fraunces', 'Noto Sans SC', Georgia, serif;
  --font-body: 'DM Sans', 'Noto Sans SC', system-ui, sans-serif;
  --font-mono: 'Fira Code', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 12px rgba(30, 20, 51, 0.05);
  --shadow-md: 0 8px 30px rgba(30, 20, 51, 0.07);
  --shadow-lg: 0 16px 48px rgba(30, 20, 51, 0.10);
  --shadow-pink: 0 8px 30px rgba(232, 85, 122, 0.12);
  --shadow-glow: 0 0 40px rgba(232, 85, 122, 0.15), 0 0 80px rgba(124, 92, 231, 0.08);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --transition: 0.35s var(--ease);
  --transition-slow: 0.6s var(--ease);

  --focus-ring: 0 0 0 3px rgba(124, 92, 231, 0.35);

  /* Section background gradients for smooth transitions */
  --section-gradient-1: linear-gradient(180deg, #FDFBF7 0%, #F6F1EA 100%);
  --section-gradient-2: linear-gradient(180deg, #F6F1EA 0%, #FDFBF7 100%);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Prevent horizontal scroll without triggering overflow clipping on tooltips */
html { overflow-x: hidden; }

/* Chinese font adjustments */
body[data-lang="cn"] { font-family: 'Noto Sans SC', 'DM Sans', sans-serif; }

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--pink); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text);
  font-style: normal;
  font-optical-sizing: auto;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 2.8vw, 1.75rem); }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin-bottom: 1rem; color: var(--text-secondary); line-height: 1.8; }

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

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

/* ===== Section Transitions ===== */
/* Unified background with decorative dividers */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 30%, var(--border) 70%, transparent);
  margin: 0;
}

.section-divider::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--pink-light);
  border-radius: 50%;
  position: relative;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 12px var(--pink-glow);
}

/* ===== Section Background Images ===== */
.section-bg-budapest {
  position: relative;
}

.section-bg-budapest::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/bg-budapest.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.09;
  mix-blend-mode: multiply;
  filter: blur(1.5px) saturate(0.5);
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 18%,
    black 82%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 18%,
    black 82%,
    transparent 100%
  );
}

.section-bg-budapest > .container {
  position: relative;
  z-index: 1;
}

.section-bg-budapest--top::after {
  background-position: center 20%;
}

.section-bg-budapest--bottom::after {
  background-position: center 80%;
}

.section-bg-budapest--flip::after {
  transform: scaleX(-1);
}

/* ===== Unified Icon Base ===== */
.nav__logo-icon,
.footer__logo-icon,
.card__icon,
.feature-item__icon,
.step__number {
  transition: transform var(--transition);
}

/* Unified hover effect */
.card:hover .card__icon,
.feature-item:hover .feature-item__icon,
.step:hover .step__number,
.nav__logo:hover .nav__logo-icon {
  transform: scale(1.1) rotate(-3deg);
}

/* ===== Layout ===== */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 32px; }
section { padding: 120px 0; position: relative; }

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  section { padding: 80px 0; }
}

/* ===== Animated Background Blobs ===== */
.blob-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: blobFloat 20s ease-in-out infinite;
}

.blob--pink {
  width: 500px; height: 500px;
  background: var(--pink);
  top: -10%; left: -5%;
  animation-delay: 0s;
}

.blob--purple {
  width: 400px; height: 400px;
  background: var(--accent-2);
  top: 30%; right: -8%;
  animation-delay: -7s;
  animation-duration: 25s;
}

.blob--lilac {
  width: 350px; height: 350px;
  background: #D4BBFF;
  bottom: 10%; left: 20%;
  animation-delay: -14s;
  animation-duration: 22s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(40px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(30px, 40px) scale(1.02); }
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: all var(--transition);
}

.nav.scrolled {
  background: rgba(253, 251, 247, 0.88);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 1px 20px rgba(30, 20, 51, 0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.nav__logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(232, 85, 122, 0.35);
  transition: transform var(--transition);
  position: relative;
  overflow: hidden;
}

.nav__logo-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent 50%);
}

.nav__logo:hover .nav__logo-icon { transform: rotate(-8deg) scale(1.05); }

.nav__logo-icon svg { width: 24px; height: 24px; position: relative; z-index: 1; }

.nav__center {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-warm);
  border-radius: 2px;
  transition: width var(--transition);
}

.nav__link:hover, .nav__link.active { color: var(--text); }
.nav__link:hover::after, .nav__link.active::after { width: 100%; }

.nav__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language Switcher */
.lang-switch {
  display: flex;
  align-items: center;
  background: var(--bg-alt);
  border-radius: var(--radius-full);
  padding: 3px;
  font-size: 0.8rem;
  font-weight: 600;
}

.lang-switch__btn {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: all var(--transition);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.lang-switch__btn.active {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--gradient-warm);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition);
  box-shadow: 0 4px 16px var(--pink-glow);
}

.nav__cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--pink-glow);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(253, 251, 247, 0.97);
  backdrop-filter: blur(20px);
  padding: 32px 24px;
  z-index: 999;
  overflow-y: auto;
}

.nav__mobile.open { display: block; animation: slideDown 0.3s var(--ease); }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav__mobile-link {
  display: block;
  padding: 16px 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
}

.nav__mobile-link:hover { color: var(--pink); }

.nav__mobile-cta {
  display: inline-flex;
  margin-top: 24px;
  padding: 14px 32px;
  background: var(--gradient-warm);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(232, 85, 122, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(124, 92, 231, 0.06) 0%, transparent 50%);
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/bg-budapest.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.06;
  mix-blend-mode: multiply;
  filter: blur(1px) saturate(0.4);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero__content { max-width: 580px; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  width: fit-content;
  background: rgba(232, 85, 122, 0.08);
  border: 1px solid rgba(232, 85, 122, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pink);
  margin-bottom: 28px;
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 85, 122, 0.15); }
  50% { box-shadow: 0 0 0 8px rgba(232, 85, 122, 0); }
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__title { margin-bottom: 32px; }

.hero__subtitle {
  font-size: 1.1rem;
  line-height: 1.85;
  margin-bottom: 40px;
  max-width: 480px;
}

/* Typewriter Signature Element */
.hero__typewriter {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 40px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 520px;
}

.hero__typewriter-label {
  color: var(--pink);
  font-weight: 600;
  flex-shrink: 0;
  opacity: 0.7;
}

.hero__typewriter-text {
  min-height: 1.7em;
}

.hero__typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--pink);
  margin-left: 2px;
  animation: cursorBlink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes cursorBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero Visual — Full-bleed video with rounded corners & interaction */
.hero__visual {
  position: relative;
  width: 100%;
  min-height: 480px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: transparent;
  border: none;
  box-shadow: none;
  transition: transform 0.5s var(--ease);
}

.hero__visual:hover {
  transform: translateY(-6px) scale(1.02);
}

.hero__full-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(1.02) saturate(1.15) contrast(1.03);
  z-index: 1;
  transition: transform 0.6s var(--ease);
}

.hero__visual:hover .hero__full-video {
  transform: scale(1.04);
}

/* Chat glass overlay positioned on top of video */
.hero__chat-overlay {
  position: absolute;
  left: 5%;
  bottom: 5%;
  width: 80%;
  z-index: 5;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  animation: floatCard 6s ease-in-out infinite;
  animation-delay: -3s;
}

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

/* Chat bubble animation in hero card */
.chat-bubbles { display: flex; flex-direction: column; gap: 8px; }

.chat-bubble {
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  line-height: 1.5;
  max-width: 85%;
  animation: chatIn 0.5s var(--ease-spring) both;
}

.chat-bubble--ai {
  background: var(--bg-alt);
  color: var(--text);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.chat-bubble--user {
  background: var(--gradient-cool);
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.chat-bubble:nth-child(2) { animation-delay: 0.6s; }
.chat-bubble:nth-child(3) { animation-delay: 1.2s; }
.chat-bubble:nth-child(4) { animation-delay: 1.8s; }

@keyframes chatIn {
  from { opacity: 0; transform: translateY(10px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Decorative SVG lines */
.hero__deco-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.12;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  min-height: 52px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn:hover::before { opacity: 1; }

.btn--primary {
  background: var(--gradient-warm);
  color: #fff;
  box-shadow: 0 6px 24px var(--pink-glow);
}

.btn--primary:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 36px var(--pink-glow);
}

.btn--secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  border-color: var(--pink);
  color: var(--pink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-pink);
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn--ghost:hover {
  background: var(--accent);
  color: #fff;
}

.btn__arrow {
  transition: transform var(--transition);
}

.btn:hover .btn__arrow { transform: translateX(4px); }

/* ===== Section Headers ===== */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 72px;
}

.section-header__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(232, 85, 122, 0.06);
  border: 1px solid rgba(232, 85, 122, 0.12);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
}

.section-header__title { margin-bottom: 16px; }
.section-header__desc { font-size: 1.1rem; margin-bottom: 0; }

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

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

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card:hover::before { opacity: 1; }

.card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(232, 85, 122, 0.1), rgba(124, 92, 231, 0.1));
  border-radius: var(--radius-md);
  margin-bottom: 22px;
  transition: transform var(--transition);
}

.card:hover .card__icon { transform: scale(1.1) rotate(-3deg); }

.card__icon svg { width: 24px; height: 24px; color: var(--pink); }

.card__title { font-size: 1.2rem; margin-bottom: 12px; }

.card__desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.7;
}

/* ═══ Interactive Card Enhancement (Frontend Design) ═══ */
.card--interactive {
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  position: relative;
}

.card--interactive:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 60px rgba(232, 85, 122, 0.15), 0 8px 24px rgba(0, 0, 0, 0.08);
}

.card--interactive:hover .card__icon {
  transform: scale(1.15) rotate(-5deg);
  background: var(--gradient-primary);
}

.card--interactive:hover .card__icon svg {
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3));
}

.card__preview {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(232, 85, 122, 0.08);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--pink);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.card--interactive:hover .card__preview {
  opacity: 1;
  transform: translateY(0);
}

.card__preview-dot {
  width: 6px;
  height: 6px;
  background: var(--pink);
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* ═══ Hero Scroll Indicator (Frontend Design) ═══ */
.hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.hero__scroll-indicator:hover {
  opacity: 1;
}

.hero__scroll-text {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--pink), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0%, 100% { transform: translateY(0); opacity: 0; }
  50% { transform: translateY(10px); opacity: 1; }
}

/* ═══ Interactive Stats with Tooltips (Frontend Design) ═══ */
.stat--interactive {
  position: relative;
  cursor: help;
}

.stat--interactive:hover .stat__number {
  color: var(--pink);
  transform: scale(1.05);
  transition: all 0.3s ease;
}

.stat__tooltip {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--bg-card);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  z-index: 100;
  border: 1px solid var(--border-light);
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 500;
}

.stat__tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: var(--bg-card);
}

.stat--interactive:hover .stat__tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ═══ Magnetic Button Effect (Frontend Design) ═══ */
.btn--magnetic {
  position: relative;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ═══ Scroll to Top Button (Frontend Design) ═══ */
.scroll-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(232, 85, 122, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1000;
}

.scroll-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 24px rgba(232, 85, 122, 0.4);
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
  color: #fff;
  stroke: #fff;
}

/* ═══ Reading Progress Bar (Frontend Design) ═══ */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 9999;
  pointer-events: none;
}

.reading-progress__bar {
  height: 100%;
  background: var(--gradient-primary);
  width: 0%;
  transition: width 0.1s ease;
  box-shadow: 0 0 10px rgba(232, 85, 122, 0.4);
}

/* ═══ Confetti Pieces (Frontend Design) ═══ */
.confetti-piece {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 9999;
  animation: confetti-fall 1s ease-out forwards;
}

@keyframes confetti-fall {
  to {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* ===== Persona Chat Visual ===== */
.persona-chat-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 4;
  background: #1a1a2e;
}

.persona-chat-visual__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.persona-chat-visual__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 40%, transparent 100%);
}

.persona-chat-visual__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  color: white;
}

.persona-chat-visual__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 600;
  color: white;
  box-shadow: 0 4px 12px rgba(124, 92, 231, 0.4);
}

.persona-chat-visual__header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.persona-chat-visual__header span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.persona-chat-visual__messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 20px 20px;
  overflow-y: auto;
  justify-content: flex-end;
}

.pc-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.92rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.pc-bubble.visible {
  opacity: 1;
  transform: translateY(0);
}

.pc-bubble--ai {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 6px;
}

.pc-bubble--user {
  background: var(--gradient-warm);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 6px;
}

.persona-chat-visual__input {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.persona-chat-visual__input span {
  flex: 1;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
}

.persona-chat-visual__input svg {
  color: white;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.persona-chat-visual__input svg:hover {
  transform: scale(1.1);
}

/* ===== Image Feature Section ===== */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.feature-split--reverse { direction: rtl; }
.feature-split--reverse > * { direction: ltr; }

.feature-split__image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  background-color: transparent;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.feature-split__image:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(30, 20, 51, 0.10);
}

.feature-split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.feature-split__image:hover img { transform: scale(1.03); }

.feature-split__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}

.feature-split__content h3 { margin-bottom: 20px; }
.feature-split__content p { margin-bottom: 28px; color: var(--text-secondary); }

/* ===== Chat Demo (based on chat-demo.png) ===== */
.chat-demo {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 520px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 16px;
}

/* Hide glow orbs - they create dark patches on transparent background */
.chat-demo__glow { display: none; }

/* Chat demo video */
.chat-demo__video {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: 24px;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  z-index: 2;
  animation: chatDemoFloat 4s ease-in-out infinite;
  display: block;
  object-fit: cover;
}

/* Legacy image support */
.chat-demo__img {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: 24px;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  z-index: 2;
  animation: chatDemoFloat 4s ease-in-out infinite;
  display: block;
}

@keyframes chatDemoFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.01); }
}

/* Shine sweep animation overlay - hidden on transparent bg */
.chat-demo::after { display: none; }

/* Pulse ring behind the image - hidden on transparent bg */
.chat-demo::before { display: none; }

/* Split feature right side content */
.chat-demo-content h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  line-height: 1.3;
}

.chat-demo-content p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.8;
}

.chat-demo-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.chat-demo-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.chat-demo-feature:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232, 85, 122, 0.2);
}

.chat-demo-feature__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(232, 85, 122, 0.12), rgba(124, 92, 231, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--pink);
}

.chat-demo-feature__icon svg { width: 18px; height: 18px; }

.chat-demo-feature__text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 2px;
}

.chat-demo-feature__text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ===== Chat Scene Illustration ===== */
.chat-scene {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 520px;
  background: linear-gradient(145deg, #1a1028 0%, #2d2145 40%, #1e1233 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 30px;
}

/* Ambient glow */
.chat-scene__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  pointer-events: none;
}
.chat-scene__glow--1 {
  width: 200px; height: 200px;
  background: #E8557A;
  top: -40px; right: -30px;
}
.chat-scene__glow--2 {
  width: 160px; height: 160px;
  background: #A78BFA;
  bottom: -30px; left: -20px;
}

/* Phone mockup */
.chat-phone {
  position: relative;
  width: 280px;
  max-width: 85%;
  background: #1c1c1e;
  border-radius: 32px;
  padding: 14px;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.4),
    0 0 0 1px rgba(255,255,255,0.08),
    inset 0 0 0 1px rgba(255,255,255,0.05);
  z-index: 2;
  animation: phoneFloat 4s ease-in-out infinite;
}

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

.chat-phone__notch {
  width: 90px;
  height: 6px;
  background: #2c2c2e;
  border-radius: 3px;
  margin: 0 auto 12px;
}

.chat-phone__screen {
  background: #0a0a14;
  border-radius: 20px;
  overflow: hidden;
}

/* Chat header */
.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.chat-header__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E8557A, #D4BBFF);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.chat-header__info h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
}

.chat-header__info span {
  color: #4ade80;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-header__info span::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
}

/* Chat messages area */
.chat-messages {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 300px;
  max-height: 300px;
  overflow: hidden;
  position: relative;
}

.chat-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(12px) scale(0.95);
  flex-shrink: 0;
}

.chat-msg--ai {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg--user {
  background: linear-gradient(135deg, #E8557A, #D4BBFF);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-msg.visible {
  animation: msgIn 0.5s ease-out forwards;
}

.chat-msg.fade-out {
  animation: msgFadeOut 0.4s ease-out forwards;
}

@keyframes msgIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes msgFadeOut {
  to { opacity: 0; transform: translateY(-12px) scale(0.95); }
}

/* Typing indicator */
.chat-typing {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  align-self: flex-start;
  background: rgba(255,255,255,0.06);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  opacity: 0;
  flex-shrink: 0;
}

.chat-typing.visible {
  animation: msgIn 0.3s ease-out forwards;
}

.chat-typing__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  animation: typingDot 1.4s ease-in-out infinite;
}

.chat-typing__dot:nth-child(2) { animation-delay: 0.2s; }
.chat-typing__dot:nth-child(3) { animation-delay: 0.4s; }

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

/* Chat input bar */
.chat-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.chat-input-bar__field {
  flex: 1;
  height: 34px;
  background: rgba(255,255,255,0.06);
  border-radius: 17px;
  border: none;
  padding: 0 14px;
  color: rgba(255,255,255,0.3);
  font-size: 12px;
  display: flex;
  align-items: center;
}

.chat-input-bar__send {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E8557A, #D4BBFF);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-input-bar__send svg {
  width: 15px;
  height: 15px;
}

/* ===== Stats Bar ===== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 56px 56px 100px;
  background: transparent;
  border: none;
  box-shadow: none;
  position: relative;
  z-index: 2;
}

.stat {
  text-align: center;
  position: relative;
}

.stat + .stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: var(--border);
}

.stat__number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  line-height: 1.1;
}

.stat__label {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0;
  font-weight: 500;
}

/* ===== Feature List ===== */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.feature-item:hover {
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
}

.feature-item__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(232, 85, 122, 0.1), rgba(124, 92, 231, 0.08));
  border-radius: var(--radius-md);
}

.feature-item__icon svg { width: 24px; height: 24px; color: var(--pink); }
.feature-item__title { font-size: 1.08rem; font-weight: 600; margin-bottom: 10px; }
.feature-item__desc { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 0; line-height: 1.6; }

/* ===== How It Works ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 44px;
  left: 16.5%;
  right: 16.5%;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0.15;
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step__number {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: 50%;
  margin: 0 auto 24px;
  box-shadow: var(--shadow-pink);
  transition: transform var(--transition);
}

.step:hover .step__number { transform: scale(1.15); }

.step__title { font-size: 1.15rem; margin-bottom: 12px; }
.step__desc { font-size: 0.95rem; margin-bottom: 0; line-height: 1.65; }

/* ===== Value Props ===== */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.value-item {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.value-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232, 85, 122, 0.2);
}

.value-item__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--gradient-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: var(--shadow-pink);
}

.value-item__title { font-size: 1.1rem; margin-bottom: 12px; }
.value-item__desc { font-size: 0.92rem; margin-bottom: 0; }

/* ===== Company Info ===== */
.company-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  text-align: center;
}

.company-info__item { padding: 28px; }
.company-info__label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 12px;
}

.company-info__value { font-size: 1.05rem; color: var(--text); margin-bottom: 0; line-height: 1.6; }
.company-info__value a { color: var(--accent); }

/* ===== CTA Section ===== */
.cta-section {
  background: var(--gradient-primary);
  text-align: center;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(255,255,255,0.1) 0%, transparent 40%);
}

.cta-section h2 { color: #fff; margin-bottom: 20px; position: relative; }
.cta-section p { color: rgba(255,255,255,0.9); font-size: 1.2rem; margin-bottom: 40px; position: relative; }
.cta-section .btn { position: relative; }

.cta-section .btn--primary {
  background: #fff;
  color: var(--pink);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.cta-section .btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.contact-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232, 85, 122, 0.15);
}

.contact-card__icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 50%;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-pink);
}

.contact-card__icon svg { width: 24px; height: 24px; color: #fff; }
.contact-card__title { font-size: 1.1rem; margin-bottom: 12px; }
.contact-card__value { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 0; }
.contact-card__value a { color: var(--accent); word-break: break-all; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.faq-item:hover { border-color: rgba(232, 85, 122, 0.2); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 22px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: color var(--transition);
}

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

.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--pink);
}

.faq-item.open .faq-question svg { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq-answer__inner {
  padding: 0 24px 24px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ===== Legal Pages ===== */
.legal-body { max-width: 800px; margin: 0 auto; }

.legal-body h2 {
  font-size: 1.5rem;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.legal-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-body p { margin-bottom: 16px; line-height: 1.85; max-width: 65ch; }

.legal-body ul { margin-bottom: 16px; padding-left: 24px; }
.legal-body li { list-style: disc; margin-bottom: 8px; color: var(--text-muted); line-height: 1.7; }
.legal-body strong { color: var(--text); }

.legal-updated {
  font-size: 0.88rem;
  color: var(--pink);
  margin-bottom: 36px;
  padding: 12px 20px;
  background: rgba(232, 85, 122, 0.06);
  border: 1px solid rgba(232, 85, 122, 0.12);
  border-radius: var(--radius-md);
  display: inline-block;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg);
  padding: 64px 0 28px;
  border-top: 1px solid var(--border-light);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer__brand { max-width: 300px; }

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

.footer__logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__logo-icon svg { width: 18px; height: 18px; }
.footer__desc { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0; line-height: 1.7; }

.footer__heading {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 18px;
}

.footer__links li { margin-bottom: 12px; }
.footer__link { font-size: 0.9rem; color: var(--text-muted); }
.footer__link:hover { color: var(--pink); }

.footer__bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer__copyright { font-size: 0.82rem; color: var(--text-light); margin-bottom: 0; }

/* ===== Phone Frame (Product Page Video) ===== */
.phone-frame {
  position: relative;
  width: 280px;
  margin: 0 auto;
  border-radius: 36px;
  background: #1a1a2e;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(124, 92, 231, 0.25),
              0 0 0 2px rgba(124, 92, 231, 0.15),
              inset 0 0 0 1px rgba(255,255,255,0.05);
  overflow: hidden;
}

.phone-frame__notch {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: #1a1a2e;
  border-radius: 0 0 14px 14px;
  z-index: 10;
}

.phone-frame__video {
  width: 100%;
  border-radius: 24px;
  display: block;
  aspect-ratio: 9/16;
  object-fit: cover;
}

.feature-split__video {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
}

@media (max-width: 768px) {
  .phone-frame { width: 220px; }
}

/* ===== Hero Background Video Layer (Index Page) ===== */
.hero__video-bg {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  width: 65%;
  height: 95%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 24px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero__bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(1.02) saturate(1.2) contrast(1.03);
}

.hero__video-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, transparent 55%, rgba(250, 248, 255, 0.45) 85%, rgba(250, 248, 255, 0.85) 100%);
  pointer-events: none;
}

@media (max-width: 1024px) {
  .hero__video-bg {
    width: 100%;
    height: 55%;
    right: auto;
    top: auto;
    bottom: 0;
    transform: none;
    border-radius: 0;
    opacity: 0.5;
  }
}

@media (max-width: 768px) {
  .hero__video-bg {
    height: 45%;
    opacity: 0.4;
  }
}

/* ===== Phone Frame Emoji Layer ===== */
.phone-frame__screen {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}

.phone-frame__emojis {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.phone-frame__emoji {
  position: absolute;
  font-size: 24px;
  opacity: 0;
  animation: emojiFloat var(--duration, 2.5s) var(--delay, 0s) ease-out forwards;
  will-change: transform, opacity;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

@keyframes emojiFloat {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.3) rotate(-15deg);
  }
  15% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
  70% {
    opacity: 0.9;
    transform: translateY(-40px) scale(1.05) rotate(var(--rotate, 5deg));
  }
  100% {
    opacity: 0;
    transform: translateY(-70px) scale(0.8) rotate(var(--rotate, 5deg));
  }
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease-spring);
}

.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.19s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.26s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.33s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.40s; }
.stagger.visible > * { opacity: 1; transform: translateY(0); }

/* ===== Cursor Glow Effect ===== */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 85, 122, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
  transition: transform 0.15s linear;
  will-change: transform;
}

/* ===== Character Types Grid ===== */
.char-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.char-type-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  cursor: pointer;
}

.char-type-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(124, 92, 231, 0.25);
}

.char-type-card__img {
  width: 100%;
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease);
}

.char-type-card:hover .char-type-card__img {
  transform: scale(1.08);
}

.char-type-card__body {
  padding: 24px;
}

.char-type-card__tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--gradient-warm);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.char-type-card__body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: var(--text);
}

.char-type-card__body p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 1024px) {
  .char-type-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .char-type-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 32px;
  }

  .char-type-card__img {
    aspect-ratio: 16 / 9;
  }
}

/* ===== Character Diversity Grid ===== */
.char-diversity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 16px;
  margin-top: 48px;
}

.char-diversity-item {
  position: relative;
  border-radius: var(--radius-lg, 20px);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.char-diversity-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}

.char-diversity-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 48px rgba(124, 92, 231, 0.20);
  z-index: 2;
}

.char-diversity-item:hover img {
  transform: scale(1.1);
}

.char-diversity-item--lg {
  grid-column: span 2;
  grid-row: span 2;
}

.char-diversity-item--tall {
  grid-row: span 2;
}

.char-diversity-item--wide {
  grid-column: span 2;
}

@media (max-width: 1024px) {
  .char-diversity-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 150px;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .char-diversity-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 130px;
    gap: 10px;
    margin-top: 32px;
  }
  .char-diversity-item--lg {
    grid-column: span 2;
    grid-row: span 1;
  }
  .char-diversity-item--wide {
    grid-column: span 2;
  }
}

/* ===== Dating Scenes Mosaic Grid ===== */
.scenes-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
  margin-top: 40px;
}

.scenes-mosaic__item {
  position: relative;
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
}

.scenes-mosaic__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.scenes-mosaic__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 40%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  color: #fff;
}

.scenes-mosaic__item:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 36px rgba(232, 85, 122, 0.25);
  z-index: 2;
}

.scenes-mosaic__item:hover img {
  transform: scale(1.1);
}

.scenes-mosaic__icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.scenes-mosaic__overlay h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
  line-height: 1.2;
}

@media (max-width: 1024px) {
  .scenes-mosaic {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 180px;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .scenes-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
    gap: 10px;
    margin-top: 28px;
  }
}

/* ===== Steps Preview Character Strip ===== */
.steps-preview-strip {
  text-align: center;
}

.steps-preview-strip__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 24px;
  opacity: 0.8;
}

.steps-preview-strip__grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.steps-preview-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.steps-preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}

.steps-preview-card:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 12px 36px rgba(124, 92, 231, 0.25);
  z-index: 2;
}

.steps-preview-card:hover img {
  transform: scale(1.12);
}

.steps-preview-card__label {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.steps-preview-card:hover .steps-preview-card__label {
  opacity: 1;
}

.steps-preview-card--more {
  position: relative;
  text-decoration: none;
  cursor: pointer;
}

.steps-preview-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232, 85, 122, 0.6), rgba(124, 92, 231, 0.6));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  border-radius: 16px;
}

.steps-preview-card__count {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.steps-preview-card__cta {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 6px;
  letter-spacing: 0.3px;
}

.steps-preview-card__collage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2px;
  padding: 2px;
  z-index: 1;
  pointer-events: none;
  border-radius: 16px;
  overflow: hidden;
}

.steps-preview-card__collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .steps-preview-strip__grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .steps-preview-strip__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-width: 360px;
  }
  .steps-preview-card {
    border-radius: 12px;
  }
}

/* ===== Chat Features Grid ===== */
.chat-feats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.chat-feat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.chat-feat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-warm);
  opacity: 0;
  transition: opacity var(--transition);
}

.chat-feat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.chat-feat-card:hover::before { opacity: 1; }

.chat-feat-card__img {
  width: 80px;
  min-width: 80px;
  height: 80px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
}

.chat-feat-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.chat-feat-card:hover .chat-feat-card__img img {
  transform: scale(1.08);
}

.chat-feat-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.chat-feat-card__desc {
  color: var(--text-muted);
  line-height: 1.45;
  font-size: 0.82rem;
}

@media (max-width: 1024px) {
  .chat-feats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .chat-feats-grid { gap: 12px; }
  .chat-feat-card { padding: 16px; gap: 14px; }
  .chat-feat-card__img { width: 64px; min-width: 64px; height: 64px; border-radius: 12px; }
}

/* ===== Character Discovery Marquee ===== */
.discover-track-wrapper {
  overflow: hidden;
  position: relative;
  padding: 20px 0;
  /* Mask-based edge fade — ease-in-out curve, background-agnostic */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0,0,0,0.03) 2%,
    rgba(0,0,0,0.10) 4%,
    rgba(0,0,0,0.25) 6%,
    rgba(0,0,0,0.50) 8%,
    rgba(0,0,0,0.78) 10%,
    black 13%,
    black 87%,
    rgba(0,0,0,0.78) 90%,
    rgba(0,0,0,0.50) 92%,
    rgba(0,0,0,0.25) 94%,
    rgba(0,0,0,0.10) 96%,
    rgba(0,0,0,0.03) 98%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0,0,0,0.03) 2%,
    rgba(0,0,0,0.10) 4%,
    rgba(0,0,0,0.25) 6%,
    rgba(0,0,0,0.50) 8%,
    rgba(0,0,0,0.78) 10%,
    black 13%,
    black 87%,
    rgba(0,0,0,0.78) 90%,
    rgba(0,0,0,0.50) 92%,
    rgba(0,0,0,0.25) 94%,
    rgba(0,0,0,0.10) 96%,
    rgba(0,0,0,0.03) 98%,
    transparent 100%
  );
}

.discover-track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding: 20px 0;
  animation: marqueeLeft 35s linear infinite;
  will-change: transform;
}

.discover-track-wrapper:hover .discover-track {
  animation-play-state: paused;
}

/* Collage Card - 2x2 grid of thumbnails */
.discover-collage-card {
  flex: 0 0 280px;
  width: 280px;
  min-width: 280px;
  height: 380px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.discover-collage-card__grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
}

.discover-collage-card__grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.discover-collage-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.75) 30%,
    rgba(0, 0, 0, 0.45) 55%,
    rgba(0, 0, 0, 0.15) 80%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 24px 20px;
  text-align: center;
  color: #fff;
}

.discover-collage-card__icon {
  font-size: 2rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.discover-collage-card__overlay h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}

.discover-collage-card__overlay p {
  font-size: 0.85rem;
  opacity: 0.95;
  margin: 0 0 12px;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

.discover-collage-card__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 24px;
  padding: 0 10px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* "More" card variant */
.discover-collage-card--more .discover-collage-card__overlay--more {
  background: linear-gradient(
    135deg,
    rgba(232, 85, 122, 0.75) 0%,
    rgba(124, 92, 231, 0.75) 100%
  );
  justify-content: center;
}

.discover-collage-card__more-count {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.discover-collage-card__more-text {
  font-size: 1rem;
  opacity: 0.95;
  margin-top: 4px;
}

/* Alternating card positions for depth */
.discover-collage-card:nth-child(odd) {
  margin-top: 20px;
}

.discover-collage-card:nth-child(even) {
  margin-bottom: 20px;
}

/* Premium hover effect */
.discover-collage-card:hover {
  transform: scale(1.06) translateY(-10px);
  box-shadow: 0 24px 60px rgba(124, 92, 231, 0.35),
              0 10px 28px rgba(232, 85, 122, 0.25);
  z-index: 3;
}

.discover-collage-card:hover .discover-collage-card__grid img {
  transform: scale(1.1);
}

.discover-collage-card:hover .discover-collage-card__overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.8) 30%,
    rgba(0, 0, 0, 0.5) 55%,
    rgba(0, 0, 0, 0.2) 80%,
    transparent 100%
  );
}

/* Continuous marquee keyframe */
@keyframes marqueeLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marqueeRight {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.discover-track--reverse {
  animation: marqueeRight 38s linear infinite;
}

.discover-track-wrapper--reverse {
  margin-top: 16px;
}

/* ===== Use Cases Grid ===== */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.use-case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.use-case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.use-case-card__visual {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.use-case-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px;
}

.use-case-card__desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 1024px) {
  .use-cases-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .use-cases-grid { grid-template-columns: 1fr; gap: 16px; }
  .use-case-card { padding: 28px 20px; }
}

/* ===== Reviews Grid ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.review-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
}

.review-card__quote {
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 20px;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.review-card__name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.review-card__role {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 2px 0 0;
}

@media (max-width: 768px) {
  .reviews-grid { grid-template-columns: 1fr; gap: 16px; }
  .review-card { padding: 24px 20px; }
}

/* ===== Interactive Marquee ===== */
.marquee-track {
  overflow: hidden;
  white-space: nowrap;
  padding: 20px 0;
  /* Extend track to prevent edge gaps */
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
}

.marquee-inner {
  display: inline-flex;
  gap: 0;
  will-change: transform;
  animation: marqueeScroll 35s linear infinite;
  /* Ensure no gap between sets */
  width: max-content;
}

.marquee-track:hover .marquee-inner {
  animation-play-state: paused;
}

.marquee-set {
  display: inline-flex;
  gap: 40px;
  flex-shrink: 0;
  /* Remove padding-right to ensure seamless connection */
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-light);
  white-space: nowrap;
  padding-right: 40px;
}

.marquee-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-warm);
  flex-shrink: 0;
}

/* Seamless loop: translateX(-50%) moves exactly one set width because .marquee-inner has 2 identical .marquee-set children */
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Persona Fan Carousel ===== */
.persona-fan {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  cursor: grab;
}

.persona-fan:active { cursor: grabbing; }

.persona-fan__viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0,0,0,0.03) 2%,
    rgba(0,0,0,0.10) 4%,
    rgba(0,0,0,0.25) 6%,
    rgba(0,0,0,0.50) 8%,
    rgba(0,0,0,0.78) 10%,
    black 13%,
    black 87%,
    rgba(0,0,0,0.78) 90%,
    rgba(0,0,0,0.50) 92%,
    rgba(0,0,0,0.25) 94%,
    rgba(0,0,0,0.10) 96%,
    rgba(0,0,0,0.03) 98%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0,0,0,0.03) 2%,
    rgba(0,0,0,0.10) 4%,
    rgba(0,0,0,0.25) 6%,
    rgba(0,0,0,0.50) 8%,
    rgba(0,0,0,0.78) 10%,
    black 13%,
    black 87%,
    rgba(0,0,0,0.78) 90%,
    rgba(0,0,0,0.50) 92%,
    rgba(0,0,0,0.25) 94%,
    rgba(0,0,0,0.10) 96%,
    rgba(0,0,0,0.03) 98%,
    transparent 100%
  );
}

.persona-fan__track {
  position: absolute;
  top: 50%;
  left: 0;
  height: 0;
  will-change: transform;
}

.persona-fan__track .persona-fan__card {
  position: absolute;
  width: 170px;
  height: 240px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #F4A0B8, #A78BFA);
  box-shadow: 0 8px 32px rgba(124, 92, 231, 0.15),
              0 2px 8px rgba(0, 0, 0, 0.08);
  will-change: transform;
  transition: box-shadow 0.3s ease;
}

.persona-fan__track .persona-fan__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.persona-fan__track .persona-fan__card:hover {
  box-shadow: 0 16px 48px rgba(232, 85, 122, 0.3);
}

.persona-fan__card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 12px 12px;
  background: linear-gradient(to top, rgba(45,38,64,0.85) 0%, transparent 100%);
}

.persona-fan__card-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.persona-fan__card-sub {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.75);
  margin: 2px 0 0;
}

.persona-fan__fade {
  display: none;
}

.persona-fan::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 10%;
  right: 10%;
  height: 80px;
  background: radial-gradient(ellipse at center, rgba(124, 92, 231, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

@media (max-width: 1024px) {
  .persona-fan { height: 370px; }
  .persona-fan__track .persona-fan__card { width: 150px; height: 210px; }
}

@media (max-width: 768px) {
  .persona-fan { height: 320px; }
  .persona-fan__track .persona-fan__card { width: 130px; height: 185px; }
}

/* ===== Parallax Image ===== */
.parallax-img {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ===== Skip Link ===== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--pink);
  color: #fff;
  padding: 12px 24px;
  z-index: 9999;
  border-radius: 0 0 var(--radius-md) 0;
  transition: top var(--transition);
}

.skip-link:focus { top: 0; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__content { max-width: 100%; margin: 0 auto; }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__visual { margin-top: 40px; min-height: 350px; }
  .feature-split { grid-template-columns: 1fr; gap: 40px; }
  .feature-split--reverse { direction: ltr; }
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); padding: 36px; }
  .stat + .stat::before { display: none; }
  .steps::before { display: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav__center { display: none; }
  .nav__cta { display: none; }
  .nav__right .lang-switch { display: none; }
  .nav__burger { display: flex; }

  section { padding: 64px 0; }
  .hero { min-height: auto; padding-top: 100px; padding-bottom: 60px; }

  .card-grid, .card-grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .company-info { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr; padding: 24px; }

  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__brand { max-width: 100%; }
  .footer__logo { justify-content: center; }

  .cursor-glow { display: none; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .btn { padding: 14px 24px; font-size: 0.95rem; }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 1; transform: none; }
  .stagger > * { opacity: 1; transform: none; }
  .blob { animation: none; }
  .cursor-glow { display: none; }
  .chat-demo__img, .chat-demo__glow--1, .chat-demo__glow--2 { animation: none; }
  .chat-demo::before, .chat-demo::after { animation: none; }
  .hero__chat-overlay { animation: none; }
  .persona-fan__card { animation: none !important; }
}

/* ===== Focus States ===== */
a:focus-visible,
button:focus-visible,
.nav__link:focus-visible,
.lang-switch__btn:focus-visible,
.nav__cta:focus-visible,
.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.card:focus-visible,
.faq-item:focus-visible,
.feature-item:focus-visible,
.contact-card:focus-visible,
.persona-fan__card:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ===== Cursor Pointer ===== */
.card,
.faq-question,
.feature-item,
.contact-card,
.persona-fan__card,
.lang-switch__btn,
.nav__link,
.footer__link {
  cursor: pointer;
}

/* ===== Touch Target Enhancement ===== */
@media (max-width: 768px) {
  .nav__mobile-link {
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .faq-question { min-height: 56px; padding: 20px 24px; }
  .btn { min-height: 52px; padding: 16px 28px; }
  .feature-item { min-height: 48px; }
  .lang-switch__btn { min-height: 40px; min-width: 44px; }
}

/* ===== Line Length Optimization ===== */
.hero__subtitle,
.section-header__desc,
.card__desc,
.feature-item p,
.faq-answer__inner {
  max-width: 65ch;
}
