/* Tela Principal — Web3 feminino */

/* ══════════════════════════════════
   HERO
   ══════════════════════════════════ */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 55vh;
  padding: 2rem;
}

/* Orbital rings */
.hero-rings {
  position: absolute;
  width: 380px;
  height: 380px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid transparent;
}

.ring-1 {
  border-color: rgba(192, 132, 252, 0.18);
  animation: spin-ring 32s linear infinite;
  box-shadow:
    0 0 40px rgba(192, 132, 252, 0.06),
    inset 0 0 40px rgba(192, 132, 252, 0.03);
}

.ring-2 {
  inset: 45px;
  border-color: rgba(244, 114, 182, 0.15);
  animation: spin-ring 24s linear infinite reverse;
  box-shadow:
    0 0 30px rgba(244, 114, 182, 0.05),
    inset 0 0 30px rgba(244, 114, 182, 0.02);
}

.ring-3 {
  inset: 85px;
  border-color: rgba(94, 234, 212, 0.12);
  animation: spin-ring 18s linear infinite;
  box-shadow:
    0 0 20px rgba(94, 234, 212, 0.04),
    inset 0 0 20px rgba(94, 234, 212, 0.02);
}

/* Dots orbitando */
.ring-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  box-shadow: 0 0 12px currentColor;
}

.ring-dot-1 {
  color: var(--w3-purple);
  background: var(--w3-purple);
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  animation: spin-ring 32s linear infinite;
}

.ring-dot-2 {
  color: var(--w3-pink);
  background: var(--w3-pink);
  width: 5px;
  height: 5px;
  bottom: 45px;
  right: 45px;
  animation: spin-ring 24s linear infinite reverse;
  transform-origin: calc(50% - 45px + 50%) calc(50% - 45px + 50%);
}

.ring-dot-3 {
  color: var(--w3-teal);
  background: var(--w3-teal);
  width: 4px;
  height: 4px;
  top: 85px;
  left: 50%;
  transform: translateX(-50%);
  animation: spin-ring 18s linear infinite;
  transform-origin: center calc(190px - 85px);
}

@keyframes spin-ring {
  to { transform: rotate(360deg); }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 520px;
}

.hero-label {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--w3-muted);
  font-weight: 400;
}

.hero-title {
  margin: 0 0 1rem;
  font-family: var(--w3-font-display);
  font-size: clamp(3rem, 12vw, 6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  margin: 0;
  font-size: 1.05rem;
  color: var(--w3-muted);
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* ══════════════════════════════════
   HIGHLIGHTS (mini chain horizontal)
   ══════════════════════════════════ */
.highlights {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 1.5rem;
  flex-wrap: wrap;
}

.highlight-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  border-radius: 14px;
  flex-shrink: 0;
}

.hl-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--hl-color) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--hl-color) 25%, transparent);
  padding: 5px;
}

.hl-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--hl-color);
}

.hl-text {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--w3-text);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Highlight connectors */
.hl-connector {
  width: 24px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.hl-connector-pulse {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--w3-purple), transparent);
  animation: hlFlow 3s ease-in-out infinite;
}

.hl-connector:nth-child(4) .hl-connector-pulse {
  animation-delay: 0.5s;
  background: linear-gradient(90deg, transparent, var(--w3-pink), transparent);
}

@keyframes hlFlow {
  0% { left: -100%; opacity: 0; }
  40% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* ══════════════════════════════════
   NAVIGATION BLOCKS
   ══════════════════════════════════ */
.nav-blocks {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 2rem 1.5rem 1rem;
  flex-wrap: wrap;
}

.nav-block {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  text-decoration: none;
  color: var(--w3-text);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  min-width: 220px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-block::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(ellipse at 0% 50%, var(--nb-color), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s;
}

.nav-block:hover {
  border-color: var(--nb-color);
  transform: translateY(-3px);
  box-shadow:
    0 6px 28px color-mix(in srgb, var(--nb-color) 25%, transparent),
    0 0 0 1px color-mix(in srgb, var(--nb-color) 15%, transparent);
}

.nav-block:hover::before {
  opacity: 0.1;
}

.nb-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--nb-color) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--nb-color) 20%, transparent);
  padding: 8px;
  transition: all 0.35s;
  position: relative;
  z-index: 1;
}

.nb-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--nb-color);
}

.nav-block:hover .nb-icon {
  background: color-mix(in srgb, var(--nb-color) 18%, transparent);
  border-color: color-mix(in srgb, var(--nb-color) 35%, transparent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--nb-color) 25%, transparent);
}

.nb-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  position: relative;
  z-index: 1;
}

.nb-title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nb-desc {
  font-size: 0.72rem;
  color: var(--w3-muted);
  font-weight: 300;
}

.nb-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--w3-muted);
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.3s;
  position: relative;
  z-index: 1;
}

.nb-arrow svg { width: 100%; height: 100%; }

.nav-block:hover .nb-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--nb-color);
}

/* Chain link between nav blocks */
.nb-chain-link {
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.nb-chain-pulse {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--w3-lavender), transparent);
  animation: hlFlow 2.8s ease-in-out infinite;
}

/* ══════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════ */
.anim-fade {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ══════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════ */
@media (max-width: 640px) {
  .hero {
    min-height: 45vh;
  }

  .hero-rings {
    width: 260px;
    height: 260px;
  }

  .ring-2 { inset: 35px; }
  .ring-3 { inset: 65px; }

  .highlights {
    flex-direction: column;
    gap: 0;
  }

  .hl-connector {
    width: 3px;
    height: 16px;
  }

  .hl-connector-pulse {
    left: 0 !important;
    top: -100%;
    width: 100%;
    height: 100%;
    animation-name: hlFlowV;
  }

  @keyframes hlFlowV {
    0% { top: -100%; opacity: 0; }
    40% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
  }

  .nav-blocks {
    flex-direction: column;
    gap: 0;
    padding: 1.5rem 1rem 1rem;
  }

  .nb-chain-link {
    width: 3px;
    height: 20px;
  }

  .nb-chain-pulse {
    left: 0 !important;
    top: -100%;
    width: 100%;
    height: 100%;
    animation-name: hlFlowV;
  }

  .nav-block {
    min-width: 0;
    width: 100%;
  }
}
