/**
 * ============================================================================
 * SHARED STYLES - Tatjana Grigojanova PhD. Translation Services
 * Base styles shared across all versions
 * ============================================================================
 */

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  transition: background 200ms ease, color 200ms ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Selection */
::selection {
  background: var(--primary);
  color: var(--primary-contrast, #000);
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Honeypot */
.honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: var(--primary-contrast);
  padding: 8px 16px;
  z-index: 10000;
  transition: top 0.3s;
}

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

/* =====================================================
   HEADER
   ===================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 200ms ease;
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
}

.logo img {
  height: 44px;
  width: auto;
}

.logo-text {
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.2;
}

.logo-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Navigation */
.nav {
  display: none;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}

.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  transition: all 200ms ease;
}

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

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-switcher {
  display: flex;
  gap: 2px;
  padding: 4px;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
}

[data-theme="dark"] .lang-switcher {
  background: var(--gray-800);
}

.lang-btn {
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 200ms ease;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.active {
  background: var(--primary);
  color: var(--primary-contrast);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  color: var(--text-muted);
  transition: all 200ms ease;
}

[data-theme="dark"] .theme-toggle {
  background: var(--gray-800);
}

.theme-toggle:hover {
  background: var(--primary-alpha);
  color: var(--text);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.sun-icon { display: none; }
[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }

/* Mobile Menu Toggle */
.menu-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  color: var(--text);
}

.menu-toggle:hover {
  background: var(--primary-alpha);
}

@media (min-width: 1024px) {
  .menu-toggle { display: none; }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 999;
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-backdrop {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 998;
}

.mobile-menu-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-inner {
  padding: 2rem 1.5rem;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.mobile-nav a {
  padding: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius-lg);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background: var(--primary-alpha);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 200ms ease;
  position: relative;
  overflow: hidden;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-contrast);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-contrast);
}

.btn-secondary:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover:not(:disabled) {
  border-color: var(--primary);
  background: var(--primary-alpha);
}

.btn-cta {
  display: none;
}

@media (min-width: 1024px) {
  .btn-cta {
    display: inline-flex;
  }
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  padding-top: 120px;
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

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

.hero-inner {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: var(--primary-contrast);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 500px;
}

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

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Logo Ring Animation */
.logo-ring-container {
  position: relative;
  width: 300px;
  height: 300px;
}

@media (min-width: 640px) {
  .logo-ring-container {
    width: 380px;
    height: 380px;
  }
}

.logo-ring {
  position: absolute;
  inset: 0;
  border: 3px solid var(--primary);
  border-radius: 50%;
  animation: pulse-ring 3s ease-in-out infinite;
}

.logo-ring:nth-child(2) {
  inset: 25px;
  border-color: var(--accent);
  animation-delay: 0.5s;
}

.logo-ring:nth-child(3) {
  inset: 50px;
  border-color: var(--secondary);
  animation-delay: 1s;
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.02); opacity: 1; }
}

.logo-center {
  position: absolute;
  inset: 75px;
  background: var(--surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  padding: 2rem;
}

.logo-center img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* =====================================================
   LANGUAGE PAIR SHOWCASE
   ===================================================== */
.lang-pair-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(255, 210, 0, 0.1), rgba(225, 6, 0, 0.1));
  border-radius: var(--radius-xl);
  border: 2px solid var(--primary);
  position: relative;
  overflow: hidden;
}

.lang-pair-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 210, 0, 0.2), transparent);
  animation: lang-shimmer 3s ease-in-out infinite;
}

@keyframes lang-shimmer {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.lang-pair-flag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  z-index: 1;
  animation: lang-flag-pulse 2s ease-in-out infinite;
}

.lang-pair-flag.sk {
  animation-delay: 0s;
}

.lang-pair-flag.ru {
  animation-delay: 1s;
}

@keyframes lang-flag-pulse {
  0%, 100% { transform: scale(1); box-shadow: var(--shadow-md); }
  50% { transform: scale(1.05); box-shadow: var(--shadow-lg); }
}

.lang-pair-flag img {
  width: 32px;
  height: 20px;
  object-fit: cover;
  border-radius: 3px;
}

.lang-pair-flag span {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text);
}

.lang-pair-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  max-width: 300px;
  z-index: 1;
}

.lang-pair-connector svg {
  width: 80px;
  height: 20px;
  color: var(--primary);
}

.lang-pair-text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.lang-pulse {
  position: relative;
  padding: 0.25rem 0.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: lang-text-glow 2s ease-in-out infinite;
}

@keyframes lang-text-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.lang-slash {
  color: var(--text-muted);
  font-weight: 400;
}

@media (max-width: 640px) {
  .lang-pair-showcase {
    flex-direction: column;
    gap: 1rem;
  }
  
  .lang-pair-connector {
    order: -1;
    max-width: 100%;
  }
  
  .lang-pair-text {
    font-size: 0.8rem;
  }
}

/* =====================================================
   TERMINAL SECTION
   ===================================================== */
.terminal-section {
  padding: 4rem 0;
  background: var(--terminal-bg);
}

.terminal-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--terminal-header-bg);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--terminal-header-bg);
  border-bottom: 1px solid var(--terminal-border);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--terminal-text-muted);
  font-family: 'Courier New', monospace;
}

.terminal-body {
  padding: 1.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--terminal-text);
  height: 200px;
  overflow: hidden;
  position: relative;
}

.terminal-track {
  position: absolute;
  animation: scroll-terminal 20s linear infinite;
}

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

@keyframes scroll-terminal {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.terminal-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0;
  white-space: nowrap;
}

.terminal-prompt {
  color: var(--primary);
  font-weight: bold;
}

.terminal-command {
  color: var(--terminal-accent);
}

.terminal-output {
  color: var(--terminal-text-muted);
}

/* =====================================================
   SECTIONS
   ===================================================== */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--surface);
}

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

.section-label {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--primary);
  color: var(--primary-contrast);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text);
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* Highlight Box */
.highlight-box {
  background: var(--primary);
  color: var(--primary-contrast);
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  max-width: 600px;
  margin: 0 auto 2rem;
  text-align: center;
}

.highlight-main {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.highlight-sub {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* =====================================================
   CARDS
   ===================================================== */
.cards-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Services page - 4 cards in a row with animation */
.section-alt .cards-grid,
.section .cards-grid {
  grid-template-columns: repeat(4, 1fr);
}

/* About page - 3x2 grid layout */
.about-features-grid {
  grid-template-columns: repeat(3, 1fr) !important;
}

@media (max-width: 992px) {
  .about-features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 640px) {
  .about-features-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Index page services - 3x3 grid */
.services-home-grid {
  grid-template-columns: repeat(3, 1fr) !important;
}

.services-home-grid .card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.services-home-grid .card-text {
  flex: 1;
}

@media (max-width: 992px) {
  .services-home-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 640px) {
  .services-home-grid {
    grid-template-columns: 1fr !important;
  }
}

/* =====================================================
   ANIMATED STATS COUNTER
   ===================================================== */
.stats-counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 4rem auto 0;
}

@media (max-width: 768px) {
  .stats-counter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-counter-grid {
    grid-template-columns: 1fr;
  }
}

.stat-counter-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  transition: all 300ms ease;
}

.stat-counter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease;
}

.stat-counter-card:hover::before {
  transform: scaleX(1);
}

.stat-counter-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.stat-counter-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
  display: inline;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-counter-suffix {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  display: inline;
  margin-left: 2px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-counter-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-weight: 500;
}

/* Pulse animation for stats */
@keyframes stat-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(var(--primary-rgb), 0);
  }
}

.stat-counter-card.animate {
  animation: stat-pulse 0.6s ease;
}

@media (max-width: 1200px) {
  .section-alt .cards-grid,
  .section .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .section-alt .cards-grid,
  .section .cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Card shadow/feeder animation */
@keyframes card-shadow-pulse {
  0%, 100% {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  }
  50% {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  }
}

@keyframes card-slide-in {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes card-slide-in-right {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.card {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all 300ms ease;
  position: relative;
  overflow: hidden;
}

/* Staggered slide-in animation for cards */
.cards-grid .card:nth-child(1) {
  animation: card-slide-in 0.5s ease-out forwards;
}

.cards-grid .card:nth-child(2) {
  animation: card-slide-in 0.5s ease-out 0.1s forwards;
  opacity: 0;
}

.cards-grid .card:nth-child(3) {
  animation: card-slide-in 0.5s ease-out 0.2s forwards;
  opacity: 0;
}

.cards-grid .card:nth-child(4) {
  animation: card-slide-in 0.5s ease-out 0.3s forwards;
  opacity: 0;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--primary-rgb, 59, 130, 246), 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.card:hover::before {
  left: 100%;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--primary-contrast);
  border-radius: var(--radius-lg);
  margin-bottom: 1.25rem;
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.card-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =====================================================
   STATS
   ===================================================== */
.stats-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}

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

.stat-card {
  text-align: center;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

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

/* =====================================================
   PRICING
   ===================================================== */
.pricing-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.pricing-tab {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 200ms ease;
}

.pricing-tab:hover {
  border-color: var(--primary);
  color: var(--text);
}

.pricing-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-contrast);
}

.pricing-panel {
  display: none;
}

.pricing-panel.active {
  display: block;
}

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

.pricing-card {
  padding: 2rem;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  transition: all 200ms ease;
}

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

.pricing-card.featured {
  border-color: var(--primary);
  position: relative;
}

.pricing-card.featured::before {
  content: attr(data-badge);
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 1rem;
  background: var(--secondary);
  color: var(--secondary-contrast);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-full);
}

.pricing-name {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.pricing-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  min-height: 40px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.pricing-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
}

.pricing-currency {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-muted);
}

.pricing-period {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.pricing-features {
  flex: 1;
  margin-bottom: 1.5rem;
  list-style: none;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.pricing-feature svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

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

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

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.5rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 200ms ease;
}

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

.faq-icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
  transition: transform 200ms ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

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

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

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

.faq-text {
  color: var(--text-muted);
  line-height: 1.7;
}

/* =====================================================
   CONTACT
   ===================================================== */
.contact-grid {
  display: grid;
  gap: 3rem;
}

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

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--primary-contrast);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 24px;
  height: 24px;
}

.contact-info-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-info-value {
  font-weight: 600;
}

.contact-info-value a {
  color: var(--text);
}

.contact-info-value a:hover {
  color: var(--secondary);
}

.contact-form {
  padding: 2rem;
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}

.contact-form h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.form-label .optional {
  color: var(--text-muted);
  font-weight: 400;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 200ms ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-alpha);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* File Upload */
.file-upload {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: all 200ms ease;
  cursor: pointer;
}

.file-upload:hover,
.file-upload.drag-over {
  border-color: var(--primary);
  background: var(--primary-alpha);
}

.file-upload-input {
  display: none;
}

.file-upload-content {
  pointer-events: none;
}

.file-upload-icon {
  width: 48px;
  height: 48px;
  color: var(--primary);
  margin: 0 auto 0.75rem;
}

.file-upload-text {
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.file-upload-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.file-list {
  margin-top: 1rem;
}

.file-list-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  background: var(--bg);
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
}

.file-name {
  font-size: 0.875rem;
  color: var(--text);
}

.file-remove {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.file-remove:hover {
  background: var(--border);
  color: var(--error);
}

/* Turnstile */
.turnstile-container {
  margin: 1rem 0;
}

/* Form Status */
.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  display: none;
}

.form-status.success {
  background: var(--success-bg);
  color: var(--success-text);
  display: block;
}

.form-status.error {
  background: var(--error-bg);
  color: var(--error-text);
  display: block;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  padding: 4rem 0 2rem;
  background: var(--footer-bg);
  color: var(--footer-text);
}

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

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 48px;
  width: auto;
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--footer-text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--footer-social-bg);
  border-radius: var(--radius-lg);
  color: var(--footer-text);
  transition: all 200ms ease;
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--primary-contrast);
}

.footer-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: var(--primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a,
.footer-links span {
  font-size: 0.875rem;
  color: var(--footer-text-muted);
  transition: color 200ms ease;
}

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

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

.footer-copyright {
  font-size: 0.875rem;
  color: var(--footer-text-muted);
}

.footer-copyright a {
  color: var(--primary);
}

/* =====================================================
   HELP BOT
   ===================================================== */
.bot-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999999;
}

.bot-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-contrast);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms ease;
}

.bot-toggle:hover {
  transform: scale(1.1);
}

.bot-icon-open,
.bot-icon-close {
  width: 24px;
  height: 24px;
}

.bot-icon-close {
  display: none;
}

.bot-toggle[aria-expanded="true"] .bot-icon-open {
  display: none;
}

.bot-toggle[aria-expanded="true"] .bot-icon-close {
  display: block;
}

.bot-label {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text);
}

.bot-panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 360px;
  max-width: calc(100vw - 2rem);
  max-height: 500px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transition: all 200ms ease;
}

.bot-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

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

.bot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--primary);
}

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

.bot-info {
  flex: 1;
}

.bot-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

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

.bot-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-md);
}

.bot-close:hover {
  background: var(--bg);
  color: var(--text);
}

.bot-close svg {
  width: 20px;
  height: 20px;
}

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

.bot-message {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  line-height: 1.6;
}

.bot-message-bot {
  background: var(--bg);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

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

.bot-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

.bot-suggestion {
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text);
  cursor: pointer;
  transition: all 200ms ease;
}

.bot-suggestion:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-contrast);
}

.bot-input-container {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  border-top: 1px solid var(--border);
}

.bot-input {
  flex: 1;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  outline: none;
}

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

.bot-send {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--primary-contrast);
  border-radius: 50%;
  transition: all 200ms ease;
}

.bot-send:hover {
  background: var(--primary-dark);
}

.bot-send svg {
  width: 20px;
  height: 20px;
  transform: rotate(90deg);
}

@media (max-width: 480px) {
  .bot-panel {
    position: fixed;
    bottom: 80px;
    right: 1rem;
    left: 1rem;
    width: auto;
  }
}
