/* Hero Section - New Layout */
.simple-hero {
  padding: 80px 0 60px 0;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.simple-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(91, 67, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(124, 92, 240, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 45px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
  direction: ltr;
}

/* Right Side: Branding & CTA (سمت راست در RTL) */
.hero-content {
  text-align: right;
  order: 1; /* سمت راست در RTL */
  padding-right: 20px;
  max-width: 100%;
}

.hero-branding {
  animation: fadeInRight 0.8s ease-out;
  display: flex;
  flex-direction: column;
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 20px 0;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  text-align: right;
}

.hero-subtitle {
  font-size: 1.4rem;
  color: #cbd5e1;
  margin: 0 0 36px 0;
  font-weight: 400;
  line-height: 1.6;
  text-align: right;
  max-width: 500px;
}

/* Micro Trust Bar */
.micro-trust {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: -8px 0 24px 0;
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mt-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  font-size: 0.95rem;
  white-space: nowrap;
}
.mt-ico {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a5b4fc;
}
.mt-text b { color: #ffffff; font-weight: 700; }

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  flex-wrap: wrap;
  direction: ltr; /* دکمه‌ها از راست به چپ */
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #5b43ea, #7c5cf0);
  color: white;
  box-shadow: 0 4px 16px rgba(91, 67, 234, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(91, 67, 234, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}


.robot-container {
  position: relative;
  animation: fadeInLeft 0.8s ease-out;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 400px;
}

/* Trust Bubble (compact) */
.trust-bubble {
  position: absolute;
  inset-inline-end: -6px; /* near robot */
  inset-block-start: 6px;
  z-index: 3;
}
.bubble-toggle {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}
.bubble-toggle:hover { background: rgba(255,255,255,0.12); transform: translateY(-1px); }
.bubble-panel {
  position: absolute;
  inset-inline-end: 44px;
  inset-block-start: 0;
  min-width: 240px;
  max-width: 280px;
  padding: 12px 36px 12px 12px;
  background: rgba(17, 24, 39, 0.9);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  color: #e5e7eb;
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateX(8px) translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease;
}
.bubble-panel[hidden] { display: block !important; opacity: 0; pointer-events: none; }
.trust-bubble.open .bubble-panel { opacity: 1; transform: translateX(0) translateY(0); }
.bubble-row { display: flex; align-items: center; gap: 10px; }
.bubble-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,0.7); animation: pulse 1.6s infinite; }
.bubble-text { font-size: 0.92rem; color: #e5e7eb; line-height: 1.6; }
.bubble-close { position: absolute; inset-inline-end: 8px; inset-block-start: 6px; width: 24px; height: 24px; border-radius: 6px; border: none; background: transparent; color: #94a3b8; cursor: pointer; }

@keyframes pulse { 0%{ box-shadow: 0 0 0 0 rgba(34,197,94,0.6);} 70%{ box-shadow: 0 0 0 10px rgba(34,197,94,0);} 100%{ box-shadow: 0 0 0 0 rgba(34,197,94,0);} }

.robot-character {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.robot-svg {
  width: 320px;
  height: 320px;
  filter: drop-shadow(0 12px 35px rgba(91, 67, 234, 0.4));
  transition: all 0.3s ease;
}

/* Robot Animations */
.robot-head {
  animation: robotFloat 3s ease-in-out infinite;
  transform-origin: 150px 110px;
}

.robot-body {
  animation: robotFloat 3s ease-in-out infinite 0.1s;
}

.robot-arm-left, .robot-arm-right {
  animation: robotPoint 2s ease-in-out infinite alternate;
}

.robot-eye {
  animation: robotBlink 4s ease-in-out infinite;
}

.float-element {
  animation: floatAround 4s ease-in-out infinite;
}

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

@keyframes robotPoint {
  0% { transform: scaleX(1); }
  100% { transform: scaleX(1.2); }
}

@keyframes robotBlink {
  0%, 90%, 100% { opacity: 1; }
  95% { opacity: 0.1; }
}

@keyframes floatAround {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(90deg); }
  50% { transform: translateY(-5px) rotate(180deg); }
  75% { transform: translateY(-15px) rotate(270deg); }
}

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

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

/* Bottom Categories */
.hero-categories {
  margin-top: 80px;
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 0 40px;
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  direction: ltr; /* کارت‌ها از چپ به راست */
  flex-wrap: wrap;
}

.category-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  min-width: 160px;
  position: relative;
  overflow: hidden;
}

.category-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(91, 67, 234, 0.1), rgba(124, 92, 240, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-item:hover::before {
  opacity: 1;
}

.category-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(91, 67, 234, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(91, 67, 234, 0.25);
}

.category-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #5b43ea, #7c5cf0);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(91, 67, 234, 0.2);
}

.category-item:hover .category-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px rgba(91, 67, 234, 0.4);
}

.category-name {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  position: relative;
  z-index: 2;
  letter-spacing: -0.01em;
}

.category-count {
  color: #22c55e;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  position: relative;
  z-index: 2;
  margin-top: 6px;
  padding: 2px 8px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(34, 197, 94, 0.2);
  backdrop-filter: blur(4px);
}

/* Large Desktop - Extra spacing and refinement */
@media (min-width: 1440px) {

  .hero-title {
    font-size: 4.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
    max-width: 600px;
  }
  
  .robot-svg {
    width: 380px;
    height: 380px;
  }
  
  .hero-categories {
    gap: 50px;
    margin-top: 100px;
  }
  
  .category-item {
    min-width: 180px;
    padding: 28px 24px;
  }
  
  .category-icon {
    width: 64px;
    height: 64px;
  }
}

/* Tablet Responsive */
@media (max-width: 1024px) {
  .hero-container {
    gap: 60px;
    grid-template-columns: 1fr 1fr;
    padding: 0 30px;
  }
  .micro-trust { gap: 12px; margin: -6px 0 20px 0; }
  .mt-item { font-size: 0.9rem; }
  
  .hero-content {
    padding-right: 10px;
  }
  
  .hero-visual {
    padding-left: 10px;
  }
  
  .hero-title {
    font-size: 3.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .robot-svg {
    width: 280px;
    height: 280px;
  }
  
  .hero-categories {
    gap: 30px;
    margin-top: 60px;
    padding: 0 30px;
  }
  
  .category-item {
    min-width: 150px;
    padding: 20px 16px;
  }
  
  .category-icon {
    width: 48px;
    height: 48px;
  }
  
  .category-name {
    font-size: 0.9rem;
  }
}

/* Tablet Responsive - Clean & Standard */
@media (max-width: 1024px) and (min-width: 769px) {
  .simple-hero {
    padding: 70px 0 50px 0;
    min-height: 65vh;
  }
  
  .hero-container {
    max-width: 900px;
    gap: 50px;
    padding: 0 25px;
  }
  
  .hero-title {
    font-size: 3rem;
    line-height: 1.1;
  }
  
  .hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 30px;
  }
  
  .hero-actions {
    gap: 16px;
  }
  
  .btn-primary, .btn-secondary {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
  
  .robot-svg {
    width: 260px;
    height: 260px;
  }
  
  .hero-categories {
    gap: 25px;
    margin-top: 50px;
    padding: 0 25px;
  }
  
  .category-item {
    min-width: 140px;
    padding: 18px 14px;
  }
  
  .category-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  
  .category-name {
    font-size: 0.85rem;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .simple-hero {
    min-height: 60vh;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    direction: ltr;
    padding: 45px 0 20px 0;
  }
  .micro-trust { justify-content: center; flex-wrap: wrap; }
  .trust-bubble { inset-inline-end: 0; inset-block-start: -6px; }
  .bubble-panel { inset-inline-end: 40px; }
  
  .hero-content {
    order: 1;
    text-align: center;
    padding-right: 0;
  }

  .hero-visual {
    padding: 25px 0 0 25px;
  }
  
  .hero-branding {
    align-items: center;
  }
  
  .hero-visual {
    order: 2;
    padding-left: 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
    text-align: center;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    text-align: center;
    max-width: 100%;
  }
  
  .hero-actions {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    direction: ltr;
  }
  
  .btn-primary, .btn-secondary {
    width: 220px;
    justify-content: center;
  }
  
  .robot-svg {
    width: 220px;
    height: 220px;
  }
  
  .hero-categories {
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding: 0 20px;
  }
  
  .category-item {
    padding: 16px 20px;
    gap: 12px;
  }
  
  .category-icon {
    width: 44px;
    height: 44px;
  }
  
  .category-name {
    font-size: 0.95rem;
  }
  
  .category-count {
    font-size: 0.75rem;
    margin-top: 5px;
    padding: 1px 6px;
  }
}

@media (max-width: 480px) {
  .simple-hero {
    padding: 40px 0 30px 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  .mt-item { font-size: 0.88rem; }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .btn-primary, .btn-secondary {
    width: 180px;
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  
  .robot-svg {
    width: 160px;
    height: 160px;
  }
  
  .category-item {
    min-width: 220px;
    padding: 12px 16px;
  }
  
  .category-name {
    font-size: 0.85rem;
  }
  
  .category-count {
    font-size: 0.7rem;
    margin-top: 4px;
    padding: 1px 5px;
  }
}

/* Performance optimizations for low-motion preference */
@media (prefers-reduced-motion: reduce) {
  .robot-head, .robot-body, .robot-arm-left, .robot-arm-right, 
  .robot-eye, .float-element {
    animation: none;
  }
  
  .hero-branding, .robot-container {
    animation: none;
    opacity: 1;
    transform: none;
  }
}