/* =========================================================
   Anayanex Hero — Figma dark theme (HTML/CSS layered)
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

.ax-hero--figma {
  --axf-ink: #0a0a0b;
  --axf-muted: #5c6570;
  --axf-soft: #8b939e;
  --axf-line: #d8dee6;
  --axf-glass: rgba(255, 255, 255, 0.14);
  --axf-glass-border: rgba(255, 255, 255, 0.28);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 50% 90% at 100% 45%, #1c1f22 0%, transparent 55%),
    linear-gradient(105deg, #f8f9fb 0%, #f4f5f7 40%, #e6e8ec 55%, #1a1c1e 72%, #0a0a0b 100%);
  padding: clamp(56px, 7vw, 92px) 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--axf-ink);
}

.ax-hero--figma,
.ax-hero--figma *:not(.ax-figma__note):not(.ax-figma__note *) {
  font-family: "Plus Jakarta Sans", sans-serif;
}

.ax-hero--figma .container {
  position: relative;
  z-index: 2;
}

.ax-figma__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: center;
}

/* ---------- Copy ---------- */
.ax-figma__copy {
  position: relative;
  z-index: 3;
  max-width: 540px;
}

.ax-figma__eyebrow {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--axf-soft);
}

.ax-figma__title {
  margin: 0 0 18px !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-size: clamp(40px, 4.6vw, 56px) !important;
  font-weight: 800 !important;
  line-height: 1.06 !important;
  letter-spacing: -0.038em !important;
  color: var(--axf-ink) !important;
  text-transform: none !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
}

.ax-figma__title .ax-figma__line {
  display: block;
}

.ax-figma__title .ax-figma__line--sub {
  margin-top: 2px;
  font-size: 0.9em;
}

.ax-figma__desc {
  margin: 0 0 26px;
  max-width: 490px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--axf-muted);
}

.ax-figma__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 24px;
}

.ax-figma__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.ax-figma__btn--primary {
  color: #fff !important;
  background: #0a0a0b !important;
  border: none !important;
  box-shadow: 0 10px 28px rgba(10, 10, 11, 0.22);
}

.ax-figma__btn--primary:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  color: #fff !important;
}

.ax-figma__btn--ghost {
  color: var(--axf-ink) !important;
  background: #fff !important;
  border: 1px solid #d5dae2 !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
  padding-right: 12px;
}

.ax-figma__btn--ghost:hover {
  transform: translateY(-1px);
  color: var(--axf-ink) !important;
}

.ax-figma__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0a0a0b;
  color: #fff;
}

.ax-figma__features {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.ax-figma__features li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--axf-ink);
}

.ax-figma__features li:first-child { padding-left: 0; }
.ax-figma__features li:not(:last-child) { border-right: 1px solid var(--axf-line); }

.ax-figma__feat-icon {
  display: inline-flex;
  color: #2a2e33;
}

.ax-figma__trust-label {
  margin: 0 0 12px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--axf-soft);
}

.ax-figma__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  opacity: 0.5;
  filter: grayscale(1);
}

.ax-figma__logos li {
  display: inline-flex;
  height: 24px;
  align-items: center;
}

.ax-figma__logos svg {
  height: 18px;
  width: auto;
}

/* ---------- Visual stage (HTML layers) ---------- */
.ax-figma__visual {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ax-figma__stage {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 1 / 1.02;
  margin-left: auto;
}

.ax-figma__stage-glow {
  position: absolute;
  inset: 8% 6% 18% 6%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, rgba(180, 190, 205, 0.22) 0%, rgba(40, 45, 52, 0.35) 38%, transparent 70%);
  filter: blur(6px);
  z-index: 0;
  pointer-events: none;
}

.ax-figma__stage-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.2;
  background-image: radial-gradient(rgba(255, 255, 255, 0.45) 1px, transparent 1px);
  background-size: 16px 16px;
  mask-image: radial-gradient(ellipse 75% 70% at 55% 42%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 55% 42%, #000 10%, transparent 72%);
  pointer-events: none;
}

.ax-figma__stage-rock {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 6%;
  height: 28%;
  z-index: 3;
  border-radius: 40% 45% 18% 22% / 55% 50% 35% 40%;
  background:
    radial-gradient(120% 80% at 30% 20%, rgba(90, 96, 104, 0.55) 0%, transparent 50%),
    linear-gradient(180deg, #3a3f46 0%, #1a1d21 48%, #0c0d0f 100%);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.ax-figma__stage-rock::before,
.ax-figma__stage-rock::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  inset: 0;
  pointer-events: none;
}

.ax-figma__stage-rock::before {
  background:
    linear-gradient(125deg, transparent 30%, rgba(255, 255, 255, 0.05) 48%, transparent 62%);
  opacity: 0.7;
}

.ax-figma__stage-rock::after {
  left: -6%;
  right: auto;
  width: 38%;
  bottom: -8%;
  height: 70%;
  background: linear-gradient(180deg, #2c3036 0%, #121416 100%);
  border-radius: 40% 30% 20% 35%;
  opacity: 0.9;
}

.ax-figma__globe {
  position: absolute;
  width: min(82%, 480px);
  height: auto;
  top: 2%;
  left: 50%;
  transform: translateX(-48%);
  z-index: 2;
  pointer-events: none;
  opacity: 0.92;
  filter: drop-shadow(0 0 36px rgba(255, 255, 255, 0.1));
  mix-blend-mode: screen;
  animation: ax-figma-globe 14s ease-in-out infinite alternate;
}

.ax-figma__laptop-wrap {
  position: absolute;
  z-index: 5;
  width: min(72%, 430px);
  left: 50%;
  top: 46%;
  transform: translate(-50%, -38%);
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  aspect-ratio: auto !important;
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.55));
  animation: ax-figma-float 6.8s ease-in-out infinite;
}

.ax-figma__laptop-wrap::before {
  display: none !important;
}

.ax-figma__laptop {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent !important;
  padding: 0 !important;
  mix-blend-mode: normal;
}

.ax-figma__card {
  position: absolute;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 132px;
  padding: 13px 13px 12px;
  border-radius: 14px;
  background: rgba(22, 24, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
  color: #f3f5f7;
  animation: ax-figma-card 5.6s ease-in-out infinite;
}

.ax-figma__card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.12);
  color: #eef1f4;
}

.ax-figma__card-label {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.ax-figma__card--web { top: 11%; left: 1%; animation-delay: 0s; }
.ax-figma__card--mobile { top: 38%; left: -3%; animation-delay: 0.35s; }
.ax-figma__card--ai { bottom: 18%; left: 3%; animation-delay: 0.7s; }
.ax-figma__card--cloud { top: 9%; right: 1%; animation-delay: 0.2s; }
.ax-figma__card--marketing { top: 36%; right: -4%; animation-delay: 0.55s; }
.ax-figma__card--consulting { bottom: 20%; right: 3%; animation-delay: 0.9s; }

.ax-figma__note {
  position: absolute;
  z-index: 7;
  margin: 0;
  font-family: "Caveat", cursive !important;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.15;
  color: rgba(255, 255, 255, 0.95);
  max-width: 170px;
  pointer-events: none;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.ax-figma__note--top {
  top: 1%;
  right: 5%;
  transform: rotate(3deg);
}

.ax-figma__note--bottom {
  bottom: 9%;
  left: 20%;
  max-width: 220px;
  transform: rotate(-2deg);
}

.ax-figma__note svg {
  display: block;
  margin-top: 2px;
  width: 54px;
  height: 24px;
  color: rgba(255, 255, 255, 0.9);
  overflow: visible;
}

.ax-figma__status {
  position: absolute;
  z-index: 8;
  right: 3%;
  bottom: 5%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 260px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(14, 16, 18, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.25;
  color: #f0f2f4;
}

.ax-figma__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22), 0 0 12px rgba(34, 197, 94, 0.55);
  flex-shrink: 0;
}

/* Hide legacy flat panel if present */
.ax-figma__panel,
.ax-figma__visual--panel .ax-figma__panel {
  display: none !important;
}

@keyframes ax-figma-float {
  0%, 100% { transform: translate(-50%, -38%); }
  50% { transform: translate(-50%, calc(-38% - 10px)); }
}

@keyframes ax-figma-globe {
  from { transform: translateX(-48%) scale(1); opacity: 0.88; }
  to { transform: translateX(-46%) scale(1.03); opacity: 0.96; }
}

@keyframes ax-figma-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@media (prefers-reduced-motion: reduce) {
  .ax-figma__laptop-wrap,
  .ax-figma__globe,
  .ax-figma__card {
    animation: none;
  }
}

@media (max-width: 1100px) {
  .ax-figma__card {
    width: 118px;
  }

  .ax-figma__card-label {
    font-size: 11px;
  }

  .ax-figma__note {
    font-size: 19px;
  }
}

@media (max-width: 991px) {
  .ax-hero--figma {
    background:
      linear-gradient(180deg, #f8f9fb 0%, #f1f2f4 46%, #1a1c1e 70%, #0a0a0b 100%);
    padding: 48px 0 56px;
  }

  .ax-figma__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .ax-figma__copy {
    max-width: none;
  }

  .ax-figma__visual {
    order: -1;
    min-height: 0;
  }

  .ax-figma__stage {
    max-width: 520px;
    margin: 0 auto;
    aspect-ratio: 1 / 1.05;
    overflow: hidden;
  }

  .ax-figma__title {
    font-size: clamp(34px, 7.5vw, 46px) !important;
  }

  .ax-figma__card--ai,
  .ax-figma__card--consulting,
  .ax-figma__note--bottom {
    display: none;
  }
}

@media (max-width: 575px) {
  .ax-figma__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ax-figma__btn {
    width: 100%;
  }

  .ax-figma__features {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .ax-figma__features li {
    padding: 0;
    border-right: none !important;
  }

  .ax-figma__card--web,
  .ax-figma__card--cloud,
  .ax-figma__note--top {
    display: none;
  }

  .ax-figma__card--mobile {
    left: 4%;
    max-width: 42%;
  }

  .ax-figma__card--marketing {
    right: 4%;
    max-width: 42%;
  }

  .ax-figma__status {
    left: 50%;
    right: auto;
    bottom: 2%;
    transform: translateX(-50%);
    max-width: 90%;
    text-align: left;
  }

  .ax-figma__stage {
    max-width: 100%;
    overflow: hidden;
  }

  .ax-figma__title {
    font-size: clamp(28px, 8vw, 34px) !important;
    overflow-wrap: anywhere;
  }
}
