/**
 * AVENIX Venture - Hero Section
 * Modern Senior-Level UI: Ambient Grid Mask, Dynamic Pill, Tabular Metrics
 */

.hero-section {
  position: relative;
  padding-top: clamp(3.5rem, 6vw, 6.5rem);
  padding-bottom: clamp(3.5rem, 6vw, 6.5rem);
  overflow: hidden;
  background: radial-gradient(ellipse 70% 55% at 50% 0%, var(--color-primary-alpha) 0%, transparent 70%);
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--color-border-subtle) 1px, transparent 1px),
    linear-gradient(to bottom, var(--color-border-subtle) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 65% 55% at 50% 25%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 25%, black 20%, transparent 80%);
  opacity: 0.7;
  pointer-events: none;
}

.hero-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
}

/* Modern Announcement Pill */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px 6px 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--fs-caption);
  font-weight: var(--fw-medium);
  color: var(--color-text-secondary);
  box-shadow: var(--color-shadow-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
  margin-bottom: var(--space-4);
  max-width: 100%;
}

.hero-pill:hover {
  border-color: var(--color-primary);
  color: var(--color-text-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--color-primary-alpha);
}

.hero-pill__pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  position: relative;
  box-shadow: 0 0 8px var(--color-success);
  flex-shrink: 0;
}

.hero-pill__pip::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--color-success);
  opacity: 0.4;
  animation: pulse-ring 2.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.6);
    opacity: 0;
  }

  100% {
    transform: scale(0.8);
    opacity: 0;
  }
}

.hero-pill__tag {
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  flex-shrink: 0;
}

.hero-pill__arrow {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.hero-pill:hover .hero-pill__arrow {
  transform: translateX(3px);
}

@media (max-width: 480px) {
  .hero-pill {
    padding: 5px 10px 5px 8px;
    font-size: 0.72rem;
    gap: 6px;
  }

  .hero-pill span:not(.hero-pill__tag):not(.hero-pill__pip) {
    max-width: 135px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 340px) {
  .hero-pill span:not(.hero-pill__tag):not(.hero-pill__pip) {
    max-width: 100px;
  }
}

/* Hero Typography */
.hero-title {
  font-size: clamp(1.85rem, 6.5vw, 4.25rem);
  font-weight: var(--fw-extrabold);
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-align: center;
  max-width: 960px;
  margin-bottom: var(--space-4);
  text-wrap: balance;
  word-break: break-word;
  overflow-wrap: break-word;
}

.hero-title .text-gradient-ai {
  background: var(--grad-ai);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.hero-subtitle {
  font-size: clamp(0.92rem, 1.3vw, 1.25rem);
  color: var(--color-text-secondary);
  line-height: 1.6;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-6);
  text-wrap: pretty;
}

/* Modern Button Group */
.hero-cta-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 440px;
  gap: var(--space-3);
  margin-bottom: var(--space-7);
  justify-content: center;
  align-items: center;
}

@media (min-width: 480px) {
  .hero-cta-group {
    flex-direction: row;
    width: auto;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .hero-cta-group {
    width: 100%;
    max-width: 100%;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
  }

  .hero-cta-group .btn {
    width: 100%;
    white-space: normal;
    line-height: 1.25;
    min-height: 48px;
    padding: 8px var(--space-3);
    font-size: 0.88rem;
    text-align: center;
  }
}

/* Trust Bar / Stats Summary */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(var(--space-4), 4.5vw, var(--space-7));
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-align: left;
}

.trust-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
}

.trust-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .hero-trust {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4) var(--space-2);
    padding-top: var(--space-5);
    max-width: 340px;
  }

  .trust-item {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 4px;
  }

  .trust-number {
    font-size: 1.35rem;
  }

  .trust-label {
    font-size: 0.7rem;
  }
}