/* Professional hero — brand-first composition, Wasl greens */

.hero.hero-pro {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background-color: #006830;
  background-image:
    linear-gradient(135deg, rgba(1, 56, 32, 0.55) 0%, transparent 46%),
    linear-gradient(155deg, #007a3d 0%, #006830 46%, #013820 100%);
}

.hero.hero-pro::before {
  display: none;
}

.hero-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-facet {
  position: absolute;
  inset: 0;
}

.hero-facet-a {
  background: linear-gradient(
    122deg,
    transparent 36%,
    rgba(0, 128, 64, 0.55) 36%,
    rgba(0, 128, 64, 0.55) 58%,
    transparent 58%
  );
  opacity: 0.55;
}

.hero-facet-b {
  background: linear-gradient(
    122deg,
    transparent 58%,
    rgba(255, 255, 255, 0.06) 58%,
    rgba(255, 255, 255, 0.06) 72%,
    transparent 72%
  );
  animation: facet-shift 14s ease-in-out infinite alternate;
}

.hero-glow-field {
  position: absolute;
  right: -10%;
  top: 10%;
  width: min(70vw, 720px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 64%);
  filter: blur(10px);
  animation: glow-breathe 10s ease-in-out infinite alternate;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: 8.5rem 0 5.5rem;
  width: min(100% - 2.5rem, var(--max));
}

.hero-copy {
  max-width: 34rem;
}

.hero-brand {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  color: #fff;
}

.hero-heading {
  margin: 0 0 1.15rem;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.96);
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 36ch;
  font-size: 1.08rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

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

.hero-pro .btn-primary {
  background: #fff;
  color: #006830;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.hero-pro .btn-primary:hover {
  background: #f3fff8;
  color: #005528;
  transform: translateY(-2px);
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.25s ease, gap 0.25s ease;
}

.hero-link:hover {
  color: #fff;
  gap: 0.65rem;
}

.hero-media {
  position: relative;
  justify-self: end;
  width: min(100%, 440px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.hero-media-glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 68%);
  filter: blur(6px);
}

/* Wasl hub — connection constellation around the W mark */
.hero-hub {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  transition: transform 0.3s ease-out;
  will-change: transform;
}

.hero-hub-inner {
  position: absolute;
  inset: 0;
  animation: hub-drift 16s ease-in-out infinite alternate;
}

.hero-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(184, 255, 212, 0.45);
  transform: translate(-50%, -50%) scale(0.72);
  opacity: 0;
  animation: hub-pulse 4.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  animation-delay: calc(var(--p) * 1.55s);
}

.hero-rays {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hero-ray-group line {
  stroke: rgba(184, 255, 212, 0.38);
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-dasharray: 5 7;
  animation: ray-dash 2.8s linear infinite;
}

.hero-ray-group line:nth-child(odd) {
  stroke: rgba(255, 255, 255, 0.28);
  animation-duration: 3.6s;
  animation-direction: reverse;
}

.hero-ray-spark {
  fill: #9dffc2;
  filter: drop-shadow(0 0 6px rgba(125, 255, 178, 0.9));
  opacity: 0.95;
}

.hero-ray-spark.is-delay {
  fill: #fff;
  opacity: 0.75;
}

.hero-nodes {
  position: absolute;
  inset: 0;
}

.hero-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  animation: node-float 5.5s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

.hero-node span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  background: rgba(0, 35, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  animation: node-glow 4.2s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

.hero-node.is-glow span {
  background: rgba(255, 255, 255, 0.96);
  color: #006830;
  border-color: transparent;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.12),
    0 14px 30px rgba(0, 0, 0, 0.22);
}

.hero-node.is-soft span {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.26);
  color: #e9fff2;
}

.hero-node span::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: #7dffb2;
  box-shadow: 0 0 8px rgba(125, 255, 178, 0.75);
  flex-shrink: 0;
}

.hero-node.is-glow span::before {
  background: #006830;
  box-shadow: none;
}

.hero-mark-halo {
  position: absolute;
  z-index: 1;
  width: min(64%, 276px);
  aspect-ratio: 1;
  border-radius: 50%;
  transition: transform 0.3s ease-out;
  will-change: transform;
}

.hero-mark-halo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.2), transparent 62%),
    conic-gradient(from 210deg, transparent 0 55%, rgba(157, 255, 194, 0.35) 70%, transparent 88%);
  filter: blur(1px);
  animation: halo-spin 18s linear infinite;
}

.hero-media-mark {
  position: relative;
  z-index: 3;
  width: min(58%, 260px);
  height: auto;
  border-radius: 50%;
  object-fit: contain;
  shape-rendering: geometricPrecision;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.26));
  animation: mark-float 7s ease-in-out infinite;
  transition: transform 0.3s ease-out;
  will-change: transform;
}

.hero-pro .reveal-up {
  opacity: 0;
  transform: translateY(24px);
  animation: reveal-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-pro .delay-1 { animation-delay: 0.1s; }
.hero-pro .delay-2 { animation-delay: 0.2s; }
.hero-pro .delay-3 { animation-delay: 0.32s; }

@keyframes facet-shift {
  from { transform: translateX(0); }
  to { transform: translateX(1.5%); }
}

@keyframes glow-breathe {
  from { transform: scale(1); opacity: 0.7; }
  to { transform: scale(1.06); opacity: 1; }
}

@keyframes hub-drift {
  from { transform: rotate(-1.2deg) translateY(0); }
  to { transform: rotate(1.4deg) translateY(-4px); }
}

@keyframes hub-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0.55;
  }
  70% {
    opacity: 0.12;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.15);
    opacity: 0;
  }
}

@keyframes ray-dash {
  to { stroke-dashoffset: -48; }
}

@keyframes node-float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-7px); }
}

@keyframes node-glow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
}

@keyframes halo-spin {
  to { transform: rotate(360deg); }
}

@keyframes mark-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 900px) {
  .hero.hero-pro {
    min-height: auto;
    align-items: start;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    padding: 6.4rem 0 3.25rem;
    gap: 1.35rem;
    text-align: center;
    width: min(100% - 1.75rem, var(--max));
  }

  .hero-copy {
    max-width: none;
    justify-self: center;
  }

  .hero-heading,
  .hero-lead {
    max-width: none;
    margin-inline: auto;
  }

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

  .hero-actions {
    justify-content: center;
  }

  .hero-media {
    order: -1;
    justify-self: center;
    width: min(72vw, 300px);
  }

  .hero-glow-field {
    right: 50%;
    top: 4%;
    transform: translateX(50%);
    width: min(90vw, 420px);
  }

  .hero-node span {
    font-size: 0.58rem;
    padding: 0.32rem 0.55rem;
  }

  .hero-brand {
    font-size: clamp(1.55rem, 6.5vw, 2.1rem);
    margin-bottom: 0.75rem;
  }

  .hero-heading {
    font-size: clamp(1.75rem, 7vw, 2.35rem);
    margin-bottom: 0.85rem;
  }
}

@media (max-width: 640px) {
  .hero-layout {
    padding: 5.6rem 0 2.75rem;
    gap: 1rem;
    width: min(100% - 1.35rem, var(--max));
  }

  .hero-media {
    width: min(78vw, 260px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .hero-pro .btn-lg,
  .hero-link {
    width: 100%;
    justify-content: center;
  }

  .hero-facet-a,
  .hero-facet-b {
    opacity: 0.3;
  }

  .hero-node.is-soft,
  .hero-ray-spark {
    display: none;
  }

  .hero-node span {
    font-size: 0.52rem;
    padding: 0.28rem 0.48rem;
    letter-spacing: 0.04em;
  }

  .hero-ray-group line:nth-child(5),
  .hero-ray-group line:nth-child(9) {
    display: none;
  }

  .hero-pulse {
    width: 48%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-facet-b,
  .hero-glow-field,
  .hero-hub-inner,
  .hero-pulse,
  .hero-ray-group line,
  .hero-node,
  .hero-node span,
  .hero-mark-halo::before,
  .hero-media-mark,
  .hero-pro .reveal-up {
    animation: none !important;
  }

  .hero-ray-spark {
    display: none;
  }

  .hero-pro .reveal-up {
    opacity: 1;
    transform: none;
  }

  .hero-node {
    transform: translate(-50%, -50%);
  }
}
