/* ============================================
   Pocket Girl AI - Global Styles
   Premium AI Companion Website
   ============================================ */

/* CSS Variables */
:root {
  /* Colors - Dark Futuristic Theme */
  --bg-primary: #0a0a1a;
  --bg-secondary: #12122a;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-glass: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.1);

  /* Primary - Purple Gradient */
  --purple-primary: #8b5cf6;
  --purple-light: #a78bfa;
  --purple-dark: #7c3aed;
  --purple-glow: rgba(139, 92, 246, 0.4);

  /* Accent - Pink/Blue Glow */
  --pink-accent: #ec4899;
  --blue-accent: #3b82f6;
  --cyan-accent: #06b6d4;

  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--purple-primary), var(--pink-accent));
  --gradient-hero: linear-gradient(135deg, #1e1b4b 0%, #0f0a1e 50%, #1a103c 100%);
  --gradient-glass: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.05));
  --gradient-glow: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.15) 0%, transparent 70%);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Outfit', var(--font-primary);

  /* Spacing */
  --section-padding: 100px;
  --container-max: 1200px;
  --container-padding: 24px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Shadows */
  --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul, ol {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ============================================
   GLASSMORPHISM COMPONENTS
   ============================================ */

.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-base);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--border-glass);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: var(--purple-primary);
  background: rgba(139, 92, 246, 0.1);
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gradient-primary);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-base);
  filter: blur(10px);
}

.btn-glow:hover::before {
  opacity: 0.6;
}

/* ============================================
   NAVIGATION
   ============================================ */

.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 26, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  transition: all var(--transition-base);
}

.main-nav.scrolled {
  background: rgba(10, 10, 26, 0.95);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-base);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.language-selector {
  position: relative;
}

.language-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.language-btn:hover {
  border-color: var(--purple-primary);
  color: var(--text-primary);
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-base);
  z-index: 100;
}

.language-selector:hover .language-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-dropdown a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.language-dropdown a:hover {
  background: rgba(139, 92, 246, 0.1);
  color: var(--text-primary);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-base);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
  background: var(--gradient-hero);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--purple-light);
  margin-bottom: 1.5rem;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--purple-primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero h1 {
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  max-width: 600px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow), var(--shadow-lg);
}

.hero-image::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: var(--gradient-glow);
  border-radius: inherit;
  z-index: -1;
  filter: blur(40px);
  opacity: 0.5;
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  font-size: 1.1rem;
}

/* ============================================
   CHARACTER CARDS
   ============================================ */

.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.character-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.character-card:hover {
  transform: translateY(-8px);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

.character-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
}

.character-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.character-card-content {
  padding: 1.5rem;
}

.character-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.character-card .personality-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(139, 92, 246, 0.15);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--purple-light);
  margin-bottom: 0.75rem;
}

.character-card p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* ============================================
   FEATURE CARDS
   ============================================ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

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

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  font-size: 1.75rem;
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.feature-card p {
  font-size: 0.95rem;
}

/* ============================================
   HOW IT WORKS / STEPS
   ============================================ */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple-primary), transparent);
  z-index: 0;
}

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

.step-number {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: white;
  box-shadow: var(--shadow-glow);
}

.step-card h3 {
  margin-bottom: 0.75rem;
}

/* ============================================
   PRICING / COMPARISON
   ============================================ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  padding: 2.5rem;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--purple-primary);
  box-shadow: var(--shadow-glow);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 20px;
  background: var(--gradient-primary);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
}

.pricing-card h3 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.pricing-price {
  text-align: center;
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-display);
  margin-bottom: 2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-features {
  margin-bottom: 2rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.95rem;
}

.pricing-features li::before {
  content: '✓';
  color: var(--purple-light);
  font-weight: bold;
}

/* ============================================
   FAQ
   ============================================ */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-glass);
}

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

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

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 1.5rem;
}

.faq-answer p {
  color: var(--text-secondary);
}

/* ============================================
   BLOG / CONTENT
   ============================================ */

.content-section {
  max-width: 800px;
  margin: 0 auto;
}

.content-section h2 {
  margin: 3rem 0 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
}

.content-section h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.content-section h3 {
  margin: 2rem 0 1rem;
  color: var(--purple-light);
}

.content-section p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.content-section ul, .content-section ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.content-section ul li, .content-section ol li {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.content-section ul li {
  list-style: disc;
}

.content-section ol li {
  list-style: decimal;
}

.content-section a {
  color: var(--purple-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-section a:hover {
  color: var(--purple-primary);
}

/* ============================================
   CHAT INTERFACE
   ============================================ */

.chat-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 600px;
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.chat-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--purple-primary);
}

.chat-info h2 {
  font-size: 1.1rem;
}

.chat-status {
  font-size: 0.85rem;
  color: #10b981;
}

.chat-messages {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.chat-message {
  max-width: 75%;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  line-height: 1.6;
  animation: messageIn 0.3s ease;
}

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

.chat-message.user {
  align-self: flex-end;
  background: var(--gradient-primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-message.ai {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  border-bottom-left-radius: 4px;
}

.chat-input-area {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border-glass);
  display: flex;
  gap: 1rem;
}

.chat-input {
  flex: 1;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.chat-input:focus {
  border-color: var(--purple-primary);
}

.chat-input::placeholder {
  color: var(--text-muted);
}

/* ============================================
   CHARACTER SELECTOR
   ============================================ */

.character-selector {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--border-glass);
}

.character-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-width: 80px;
}

.character-option:hover {
  background: rgba(139, 92, 246, 0.1);
}

.character-option.active {
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid var(--purple-primary);
}

.character-option img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  transition: border-color var(--transition-fast);
}

.character-option.active img {
  border-color: var(--purple-primary);
}

.character-option span {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ============================================
   TABLE
   ============================================ */

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border-glass);
}

.comparison-table th {
  font-weight: 600;
  color: var(--purple-light);
  background: rgba(139, 92, 246, 0.1);
}

.comparison-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* ============================================
   FOOTER
   ============================================ */

.main-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  padding: 4rem 0 2rem;
}

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

.footer-brand .logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-links h4 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.footer-links a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--purple-light);
}

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--purple-light);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.3); }
  50% { box-shadow: 0 0 40px rgba(139, 92, 246, 0.6); }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeIn {
  animation: fadeIn 0.6s ease forwards;
}

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

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

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
}

.stagger-children.visible > *:nth-child(1) { animation: fadeInUp 0.5s 0.1s ease forwards; }
.stagger-children.visible > *:nth-child(2) { animation: fadeInUp 0.5s 0.2s ease forwards; }
.stagger-children.visible > *:nth-child(3) { animation: fadeInUp 0.5s 0.3s ease forwards; }
.stagger-children.visible > *:nth-child(4) { animation: fadeInUp 0.5s 0.4s ease forwards; }
.stagger-children.visible > *:nth-child(5) { animation: fadeInUp 0.5s 0.5s ease forwards; }
.stagger-children.visible > *:nth-child(6) { animation: fadeInUp 0.5s 0.6s ease forwards; }
.stagger-children.visible > *:nth-child(7) { animation: fadeInUp 0.5s 0.7s ease forwards; }
.stagger-children.visible > *:nth-child(8) { animation: fadeInUp 0.5s 0.8s ease forwards; }
.stagger-children.visible > *:nth-child(n+9) { animation: fadeInUp 0.5s 0.9s ease forwards; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-content {
    max-width: 100%;
    order: 2;
  }

  .hero-image {
    order: 1;
    max-width: 500px;
    margin: 0 auto;
  }

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

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

  .steps-grid::before {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
    --container-padding: 16px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-glass);
  }

  .nav-links.active {
    display: flex;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .chat-message {
    max-width: 90%;
  }

  .character-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .nav-container {
    gap: 0.75rem;
    padding-right: 14px;
    padding-left: 14px;
  }

  .nav-logo {
    min-width: 0;
    font-size: 1.1rem;
    line-height: 1;
    white-space: nowrap;
  }

  .nav-actions {
    min-width: 0;
    gap: 0.5rem;
  }

  .nav-actions > .btn {
    display: none;
  }

  .language-btn {
    padding: 7px 10px;
    font-size: 0.75rem;
  }

  .mobile-menu-btn {
    flex: 0 0 auto;
    padding: 6px 0 6px 6px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .glass-card {
    padding: 1.5rem;
  }
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--purple-dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--purple-primary);
}

/* ============================================
   SELECTION
   ============================================ */

::selection {
  background: rgba(139, 92, 246, 0.3);
  color: white;
}

:focus-visible {
  outline: 3px solid var(--cyan-accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
