/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --purple: #a855f7;
  --purple-light: #c084fc;
  --purple-dark: #7c3aed;
  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --cyan: #06b6d4;
  --bg-dark: #050510;
  --bg-card: #0d0d1a;
  --bg-card2: #0f0f1e;
  --border: rgba(168,85,247,0.15);
  --border-bright: rgba(168,85,247,0.35);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --gradient: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
  --gradient-glow: linear-gradient(135deg, rgba(168,85,247,0.3) 0%, rgba(59,130,246,0.3) 100%);
  --shadow-purple: 0 0 40px rgba(168,85,247,0.2);
  --shadow-card: 0 4px 40px rgba(0,0,0,0.4);
  --radius: 16px;
  --radius-lg: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all var(--transition);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(5,5,16,0.92);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.nav-links {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all var(--transition);
}

.nav-link:hover {
  color: var(--text);
  background: rgba(168,85,247,0.08);
}

.nav-cta {
  background: var(--gradient);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(168,85,247,0.4);
}

.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.nav-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: rgba(13,13,26,0.98);
  backdrop-filter: blur(30px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 80px 32px 32px;
  gap: 8px;
  border-left: 1px solid var(--border);
  transition: right var(--transition);
}

.mobile-menu.open {
  right: 0;
}

.mobile-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.1rem;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}

.mobile-link:hover {
  color: var(--purple-light);
}

.mobile-cta {
  margin-top: 24px;
  background: var(--gradient);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

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

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

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(5,5,16,0.9) 0%,
    rgba(5,5,16,0.6) 50%,
    rgba(5,5,16,0.85) 100%
  );
}

.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--purple-light);
  border-radius: 50%;
  opacity: 0;
  animation: float-particle var(--dur) var(--delay) infinite ease-in-out;
}

@keyframes float-particle {
  0%, 100% { opacity: 0; transform: translateY(0) scale(0); }
  20% { opacity: 0.8; transform: translateY(-20px) scale(1); }
  80% { opacity: 0.4; transform: translateY(-80px) scale(0.5); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto 0 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(168,85,247,0.1);
  border: 1px solid var(--border-bright);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--purple-light);
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease both;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 8px #22c55e; }
  50% { box-shadow: 0 0 16px #22c55e, 0 0 32px rgba(34,197,94,0.3); }
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 24px;
  animation: fadeInUp 0.8s 0.1s ease both;
}

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

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 56px;
  animation: fadeInUp 0.8s 0.3s ease both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(168,85,247,0.4);
  opacity: 0.95;
}

.btn-primary.btn-large {
  padding: 18px 36px;
  font-size: 1.05rem;
  border-radius: 14px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-bright);
  background: rgba(168,85,247,0.05);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  animation: fadeInUp 0.8s 0.4s ease both;
}

.stat {
  text-align: center;
}

.stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-visual {
  position: absolute;
  right: max(24px, calc((100vw - 1200px) / 2 + 24px));
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  animation: fadeInRight 1s 0.5s ease both;
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateY(-50%) translateX(40px); }
  to { opacity: 1; transform: translateY(-50%) translateX(0); }
}

.avatar-wrapper {
  position: relative;
  width: 380px;
  height: 380px;
}

.avatar-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(168,85,247,0.2);
  animation: rotate-ring var(--speed) linear infinite;
}

.ring-1 {
  width: 340px;
  height: 340px;
  --speed: 20s;
}

.ring-2 {
  width: 280px;
  height: 280px;
  border-color: rgba(59,130,246,0.15);
  --speed: 15s;
  animation-direction: reverse;
}

.ring-3 {
  width: 220px;
  height: 220px;
  --speed: 25s;
  border-color: rgba(6,182,212,0.1);
}

@keyframes rotate-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.avatar-glow {
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,0.15) 0%, transparent 70%);
  animation: pulse-glow 3s ease-in-out infinite;
}

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

.avatar-img {
  position: absolute;
  inset: 40px;
  width: calc(100% - 80px);
  height: calc(100% - 80px);
  object-fit: cover;
  object-position: center 15%;
  border-radius: 50%;
  border: 2px solid rgba(168,85,247,0.4);
  box-shadow: 0 0 60px rgba(168,85,247,0.25);
  filter: contrast(1.05) brightness(0.95);
}

.avatar-badge {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(13,13,26,0.9);
  border: 1px solid var(--border-bright);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--purple-light);
  backdrop-filter: blur(10px);
  white-space: nowrap;
}

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

/* ===== SECTIONS COMMON ===== */
section {
  padding: 100px 0;
}

.section-label {
  display: inline-block;
  background: rgba(168,85,247,0.1);
  border: 1px solid var(--border-bright);
  color: var(--purple-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 60px;
  max-width: 600px;
}

/* ===== ABOUT ===== */
.about {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.6;
}

.about-body {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background: rgba(168,85,247,0.1);
  border: 1px solid var(--border);
  color: var(--purple-light);
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 50px;
}

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

.about-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.about-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-3px);
  box-shadow: var(--shadow-purple);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.about-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.about-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== TWIN CONCEPT ===== */
.twin-concept {
  text-align: center;
}

.twin-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.twin-step {
  flex: 1;
  min-width: 200px;
  max-width: 240px;
  position: relative;
  text-align: center;
}

.step-num {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 16px;
}

.step-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  transition: all var(--transition);
}

.step-content:hover {
  border-color: var(--border-bright);
  box-shadow: var(--shadow-purple);
  transform: translateY(-4px);
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.step-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.step-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.twin-connector {
  width: 32px;
  height: 2px;
  background: var(--gradient);
  flex-shrink: 0;
  margin-top: 80px;
  opacity: 0.4;
}

/* ===== FEATURES / COMPARISON ===== */
.features {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.comparison-table {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.comp-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  background: rgba(168,85,247,0.08);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.comp-feature-col {
  padding: 16px 24px;
}

.comp-col {
  padding: 16px;
  text-align: center;
}

.comp-col-ai {
  background: rgba(168,85,247,0.05);
  color: var(--purple-light);
}

.comp-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.comp-row:last-child {
  border-bottom: none;
}

.comp-row:hover {
  background: rgba(168,85,247,0.03);
}

.comp-feature {
  padding: 18px 24px;
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.comp-yes { color: #22c55e; font-size: 1.3rem; font-weight: 700; }
.comp-no { color: #ef4444; font-size: 1.3rem; font-weight: 700; }
.comp-maybe { color: #f59e0b; font-size: 1.3rem; font-weight: 700; }

/* ===== CHAT SECTION ===== */
.chat-section {
  text-align: center;
}

.chat-demo-widget {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.chat-widget-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(168,85,247,0.05);
  border-bottom: 1px solid var(--border);
}

.chat-avatar-small {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.chat-avatar-small img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  border: 2px solid rgba(168,85,247,0.3);
  filter: contrast(1.05) brightness(0.95);
}

.chat-online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
  box-shadow: 0 0 6px #22c55e;
}

.chat-header-info {
  flex: 1;
  text-align: left;
}

.chat-header-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-tag {
  background: var(--gradient);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.chat-header-status {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.chat-expand-btn, .chat-close-btn {
  background: rgba(168,85,247,0.1);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.chat-expand-btn:hover, .chat-close-btn:hover {
  color: var(--purple-light);
  border-color: var(--border-bright);
  background: rgba(168,85,247,0.15);
}

.chat-messages {
  height: 320px;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(168,85,247,0.3) transparent;
}

.chat-messages::-webkit-scrollbar {
  width: 4px;
}
.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(168,85,247,0.3);
  border-radius: 2px;
}

.message {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  animation: fadeInUp 0.3s ease;
}

.message-bot {
  flex-direction: row;
}

.message-user {
  flex-direction: row-reverse;
}

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-bubble {
  max-width: 75%;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 16px;
  border-top-left-radius: 4px;
  padding: 14px 18px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
}

.message-user .message-bubble {
  background: rgba(168,85,247,0.12);
  border-color: rgba(168,85,247,0.25);
  border-top-left-radius: 16px;
  border-top-right-radius: 4px;
  color: var(--text);
}

.message-bubble p + p {
  margin-top: 8px;
}

.message-time {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 6px;
  align-self: flex-end;
}

.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 24px 16px;
}

.quick-reply {
  background: rgba(168,85,247,0.08);
  border: 1px solid var(--border);
  color: var(--purple-light);
  font-size: 0.82rem;
  padding: 7px 14px;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
}

.quick-reply:hover {
  background: rgba(168,85,247,0.18);
  border-color: var(--border-bright);
  transform: translateY(-1px);
}

.chat-input-area {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

.chat-input {
  flex: 1;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color var(--transition);
}

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

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

.chat-send-btn {
  width: 44px;
  height: 44px;
  background: var(--gradient);
  border: none;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}

.chat-send-btn:hover {
  opacity: 0.9;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(168,85,247,0.4);
}

/* ===== TYPING INDICATOR ===== */
.typing-indicator {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 12px 16px;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: var(--purple-light);
  border-radius: 50%;
  animation: typing-bounce 1.2s infinite;
}

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

@keyframes typing-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-6px); opacity: 1; }
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}

.testimonial-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow: var(--shadow-purple);
}

.testimonial-featured {
  background: linear-gradient(135deg, rgba(168,85,247,0.05) 0%, rgba(59,130,246,0.05) 100%);
  border-color: rgba(168,85,247,0.25);
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

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

.author-avatar {
  width: 44px;
  height: 44px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.author-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

.author-role {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* ===== PRICING ===== */
.pricing {
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: all var(--transition);
}

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

.pricing-card-popular {
  background: linear-gradient(135deg, rgba(168,85,247,0.08) 0%, rgba(59,130,246,0.08) 100%);
  border-color: rgba(168,85,247,0.35);
  transform: scale(1.02);
}

.pricing-card-popular:hover {
  transform: scale(1.02) translateY(-4px);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 50px;
  white-space: nowrap;
}

.pricing-header {
  text-align: center;
  margin-bottom: 28px;
}

.plan-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.price-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.plan-period {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.plan-features {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-features li {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-features li:has(✓) {
  color: var(--text);
}

.plan-features li:has(✗) {
  opacity: 0.5;
}

.plan-btn {
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

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

.plan-btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(168,85,247,0.4);
}

.plan-btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.plan-btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-bright);
  background: rgba(168,85,247,0.05);
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 80px 0;
}

.cta-box {
  position: relative;
  background: linear-gradient(135deg, rgba(168,85,247,0.08) 0%, rgba(59,130,246,0.08) 100%);
  border: 1px solid rgba(168,85,247,0.25);
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(168,85,247,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
}

.cta-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 36px;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
  background: var(--bg-card);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-links-group h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-links-group a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: var(--text-muted);
}

/* ===== CHAT MODAL ===== */
.chat-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}

.chat-modal.open {
  opacity: 1;
  pointer-events: all;
}

.chat-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}

.chat-modal-window {
  position: relative;
  z-index: 1;
  width: 420px;
  max-width: 100%;
  height: 600px;
  max-height: 90vh;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(168,85,247,0.1);
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition);
}

.chat-modal.open .chat-modal-window {
  transform: translateY(0) scale(1);
}

.chat-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: rgba(168,85,247,0.05);
  border-bottom: 1px solid var(--border);
}

.chat-modal-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(168,85,247,0.3) transparent;
}

.chat-modal-messages::-webkit-scrollbar {
  width: 4px;
}
.chat-modal-messages::-webkit-scrollbar-thumb {
  background: rgba(168,85,247,0.3);
  border-radius: 2px;
}

.chat-modal-input {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}

/* ===== SCROLL TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 99;
  width: 44px;
  height: 44px;
  background: rgba(13,13,26,0.9);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(10px);
}

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

.scroll-top:hover {
  color: var(--purple-light);
  border-color: var(--border-bright);
}

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

.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-visual {
    display: none;
  }
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  .pricing-card-popular {
    transform: none;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta {
    display: none;
  }
  .nav-menu-btn {
    display: flex;
  }
  .twin-steps {
    flex-direction: column;
    align-items: center;
  }
  .twin-connector {
    width: 2px;
    height: 24px;
    margin: 0;
  }
  .twin-step {
    max-width: 100%;
    width: 100%;
  }
  .comp-header, .comp-row {
    grid-template-columns: 2fr 0.8fr 1fr;
  }
  .comp-feature {
    font-size: 0.8rem;
    padding: 14px 12px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .chat-modal {
    padding: 0;
    align-items: flex-end;
    justify-content: center;
  }
  .chat-modal-window {
    width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    height: 80vh;
  }
  .about-cards {
    grid-template-columns: 1fr;
  }
  section {
    padding: 70px 0;
  }
}

/* ─── Gallery Section ─────────────────────────────────────────── */
.gallery-section {
  padding: 100px 0;
  background: var(--bg-dark, #08080f);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-item {
  border-radius: 20px;
  overflow: hidden;
}

.gallery-item-wide {
  grid-row: span 1;
}

.gallery-img-wrap {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  border-radius: 20px;
  cursor: pointer;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: brightness(0.92) contrast(1.05);
}

.gallery-img-wrap:hover .gallery-img {
  transform: scale(1.06);
  filter: brightness(1) contrast(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.2) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.gallery-img-wrap:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  color: white;
  transform: translateY(10px);
  transition: transform 0.4s ease;
}

.gallery-img-wrap:hover .gallery-caption {
  transform: translateY(0);
}

.gallery-tag {
  display: inline-block;
  background: linear-gradient(135deg, #a855f7, #3b82f6);
  color: white;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.gallery-caption p {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .gallery-img-wrap {
    height: 300px;
  }
  .gallery-overlay {
    opacity: 1;
  }
}

/* ===== LANG SWITCHER ===== */
.nav-lang-switcher {
  margin-left: 12px;
  display: flex;
  align-items: center;
}

.lang-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.lang-link:hover {
  color: var(--purple-light);
  border-color: var(--purple-light);
  background: rgba(168,85,247,0.08);
}

.mobile-lang {
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .nav-lang-switcher {
    display: none;
  }
}

/* ===== CERTIFICATES ===== */
.certificates {
  background: var(--bg-dark);
  text-align: center;
}

.certificates .section-sub {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  align-items: stretch;
}

.cert-card {
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cert-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-bright);
  box-shadow: var(--shadow-purple);
}

.cert-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
  transition: transform var(--transition);
  padding: 4px;
}

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

.cert-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 20px;
  margin-bottom: 8px;
  text-align: center;
}

.cert-issuer {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 900px) {
  .certs-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 40px auto 0;
  }
}
