/* Hero - Hybrid Layout */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-height);
  padding-bottom: 2rem;
}

.hero-container {
  width: 100%;
  max-width: 950px;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin: 0 auto;
}

/* ============================
   Top Row: Title Left, Avatar & Stats Right
   ============================ */
.hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-title-group {
  text-align: left;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.hero-title {
  font-size: 5rem;
  font-weight: 800;
  letter-spacing: -2.5px;
  margin-bottom: 0.5rem;
  line-height: 1.1;
  background: linear-gradient(270deg, #ffffff 0%, #3b82f6 50%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  animation: gradientMove 5s ease infinite;
}

.hero-title::selection {
  background: var(--primary);
  color: #050812;
  -webkit-text-fill-color: #050812;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-glow);
  letter-spacing: 2px;
  min-height: 1.5em;
  text-transform: uppercase;
  margin-bottom: 0;
}

/* Right Column (Avatar + Stats) */
.hero-right-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  flex-shrink: 0;
}

@keyframes floatAvatar {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.hero-avatar-large {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px;
  background: var(--bg-card);
  position: relative;
  flex-shrink: 0;
  animation: floatAvatar 8s ease-in-out infinite;
}

/* Subtle glowing aura under the avatar */
.hero-avatar-large::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0.2;
  z-index: -1;
  filter: blur(40px);
}

.hero-avatar-large img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* Mini Stats (Flexing under avatar) - OpenClaw Solid Pill Style */
.hero-stats-mini {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  background: #050812;
  /* Dark solid color, slight navy tint */
  border: 1px solid rgba(59, 130, 246, 0.15);
  /* Faint blue border matching theme */
  border-radius: 9999px;
  /* Perfect pill */
  padding: 0.9rem 2.2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  /* Soft drop shadow */
  transition: all var(--transition-normal);
  cursor: default;
}

.hero-stats-mini:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.15);
  /* Soft primary glow */
  transform: translateY(-2px);
  /* Slight lift */
}

.stat-mini-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--transition-normal);
}

.stat-mini-item:hover {
  transform: scale(1.05);
}

.stat-mini-item h4 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  /* Crisp white */
  margin-bottom: 0.2rem;
  line-height: 1;
  transition: color var(--transition-normal);
}

.stat-mini-item:hover h4 {
  color: var(--primary-glow);
}

.stat-mini-item p {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.stat-mini-divider {
  width: 1px;
  height: 35px;
  background: rgba(255, 255, 255, 0.08);
  /* Faint thin line */
}

/* ============================
   Bottom Row: Centered Summary & Pills
   ============================ */
.hero-bottom-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 2rem auto;
  line-height: 1.8;
}

.hero-social-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}


/* Center typed text */
.typed-text {
  font-weight: 600;
  color: var(--primary-glow);
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background-color: var(--primary-glow);
  animation: blink 1s infinite;
  margin-left: 2px;
  vertical-align: middle;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Simple responsive rules */
@media (max-width: 900px) {
  .hero-top-row {
    flex-direction: column-reverse;
    text-align: center;
    gap: 3rem;
  }

  .hero-title-group {
    text-align: center;
  }

  .hero-title {
    font-size: 3.5rem;
    letter-spacing: -1.5px;
  }

  .hero-avatar-large {
    width: 180px;
    height: 180px;
  }

  .hero-desc {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .hero-stats-mini {
    padding: 0.6rem 1rem;
    gap: 0.8rem;
  }

  .stat-mini-item h4 {
    font-size: 1.1rem;
  }

  .stat-mini-item p {
    font-size: 0.6rem;
    letter-spacing: 0px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
    letter-spacing: -1px;
  }

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

  .hero-avatar-large {
    width: 150px;
    height: 150px;
  }

  .hero-right-col {
    gap: 1.5rem;
  }

  .hero-stats-mini {
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    width: 100%;
    justify-content: space-around;
  }

  .stat-mini-divider {
    height: 30px;
    margin: 0;
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .hero-social-actions {
    flex-direction: column;
    width: 100%;
    padding: 0 1rem;
  }

  .social-pill {
    width: 100%;
    justify-content: center;
  }
}

/* ============================
   Testimonials / Reputation
   ============================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-normal);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.testi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.testi-profile {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 1;
  min-width: 0;
}

.testi-avatar {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  background: rgba(59, 130, 246, 0.15);
  /* Fallback bg color */
}

/* CSS-only letter avatar fallback */
.testi-avatar-fallback {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-glow);
  text-transform: uppercase;
  letter-spacing: 0;
}

.testi-meta {
  display: flex;
  flex-direction: column;
}

.testi-name {
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.testi-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.testi-stars {
  color: var(--primary);
  font-size: 0.85rem;
  display: flex;
  gap: 0.15rem;
  flex-shrink: 0;
  align-items: center;
  margin-top: auto;
  align-self: flex-end;
}

.testi-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  font-style: italic;
  flex: 1;
}

/* === SHOW MORE PILL BUTTON === */
.btn-pill-show-more {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  color: var(--text-light);
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  font-family: inherit;
}

.btn-pill-show-more:hover {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(59, 130, 246, 0.15);
}

.btn-pill-icon {
  color: var(--text-muted);
  transition: transform var(--transition-normal), color var(--transition-normal);
}

.btn-pill-show-more:hover .btn-pill-icon {
  transform: translateX(3px);
  color: var(--primary);
}

@media (max-width: 900px) {
  .testimonial-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}