.avhero {
  padding: 62px 0 38px;
}
.avhero * { box-sizing: border-box; }

.avhero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.avhero-eyebrow {
  display: inline-flex;
  width: fit-content;
  gap: 8px;
  align-items: center;
  margin-bottom: 15px;
  padding: 7px 11px;
  border: 1px solid rgba(139, 92, 246, 0.24);
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
  color: #c4b5fd;
  font-size: 13px;
  font-weight: 850;
}
.avhero-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #67e8f9;
  box-shadow: 0 0 16px #67e8f9;
}

.avhero-title {
  max-width: 720px;
  margin: 0;
  font-size: clamp(45px, 6vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  color: #eef4ff;
  font-weight: 900;
}
.avhero-gradient {
  color: transparent;
  background: linear-gradient(135deg, #fff, #ddd6fe 40%, #67e8f9);
  background-clip: text;
  -webkit-background-clip: text;
}

.avhero-lead {
  max-width: 700px;
  margin: 19px 0 0;
  color: #a8b4ca;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.5;
}

.avhero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}
.avhero-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 17px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #eef4ff;
  font-weight: 850;
  font-size: 15px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.avhero-btn-primary {
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  box-shadow: 0 18px 46px rgba(139, 92, 246, 0.28);
}
.avhero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 58px rgba(139, 92, 246, 0.37);
}
.avhero-btn-secondary {
  border-color: rgba(255,255,255,0.13);
  background: rgba(255,255,255,0.08);
}
.avhero-btn-secondary:hover {
  background: rgba(255,255,255,0.13);
  transform: translateY(-1px);
}

.avhero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 700px;
  margin-top: 28px;
}
.avhero-point {
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 18px;
  background: rgba(255,255,255,0.052);
}
.avhero-point b {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
  color: #eef4ff;
}
.avhero-point span {
  color: #a8b4ca;
  font-size: 12px;
}

/* === Preview card === */
.avhero-preview {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 26px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 30px;
  background:
    radial-gradient(circle at 75% 18%, rgba(6,182,212,0.25), transparent 31%),
    radial-gradient(circle at 20% 80%, rgba(139,92,246,0.32), transparent 36%),
    linear-gradient(150deg, rgba(255,255,255,0.11), rgba(255,255,255,0.035));
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
}
.avhero-preview::before {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, transparent, rgba(139,92,246,0.24), rgba(6,182,212,0.22), rgba(249,115,22,0.12), transparent);
  content: "";
  animation: avhero-rotate 18s linear infinite;
}
@keyframes avhero-rotate { to { transform: rotate(360deg); } }

.avhero-preview-card {
  position: relative;
  z-index: 2;
  width: min(100%, 470px);
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 28px;
  background: rgba(5,9,20,0.76);
  box-shadow: 0 28px 90px rgba(0,0,0,0.48);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.avhero-preview-top {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
}
.avhero-preview-image {
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 18px;
  background: #0c1629;
  object-fit: contain;
  padding: 4px;
}
.avhero-preview-copy { min-width: 0; }
.avhero-preview-name {
  overflow: hidden;
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #eef4ff;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.2;
  max-height: 2.4em;
}
.avhero-preview-sub {
  margin: 5px 0 0;
  color: #a8b4ca;
  font-size: 12px;
}
.avhero-preview-price {
  color: #67e8f9;
  font-size: 21px;
  font-weight: 950;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.avhero-preview-flow {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}
.avhero-flow-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 60px;
  gap: 8px;
  align-items: center;
  color: #a8b4ca;
  font-size: 11px;
  transition: opacity 0.25s ease;
}
.avhero-flow-row b {
  overflow: hidden;
  color: #eef4ff;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.avhero-flow-row .avhero-emoji { margin-right: 3px; }
.avhero-mini-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.09);
}
.avhero-mini-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  transition: width 0.5s ease;
}

.avhero-preview-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
  padding: 13px 14px;
  border: 1px solid rgba(34,197,94,0.24);
  border-radius: 17px;
  background: rgba(34,197,94,0.09);
  color: #bbf7d0;
  font-size: 13px;
  font-weight: 800;
}
.avhero-preview-total strong {
  color: #eef4ff;
  font-size: 16px;
  white-space: nowrap;
}
.avhero-sep { opacity: 0.5; margin: 0 2px; }

/* === Fade animation on product change === */
.avhero-fading .avhero-preview-top,
.avhero-fading .avhero-preview-flow,
.avhero-fading .avhero-preview-total {
  opacity: 0;
  transition: opacity 0.25s ease;
}
.avhero-preview-top,
.avhero-preview-flow,
.avhero-preview-total {
  transition: opacity 0.25s ease;
}

/* === Responsive === */
@media (max-width: 1000px) {
  .avhero-grid { grid-template-columns: 1fr; }
  .avhero-preview { min-height: 480px; }
}

@media (max-width: 700px) {
  .avhero { padding: 34px 0 27px; }
  .avhero-grid { width: min(100% - 20px, 1240px); }
  .avhero-title { font-size: clamp(41px, 12vw, 57px); }
  .avhero-lead { font-size: 17px; }
  .avhero-actions .avhero-btn { flex: 1 1 100%; }
  .avhero-points { grid-template-columns: 1fr; }
  .avhero-preview { min-height: 420px; padding: 11px; border-radius: 24px; }
  .avhero-preview-card { padding: 16px; border-radius: 22px; }
  .avhero-preview-top { grid-template-columns: 56px minmax(0, 1fr); }
  .avhero-preview-image { width: 56px; height: 56px; }
  .avhero-preview-price { grid-column: 2; text-align: left; margin-top: 4px; }
  .avhero-preview-name { font-size: 16px; }
}

@media (max-width: 380px) {
  .avhero-flow-row { grid-template-columns: 66px minmax(0, 1fr) 52px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .avhero-preview::before { animation: none; }
  .avhero-mini-track span { transition: none; }
  .avhero-fading .avhero-preview-top,
  .avhero-fading .avhero-preview-flow,
  .avhero-fading .avhero-preview-total { transition: none; }
}
